This commit is contained in:
2024-06-05 17:50:14 -05:00
parent 739c07b095
commit 2fad761a31
4 changed files with 29 additions and 6 deletions

View File

@@ -14,12 +14,12 @@ output * bg ~/.config/configfiles/wallpaper.png fill
exec_always "pkill kanshi; kanshi"
### Idle configuration
exec pkill swayidle
exec swayidle -w \
timeout 300 'swaylock -f -c 000000 -i ~/.config/configfiles/lockscreen.jpg' \
timeout 600 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \
before-sleep 'swaylock -f -c 000000 -i ~/.config/configfiles/lockscreen.jpg'
#exec_always pkill swayidle
#exec swayidle -w \
# timeout 300 'swaylock -f' \
# timeout 600 'swaymsg "output * dpms off"' \
# resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f'
### Input configuration
input "1267:12573:ELAN0412:00_04F3:311D_Touchpad" {

View File

@@ -0,0 +1,6 @@
[Unit]
Description=sway compositor session
Documentation=man:systemd.special(7)
BindsTo=graphical-session.target
Wants=graphical-session-pre.target
After=graphical-session-pre.target

View File

@@ -0,0 +1 @@
/home/user/.config/systemd/user/swayidle.service

View File

@@ -0,0 +1,16 @@
[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' \
timeout 600 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \
before-sleep 'swaylock -f -c 000000'
ExecStartPost=/usr/bin/sleep 1
[Install]
WantedBy=sway-session.target