Fix screenshot command
This commit is contained in:
parent
f89d5a444c
commit
bf215ea7f9
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue