A utility for traversing focus history across Hyprland windows.
Start daemon:
hyprhist daemon focusExecute next/prev commands:
hyprhist focus nexthyprhist focus prevIf new events are added when traversing focus history, the history will be truncated to that point, and the new event will be added.
Window events can be tracked and traversed on independent monitor groups:
hyprhist daemon focus --monitor HDMI-1-A --monitor DP-1hyprhist focus next --monitor HDMI-1-A --monitor DP-1hyprhist daemon focus --monitor DP-2hyprhist focus next --monitor DP-2The monitors specified in the
next/prevanddaemonarguments much match exactly.
Window focus history is preserved when moving windows between tracked and untracked monitors. Historical focus events for windows residing on an untracked monitor will be ignored by the daemon when traversing with
next/prevuntil the window is moved back to a tracked monitor.
If two daemons have an overlapping monitor specified, only the most recent daemon will work.
hyprhist daemon focus --monitor HDMI-1-A --monitor DP-1
hyprhist daemon focus --monitor HDMI-1-A --monitor DP-2 # HDMI-1-A overlaps, only this daemon will workIf no monitors are specified then events on all monitors are tracked. The above rule then applies to the set of all monitors available.
hyprhist daemon focus # Contains every monitor available
hyprhist daemon focus --monitor HDMI-1-A --monitor DP-2 # Mutually exclusive configurations, only the latter daemon will workThe maximum number of events to track can be specified (defaults to 300):
hyprhist daemon focus --history-size 10exec-once = ~/path/to/hyprhist daemon focus
bind = $mainMod, I, exec, ~/path/to/hyprhist focus next
bind = $mainMod, O, exec, ~/path/to/hyprhist focus prev
- Track and traverse other Hyprland events