From 82cd5e57e2ecb878396e4703ee2eb4cc0bba3c9e Mon Sep 17 00:00:00 2001 From: InigoGutierrez Date: Tue, 25 Dec 2018 21:20:24 +0100 Subject: Created i3disk.sh --- i3blocks/i3disk.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 i3blocks/i3disk.sh 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}' -- cgit v1.2.1