Update i3blocks scripts' spacing
prithugoswami prithugoswami524@gmail.com
Sun, 12 May 2019 22:34:58 +0530
4 files changed,
14 insertions(+),
12 deletions(-)
M
i3blocks/battery
→
i3blocks/battery
@@ -7,7 +7,7 @@ Charging)
symbol="<span font='Font Awesome 5 Free 9'>\uf0e7</span>" ;; *) - symbol="<span font='Icons 11'>\uf213 </span>" + symbol="<span font='Icons 11'>\uf213</span>" ;; esac
M
i3blocks/config
→
i3blocks/config
@@ -1,7 +1,7 @@
#[match] #command=match_score #interval=15 - +# [reminder] command=~/.config/i3blocks/note interval=1@@ -17,17 +17,17 @@ command=~/.config/i3blocks/disk
interval=30 markup=pango -#[bandwidth] -#command=~/.config/i3blocks/bandwidth2 -#interval=persist -#markup=pango - [newsboat] markup=pango command=~/.config/i3blocks/newsboat interval=once signal=10 +# [bandwidth] +# command=~/.config/i3blocks/bandwidth2 +# interval=persist +# markup=pango + [cpu_load] command=~/.config/i3blocks/cpu_load interval=5@@ -40,4 +40,5 @@
[time] markup=pango interval=1 -command=date +"%a, %d %b %Y<span foreground='#666666'> ╱ </span><b>%I:%M %P</b>" +# command=date +"%a,%d %b %Y<span foreground='#666666'>╱</span><b>%I:%M %P</b>" +command=date +"%a,%d %b <b>%I:%M %P</b>"
M
i3blocks/note
→
i3blocks/note
@@ -4,5 +4,5 @@ note_count=$(wc -l $note_file | cut -d ' ' -f1)
note_icon=$(echo -en "<span font='Font Awesome 5 Free '>\uf249</span>") if [ $note_count -gt 0 ]; then - echo -en "<span color='#ffff00'> $note_icon $note_count </span>" + echo -en "<span color='#ffff00'>$note_icon $note_count</span>" fi
M
i3blocks/taskwarrior
→
i3blocks/taskwarrior
@@ -1,4 +1,5 @@
#!/bin/sh +#TODO: add color levels to the todo counter: >5 task - orange, >7 red, etc incount=$(task +PENDING +in count) todocount=$(task +PENDING -in count) inbox_icon=$(echo -en "<span font='Font Awesome 5 Free'>\uf01c</span>")@@ -6,15 +7,15 @@ todo_icon=$(echo -en "<span font='Font Awesome 5 Free'>\uf071</span>")
if [ $incount -gt 0 ] then - inbox_out=$(echo -en "$inbox_icon <b>$incount</b>") + inbox_out=$(echo -en "$inbox_icon <b>$incount</b>") fi if [ $todocount -gt 0 ] then - todo_out=$(echo -en "<span color='#d8c61e'>$todo_icon <b>$todocount</b></span>") + todo_out=$(echo -en "<span color='#d8c61e'>$todo_icon <b>$todocount</b></span>") fi -[ "$todo_out" ] && [ "$inbox_out" ] && separator=$(echo "<span color='#666666'> ╱ </span>") +[ "$todo_out" ] && [ "$inbox_out" ] && separator=$(echo "<span color='#666666'>╱</span>") if [ "$todo_out" ] || [ "$inbox_out" ] then