dotfiles/.config/sway/config.d/30-startup.conf
2023-03-09 17:51:39 +01:00

18 lines
595 B
Plaintext

# fix slow startup time
exec dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK
xwayland force
# Turn off screen after $screen_timeout
# Lock after $screen_timeout + 10s
# Lock if screen off
exec swayidle -w \
timeout $(($screen_timeout + 10)) "$lock" \
timeout $screen_timeout 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \
before-sleep "$lock"
bar swaybar_command waybar
exec /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec gammastep