diff options
author | Jakob Odersky <jakob@odersky.com> | 2018-06-11 00:25:49 -0700 |
---|---|---|
committer | Jakob Odersky <jakob@odersky.com> | 2018-06-11 00:25:49 -0700 |
commit | 5a672f6fbaebdff114ab59b9f0ef3e8c42bf4c37 (patch) | |
tree | 13ec3b781e4e834c92f223c329c670f0bd25b9e5 /home/.config/i3/status/bluetooth | |
parent | e4f115e1a42991a5f3f2aebc28889c57f94ba5db (diff) | |
download | dotfiles-5a672f6fbaebdff114ab59b9f0ef3e8c42bf4c37.tar.gz dotfiles-5a672f6fbaebdff114ab59b9f0ef3e8c42bf4c37.tar.bz2 dotfiles-5a672f6fbaebdff114ab59b9f0ef3e8c42bf4c37.zip |
Include wifi and bluetooth config in status bar
Diffstat (limited to 'home/.config/i3/status/bluetooth')
-rwxr-xr-x | home/.config/i3/status/bluetooth | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/home/.config/i3/status/bluetooth b/home/.config/i3/status/bluetooth new file mode 100755 index 0000000..3c2f9f1 --- /dev/null +++ b/home/.config/i3/status/bluetooth @@ -0,0 +1,9 @@ +#!/bin/bash +if (/usr/sbin/rfkill list bluetooth --output SOFT,HARD --noheadings \ + | grep -w blocked --quiet); then + echo "OFF" + echo "blocked" +else + echo "ON" + echo "unblocked" +fi |