feat!: move to wofi

This commit is contained in:
2025-07-15 21:39:04 -07:00
parent 4bf77d4af8
commit 2c7d98c627
2 changed files with 9 additions and 1 deletions

View File

@@ -135,7 +135,7 @@
settings = { settings = {
"$mod" = "SUPER"; "$mod" = "SUPER";
"$terminal" = "ghostty"; "$terminal" = "ghostty";
"$menu" = "wofi -show drun"; "$menu" = "wofi";
bind = bind =
[ [
"$mod, Return, exec, $terminal" "$mod, Return, exec, $terminal"
@@ -143,6 +143,7 @@
"$mod SHIFT, E, exit" "$mod SHIFT, E, exit"
"$mod SHIFT, SPACE, togglefloating" "$mod SHIFT, SPACE, togglefloating"
"$mod, d, exec, $menu" "$mod, d, exec, $menu"
"$mod SHIFT, D, exec, bash -c ~/dotfiles/scripts/workspace.sh"
"$mod, h, movefocus, l" "$mod, h, movefocus, l"
"$mod, l, movefocus, r" "$mod, l, movefocus, r"
"$mod, k, movefocus, u" "$mod, k, movefocus, u"

7
scripts/workspace.sh Executable file
View File

@@ -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