diff options
| author | Hsieh Chin Fan <pham@topo.tw> | 2023-04-24 14:09:14 +0800 |
|---|---|---|
| committer | Hsieh Chin Fan <pham@topo.tw> | 2023-04-24 14:09:14 +0800 |
| commit | 6b261d54032616efbff93ca41d9ea8bb7eb14364 (patch) | |
| tree | dcec7b122c6e5dd5a912ef86e7a6c68dae8462f1 | |
| parent | f35ba0dcc24404e0d5cfe8b4b996aacf089155e0 (diff) | |
Update
| -rw-r--r-- | systemd/wakeup.service | 12 |
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] | ||
| 2 | Description=Run my_user_script | ||
| 3 | After=suspend.target hibernate.target hybrid-sleep.target suspend-then-hibernate.target network-online.target | ||
| 4 | Wants=network-online.target | ||
| 5 | |||
| 6 | [Service] | ||
| 7 | ExecStart=/home/pham/helper/bin/wakeup.sh | ||
| 8 | User=pham | ||
| 9 | Environment=DISPLAY=:0 | ||
| 10 | |||
| 11 | [Install] | ||
| 12 | WantedBy=suspend.target hibernate.target hybrid-sleep.target suspend-then-hibernate.target | ||