diff --git a/bin/screenshot b/bin/screenshot deleted file mode 100755 index 74ebcba..0000000 --- a/bin/screenshot +++ /dev/null @@ -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 ." - ;; -esac diff --git a/dotconfig/river/binds b/dotconfig/river/binds index 05c5b48..0346b55 100755 --- a/dotconfig/river/binds +++ b/dotconfig/river/binds @@ -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 ##