summaryrefslogtreecommitdiff
path: root/dots/sway/.config/sway/config.d/10-autostart-applications
blob: 3e695f4c05dcceafb1f8f557f6d0557d61ebfa47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
exec /usr/lib/polkit-kde-authentication-agent-1

exec mako -c ~/.config/mako/config

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 swww-daemon -f xrgb
exec systemctl start --user wallpaper

exec swayidle -w \
		timeout 300 'swaylock' \
		timeout 600 'swaymsg "output * dpms off"' \
        resume 'swaymsg "output * dpms on"'

exec gnome-keyring-daemon --daemonize --start --components=gpg,pkcs11,secrets,ssh

exec_always {
    '[ -x "$(command -v poweralertd)" ] && pkill poweralertd; poweralertd -s -i "line power" &'

    '[ -x "$(command -v playerctl)" ] && pkill playerctl; playerctl -a metadata --format \'{{status}} {{title}}\' --follow | while read line; do pkill -RTMIN+5 waybar; done' 
}

exec nm-applet --indicator
bar {
   swaybar_command waybar
}