diff options
Diffstat (limited to '.config/river/scripts/screenshot.sh')
-rwxr-xr-x | .config/river/scripts/screenshot.sh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/.config/river/scripts/screenshot.sh b/.config/river/scripts/screenshot.sh index 68576c7..72a5eef 100755 --- a/.config/river/scripts/screenshot.sh +++ b/.config/river/scripts/screenshot.sh @@ -11,8 +11,7 @@ case $1 in ;; *) # Take a screenshot of the currently focused output and save it into screenshots - output="$(lswt -j | jq -c '.[] | select(.activated) | .outputs' | awk -F'["" -]' '{print $2}')" + output="$(river-bedload -print outputs | jq -c '.[] | select(.focused) | .name' | awk -F'[""]' '{print $2}')" grim -o $output -t png ~/Pictures/Screenshots/$(date +%Y-%m-%d_%H-%m-%s).png ;; esac |