X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=i3%2Fbar;h=cdebaf874829c9485cd82123078c9e0b88096330;hb=2a8eabb8186791663e2aa8a57c3400eb91f2fa75;hp=867821a539bf4ff86d19ec213e599b8e555a3673;hpb=7b3eb9d69dd0e88553c903b7f63c7c0d1433bb09;p=dotfiles.git diff --git a/i3/bar b/i3/bar index 867821a..cdebaf8 100755 --- a/i3/bar +++ b/i3/bar @@ -1,12 +1,6 @@ #!/bin/bash -#function music { -# song=$([ "$(mpc | wc -l)" = "1" ] && echo "[stopped]" || echo $(mpc | head -1)) -# status=$(mpc | grep -o "\[p.*\]") -# echo -ne "♪: $song$status | " -#} - function net { - grep -q "$1" /run/network/ifstate && echo "$2 | " + grep -q "$1" /run/network/ifstate && echo "$2 <$(iwconfig "$1" 2>/dev/null | grep -Po "(?<=ESSID:\").*(?=\")")> | " } function volume {