diff options
author | Saumit Dinesan <justsaumit@protonmail.com> | 2023-03-24 05:11:34 +0530 |
---|---|---|
committer | Saumit Dinesan <justsaumit@protonmail.com> | 2023-03-24 05:11:34 +0530 |
commit | 7429790d806a5a549969331c8c94c4329523681d (patch) | |
tree | b0cbae740e5f7f1634d2a33fa9791a7ea7acfa23 /.config/hypr | |
parent | 8c0b2b9f635e535d6b2217e22ef74041585616cc (diff) |
hypr: grim save+copy hack
Diffstat (limited to '.config/hypr')
-rw-r--r-- | .config/hypr/hyprland.conf | 4 |
1 files changed, 2 insertions, 2 deletions
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 |