diff --git a/nix/modules/desktop.nix b/nix/modules/desktop.nix index 09327ab..fbd6a10 100644 --- a/nix/modules/desktop.nix +++ b/nix/modules/desktop.nix @@ -135,7 +135,7 @@ settings = { "$mod" = "SUPER"; "$terminal" = "ghostty"; - "$menu" = "wofi -show drun"; + "$menu" = "wofi"; bind = [ "$mod, Return, exec, $terminal" @@ -143,6 +143,7 @@ "$mod SHIFT, E, exit" "$mod SHIFT, SPACE, togglefloating" "$mod, d, exec, $menu" + "$mod SHIFT, D, exec, bash -c ~/dotfiles/scripts/workspace.sh" "$mod, h, movefocus, l" "$mod, l, movefocus, r" "$mod, k, movefocus, u" diff --git a/scripts/workspace.sh b/scripts/workspace.sh new file mode 100755 index 0000000..94a94e0 --- /dev/null +++ b/scripts/workspace.sh @@ -0,0 +1,7 @@ +workspaces=$(hyprctl workspaces -j | jq -r '.[].name') + +target=$(echo "$workspaces" | wofi -d -p "Switch to workspace:") + +if [[ -n "$target" ]]; then + hyprctl dispatch workspace "$target" +fi