New backup 2024-04-09 21:00:04
This commit is contained in:
parent
78dffd44b5
commit
2bc9782acf
5 changed files with 10 additions and 3 deletions
BIN
de/home/.config/sway/assets/wallpaper/eDP-1/0.jpg
Normal file
BIN
de/home/.config/sway/assets/wallpaper/eDP-1/0.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 804 KiB |
BIN
de/home/.config/sway/assets/wallpaper/eDP-1/1.jpg
Normal file
BIN
de/home/.config/sway/assets/wallpaper/eDP-1/1.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 11 MiB |
BIN
de/home/.config/sway/assets/wallpaper/eDP-1/2.jpg
Normal file
BIN
de/home/.config/sway/assets/wallpaper/eDP-1/2.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.7 MiB |
BIN
de/home/.config/sway/assets/wallpaper/eDP-1/3.jpg
Normal file
BIN
de/home/.config/sway/assets/wallpaper/eDP-1/3.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.9 MiB |
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue