Add services.conf

This commit is contained in:
sfigato 2021-07-02 16:40:51 +02:00
parent c43149ce55
commit fa357b04dc
Signed by: blallo
GPG Key ID: 0CBE577C9B72DC3F
2 changed files with 16 additions and 0 deletions

1
config
View File

@ -3,5 +3,6 @@ include ./output.conf
include ./input.conf include ./input.conf
include ./style.conf include ./style.conf
include ./bindings.conf include ./bindings.conf
include ./services.conf
include /etc/sway/config.d/* include /etc/sway/config.d/*

15
services.conf Normal file
View File

@ -0,0 +1,15 @@
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK
exec "systemctl --user start avizo"
exec "systemctl --user start waybar"
exec "systemctl --user start mako"
exec "systemctl --user start gammastep"
exec "systemctl --user start kanshi"
exec swayidle -w \
timeout 300 '$lock' \
timeout 305 'swaymsg "output * dpms off"' \
timeout 5 'if pgrep -x swaylock; then swaymsg "output * dpms off"; fi' \
resume 'swaymsg "output * dpms on"' \
before-sleep '$lock'