X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=x%2F.local%2Fbin%2Fbar;h=865563093a03d4b9ad9681f14be3d060f420ac71;hb=907122ffdf547aaf278270f2621bfc1d1112bf74;hp=33e1fa425e7b3a1cb52f9e588015687228ab2863;hpb=ca4e74b1c8d81761eb0d5d8dc4a996928fae2745;p=dotfiles.git diff --git a/x/.local/bin/bar b/x/.local/bin/bar index 33e1fa4..8655630 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$") |"\ + "♪ $(pactl list sinks | grep -Po "(?<=Volume: front)[^%]*" | grep -o "[0-9]\?[0-9][0-9]$") |"\ "⚡$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/20+1))s")"