Skip to content

pyt0xic/hyprswitchr

Repository files navigation

HyprSwitchr

An urgent-first/most-recent window switcher inspired by swayr

Install

Currently tested and working with v0.36.0 commit 1c460e98f870676b15871fe4e5bfeb1a32a3d6d8
hyprpm add https://github.com/pyt0xic/hyprswitchr --verbose

Usage

  1. Enable with hyprpm enable hyprswitchr
  2. Make sure you have exec-once=hyprpm reload -n in your hyprland.conf
  3. Switch to urgent or most-recently-used window hyprctl dispatch switch-to-urgent-or-prev
  4. Switch to urgent or least-recently-used window hyprctl dispatch switch-to-urgent-or-next
  5. Switch to matching, urgent or most-recently-used window hyprctl dispatch switch-to-matching-urgent-or-prev '^(.*kitty.*)'
  6. Switch to matching, urgent or least-recently-used window hyprctl dispatch switch-to-matching-urgent-or-next '^(.*kitty.*)'
  7. Get the window list in most-recently-used order hyprctl windowlist or in JSON format hyprctl windowlist -j
  8. Get the window list in least-recently-used order hyprctl windowlist-reverse or in JSON format hyprctl windowlist -j
  9. Switch to urgent or most-recently-used window, tracking current position in the window list hyprctl dispatch switch-to-urgent-or-prev-tracked
  10. Switch to urgent or least-recently-used window, tracking current position in the window list hyprctl dispatch switch-to-urgent-or-next-tracked
  11. 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.

About

An urgent-first/most-recent window switcher

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published