Removed --reload from polybar launch script

master
Meliurwen 3 years ago
parent 3117759726
commit eb8215e922
Signed by: meliurwen
GPG Key ID: 818A8B35E9F1CE10
  1. 5
      polybar/.config/polybar/launch.sh

@ -15,7 +15,6 @@ while pgrep -u "$(id -u)" -x polybar >/dev/null; do sleep 1; done
POLY_IFACES="$(ip link show | awk '/^[0-9]+:/ {sub(/:/,"",$2); print $2}')" POLY_IFACES="$(ip link show | awk '/^[0-9]+:/ {sub(/:/,"",$2); print $2}')"
for NET_IFACE in $POLY_IFACES ; do for NET_IFACE in $POLY_IFACES ; do
echo "$NET_IFACE"
case $NET_IFACE in case $NET_IFACE in
wlp* ) POLY_WLP=$NET_IFACE ;; wlp* ) POLY_WLP=$NET_IFACE ;;
enp* ) POLY_ENP=$NET_IFACE ;; enp* ) POLY_ENP=$NET_IFACE ;;
@ -27,8 +26,8 @@ POLY_HWMON="$HWMON_BASEDIR"/temp1_input
if type "xrandr"; then if type "xrandr"; then
for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
POLY_WLP=$POLY_WLP POLY_ENP=$POLY_ENP POLY_HWMON=$POLY_HWMON MONITOR=$m polybar main --reload -c "$HOME/.config/polybar/config" & POLY_WLP=$POLY_WLP POLY_ENP=$POLY_ENP POLY_HWMON=$POLY_HWMON MONITOR=$m polybar main -c "$HOME/.config/polybar/config" &
done done
else else
polybar main --reload -c "$HOME/.config/polybar/config" & POLY_WLP=$POLY_WLP POLY_ENP=$POLY_ENP POLY_HWMON=$POLY_HWMON MONITOR=$m polybar main -c "$HOME/.config/polybar/config" &
fi fi

Loading…
Cancel
Save