mirror of
https://github.com/ksyasuda/rice.git
synced 2024-10-28 09:04:10 -07:00
add custom user services
This commit is contained in:
parent
744188e996
commit
d21cb1cdb1
13
systemd/user/emacs.service
Normal file
13
systemd/user/emacs.service
Normal file
@ -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
|
8
systemd/user/enable-wallpaper-notification.service
Normal file
8
systemd/user/enable-wallpaper-notification.service
Normal file
@ -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
|
7
systemd/user/end-work-network.service
Normal file
7
systemd/user/end-work-network.service
Normal file
@ -0,0 +1,7 @@
|
||||
[Unit]
|
||||
Description=enable pihole network after work
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStartPre=nmcli conn up wg0
|
||||
ExecStart=nmcli conn up IndianWay
|
12
systemd/user/end-work-network.timer
Normal file
12
systemd/user/end-work-network.timer
Normal file
@ -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
|
6
systemd/user/end-work-wallpaper.service
Normal file
6
systemd/user/end-work-wallpaper.service
Normal file
@ -0,0 +1,6 @@
|
||||
[Unit]
|
||||
Description=enable wallpaper change notifications
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=sed -ie '252s/#//' /home/sudacode/.config/variety/scripts/set_wallpaper
|
12
systemd/user/end-work-wallpaper.timer
Normal file
12
systemd/user/end-work-wallpaper.timer
Normal file
@ -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
|
10
systemd/user/eos-update-notifier.service
Normal file
10
systemd/user/eos-update-notifier.service
Normal file
@ -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
|
10
systemd/user/eos-update-notifier.service.bak
Normal file
10
systemd/user/eos-update-notifier.service.bak
Normal file
@ -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
|
10
systemd/user/eos-update-notifier.timer
Normal file
10
systemd/user/eos-update-notifier.timer
Normal file
@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Run EOS update notifier periodically
|
||||
|
||||
[Timer]
|
||||
OnStartupSec=30 seconds
|
||||
OnCalendar=daily
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
10
systemd/user/eos-update-notifier.timer.bak
Normal file
10
systemd/user/eos-update-notifier.timer.bak
Normal file
@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Run EOS update notifier periodically
|
||||
|
||||
[Timer]
|
||||
OnStartupSec=30 seconds
|
||||
OnCalendar=daily
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
5
systemd/user/kill-teams.service
Normal file
5
systemd/user/kill-teams.service
Normal file
@ -0,0 +1,5 @@
|
||||
[Unit]
|
||||
Description=Kill Teams after work (5:30 PM)
|
||||
|
||||
[Service]
|
||||
ExecStart=killall teams
|
10
systemd/user/kill-teams.timer
Normal file
10
systemd/user/kill-teams.timer
Normal file
@ -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
|
12
systemd/user/ssh-agent.service
Normal file
12
systemd/user/ssh-agent.service
Normal file
@ -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
|
7
systemd/user/start-work-network.service
Normal file
7
systemd/user/start-work-network.service
Normal file
@ -0,0 +1,7 @@
|
||||
[Unit]
|
||||
Description=disable pihole
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStartPre=nmcli conn down wg0
|
||||
ExecStart=nmcli conn up NoPihole
|
12
systemd/user/start-work-network.timer
Normal file
12
systemd/user/start-work-network.timer
Normal file
@ -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
|
6
systemd/user/start-work-wallpaper.service
Normal file
6
systemd/user/start-work-wallpaper.service
Normal file
@ -0,0 +1,6 @@
|
||||
[Unit]
|
||||
Description=disable wallpaper change notifications
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=sed -ie '252s/^/#/' /home/sudacode/.config/variety/scripts/set_wallpaper
|
12
systemd/user/start-work-wallpaper.timer
Normal file
12
systemd/user/start-work-wallpaper.timer
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user