Hyprlock
Go to file
2024-03-14 16:58:23 -05:00
hyprlock.sh Update hyprlock.sh 2024-03-14 16:32:10 -05:00
README.md Update README.md 2024-03-14 16:58:23 -05:00

Hyprlock

Hyprlock is a script that allows for the mouse cursor to be locked to a monitor.

Setup:

  1. Copy hyprlock.sh into ~/.config/hypr
  2. Modify the monitor positions at the top of ~/.config/hypr/hyprlock.sh. Execute hyprctl -j monitors to gather information about the monitor configuration.
    Example:
    unlockedMonitorYPositions=(0 0 0)
    lockedMonitorYPositions=(1080 1080 1080)
    
  3. Execute chmox +x ~/.config/hypr/hyprlock.sh
  4. Execute sudo ln -s ~/.config/hypr/hyprlock.sh /usr/bin/hyprlock
  5. Add a bind to Hyprlock in ~/.config/hypr/hyprland.conf.
    Example:
    bind = $mainMod, Q, exec, ~/.config/hypr/hyprlock.sh