1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-04-01 17:07:45 +02:00

make a new changing wallpaper script

This commit is contained in:
tiynger 2019-10-04 18:01:58 +02:00
parent 9a0d3e5983
commit 9974d7dd91
32 changed files with 30 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 MiB

1
.config/wallpaper/fri Symbolic link
View File

@ -0,0 +1 @@
ressources/pixel

1
.config/wallpaper/mon Symbolic link
View File

@ -0,0 +1 @@
ressources/fantasy

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 357 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 138 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 160 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 236 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 199 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 578 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 875 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 350 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 814 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 677 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 899 KiB

1
.config/wallpaper/sat Symbolic link
View File

@ -0,0 +1 @@
ressources/space

1
.config/wallpaper/sun Symbolic link
View File

@ -0,0 +1 @@
ressources/sun

1
.config/wallpaper/thu Symbolic link
View File

@ -0,0 +1 @@
ressources/moon

1
.config/wallpaper/tue Symbolic link
View File

@ -0,0 +1 @@
ressources/landscape

1
.config/wallpaper/wed Symbolic link
View File

@ -0,0 +1 @@
ressources/minimal

View File

@ -1,4 +1,25 @@
#!/bin/sh #!/bin/sh
# Sets the background. If given an argument, will set file as background. # Sets the background. If given an argument, will set file as background.
[ ! -z "$1" ] && cp "$1" ~/.config/wall.png && notify-send -i "$HOME/.config/wall.png" "Wallpaper changed." if [ $(date | awk '{print $1}') = "Mon" ]; then
xwallpaper --zoom ~/.config/wall.png wallDir=~/.config/wallpaper/mon
fi
if [ $(date | awk '{print $1}') = "Tue" ]; then
wallDir=~/.config/wallpaper/tue
fi
if [ $(date | awk '{print $1}') = "Wed" ]; then
wallDir=~/.config/wallpaper/wed
fi
if [ $(date | awk '{print $1}') = "Thu" ]; then
wallDir=~/.config/wallpaper/thu
fi
if [ $(date | awk '{print $1}') = "Fri" ]; then
wallDir=~/.config/wallpaper/fri
fi
if [ $(date | awk '{print $1}') = "Sat" ]; then
wallDir=~/.config/wallpaper/sat
fi
if [ $(date | awk '{print $1}') = "Sun" ]; then
wallDir=~/.config/wallpaper/sun
fi
currWall=$wallDir/$(ls $wallDir | shuf -n 1)
xwallpaper --zoom $currWall