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
commit516eca23001ea5f8577683176deb5c44a5a3d1eb (patch)
tree13027f33df263f71787491ffa4a0850c4022badc
parentdece04413851a1022aa3020c5e9793ebe493f4e1 (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