From 970f51f2b77bb8215794f15e384948b625a8793a Mon Sep 17 00:00:00 2001 From: paperbenni Date: Wed, 15 Jan 2020 21:34:55 +0100 Subject: [PATCH] tag bar glitch workaround --- autostart.sh | 7 ++++++- rootinstall.sh | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/autostart.sh b/autostart.sh index 3fe1fbc..98997a8 100755 --- a/autostart.sh +++ b/autostart.sh @@ -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 diff --git a/rootinstall.sh b/rootinstall.sh index 69025dc..5b2a63e 100644 --- a/rootinstall.sh +++ b/rootinstall.sh @@ -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" } -- 2.11.0