First draft of the installation script
This commit is contained in:
8
etc/systemd/system/march.service
Normal file
8
etc/systemd/system/march.service
Normal file
@@ -0,0 +1,8 @@
|
||||
[Unit]
|
||||
Description=March Reboot Service
|
||||
|
||||
[Service]
|
||||
ExecStart=/root/arch-reboot.sh
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
14
etc/systemd/system/suspend@.service
Normal file
14
etc/systemd/system/suspend@.service
Normal file
@@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=User suspend actions
|
||||
Before=sleep.target
|
||||
|
||||
[Service]
|
||||
User=%I
|
||||
Type=forking
|
||||
Environment=DISPLAY=:0
|
||||
ExecStartPre=
|
||||
ExecStart= /home/tuan/.scripts/i3lock.py
|
||||
ExecStartPost=/usr/bin/sleep 1
|
||||
|
||||
[Install]
|
||||
WantedBy=sleep.target
|
||||
Reference in New Issue
Block a user