all repos — dotfiles @ 6363b8f04e4bdd904c6a2a45aa1fb15bd9e52d8f

linux dotfiles

i3blocks/note

1 2 3 4 5 6 7 8
#!/bin/sh
note_file="$HOME/.config/note"
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>"
fi