From 2c7d98c6278d19b791866b2fa5ab1d25af378565 Mon Sep 17 00:00:00 2001 From: rocketcamel Date: Tue, 15 Jul 2025 21:39:04 -0700 Subject: [PATCH] feat!: move to wofi --- nix/modules/desktop.nix | 3 ++- scripts/workspace.sh | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100755 scripts/workspace.sh 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