New backup 2024-04-09 21:00:04

This commit is contained in:
Penelope Gwen 2024-04-09 21:00:04 -06:00
parent 78dffd44b5
commit 2bc9782acf
5 changed files with 10 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 804 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB

View file

@ -1,10 +1,13 @@
#!/bin/bash
bgpid=""
swaymsg -r -t subscribe -m '["workspace"]' | jq -rc --unbuffered 'select(.change == "focus") | .current | "\(.name) \(.output)"' | while read name output;do
# bgpid="$!"
wsno=$(echo "$name" | awk '{print $1}' | grep -o "^[1-9]*")
wpid=$(($(printf "%02d\n" $wsno)-1))
echo "${wpid:0:1}"
wpid=$(echo "${wpid:0:1}")
echo $wpid
echo $output
# if ((1<=$wsno && $wsno<=10))
# then
# echo "480p"
@ -17,5 +20,9 @@ swaymsg -r -t subscribe -m '["workspace"]' | jq -rc --unbuffered 'select(.change
# elif ((31<=$wsno && $wsno<= ))
# echo "DVD"
# fi
# swaybg -i "$HOME/.config/sway/assets/wallpaper/eDP-1/$name.jpg" -o "$output" && kill $bgpid
echo "$HOME/.config/sway/assets/wallpaper/${output}/${wpid}.jpg"
# old_bgpid=$bgpid
# swaybg -i "$HOME/.config/sway/assets/wallpaper/${output}/${wpid}.jpg" -o "${output}" &
# bgpid=$!
# kill $old_bgpid
done