Hyprlock
hyprlock.sh | ||
README.md |
Hyprlock
Hyprlock is a script that allows for the mouse cursor to be locked to a monitor.
Setup:
- Copy
hyprlock.sh
into~/.config/hypr
- Modify the monitor positions at the top of
hyprlock.sh
. Executehyprctl -j monitors
to gather information about the monitor configuration.
Example:unlockedMonitorYPositions=(0 0 0) lockedMonitorYPositions=(1080 1080 1080)
- Execute
chmox +x ~/.config/hypr/hyprlock.sh
- Execute
sudo ln -s ~/.config/hypr/hyprlock.sh /usr/bin/hyprlock
- Add a bind to Hyprlock in
~/.config/hypr/hyprland.conf
.
Example:bind = $mainMod, Q, exec, ~/.config/hypr/hyprlock.sh