aboutsummaryrefslogtreecommitdiff
path: root/.config/i3/autostart##template
blob: 1b50a91cc18f6b6769b22337f602d784e023a0b7 (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
#!/bin/sh
. "$HOME/.profile"
mode --no-reload restore

/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
polybar &
rwall &
picom &
xbanish &
dunst &
autocutsel -selection CLIPBOARD &
fcitx5 &
xbindkeys --file "$XDG_CONFIG_HOME/xbindkeys/main" --nodaemon &
{% if yadm.hostname == "thoncc" %}
xdimmer -t 45 -p 3 &
light-locker --no-late-locking &
{% else %}
redshift -l 52:6 &
nicotine --hidden &
desktop2mqtt --config "$XDG_CONFIG_HOME/desktop2mqtt/config.yml" &
{% endif %}
flashfocus &

# auto start lazy script after everything else
[ -x "$HOME/do.sh" ] && "$HOME/do.sh" &

exit_trap() {
	trap - SIGTERM
	kill -- -$$
}
trap exit_trap SIGINT SIGTERM EXIT

# I want to keep this script running so I can easily kill all daemons when i3
# exits
wait $(jobs -rp)