summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/hyprland/hypr/hyprland.conf7
1 files changed, 7 insertions, 0 deletions
diff --git a/config/hyprland/hypr/hyprland.conf b/config/hyprland/hypr/hyprland.conf
index d6b8d45..4bc8cde 100644
--- a/config/hyprland/hypr/hyprland.conf
+++ b/config/hyprland/hypr/hyprland.conf
@@ -173,3 +173,10 @@ bind =, XF86AudioRaiseVolume, exec, pamixer -i 5
bind =, XF86AudioMute, exec, pamixer -t
bind = $mainMod SHIFT, B, exec, killall waybar; waybar
+
+$actshot = grim -o "$(hyprctl monitors -j | jq -r ".[] | select(.id == "$(hyprctl activewindow -j | jq -r '.monitor')")" | jq -r '.name')"
+$selshot = grim -g "$(slurp)" /dev/stdout | wl-copy
+
+bind = $mainMod ALT, S, exec, $actshot
+bind = $mainMod SHIFT, S, exec, $selshot
+bind = $mainMod ALT SHIFT, S, exec, $actshot /dev/stdout | wl-copy