summaryrefslogtreecommitdiff
path: root/dots/sway/.config/sway/config.d/10-autostart-applications
blob: 25bfc02355c1a522df42fa9f418970e49ca56eed (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
29
30
exec /usr/lib/polkit-kde-authentication-agent-1

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

exec flameshot

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 900 'swaylock' \
		timeout 1200 '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
}