chore: added Hyprland keybinds example to README

This commit is contained in:
Gustavo Parreira 2022-11-09 21:57:36 +00:00
parent 75de28133b
commit 24210dcceb
No known key found for this signature in database
GPG key ID: 461165CBB467DD30

View file

@ -47,6 +47,31 @@ $ hyprshot -m output --clipboard-only
## Configuration
You can add the various modes as keybindings in your Hyprland config like so:
```
# ~/.config/hypr/hyprland.conf
...
# Screenshot a window
bind = $mainMod, PRINT, exec, hyprshot -m window
# Screenshot a monitor
bind = , PRINT, exec, hyprshot -m output
# Screenshot a region
bind = $shiftMod, PRINT, exec, hyprshot -m region
```
This would allow you to:
Take a screenshot of a window by using `MOD + PrintScr`
Take a screenshot of a monitor by using `PrintScr`
Take a screenshot of a region by using `MOD + Shift + PrintScr`
## Save location
You can choose which directory Hyprshot will save screenshots in by setting an `HYPRSHOT_DIR` environment variable to your preferred location.
If `HYPRSHOT_DIR` is not set, Hyprshot will attempt to save to `XDG_PICTURES_DIR` and will further fallback to your home directory if this is also not available.