From fac808bb63b0da83f41593bf9de95ea4275784fb Mon Sep 17 00:00:00 2001 From: Seymur Bagirov Date: Fri, 23 Feb 2024 21:30:29 +0400 Subject: [PATCH] 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? --- hypr/hyprland-window-switcher.sh | 1 + hypr/rofi.conf | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100755 hypr/hyprland-window-switcher.sh diff --git a/hypr/hyprland-window-switcher.sh b/hypr/hyprland-window-switcher.sh new file mode 100755 index 0000000..7724626 --- /dev/null +++ b/hypr/hyprland-window-switcher.sh @@ -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)" diff --git a/hypr/rofi.conf b/hypr/rofi.conf index aa4bdf2..ca639fa 100644 --- a/hypr/rofi.conf +++ b/hypr/rofi.conf @@ -1,6 +1,6 @@ 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, 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, X, exec, ~/.config/rofi/powermenu/type-6/powermenu.sh bind = $secondaryMod, V, exec, ~/.config/rofi/applets/bin/volume.sh