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