refactor: change project name

Change project name from "GNOME Rotate Wallpaper" to "Wallpaperctl".
This commit is contained in:
Adam 2022-04-10 14:07:15 -06:00
parent 8bf6a144f6
commit 2d6f745bf9
6 changed files with 22 additions and 25 deletions

View File

@ -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

View File

@ -1,10 +0,0 @@
[Unit]
Description=GNOME rotate wallpaper
[Timer]
OnCalendar=*:0/1
Persistent=true
Unit=gnome-rotate-wallpaper.service
[Install]
WantedBy=default.target

View File

@ -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

View File

@ -0,0 +1,10 @@
[Unit]
Description=Wallpaperctl - Systemd GNOME wallpaper changer
[Timer]
OnCalendar=*:0/1
Persistent=true
Unit=wallpaperctl.service
[Install]
WantedBy=default.target

View File

@ -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"