This commit is contained in:
Pavel Korytov 2020-07-26 15:49:48 +03:00
parent 45d65fa043
commit 835a98d398
2 changed files with 5 additions and 4 deletions

View file

@ -63,9 +63,10 @@ format() {
#------------------------------------------------------------------------
case $BLOCK_BUTTON in
1) cinnamon-settings sound > /dev/null ;;
4) ~/bin/scripts/vol volume +5% ;;
5) ~/bin/scripts/vol volume -5% ;;
1) pulseeffects > /dev/null ;;
3) pavucontrol > /dev/null ;;
4) pulseaudio-ctl up ;;
5) pulseaudio-ctl down ;;
esac
volume | format

View file

@ -4,7 +4,7 @@ location="${LOCATION:-"Saint-Petersburg"}"
format_1=${FORMAT_1:-"qF"}
format_2=${FORMAT_1:-"format=v2n"}
bar_weather=$(curl -s wttr.in/${location}?format=${bar_format})
bar_weather=$(curl -s wttr.in/${location}?format=${bar_format} || echo "??")
if [ -z ${bar_weather} ]; then
exit 1
fi