This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

tools.workspace-menu: use menu instead of rofi, drop kitty dependency

+8 -9
+1 -2
tools/workspace-manager/flake-module.nix
··· 107 107 runtimeInputs = [ 108 108 pkgs.sway 109 109 pkgs.jq 110 - pkgs.rofi 110 + self.packages.${pkgs.system}.menu 111 111 pkgs.libnotify 112 - pkgs.kitty 113 112 pkgs.findutils 114 113 pkgs.gnused 115 114 pkgs.coreutils
+7 -7
tools/workspace-manager/workspace-menu.sh
··· 1 1 #!/usr/bin/env bash 2 - # Workspace Menu - rofi-based menu for workspace management 2 + # Workspace Menu for workspace management 3 3 4 4 set -euo pipefail 5 5 ··· 54 54 ws_name=$(get_current_workspace) 55 55 56 56 local confirm 57 - confirm=$(printf "Yes\nNo" | rofi -dmenu -p "Close workspace '${ws_name}'? (kills all windows)") 57 + confirm=$(printf "Yes\nNo" | menu -p "Close workspace '${ws_name}'? (kills all windows)") 58 58 if [ "$confirm" != "Yes" ]; then 59 59 return 0 60 60 fi ··· 86 86 fi 87 87 88 88 local selected 89 - selected=$(echo "$configs" | rofi -dmenu -p "Delete workspace config") 89 + selected=$(echo "$configs" | menu -p "Delete workspace config") 90 90 if [ -z "$selected" ]; then 91 91 return 0 92 92 fi 93 93 94 94 local confirm 95 - confirm=$(printf "Yes\nNo" | rofi -dmenu -p "Delete config for '${selected}'?") 95 + confirm=$(printf "Yes\nNo" | menu -p "Delete config for '${selected}'?") 96 96 if [ "$confirm" = "Yes" ]; then 97 97 rm "${WORKSPACES_DIR}/${selected}.json" 98 98 notify-send "Workspace Manager" "Deleted config for '${selected}'" ··· 112 112 fi 113 113 114 114 local selected 115 - selected=$(echo "$configs" | rofi -dmenu -p "Edit workspace config") 115 + selected=$(echo "$configs" | menu -p "Edit workspace config") 116 116 if [ -z "$selected" ]; then 117 117 return 0 118 118 fi ··· 123 123 echo '{}' > "$config_file" 124 124 fi 125 125 126 - kitty "${EDITOR:-vim}" "$config_file" & 126 + swaymsg exec "${TERMINAL:-kitty} ${EDITOR:-vim} $config_file" 127 127 } 128 128 129 129 # Main menu ··· 133 133 134 134 local choice 135 135 choice=$(printf "Restore tabs\nClose workspace\nEdit config\nDelete config" | \ 136 - rofi -dmenu -p "Workspace: ${ws_name}") 136 + menu -p "Workspace: ${ws_name}") 137 137 138 138 case "$choice" in 139 139 "Restore tabs")