OSDN Git Service

tag bar glitch workaround
authorpaperbenni <paperbenni@gmail.com>
Wed, 15 Jan 2020 20:34:55 +0000 (21:34 +0100)
committerpaperbenni <paperbenni@gmail.com>
Wed, 15 Jan 2020 20:34:55 +0000 (21:34 +0100)
autostart.sh
rootinstall.sh

index 3fe1fbc..98997a8 100755 (executable)
@@ -10,7 +10,7 @@ if [ "$bashes" -gt 2 ]; then
        exit
 fi
 
-if acpi | grep -q '%' &> /dev/null; then
+if acpi | grep -q '%' &>/dev/null; then
        export ISLAPTOP="true"
        echo "laptop detected"
 else
@@ -65,6 +65,11 @@ addstatus() {
        date="$date[$@] "
 }
 
+# fix small graphical glitch on status bar startup
+xdotool key 'super+2'
+sleep 0.1
+xdotool key 'super+1'
+
 # status bar loop
 while :; do
        if [ -e ~/.instantsilent ]; then
index 69025dc..5b2a63e 100644 (file)
@@ -32,7 +32,7 @@ RAW="https://raw.githubusercontent.com"
 # fetches and installs program from this repo
 gprogram() {
     echo "installing $1"
-    curl -s "$RAW/paperbenni/suckless/master/programs/$1" | sudo tee /usr/bin/$1 &>/dev/null
+    curl -s "$RAW/paperbenni/suckless/master/programs/$1" | sudo tee /usr/local/bin/$1 &>/dev/null
     chmod +x /usr/bin/"$1"
 }