X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=x%2F.local%2Fbin%2Fbar;h=079fac04a17d279f39523db47c26cb87a4fe2a93;hb=11677e341464bf8954daed4f1d16e373b9111938;hp=33e1fa425e7b3a1cb52f9e588015687228ab2863;hpb=ca4e74b1c8d81761eb0d5d8dc4a996928fae2745;p=dotfiles.git diff --git a/x/.local/bin/bar b/x/.local/bin/bar index 33e1fa4..079fac0 100755 --- a/x/.local/bin/bar +++ b/x/.local/bin/bar @@ -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")"