dotfiles/.config/i3/i3bar/volume.sh
Severin Kaderli 4d7bdfdc88 Intial commit
2016-09-02 20:38:41 +02:00

11 lines
213 B
Bash
Executable file

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