1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

feat(i3status-rust): simplify newsboat display

This commit is contained in:
2022-08-21 02:38:48 +02:00
parent 1c05cccac0
commit e1b1458bb0

View File

@@ -83,7 +83,7 @@ in {
--argjson watchLater "$(${newsboat-sql} "SELECT COUNT(DISTINCT id) FROM rss_item WHERE flags='e' AND deleted=0")" \ --argjson watchLater "$(${newsboat-sql} "SELECT COUNT(DISTINCT id) FROM rss_item WHERE flags='e' AND deleted=0")" \
'{ '{
state: (if $unread > 0 then "Good" else "Idle" end), state: (if $unread > 0 then "Good" else "Idle" end),
text: "\($unread) [\($watchLater)]", text: (if $unread > 0 then "\($unread)" else "[\($watchLater)]" end),
icon: "rss" icon: "rss"
}' }'
fi fi