scripts

Various scripts for UNIX-like systems
git clone https://git.tronto.net/scripts
Download | Log | Files | Refs | README

commit d120ebe6b988f7a1a0bbf79010cfd8a27960d9f5
parent 581865ee0c8b8aea872f053d804a41fb5f416b17
Author: Sebastiano Tronto <sebastiano@tronto.net>
Date:   Tue, 20 Jun 2023 23:10:37 +0200

Fixed double %

Diffstat:
Mstatus | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/status b/status @@ -16,12 +16,12 @@ date=$(date +"%d %B %Y, %A") if [ "$(pulsemixer --get-mute)" -eq 1 ]; then volume="Audio muted" else - volume="Volume: $(pulsemixer --get-volume | awk '{print $1}')%%" + volume="Volume: $(pulsemixer --get-volume | awk '{print $1}')%" fi bat="/sys/class/power_supply/BAT0" if [ -d $bat ]; then - battery="Battery: $(cat $bat/capacity)%% $(cat $bat/status)" + battery="Battery: $(cat $bat/capacity)% $(cat $bat/status)" else battery="No battery" fi