summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmed AbdelHalim <[email protected]>2026-02-20 23:44:43 +0100
committerAhmed AbdelHalim <[email protected]>2026-02-20 23:44:43 +0100
commit02489071cd37a62f1e1aaae30bb5c1ccd5952f37 (patch)
tree13027f33df263f71787491ffa4a0850c4022badc
parent8a5ee9e1d4e30136006607f670d86c8b94d1b0ec (diff)
Add hyprshot for screenshot-ing windows/regions
-rw-r--r--roles/hyprland/tasks/main.yml1
-rw-r--r--roles/hyprland/templates/bindings.conf.j24
2 files changed, 5 insertions, 0 deletions
diff --git a/roles/hyprland/tasks/main.yml b/roles/hyprland/tasks/main.yml
index 07f121c9..e8523571 100644
--- a/roles/hyprland/tasks/main.yml
+++ b/roles/hyprland/tasks/main.yml
@@ -10,6 +10,7 @@
- "hypridle"
- "hyprpicker"
- "hyprsunset"
+ - "hyprshot"
- "hyprland"
- "xdg-desktop-portal-gtk"
- "xdg-desktop-portal-hyprland"
diff --git a/roles/hyprland/templates/bindings.conf.j2 b/roles/hyprland/templates/bindings.conf.j2
index a7739be4..3028919c 100644
--- a/roles/hyprland/templates/bindings.conf.j2
+++ b/roles/hyprland/templates/bindings.conf.j2
@@ -77,3 +77,7 @@ bindl = , XF86AudioNext, exec, playerctl next
bindl = , XF86AudioPause, exec, playerctl play-pause
bindl = , XF86AudioPlay, exec, playerctl play-pause
bindl = , XF86AudioPrev, exec, playerctl previous
+
+# Screenshot
+bindd = SUPER SHIFT, 3, Screenshot window, exec, hyprshot -m window
+bindd = SUPER SHIFT, 4, Screenshot region, exec, hyprshot -m region