Moves and tweaks some systemd timers / services

master
Jonathan Hodgson 3 years ago
parent 00ecd6bdc3
commit b00d95d514
  1. 4
      .gitignore
  2. 6
      systemd/.config/systemd/user/randomBackground
  3. 0
      systemd/HOME/.config/systemd/user/background.service
  4. 1
      systemd/HOME/.config/systemd/user/background.timer
  5. 0
      systemd/HOME/.config/systemd/user/checkStock
  6. 3
      systemd/HOME/.config/systemd/user/lookAway
  7. 8
      systemd/HOME/.config/systemd/user/lookAway.service
  8. 9
      systemd/HOME/.config/systemd/user/lookAway.timer
  9. 0
      systemd/HOME/.config/systemd/user/monitorModem.service
  10. 21
      systemd/HOME/.config/systemd/user/randomBackground
  11. 0
      systemd/HOME/.config/systemd/user/stock.service
  12. 0
      systemd/HOME/.config/systemd/user/stock.timer

4
.gitignore vendored

@ -8,7 +8,7 @@ mutt/accounts/*
/qutebrowser/.config/qutebrowser/qsettings/ /qutebrowser/.config/qutebrowser/qsettings/
/qutebrowser/.config/qutebrowser/autoconfig.yml /qutebrowser/.config/qutebrowser/autoconfig.yml
/bin/.bin/pappy /bin/.bin/pappy
/systemd/.config/systemd/user/timers.target.wants/ /systemd/HOME/.config/systemd/user/timers.target.wants/
/systemd/.config/systemd/user/default.target.wants/ /systemd/HOME/.config/systemd/user/default.target.wants/
nvim/.config/nvim/.netrwhist nvim/.config/nvim/.netrwhist
remind/.local/share/remind/work.rem remind/.local/share/remind/work.rem

@ -1,6 +0,0 @@
#!/usr/bin/env bash
backgroundDir="$HOME/Pictures/wallpapers/"
ls "$backgroundDir" | /usr/bin/shuf -n 1 | /usr/bin/awk \
"{print \"$backgroundDir\" \$1}" | /usr/bin/xargs /usr/bin/feh --bg-fill

@ -3,6 +3,7 @@ Description=Change Wallpaper every minute
[Timer] [Timer]
OnBootSec=1min OnBootSec=1min
OnActiveSec=1min
OnUnitActiveSec=1min OnUnitActiveSec=1min
[Install] [Install]

@ -0,0 +1,3 @@
#!/usr/bin/env bash
notify-send "Look Away"

@ -0,0 +1,8 @@
[Unit]
Description=Look Away
[Service]
ExecStart=/home/jonathan/.config/systemd/user/lookAway
[Install]
WantedBy=default.target

@ -0,0 +1,9 @@
[Unit]
Description=Remind me to look away every 15 minutes
[Timer]
OnBootSec=15min
OnUnitActiveSec=15min
[Install]
WantedBy=timers.target

@ -0,0 +1,21 @@
#!/usr/bin/env bash
backgroundDir="$HOME/Pictures/wallpapers/"
background="$(ls "$backgroundDir" | /usr/bin/shuf -n 1 | /usr/bin/awk \
"{print \"$backgroundDir\" \$1}")"
echo "Wayland Display: $WAYLAND_DISPLAY"
if [ -n "$WAYLAND_DISPLAY" ]; then
while :; do
background="$(ls "$backgroundDir" | /usr/bin/shuf -n 1 | /usr/bin/awk \
"{print \"$backgroundDir\" \$1}")"
echo "I get here"
pkill swaybg
swaybg --mode fill -i "$background"
sleep 60
done
else
/usr/bin/feh --bg-fill "$background"
fi
Loading…
Cancel
Save