3 ####################################################
4 ## script for paperbenni-dwm autostart ##
5 ####################################################
7 bashes=$(pgrep bash | wc -l)
8 if [ "$bashes" -gt 2 ]; then
13 [ -e ~/.cache/islaptop ] && ISLAPTOP="true"
15 if command -v picom &>/dev/null; then
23 if ! pgrep deadd; then
30 # chrome os wallpaper changer
31 [ -e /home/benjamin/paperbenni/menus/dm/wg.sh ] &&
32 bash /home/benjamin/paperbenni/menus/dm/wg.sh
34 [ -e /home/benjamin/paperbenni/monitor.sh ] &&
35 bash /home/benjamin/paperbenni/monitor.sh
37 # apply german keybpard layout
40 [ -n "$ISLAPTOP" ] && nm-applet &
48 # run every 60 seconds
49 if [ "$REPETITIONS" = "xxxxxx" ]; then
50 if ping -q -c 1 -W 1 8.8.8.8; then
57 REPETITIONS="$REPETITIONS"x
60 date="$(date +'%d-%m-%Y|%T')"
62 # battery indicator on laptop
63 [ -n "$ISLAPTOP" ] && date="$date|$(acpi | egrep -o '[0-9]*%')"
64 date="$date|🔊$(amixer get Master | egrep -o '[0-9]{1,3}%' | head -1)|$INTERNET"
65 xsetroot -name "$date"