use mako for notifications, swayidle for autolock
This commit is contained in:
parent
ab54869ac8
commit
9be927dcc2
3 changed files with 30 additions and 2 deletions
.config/systemd/user
11
.config/systemd/user/mako.service
Normal file
11
.config/systemd/user/mako.service
Normal file
|
@ -0,0 +1,11 @@
|
|||
[Unit]
|
||||
Description=A lightweight Wayland notification daemon
|
||||
Documentation=man:mako(1)
|
||||
PartOf=graphical-session.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/mako --font 'IBM Plex Sans 20' --anchor bottom-right --margin 5
|
||||
|
||||
[Install]
|
||||
WantedBy=sway-session.target
|
15
.config/systemd/user/swayidle.service
Normal file
15
.config/systemd/user/swayidle.service
Normal file
|
@ -0,0 +1,15 @@
|
|||
[Unit]
|
||||
Description=Idle manager for Wayland
|
||||
Documentation=man:swayidle(1)
|
||||
PartOf=graphical-session.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/swayidle -w \
|
||||
timeout 300 'swaylock -f -c 000000 -i /home/dln/i3lock.png' \
|
||||
timeout 600 'swaymsg "output * dpms off"' \
|
||||
resume 'swaymsg "output * dpms on"' \
|
||||
before-sleep 'swaylock -f -c 000000 -i /home/dln/i3lock.png'
|
||||
|
||||
[Install]
|
||||
WantedBy=sway-session.target
|
Loading…
Add table
Add a link
Reference in a new issue