From 7429790d806a5a549969331c8c94c4329523681d Mon Sep 17 00:00:00 2001 From: Saumit Dinesan Date: Fri, 24 Mar 2023 05:11:34 +0530 Subject: hypr: grim save+copy hack --- .config/hypr/hyprland.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.config/hypr') diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index 01f8950..5c27eae 100644 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -164,8 +164,8 @@ bind = $MOD SHIFT, B, exec, kitty -e btop bind = $MOD SHIFT, L, exec, waylock #screenshot -bind = ,Print, exec, grim "$GRIM_DEFAULT_DIR/"pic-full-"$(date +%y-%m-%d--%H-%M-%S)".png -bind = CTRL,Print, exec, grim -g "$(slurp)" $GRIM_DEFAULT_DIR/pic-sel-"$(date +%y-%m-%d--%H-%M-%S)".png +bind = ,Print, exec, IMG=pic-full-"$(date +%y-%m-%d--%H-%M-%S)".png && grim "$GRIM_DEFAULT_DIR/""$IMG" && wl-copy < "$GRIM_DEFAULT_DIR/""$IMG" +bind = CTRL,Print, exec, IMG=pic-sel-"$(date +%y-%m-%d--%H-%M-%S)".png && grim -g "$(slurp)" "$GRIM_DEFAULT_DIR/""$IMG" && wl-copy < "$GRIM_DEFAULT_DIR/""$IMG" #otherkeyb bind = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle && [[ "$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | grep MUTE)" ]] && dunstify "Mute" "Volume set to 0%" -i volume-xmark -t 1000 -r 1234 -- cgit v1.2.3