Skip to content

Commit 24210dc

Browse files
committed
chore: added Hyprland keybinds example to README
1 parent 75de281 commit 24210dc

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,31 @@ $ hyprshot -m output --clipboard-only
4747

4848
## Configuration
4949

50+
You can add the various modes as keybindings in your Hyprland config like so:
51+
52+
```
53+
# ~/.config/hypr/hyprland.conf
54+
55+
...
56+
57+
# Screenshot a window
58+
bind = $mainMod, PRINT, exec, hyprshot -m window
59+
# Screenshot a monitor
60+
bind = , PRINT, exec, hyprshot -m output
61+
# Screenshot a region
62+
bind = $shiftMod, PRINT, exec, hyprshot -m region
63+
```
64+
65+
This would allow you to:
66+
67+
Take a screenshot of a window by using `MOD + PrintScr`
68+
69+
Take a screenshot of a monitor by using `PrintScr`
70+
71+
Take a screenshot of a region by using `MOD + Shift + PrintScr`
72+
73+
## Save location
74+
5075
You can choose which directory Hyprshot will save screenshots in by setting an `HYPRSHOT_DIR` environment variable to your preferred location.
5176

5277
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.

0 commit comments

Comments
 (0)