## script for paperbenni-dwm autostart ##
####################################################
-for i in $(pidof -x autostart.sh); do
- echo "pid $i"
- if [ -z "$AUTOSTARTPID" ]; then
- AUTOSTARTPID="$i"
- else
- echo "other instance of dwm autostart already running"
- exit
- fi
-done
+bashes=$(pgrep bash | wc -l)
+if [ "$bashes" -gt 2 ]; then
+ echo "already running"
+ exit
+fi
[ -e ~/.cache/islaptop ] && ISLAPTOP="true"
gitclone slock
+# install cursors for themes
+if ! [ -e ~/.icons/osx ]; then
+ curl -s https://raw.githubusercontent.com/paperbenni/cursors/master/install.sh | bash
+fi
+
# session for lightdm
wget https://raw.githubusercontent.com/paperbenni/suckless/master/dwm.desktop
sudo mv dwm.desktop /usr/share/xsessions/
fi
gtkicons Papirus
+setcursor elementary
curl -s "https://raw.githubusercontent.com/paperbenni/dotfiles/master/fonts/sourcecodepro.sh" | bash
curl -s "https://raw.githubusercontent.com/paperbenni/dotfiles/master/fonts/roboto.sh" | bash
gtkicons materiacula
gtkfont "Roboto 10"
+setcursor paper
+
curl -s "https://raw.githubusercontent.com/paperbenni/dotfiles/master/fonts/monaco.sh" | bash
curl -s "https://raw.githubusercontent.com/paperbenni/dotfiles/master/fonts/roboto.sh" | bash
fi
gtkicons McMojave-circle
+setcursor osx
+
curl -s "https://raw.githubusercontent.com/paperbenni/dotfiles/master/fonts/sfpro.sh" | bash
gtkfont 'SF Pro Display 10'