From 9ebf91e892cbafbf03d09f3adca652db181d1587 Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Mon, 5 Aug 2024 19:30:47 -0400 Subject: Wayland migration (first of many) --- .local/bin/dwmbar/dwmb-eselect | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to '.local/bin/dwmbar/dwmb-eselect') diff --git a/.local/bin/dwmbar/dwmb-eselect b/.local/bin/dwmbar/dwmb-eselect index 24372b4..1a51bd2 100755 --- a/.local/bin/dwmbar/dwmb-eselect +++ b/.local/bin/dwmbar/dwmb-eselect @@ -1,11 +1,13 @@ #!/bin/sh -icon="  " +icon="" total="$(eselect news count all)" unread="$(eselect news count new)" -case "$total" in -0) echo "" ;; -*) echo "$icon $unread/$total " ;; -esac +# case "$total" in +# 0) echo "" ;; +# *) printf '{"text":"%s %s/%s", "class":"block" }' "$icon" "$unread" "$total" ;; +# esac +# +printf '{"text":"%s %s/%s", "class":"block" }' "$icon" "$unread" "$total" -- cgit v1.2.3