Fix the time function in bar.sh.

This commit is contained in:
Mid Favila 2021-07-06 00:38:36 -03:00
parent a209ff1dc6
commit 8c2d1c7a40

View File

@ -4,7 +4,7 @@ FXDE_DIR=/home/midfavila/.config/fxde
tme() #Display current time in 24h notation
{
date|sed -ne 's/ */ /gp'|cut -d ' ' -f4|sed -ne 's/\([0-9][0-9]\)"\([0-9][0-9]\).*/\1\2/p'
date|sed -ne 's/ */ /gp'|cut -d ' ' -f4|sed -ne 's/\([0-9][0-9]\):\([0-9][0-9]\).*/\1\2/p'
}
pwr() #Display current battery capacity and whether we're discharging or not.