From 2dda9502bbb39ab74d00a8f4b67f9ba74012c7b9 Mon Sep 17 00:00:00 2001 From: Justine Smithies Date: Sun, 26 May 2024 09:13:17 +0100 Subject: Updated screenshot.sh to use river-bedload command by novakane --- .config/river/scripts/screenshot.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to '.config/river') 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 -- cgit v1.2.3