blob: 6fb5da2c2333554789a46d5279c23ffcd192e866 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/usr/bin/env bash
[ -f /usr/bin/fcitx5 ] && fcitx5 -d
[ -f /usr/bin/dunst ] && dunst &
[ -f /usr/bin/udiskie ] && udiskie -a -n -s --appindicator &
[ -f /usr/bin/clipmenud ] && clipmenud &
if [ "$XDG_SESSION_TYPE" = x11 ]; then
[ -f ~/.fehbg ] && ~/.fehbg &
fi
if [ "$XDG_SESSION_TYPE" = wayland ]; then
command -v gammastep > /dev/null && \
command -v awk > /dev/null && \
command -v tr > /dev/null && \
gammastep \
-l $(curl -s "https://location.services.mozilla.com/v1/geolocate?key=geoclue" | awk 'OFS=":" {print $3,$5}' | tr -d ',}') \
-m wayland
fi
[ -x "$HOME/.local/autostart" ] && "$HOME/.local/autostart"
|