summaryrefslogblamecommitdiffstats
path: root/quart.i3blocks
blob: bf0e1a1341ccc480f039b6b4206c2ccfaddfbd27 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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>"