aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2023-04-24 14:09:14 +0800
committerHsieh Chin Fan <pham@topo.tw>2023-04-24 14:09:14 +0800
commit6b261d54032616efbff93ca41d9ea8bb7eb14364 (patch)
treedcec7b122c6e5dd5a912ef86e7a6c68dae8462f1
parentf35ba0dcc24404e0d5cfe8b4b996aacf089155e0 (diff)
Update
-rw-r--r--systemd/wakeup.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/systemd/wakeup.service b/systemd/wakeup.service
new file mode 100644
index 0000000..0a292d3
--- /dev/null
+++ b/systemd/wakeup.service
@@ -0,0 +1,12 @@
1[Unit]
2Description=Run my_user_script
3After=suspend.target hibernate.target hybrid-sleep.target suspend-then-hibernate.target network-online.target
4Wants=network-online.target
5
6[Service]
7ExecStart=/home/pham/helper/bin/wakeup.sh
8User=pham
9Environment=DISPLAY=:0
10
11[Install]
12WantedBy=suspend.target hibernate.target hybrid-sleep.target suspend-then-hibernate.target