aboutsummaryrefslogtreecommitdiff
path: root/i3blocks
diff options
context:
space:
mode:
Diffstat (limited to 'i3blocks')
-rwxr-xr-xi3blocks/i3disk.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/i3blocks/i3disk.sh b/i3blocks/i3disk.sh
new file mode 100755
index 0000000..8ffec99
--- /dev/null
+++ b/i3blocks/i3disk.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+case $BLOCK_BUTTON in
+ 1) notify-send "$(df -h | grep ^/dev/sda6 | awk '{print "/: Used "$3"/"$2" ("$5")"}')"
+# 2) # Middle click
+# 3) # Right click
+esac
+
+df -h | grep ^/dev/sda6 | awk '{print $4"/"$2}'