better now
This commit is contained in:
parent
4f46de8d00
commit
358503f857
5010 changed files with 161 additions and 603699 deletions
28
scripts/changeWallpaper.sh
Executable file
28
scripts/changeWallpaper.sh
Executable file
|
@ -0,0 +1,28 @@
|
|||
#!/bin/bash
|
||||
|
||||
monitor="eDP-1"
|
||||
|
||||
currentWallpaper=$(hyprctl hyprpaper listactive)
|
||||
currentWallpaper=${currentWallpaper:8}
|
||||
|
||||
echo "$currentWallpaper"
|
||||
|
||||
wallpapers=$(hyprctl hyprpaper listloaded)
|
||||
|
||||
set=false
|
||||
for wallpaper in $wallpapers; do
|
||||
echo "$wallpaper"
|
||||
if $set; then
|
||||
hyprctl hyprpaper wallpaper "${monitor},${wallpaper}"
|
||||
set=false
|
||||
fi
|
||||
if [ "$wallpaper" = "$currentWallpaper" ]; then
|
||||
set=true
|
||||
echo yes
|
||||
fi
|
||||
done
|
||||
|
||||
if $set; then
|
||||
hyprctl hyprpaper wallpaper "${monitor},/home/rafayahmad/dotfiles/bgs/1.png"
|
||||
fi
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue