From 5b4a10af81c60c6c4787d95f82004094f358459c Mon Sep 17 00:00:00 2001 From: gramanas Date: Wed, 27 Mar 2019 19:56:24 +0200 Subject: Initial.. --- quart.i3blocks | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 quart.i3blocks (limited to 'quart.i3blocks') diff --git a/quart.i3blocks b/quart.i3blocks new file mode 100755 index 0000000..bf0e1a1 --- /dev/null +++ b/quart.i3blocks @@ -0,0 +1,15 @@ +#!/bin/sh + +case $BLOCK_BUTTON in + 1) notify-send "Current:" "$(qc - -c)" + ;; + 2) notify-send "Next:" "$(qc - -n)" + ;; + 3) notify-send "Remaining:" "$(qc - -r)" + ;; +esac + +REM=$(qc - -r | wc -l) + +echo "Q:\ +$REM ($(qc - -c | awk -F '[[:space:]][[:space:]]' '{print $3}'))" -- cgit v1.2.3