From 8c65a77150db1013d5be1eff3711461de21e0da0 Mon Sep 17 00:00:00 2001 From: Shubham Saini Date: Mon, 18 May 2020 20:25:32 +0530 Subject: finally done --- dwm/dwmbar | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'dwm/dwmbar') diff --git a/dwm/dwmbar b/dwm/dwmbar index d9e92ca..0960930 100755 --- a/dwm/dwmbar +++ b/dwm/dwmbar @@ -1,22 +1,22 @@ #!/bin/bash vol(){ vol=$(pulsemixer --get-volume | awk '{print $1}') - echo -e "\x01vol \x02$vol%" + printf "%s" "vol ^c#c6c8d1^$vol%^d^" } bat() { power=$(cat /sys/class/power_supply/BAT0/capacity) - echo -e "\x01bat \x02$power%" + printf "%s" "bat ^c#c6c8d1^$power%^d^" } dte() { dte=$(date +"%A, %B %d") - echo -e "\x01date \x02$dte" + printf "%s" "date ^c#c6c8d1^$dte^d^" } tie() { tme=$(date +"%I:%M %p") - echo -e "\x01time \x02$tme" + printf "%s" "time ^c#c6c8d1^$tme^d^" } while true; do xsetroot -name "$(vol) $(bat) $(tie) $(dte)" -- cgit v1.2.3