Compare commits

..

3 commits

2 changed files with 9 additions and 3 deletions

View file

@ -12,7 +12,7 @@ set $term footclient
# on the original workspace that the command was run on.
set $menu fuzzel-run
font Inter Medium 10
font Inter SemiBold 10
### Output configuration
#
@ -228,7 +228,7 @@ bindsym --locked XF86AudioNext exec 'playerctl next'
bindsym --locked XF86MonBrightnessUp exec 'brillo -A 5; brillo -O'
bindsym --locked XF86MonBrightnessDown exec 'brillo -U 5; brillo -O'
default_border normal 4
default_border pixel 8
smart_borders on
hide_edge_borders both

View file

@ -8,7 +8,13 @@ i3status | while true; do
if test -z "$json_array"; then
echo "$line"
else
zeit_obj='{"name":"zeit","instance":"zeit","color":"#FF0000","markup":"none","full_text":"'$(zeit tracking --no-colors)'"}'
zeit="$(zeit tracking --no-colors)"
if echo "$zeit" | grep -F tracking >/dev/null; then
color="#FF0000"
else
color="#000000"
fi
zeit_obj='{"name":"zeit","instance":"zeit","color":"'$color'","markup":"none","full_text":"'$zeit'"}'
json_array="$(echo $json_array | jq ". |= [$zeit_obj] + .")"
echo "$json_array,"
fi