hyprlock/README.md
2024-03-14 19:17:45 -05:00

18 lines
743 B
Markdown

# Hyprlock
Hyprlock is a script that allows for the mouse cursor to be locked to a monitor in Hyprland Window Manager.
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:
```bash
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:
```bash
bind = $mainMod, Q, exec, ~/.config/hypr/hyprlock.sh
```