hyprlock/README.md

18 lines
743 B
Markdown
Raw Permalink Normal View History

2024-03-14 16:37:23 -04:00
# Hyprlock
2024-03-14 20:17:45 -04:00
Hyprlock is a script that allows for the mouse cursor to be locked to a monitor in Hyprland Window Manager.
2024-03-14 16:37:23 -04:00
Setup:
2024-03-14 17:08:23 -04:00
1. Copy `hyprlock.sh` into `~/.config/hypr`
2024-03-14 17:58:23 -04:00
2. Modify the monitor positions at the top of `~/.config/hypr/hyprlock.sh`. Execute `hyprctl -j monitors` to gather information about the monitor configuration.\
2024-03-14 17:37:53 -04:00
Example:
```bash
unlockedMonitorYPositions=(0 0 0)
2024-03-14 21:39:35 -04:00
lockedMonitorYPositions=(1152 1152 1152)
2024-03-14 17:37:53 -04:00
```
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`.\
2024-03-14 16:37:23 -04:00
Example:
```bash
bind = $mainMod, Q, exec, ~/.config/hypr/hyprlock.sh
```