18 lines
704 B
Markdown
18 lines
704 B
Markdown
# 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. Configure the monitor positions at the top of `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
|
|
``` |