repositories
/
dotfiles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b3eb9d
)
better bar with ssid
author
Mart Lubbers
<mart@martlubbers.net>
Sat, 10 May 2014 14:26:51 +0000
(16:26 +0200)
committer
Mart Lubbers
<mart@martlubbers.net>
Sat, 10 May 2014 14:26:51 +0000
(16:26 +0200)
i3/bar
patch
|
blob
|
history
diff --git
a/i3/bar
b/i3/bar
index
867821a
..
cdebaf8
100755
(executable)
--- 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 {