fix: use wofi instead of rofi for window switching

rofi for some reason needs to have mouse focus to be able to switch,
maybe something that Hyprland broke?
This commit is contained in:
Seymur Bagirov 2024-02-23 21:30:29 +04:00
parent 45e08b2358
commit fac808bb63
2 changed files with 2 additions and 1 deletions

View File

@ -0,0 +1 @@
hyprctl dispatch focuswindow address:"$(hyprctl -j clients | jq -r '.[]|select(.address != "" and .title != "")|(.class + "\t" + .address + "\t" + .title)' | wofi --show dmenu | cut -f2)"

View File

@ -1,6 +1,6 @@
bind = $mainMod, R, exec, ~/.config/rofi/launchers/type-6/launcher.sh -m drun bind = $mainMod, R, exec, ~/.config/rofi/launchers/type-6/launcher.sh -m drun
bind = $mainMod, B, exec, ~/.config/rofi/launchers/type-6/launcher.sh -m run bind = $mainMod, B, exec, ~/.config/rofi/launchers/type-6/launcher.sh -m run
bind = $mainMod, W, exec, ~/.config/rofi/launchers/type-6/launcher.sh -m window bind = $mainMod, W, exec, ~/.config/hypr/hyprland-window-switcher.sh
bind = $mainMod_ALT, B, exec, ~/.config/rofi/launchers/type-6/launcher.sh -m filebrowser bind = $mainMod_ALT, B, exec, ~/.config/rofi/launchers/type-6/launcher.sh -m filebrowser
bind = $mainMod, X, exec, ~/.config/rofi/powermenu/type-6/powermenu.sh bind = $mainMod, X, exec, ~/.config/rofi/powermenu/type-6/powermenu.sh
bind = $secondaryMod, V, exec, ~/.config/rofi/applets/bin/volume.sh bind = $secondaryMod, V, exec, ~/.config/rofi/applets/bin/volume.sh