diff options
author | InigoGutierrez <inigogf.95@gmail.com> | 2018-12-25 21:20:24 +0100 |
---|---|---|
committer | InigoGutierrez <inigogf.95@gmail.com> | 2018-12-25 21:24:30 +0100 |
commit | 82cd5e57e2ecb878396e4703ee2eb4cc0bba3c9e (patch) | |
tree | 13f9f58c722c981953346c9ab8bb3759a50ce192 /i3blocks | |
parent | 4391297a9b763cfc5f6873f50e26d6548a572f4f (diff) | |
download | scripts-82cd5e57e2ecb878396e4703ee2eb4cc0bba3c9e.tar.gz scripts-82cd5e57e2ecb878396e4703ee2eb4cc0bba3c9e.zip |
Created i3disk.sh
Diffstat (limited to 'i3blocks')
-rwxr-xr-x | i3blocks/i3disk.sh | 9 |
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}' |