OSDN Git Service

add cursors
authorpaperbenni <paperbenni@gmail.com>
Sat, 7 Dec 2019 15:27:56 +0000 (16:27 +0100)
committerpaperbenni <paperbenni@gmail.com>
Sat, 7 Dec 2019 15:27:56 +0000 (16:27 +0100)
autostart.sh
install.sh
themes/arc.sh
themes/dracula.sh
themes/mac.sh

index 6263254..6dc45e0 100755 (executable)
@@ -4,15 +4,11 @@
 ## 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"
 
index f0a022d..adfc7c5 100755 (executable)
@@ -41,6 +41,11 @@ fi
 
 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/
index 1289bf2..5630cd0 100755 (executable)
@@ -24,6 +24,7 @@ if ! icons_exist Papirus; then
 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
index 79b624b..1483c65 100755 (executable)
@@ -19,5 +19,7 @@ gtktheme materiacula
 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
index db12add..2aa4a9e 100755 (executable)
@@ -23,6 +23,8 @@ if ! icons_exist McMojave-circle; then
 fi
 gtkicons McMojave-circle
 
+setcursor osx
+
 curl -s "https://raw.githubusercontent.com/paperbenni/dotfiles/master/fonts/sfpro.sh" | bash
 
 gtkfont 'SF Pro Display 10'