-
Notifications
You must be signed in to change notification settings - Fork 3
/
startup.sh
executable file
·53 lines (43 loc) · 1.05 KB
/
startup.sh
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
48
49
50
51
52
53
#!/usr/bin/env bash
#
# Qtile Wayland startup script
foot --server &
# Wallpaper
(
swww init
sleep 1
swww img --filter Nearest --transition-step=1 --transition-fps 60 \
--transition-duration 12 ~/pictures/Wallpapers/Leuh6wm-slow.gif
) &
run_if_new() { ps aux | grep -v grep | grep -q $1 || $@; }
[[ -z "$QTILE_XEPHYR" ]] && {
# Session setup
systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP &
dbus-update-activation-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP &
# Services
kanshi &
wlsunset &
swayidle &
swaync &
mpDris2 &
sway-mpris-idle-inhibit &
playerctld daemon &
nm-applet --indicator &
#kdeconnect-indicator &
darkman run &
# Startup programs
run_if_new keepassxc &
sleep 2
run_if_new firefox &
run_if_new evolution &
# Notify me if any systemd services failed
check_systemd &
# Send all output to Qtile's log
} &>> ~/.local/share/qtile/qtile.log
# Clean up
clean() {
pkill -P $$
}
trap clean SIGINT SIGTERM
sleep infinity &
wait $!