systemd user service for wallpaper

This commit is contained in:
Harri Lahtinen 2018-12-03 00:42:47 +02:00
parent e0ddd37e9f
commit 0cff311b08
3 changed files with 13 additions and 11 deletions

View File

@ -61,8 +61,6 @@ exec --no-startup-id python ~/.local/bin/bum &
#exec --no-startup-id transmission-daemon
#Wifi applet:
#exec --no-startup-id nm-applet
#Pulse-Audio applet:
#exec --no-startup-id pa-applet
#Mount other drives:
#exec --no-startup-id sudo mount -a
#Composite manager:
@ -81,16 +79,10 @@ exec_always --no-startup-id ~/.config/polybar/launch.sh
#Start udiskie
exec --no-startup-id udiskie &
#Add wallpaper:
exec --no-startup-id systemctl --user start wallpaper.service
#exec --no-startup-id feh --bg-scale ~/.config/wall.png
#exec --no-startup-id killall python ~/.config/Scripts/wallpaper &
exec --no-startup-id python ~/.config/Scripts/wallpaper
#exec_always --no-startup-id wal -c -a "90" -g -i ~/.config/wall.png && ~/.config/Scripts/wal-set
#exec_always --no-startup-id wal -g -f ~/.config/wal/colorschemes/gruvbox.json && ~/.config/Scripts/wal-set
#Remaps the caps lock button to escape and uses the US international keyboard with dead keys
#exec_always --no-startup-id setxkbmap -option caps:escape
#Remap Menu button to Super:
#exec_always --no-startup-id xmodmap -e 'keycode 135 = Super_R'
#bindsym Menu exec --no-startup-id xmodmap -e 'keycode 135 = Super_R'
#exec --no-startup-id python ~/.config/Scripts/wallpaper
#Unclutter makes the mouse invisible after a brief period
exec --no-startup-id unclutter
# custom keybinding to lockscreen, use --lock dim or --lock blur below for different backgrounds

View File

@ -0,0 +1,8 @@
Unit]
Description=Continuously update the desktop wallpaper
[Service]
ExecStart=/usr/bin/python3 '${HOME}/.config/Scripts/wallpaper'
[Install]
WantedBy=default.target

View File

@ -1,3 +1,5 @@
xinput set-prop 9 289 1
xinput set-prop 9 297 1
wal -R
xinput set-prop 14 307 1
xinput set-prop 14 289 1
#wal -R