From eec100f304e9599bbc3ca429360e0553bd627726 Mon Sep 17 00:00:00 2001 From: Bartek Stalewski Date: Tue, 18 Oct 2022 01:37:06 +0200 Subject: [PATCH] Less icons is better. --- _desktop/_scripts/sb-battery | 3 +-- _desktop/qtile/config.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/_desktop/_scripts/sb-battery b/_desktop/_scripts/sb-battery index 192c065..d64d736 100755 --- a/_desktop/_scripts/sb-battery +++ b/_desktop/_scripts/sb-battery @@ -1,6 +1,5 @@ #!/bin/bash -icon='\uf241 ' for battery in /sys/class/power_supply/BAT?*; do # If non-first battery, print a space separator. [ -n "${capacity+x}" ] && printf " " @@ -14,5 +13,5 @@ for battery in /sys/class/power_supply/BAT?*; do esac capacity=$(cat "$battery/capacity") # Will make a warn variable if discharging and low - [ "$capacity" -le 20 ] && printf "$icon ${status} ${capacity}%%" || printf "$icon ${status} ${capacity}%%" + [ "$capacity" -le 20 ] && printf "${status} ${capacity}%%" || printf "${status} ${capacity}%%" done && exit 0 diff --git a/_desktop/qtile/config.py b/_desktop/qtile/config.py index 4d197af..e691539 100644 --- a/_desktop/qtile/config.py +++ b/_desktop/qtile/config.py @@ -139,7 +139,7 @@ screens = [ func=lambda: subprocess.check_output("sb-battery").decode(), ), widget.Clock( - format='\uf073 [%d] %H:%M:%S' + format='/%d/ %H:%M:%S' ), widget.Systray(), ],