blob: ef4009c59ea26858ae50af0c1966d2ca21377731 (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# exec $HOME/.config/sway/scripts/startup_config.sh
# exec wmname LG3D
# TODO: auth with polkit-kde-agent
# Auth with polkit-gnome:
# exec /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
# Desktop notifications
exec mako -c ~/.config/mako/
# GTK3 applications take a long time to start
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
# Idle settings
exec swayidle -w \
timeout 500 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \
timeout 700 'systemctl suspend'
# Gnome Keyring
exec gnome-keyring-daemon --daemonize --start --components=gpg,pkcs11,secrets,ssh
exec_always {
# poweralert
'[ -x "$(command -v poweralertd)" ] && pkill poweralertd; poweralertd -s -i "line power" &'
# playerctl
'[ -x "$(command -v playerctl)" ] && pkill playerctl; playerctl -a metadata --format \'{{status}} {{title}}\' --follow | while read line; do pkill -RTMIN+5 waybar; done'
}
exec {
# mounting daemon
'[ -x "$(command -v pcmanfm)" ] && pcmanfm -d'
# xdg user dirs
'[ -x "$(command -v xdg-user-dirs-update)" ] && exec xdg-user-dirs-update'
}
# Status Bars:
exec nm-applet --indicator
bar {
swaybar_command waybar
}
|