dotfiles/.config/i3/i3bar/volume.sh
Severin Kaderli 1102b08218 Fix bugs with volume, dbus and monitor settings
Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
2017-01-18 21:15:26 +01:00

11 lines
211 B
Bash
Executable file

#!/bin/bash
# volume.sh
volume=$(/usr/lib/i3blocks/volume 5 pulse)
if [ ${volume::-1} -ge "35" ]; then
echo "$volume"
elif [ ${volume::-1} -gt "0" ]; then
echo "$volume"
else
echo "$volume"
fi