aboutsummaryrefslogtreecommitdiff
path: root/home/.config/i3/status/bluetooth
diff options
context:
space:
mode:
Diffstat (limited to 'home/.config/i3/status/bluetooth')
-rwxr-xr-xhome/.config/i3/status/bluetooth9
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