3 ####################################################
4 ## script for paperbenni-dwm autostart ##
5 ####################################################
7 AUTOSTARTID="$(pgrep autostart.sh)"
8 n="${AUTOSTARTID//[^\n]/}"
9 if [ ${#n} -eq 1 ]; then
10 echo "No running instances found"
12 echo "another instance already running, exiting"
16 if command -v mpv && [ -e ~/paperbenni/boot.wav ]; then
17 mpv ~/paperbenni/boot.wav &
20 if ! [ -e ~/.dwmrunning ]; then
23 ping -q -c 1 -W 1 8.8.8.8 && date="$date|""🌍"
24 date="$date|🔊$(amixer get Master | egrep -o '[0-9]{1,3}%' | head -1)"
25 xsetroot -name "$date"
34 if ! pgrep mate-settings; then
36 if command -v mate-settings-daemon; then
39 /usr/lib/mate-settings-daemon/mate-settings-daemon
47 if ! pgrep deadd; then
54 if [ -e ~/paperbenni/wallpaper.sh ]; then
55 bash ~/paperbenni/wallpaper.sh