From bf215ea7f97321ec5741f4c1401ca394ac31371c Mon Sep 17 00:00:00 2001 From: Sunderland93 Date: Thu, 31 Aug 2023 09:20:02 +0400 Subject: [PATCH] Fix screenshot command --- etc/skel/.config/river/keybindings.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/etc/skel/.config/river/keybindings.sh b/etc/skel/.config/river/keybindings.sh index 7eaec0c..db3f419 100755 --- a/etc/skel/.config/river/keybindings.sh +++ b/etc/skel/.config/river/keybindings.sh @@ -16,14 +16,14 @@ volume_bar="/usr/share/river/scripts/volume-notify.sh" brightness_bar="/usr/share/river/scripts/brightness-notify.sh" # Screenshot notify -screenshot_notify="[[ $(wl-paste -l) == "image/png" ]] && notify-send "Screenshot copied to clipboard"" +screenshot_notify="eval [[ $(wl-paste -l) == "image/png" ]] && notify-send 'Screenshot copied to clipboard'" # Calculate step to change brightness brightness_step="echo $(( $(light -Mr) / 100 * 5 < 1 ? 1 : $(( $(light -Mr) / 100 * 5 )) ))" # Screenshot scripts -riverctl map normal "None" Print spawn "/usr/bin/river-grimshot save screen - | swappy -f - && $screenshot_notify" -riverctl map normal "$mod" Print spawn "/usr/bin/river-grimshot save area - | swappy -f - && $screenshot_notify" +riverctl map normal "None" Print spawn "/usr/bin/river-grimshot save screen - | swappy -f - && bash -c $screenshot_notify" +riverctl map normal "$mod" Print spawn "/usr/bin/river-grimshot save area - | swappy -f - && bash -c $screenshot_notify" # $mod+Shift+Return to start an instance of terminal riverctl map normal $mod Return spawn $term