updates
[dotfiles.git] / x / .local / bin / bar
index 33e1fa4..079fac0 100755 (executable)
@@ -13,9 +13,12 @@ if ip -br a | grep -q '^wlp'; then
        fi
 fi
 
+eval $(xdotool search --onlyvisible trayer getwindowgeometry --shell)
+
 echo \
        "W $wlan"\
        "♪ $(pactl list sinks | grep -Po "(?<=Volume: front)[^%]*" | grep -o "100$") |"\
        "⚡$bat"\
        "Dsk: $(df -h | grep '/$' | awk '{print $4"/"$2}') |"\
-       "$(date +"%Y-%m-%d %H:%M:%S")"
+       "$(date +"%Y-%m-%d %H:%M:%S") "\
+       "$(printf "% $(((WIDTH-2)/20+1))s")"