diff options
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}' |