From 5fd7719e3379d50acea3d0b3e883113ccf68f19b Mon Sep 17 00:00:00 2001 From: Bartek Stalewski Date: Tue, 18 Oct 2022 01:38:56 +0200 Subject: [PATCH] More statusbar customisation. --- _desktop/_scripts/sb-network | 4 ++-- _desktop/qtile/config.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/_desktop/_scripts/sb-network b/_desktop/_scripts/sb-network index b4a112f..2c3ad72 100755 --- a/_desktop/_scripts/sb-network +++ b/_desktop/_scripts/sb-network @@ -2,8 +2,8 @@ icon='\uf1eb ' case "$(cat /sys/class/net/w*/operstate 2>/dev/null)" in - down) printf "$icon no wifi" ;; + down) printf "$icon no wifi /" ;; up) - [ -n "$(ip address show dev wlan0 | grep 'inet ')" ] || printf "$icon no ip" + [ -n "$(ip address show dev wlan0 | grep 'inet ')" ] || printf "$icon no ip /" # && printf "$icon $(iwgetid -r)" \ esac diff --git a/_desktop/qtile/config.py b/_desktop/qtile/config.py index e691539..22959bb 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='/%d/ %H:%M:%S' + format='/ [%d] %H:%M:%S' ), widget.Systray(), ],