diff --git a/systemd/user/emacs.service b/systemd/user/emacs.service new file mode 100644 index 0000000..c9bdc3f --- /dev/null +++ b/systemd/user/emacs.service @@ -0,0 +1,13 @@ +[Unit] +Description=Emacs text editor +Documentation=info:emacs man:emacs(1) https://gnu.org/software/emacs/ + +[Service] +Type=forking +ExecStart=/usr/bin/emacs --daemon +ExecStop=/usr/bin/emacsclient --eval "(kill-emacs)" +Environment=SSH_AUTH_SOCK=%t/keyring/ssh +Restart=on-failure + +[Install] +WantedBy=default.target diff --git a/systemd/user/enable-wallpaper-notification.service b/systemd/user/enable-wallpaper-notification.service new file mode 100644 index 0000000..9d80641 --- /dev/null +++ b/systemd/user/enable-wallpaper-notification.service @@ -0,0 +1,8 @@ +[Unit] +Description=enable wallpaper change notifications + +[Service] +Type=oneshot +ExecStart=sed -ie '252s/#//' /home/sudacode/.config/variety/scripts/set_wallpaper +User=dedicated-user +Group=dedicated-user diff --git a/systemd/user/end-work-network.service b/systemd/user/end-work-network.service new file mode 100644 index 0000000..9fe2334 --- /dev/null +++ b/systemd/user/end-work-network.service @@ -0,0 +1,7 @@ +[Unit] +Description=enable pihole network after work + +[Service] +Type=oneshot +ExecStartPre=nmcli conn up wg0 +ExecStart=nmcli conn up IndianWay diff --git a/systemd/user/end-work-network.timer b/systemd/user/end-work-network.timer new file mode 100644 index 0000000..a8436e6 --- /dev/null +++ b/systemd/user/end-work-network.timer @@ -0,0 +1,12 @@ +[Unit] +Description=Enable pihole +RefuseManualStart=no +RefuseManualStop=no + +[Timer] +OnCalendar=Mon..Fri 17:30:00 +Persistent=true +Unit=end-work-network.service + +[Install] +WantedBy=timers.target diff --git a/systemd/user/end-work-wallpaper.service b/systemd/user/end-work-wallpaper.service new file mode 100644 index 0000000..8f51d84 --- /dev/null +++ b/systemd/user/end-work-wallpaper.service @@ -0,0 +1,6 @@ +[Unit] +Description=enable wallpaper change notifications + +[Service] +Type=oneshot +ExecStart=sed -ie '252s/#//' /home/sudacode/.config/variety/scripts/set_wallpaper diff --git a/systemd/user/end-work-wallpaper.timer b/systemd/user/end-work-wallpaper.timer new file mode 100644 index 0000000..48738cc --- /dev/null +++ b/systemd/user/end-work-wallpaper.timer @@ -0,0 +1,12 @@ +[Unit] +Description=Enable wallpaper notifications after work +RefuseManualStart=no +RefuseManualStop=no + +[Timer] +OnCalendar=Mon..Fri 17:30:00 +Persistent=true +Unit=end-work-wallpaper.service + +[Install] +WantedBy=timers.target diff --git a/systemd/user/eos-update-notifier.service b/systemd/user/eos-update-notifier.service new file mode 100644 index 0000000..a052a86 --- /dev/null +++ b/systemd/user/eos-update-notifier.service @@ -0,0 +1,10 @@ +[Unit] +Description=EOS update notifier service + +[Service] +Type=oneshot +Environment=DISPLAY=:0 +ExecStart=/usr/bin/eos-update-notifier -systemd + +[Install] +WantedBy=eos-update-notifier.timer diff --git a/systemd/user/eos-update-notifier.service.bak b/systemd/user/eos-update-notifier.service.bak new file mode 100644 index 0000000..a052a86 --- /dev/null +++ b/systemd/user/eos-update-notifier.service.bak @@ -0,0 +1,10 @@ +[Unit] +Description=EOS update notifier service + +[Service] +Type=oneshot +Environment=DISPLAY=:0 +ExecStart=/usr/bin/eos-update-notifier -systemd + +[Install] +WantedBy=eos-update-notifier.timer diff --git a/systemd/user/eos-update-notifier.timer b/systemd/user/eos-update-notifier.timer new file mode 100644 index 0000000..5119914 --- /dev/null +++ b/systemd/user/eos-update-notifier.timer @@ -0,0 +1,10 @@ +[Unit] +Description=Run EOS update notifier periodically + +[Timer] +OnStartupSec=30 seconds +OnCalendar=daily +Persistent=true + +[Install] +WantedBy=timers.target diff --git a/systemd/user/eos-update-notifier.timer.bak b/systemd/user/eos-update-notifier.timer.bak new file mode 100644 index 0000000..5119914 --- /dev/null +++ b/systemd/user/eos-update-notifier.timer.bak @@ -0,0 +1,10 @@ +[Unit] +Description=Run EOS update notifier periodically + +[Timer] +OnStartupSec=30 seconds +OnCalendar=daily +Persistent=true + +[Install] +WantedBy=timers.target diff --git a/systemd/user/kill-teams.service b/systemd/user/kill-teams.service new file mode 100644 index 0000000..ae1c95c --- /dev/null +++ b/systemd/user/kill-teams.service @@ -0,0 +1,5 @@ +[Unit] +Description=Kill Teams after work (5:30 PM) + +[Service] +ExecStart=killall teams diff --git a/systemd/user/kill-teams.timer b/systemd/user/kill-teams.timer new file mode 100644 index 0000000..ba094ec --- /dev/null +++ b/systemd/user/kill-teams.timer @@ -0,0 +1,10 @@ +[Unit] +Description=Kill teams after work (5:30 PM) + +[Timer] +OnCalendar=Mon..Fri 17:30:00 +Persistent=true +Unit=kill-teams.service + +[Install] +WantedBy=timers.target diff --git a/systemd/user/ssh-agent.service b/systemd/user/ssh-agent.service new file mode 100644 index 0000000..5c59cbf --- /dev/null +++ b/systemd/user/ssh-agent.service @@ -0,0 +1,12 @@ +[Unit] +Description=SSH key agent + +[Service] +Type=simple +Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket +# DISPLAY required for ssh-askpass to work +Environment=DISPLAY=:0 +ExecStart=/usr/bin/ssh-agent -D -a $SSH_AUTH_SOCK + +[Install] +WantedBy=default.target diff --git a/systemd/user/start-work-network.service b/systemd/user/start-work-network.service new file mode 100644 index 0000000..5302d2d --- /dev/null +++ b/systemd/user/start-work-network.service @@ -0,0 +1,7 @@ +[Unit] +Description=disable pihole + +[Service] +Type=oneshot +ExecStartPre=nmcli conn down wg0 +ExecStart=nmcli conn up NoPihole diff --git a/systemd/user/start-work-network.timer b/systemd/user/start-work-network.timer new file mode 100644 index 0000000..5e26beb --- /dev/null +++ b/systemd/user/start-work-network.timer @@ -0,0 +1,12 @@ +[Unit] +Description=Disable pihole DNS and wireguard VPN +RefuseManualStart=no +RefuseManualStop=no + +[Timer] +OnCalendar=Mon..Fri 7:30:00 +Persistent=true +Unit=start-work-network.service + +[Install] +WantedBy=timers.target diff --git a/systemd/user/start-work-wallpaper.service b/systemd/user/start-work-wallpaper.service new file mode 100644 index 0000000..6b88027 --- /dev/null +++ b/systemd/user/start-work-wallpaper.service @@ -0,0 +1,6 @@ +[Unit] +Description=disable wallpaper change notifications + +[Service] +Type=oneshot +ExecStart=sed -ie '252s/^/#/' /home/sudacode/.config/variety/scripts/set_wallpaper diff --git a/systemd/user/start-work-wallpaper.timer b/systemd/user/start-work-wallpaper.timer new file mode 100644 index 0000000..797aaac --- /dev/null +++ b/systemd/user/start-work-wallpaper.timer @@ -0,0 +1,12 @@ +[Unit] +Description=Disable wallpaper change notifications +RefuseManualStart=no +RefuseManualStop=no + +[Timer] +OnCalendar=Mon..Fri 7:30:00 +Persistent=true +Unit=start-work-wallpaper.service + +[Install] +WantedBy=timers.target