3 ###############################################
4 ## script for instantOS autostart ##
5 ###############################################
8 bashes=$(pgrep bash | wc -l)
9 if [ "$bashes" -gt 2 ]; then
10 echo "already running"
18 if ! [ -e instantos ]; then
23 # find out if we're on an installation medium
24 if command -v calamares_polkit &>/dev/null; then
26 echo "live session detected"
29 # fix small graphical glitch on status bar startup
34 if acpi | grep -q '%' &>/dev/null; then
35 export ISLAPTOP="true"
36 echo "laptop detected"
41 if command -v picom &>/dev/null; then
49 mkdir -p /tmp/notifications &>/dev/null
50 if ! pgrep dunst; then
57 if [ -z "$ISLIVE" ]; then
59 if ! grep -q '....' ~/instantos/monitor/max.txt; then
63 [ -e ~/instantos/monitor.sh ] &&
64 bash ~/instantos/monitor.sh &
66 if ping google.com -c 2; then
69 instantwallpaper offline
70 for i in $(seq 10); do
71 if ping google.com -c 2; then
80 # apply german keybpard layout
81 if locale | grep -q 'de_DE'; then
84 command -v conky &>/dev/null && conky &
87 /usr/share/instantthemes/manjaro.sh apply
89 feh --bg-scale /usr/share/liveutils/wallpaper.png
97 # laptop specific background jobs
98 if [ -n "$ISLAPTOP" ]; then
99 command -v libinput-gestures \
102 ! pgrep nm-applet && nm-applet &
105 source /usr/bin/instantstatus