An urgent-first/most-recent window switcher inspired by swayr
Currently tested and working with v0.36.0 commit 1c460e98f870676b15871fe4e5bfeb1a32a3d6d8
hyprpm add https://github.com/pyt0xic/hyprswitchr --verbose
- Enable with
hyprpm enable hyprswitchr - Make sure you have
exec-once=hyprpm reload -nin yourhyprland.conf - Switch to urgent or most-recently-used window
hyprctl dispatch switch-to-urgent-or-prev - Switch to urgent or least-recently-used window
hyprctl dispatch switch-to-urgent-or-next - Switch to matching, urgent or most-recently-used window
hyprctl dispatch switch-to-matching-urgent-or-prev '^(.*kitty.*)' - Switch to matching, urgent or least-recently-used window
hyprctl dispatch switch-to-matching-urgent-or-next '^(.*kitty.*)' - Get the window list in most-recently-used order
hyprctl windowlistor in JSON formathyprctl windowlist -j - Get the window list in least-recently-used order
hyprctl windowlist-reverseor in JSON formathyprctl windowlist -j - Switch to urgent or most-recently-used window, tracking current position in the window list
hyprctl dispatch switch-to-urgent-or-prev-tracked - Switch to urgent or least-recently-used window, tracking current position in the window list
hyprctl dispatch switch-to-urgent-or-next-tracked - Stop tracking current switch position
hyprctl dispatch stop-switching
For normal ALT+TAB style usage:
bind=ALT,TAB,switch-to-urgent-or-prev-tracked
bind=ALT+SHIFT,TAB,switch-to-urgent-or-next-tracked
bindirt=,ALT_L,stop-switching
This will let you cycle through the window list by holding ALT/ALT+SHIFT and pressing tab, much like the behaviour of ALT+TAB in Windows.