diff options
author | gramanas <anastasis.gramm2@gmail.com> | 2020-12-26 13:41:50 +0200 |
---|---|---|
committer | gramanas <anastasis.gramm2@gmail.com> | 2020-12-26 13:41:50 +0200 |
commit | e32159428b5d4da93ea924583b1deb2160ca4b95 (patch) | |
tree | 420130110060873061bd6f893b031e64d50bdf79 /utils | |
parent | 6432435c8a04109bc701630c95fd031507745180 (diff) | |
download | quart-e32159428b5d4da93ea924583b1deb2160ca4b95.tar.gz quart-e32159428b5d4da93ea924583b1deb2160ca4b95.tar.bz2 quart-e32159428b5d4da93ea924583b1deb2160ca4b95.zip |
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/quart.i3blocks | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/utils/quart.i3blocks b/utils/quart.i3blocks new file mode 100755 index 0000000..bf0e1a1 --- /dev/null +++ b/utils/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>" |