diff --git a/linux/systemd/user/wallpaper.service b/linux/systemd/user/wallpaper.service new file mode 100644 index 0000000..dda0ba8 --- /dev/null +++ b/linux/systemd/user/wallpaper.service @@ -0,0 +1,7 @@ +# This is a transient unit file, created programmatically via the systemd API. Do not edit. +[Unit] +Description=Set wallpaper + +[Service] +Environment="DISPLAY=:0" +ExecStart="/bin/bash" "-c" "/bin/feh --bg-fill --randomize ~/.config/wallpaper/*" diff --git a/linux/systemd/user/wallpaper.timer b/linux/systemd/user/wallpaper.timer new file mode 100644 index 0000000..b2e1244 --- /dev/null +++ b/linux/systemd/user/wallpaper.timer @@ -0,0 +1,10 @@ +# This is a transient unit file, created programmatically via the systemd API. Do not edit. +[Unit] +Description=Change wallpaper + +[Timer] +OnCalendar=*:0/5 +RemainAfterElapse=no + +[Install] +WantedBy=xsession.target diff --git a/linux/systemd/user/xsession.target.wants/wallpaper.timer b/linux/systemd/user/xsession.target.wants/wallpaper.timer new file mode 120000 index 0000000..6029052 --- /dev/null +++ b/linux/systemd/user/xsession.target.wants/wallpaper.timer @@ -0,0 +1 @@ +/home/vbalien/.config/systemd/user/wallpaper.timer \ No newline at end of file diff --git a/mapping.ts b/mapping.ts index 78a9928..85f6f6e 100644 --- a/mapping.ts +++ b/mapping.ts @@ -20,7 +20,7 @@ const linux: DotOption = { fcitx5 fcitx5-qt fcitx5-gtk fcitx5-hangul fcitx5-anthy kcm-fcitx5 numix-gtk-theme-git numix-circle-icon-theme-git telegram-desktop nautilus eog smplayer smplayer-skin transgui-qt - qt5-styleplugins xdg-user-dirs slim network-manager-applet`, + qt5-styleplugins xdg-user-dirs slim network-manager-applet bc`, ], link: { ...common.link, @@ -36,6 +36,7 @@ const linux: DotOption = { ".config/sxhkd": "linux/sxhkd", ".config/fcitx5": "linux/fcitx5", ".config/dconf": "linux/dconf", + ".config/systemd": "linux/systemd", ".config/wallpaper": "wallpaper", ".xinitrc": "linux/xinitrc", ".pam_environment": "linux/pam_environment",