Broke up sway config into multiple files

This commit is contained in:
2026-02-12 20:49:52 +01:00
parent 40bb01e3a3
commit ab09268eaa
9 changed files with 267 additions and 323 deletions

15
.config/sway/autostart Normal file
View File

@@ -0,0 +1,15 @@
# Autostart
## Screen configuration
exec_always export hostname="$(cat /etc/hostname)" && ~/.config/screenlayout/apply-screen-layout.sh
## Applications
exec --no-startup-id blueman-applet
exec --no-startup-id bitwarden-desktop
exec --no-startup-id sunshine
## Lock screen when idle, also shut down screens
exec swayidle -w \
timeout 600 $swaylock \
timeout 630 'swaymsg "output * power off"' \
resume 'swaymsg "output * power on"'
## Start XDG autostart .desktop files using dex. See also
### https://wiki.archlinux.org/index.php/XDG_Autostart
exec --no-startup-id dex --autostart --environment i3