Compare commits
No commits in common. "39ac3ca6c4b830d5fd8535cca93bd2a667b13b67" and "b28f2da899272497ee4087bb2900e003f70670b7" have entirely different histories.
39ac3ca6c4
...
b28f2da899
2 changed files with 2 additions and 19 deletions
|
@ -1,17 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Get the type from arg
|
||||
type=$1
|
||||
|
||||
# Perform action based on type
|
||||
case "$type" in
|
||||
"interactive") # Take interactive screenshot
|
||||
grim -g "$(slurp -d)" - | wl-copy -t image/jpeg
|
||||
;;
|
||||
"plain") # Take plain screenshot
|
||||
grim - | wl-copy -t image/jpeg
|
||||
;;
|
||||
*) # Handle invalid type
|
||||
echo "Invalid type, use screenshot <interactive|plain>."
|
||||
;;
|
||||
esac
|
|
@ -31,10 +31,10 @@ riverctl map normal None XF86_MonBrightnessUp spawn "$HOME/.local/bin/brightness
|
|||
riverctl map normal None XF86_MonBrightnessDown spawn "$HOME/.local/bin/brightness"
|
||||
|
||||
# Print to spawn interactive screenshot
|
||||
riverctl map normal None Print spawn "$HOME/.local/bin/screenshot interactive"
|
||||
#riverctl map normal None Print spawn "grim -g "$(slurp -d)" - | wl-copy -t image/jpeg"
|
||||
|
||||
# Shift+Print to spawn screenshot
|
||||
riverctl map normal Shift Print spawn "$HOME/.local/bin/screenshot plain"
|
||||
#riverctl map normal Shift Print spawn "grim - | wl-copy -t image/jpeg"
|
||||
|
||||
|
||||
## Focused view mapping ##
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue