mirror of
https://gitlab.postmarketos.org/postmarketOS/pmaports.git
synced 2025-07-12 16:19:48 +03:00
add systemd services
This commit is contained in:
parent
72c8e7c6c1
commit
8073aa7a60
3 changed files with 37 additions and 0 deletions
13
mako.service
Normal file
13
mako.service
Normal file
|
@ -0,0 +1,13 @@
|
|||
[Unit]
|
||||
Description=Lightweight Wayland notification daemon
|
||||
Documentation=man:mako(1)
|
||||
PartOf=default.target
|
||||
After=default.target
|
||||
|
||||
[Service]
|
||||
ExecCondition=/bin/sh -c '[ -n "$WAYLAND_DISPLAY" ]'
|
||||
ExecStart=/usr/bin/mako
|
||||
ExecReload=/usr/bin/makoctl reload
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
14
poweralertd.service
Normal file
14
poweralertd.service
Normal file
|
@ -0,0 +1,14 @@
|
|||
[Unit]
|
||||
Description=UPower-powered power alerter
|
||||
Documentation=man:poweralertd(1)
|
||||
PartOf=default.target
|
||||
Requires=default.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/poweralertd
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
|
10
swaylock.service
Normal file
10
swaylock.service
Normal file
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=lock screen for sway
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=always
|
||||
ExecStart=/usr/bin/swayidle -w timeout 300 'swaylock -f -c 000000' timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' before-sleep 'swaylock -f -c 000000'
|
||||
|
||||
[Install]
|
||||
WantedBy=graphical-sesion.target
|
Loading…
Add table
Add a link
Reference in a new issue