summaryrefslogtreecommitdiffstats
path: root/quart.i3blocks
diff options
context:
space:
mode:
authorgramanas <anastasis.gramm2@gmail.com>2019-03-27 19:56:24 +0200
committergramanas <anastasis.gramm2@gmail.com>2020-12-25 21:34:36 +0200
commit5b4a10af81c60c6c4787d95f82004094f358459c (patch)
tree6f7b358288926bd5c501755d1e8f2872fb68d046 /quart.i3blocks
downloadquart-5b4a10af81c60c6c4787d95f82004094f358459c.tar.gz
quart-5b4a10af81c60c6c4787d95f82004094f358459c.tar.bz2
quart-5b4a10af81c60c6c4787d95f82004094f358459c.zip
Initial..
Diffstat (limited to 'quart.i3blocks')
-rwxr-xr-xquart.i3blocks15
1 files changed, 15 insertions, 0 deletions
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 "<span color='#755a87'>Q:</span>\
+<span color='#6b8e23'>$REM ($(qc - -c | awk -F '[[:space:]][[:space:]]' '{print $3}'))</span>"