From fa357b04dca21f62a8ec7f1491e42b6c8f704b94 Mon Sep 17 00:00:00 2001 From: Blallo Date: Fri, 2 Jul 2021 16:40:51 +0200 Subject: [PATCH] Add services.conf --- config | 1 + services.conf | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 services.conf diff --git a/config b/config index 32771fb..d1a46ed 100644 --- a/config +++ b/config @@ -3,5 +3,6 @@ include ./output.conf include ./input.conf include ./style.conf include ./bindings.conf +include ./services.conf include /etc/sway/config.d/* diff --git a/services.conf b/services.conf new file mode 100644 index 0000000..bc3b158 --- /dev/null +++ b/services.conf @@ -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'