summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2023-04-07 03:41:21 +0200
committerRaymaekers Luca <raymaekers.luca@gmail.com>2023-04-07 03:41:21 +0200
commit3adc3b63290361ab4b9bbc5950499cf5c6014adb (patch)
treef754a2c9eb9a35fd56daec36004d6bff70d48a49
parent94a8934e97635a44b81aab77ee824554ee845b41 (diff)
added screenshot keybinds
-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