update
This commit is contained in:
@@ -14,12 +14,12 @@ output * bg ~/.config/configfiles/wallpaper.png fill
|
|||||||
exec_always "pkill kanshi; kanshi"
|
exec_always "pkill kanshi; kanshi"
|
||||||
|
|
||||||
### Idle configuration
|
### Idle configuration
|
||||||
exec pkill swayidle
|
#exec_always pkill swayidle
|
||||||
exec swayidle -w \
|
#exec swayidle -w \
|
||||||
timeout 300 'swaylock -f -c 000000 -i ~/.config/configfiles/lockscreen.jpg' \
|
# timeout 300 'swaylock -f' \
|
||||||
timeout 600 'swaymsg "output * dpms off"' \
|
# timeout 600 'swaymsg "output * dpms off"' \
|
||||||
resume 'swaymsg "output * dpms on"' \
|
# resume 'swaymsg "output * dpms on"' \
|
||||||
before-sleep 'swaylock -f -c 000000 -i ~/.config/configfiles/lockscreen.jpg'
|
# before-sleep 'swaylock -f'
|
||||||
|
|
||||||
### Input configuration
|
### Input configuration
|
||||||
input "1267:12573:ELAN0412:00_04F3:311D_Touchpad" {
|
input "1267:12573:ELAN0412:00_04F3:311D_Touchpad" {
|
||||||
|
|||||||
6
.config/systemd/user/sway-session.target
Normal file
6
.config/systemd/user/sway-session.target
Normal 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
|
||||||
1
.config/systemd/user/sway-session.target.wants/swayidle.service
Symbolic link
1
.config/systemd/user/sway-session.target.wants/swayidle.service
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
/home/user/.config/systemd/user/swayidle.service
|
||||||
16
.config/systemd/user/swayidle.service
Normal file
16
.config/systemd/user/swayidle.service
Normal 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
|
||||||
Reference in New Issue
Block a user