aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2018-12-25 21:20:24 +0100
committerInigoGutierrez <inigogf.95@gmail.com>2018-12-25 21:24:30 +0100
commit82cd5e57e2ecb878396e4703ee2eb4cc0bba3c9e (patch)
tree13f9f58c722c981953346c9ab8bb3759a50ce192
parent4391297a9b763cfc5f6873f50e26d6548a572f4f (diff)
downloadscripts-82cd5e57e2ecb878396e4703ee2eb4cc0bba3c9e.tar.gz
scripts-82cd5e57e2ecb878396e4703ee2eb4cc0bba3c9e.zip
Created i3disk.sh
-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}'