dotfiles/sway/autostart

35 lines
940 B
Plaintext
Raw Permalink Normal View History

2024-05-14 18:24:38 +03:00
# Notifications
exec mako
2024-05-15 00:09:23 +03:00
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK
2024-05-14 18:24:38 +03:00
exec dbus-update-activation-environment 2>/dev/null && \
2024-05-15 00:09:23 +03:00
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP=sway
2024-05-14 18:24:38 +03:00
2024-05-15 00:09:23 +03:00
# Autostart
#exec dex -a -s /etc/xdg/autostart/:~/.config/autostart/
2024-05-14 18:24:38 +03:00
2024-05-15 00:09:23 +03:00
exec_always /usr/libexec/xdg-desktop-portal
2024-05-14 18:24:38 +03:00
exec_always systemctl --user start xdg-desktop-portal-wlr.service
exec --no-startup-id ~/.config/sway/scripts/start_keyring
exec_always pipewire
# Wob
exec mkfifo $SWAYSOCK.wob
exec tail -f $SWAYSOCK.wob | wob
# Network Manager Applet
exec nm-applet --indicator
exec_always swayrd
exec_always ~/.config/sway/scripts/statusbar
2024-05-15 16:50:27 +03:00
# Keyboard backlight on
exec_always light -As "sysfs/leds/tpacpi::kbd_backlight" 100
# Swaylock
exec swayidle timeout 300 'swaylock' before-sleep 'swaylock' after-resume 'light -As "sysfs/leds/tpacpi::kbd_backlight" 100'