diff --git a/.config/systemd/user/gnome-rotate-wallpaper.conf b/.config/systemd/user/wallpaperctl.conf similarity index 100% rename from .config/systemd/user/gnome-rotate-wallpaper.conf rename to .config/systemd/user/wallpaperctl.conf diff --git a/etc/systemd/user/gnome-rotate-wallpaper.service b/etc/systemd/user/gnome-rotate-wallpaper.service deleted file mode 100644 index 5ac8782..0000000 --- a/etc/systemd/user/gnome-rotate-wallpaper.service +++ /dev/null @@ -1,12 +0,0 @@ -[Unit] -Description=Rotate GNOME wallpaper - -[Service] -Type=oneshot -Environment=DISPLAY=:0 -Environment=WALLPAPER_DIR=/home/%u/Pictures/wallpaper -EnvironmentFile=-/home/%u/.config/systemd/user/gnome-rotate-wallpaper.conf -ExecStart=/bin/bash /usr/local/bin/gnome_rotate_wallpaper - -[Install] -WantedBy=default.target diff --git a/etc/systemd/user/gnome-rotate-wallpaper.timer b/etc/systemd/user/gnome-rotate-wallpaper.timer deleted file mode 100644 index daa92e7..0000000 --- a/etc/systemd/user/gnome-rotate-wallpaper.timer +++ /dev/null @@ -1,10 +0,0 @@ -[Unit] -Description=GNOME rotate wallpaper - -[Timer] -OnCalendar=*:0/1 -Persistent=true -Unit=gnome-rotate-wallpaper.service - -[Install] -WantedBy=default.target diff --git a/etc/systemd/user/wallpaperctl.service b/etc/systemd/user/wallpaperctl.service new file mode 100644 index 0000000..fbcbb1f --- /dev/null +++ b/etc/systemd/user/wallpaperctl.service @@ -0,0 +1,12 @@ +[Unit] +Description=Wallpaperctl - Systemd GNOME wallpaper changer + +[Service] +Type=oneshot +Environment=DISPLAY=:0 +Environment=WALLPAPER_DIR=/home/%u/Pictures/wallpaper +EnvironmentFile=-/home/%u/.config/systemd/user/wallpaperctl.conf +ExecStart=/bin/bash /usr/local/bin/wallpaperctl + +[Install] +WantedBy=default.target diff --git a/etc/systemd/user/wallpaperctl.timer b/etc/systemd/user/wallpaperctl.timer new file mode 100644 index 0000000..309bfad --- /dev/null +++ b/etc/systemd/user/wallpaperctl.timer @@ -0,0 +1,10 @@ +[Unit] +Description=Wallpaperctl - Systemd GNOME wallpaper changer + +[Timer] +OnCalendar=*:0/1 +Persistent=true +Unit=wallpaperctl.service + +[Install] +WantedBy=default.target diff --git a/usr/local/bin/gnome_rotate_wallpaper b/usr/local/bin/gnome_rotate_wallpaper deleted file mode 100644 index 5c0fc23..0000000 --- a/usr/local/bin/gnome_rotate_wallpaper +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -selection=$(find $WALLPAPER_DIR -type f -name "*.jpg" -o -name "*.png" | shuf -n1) -gsettings set org.gnome.desktop.background picture-uri "file://$selection"