diff options
author | Justine Smithies <justine@smithies.me.uk> | 2024-05-26 09:13:17 +0100 |
---|---|---|
committer | Justine Smithies <justine@smithies.me.uk> | 2024-05-26 09:13:17 +0100 |
commit | 2dda9502bbb39ab74d00a8f4b67f9ba74012c7b9 (patch) | |
tree | 58c5aa7dc9c37b29ef380a1a87b78a0b1a5d3d37 | |
parent | 1a531b1ca4d03d1ee81e2b86ae32aa53f5ff2fbc (diff) |
Updated screenshot.sh to use river-bedload command by novakane
-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 |