mirror of
https://github.com/SqrtMinusOne/dotfiles.git
synced 2025-12-11 03:33:03 +03:00
i3blocks
This commit is contained in:
parent
45d65fa043
commit
835a98d398
2 changed files with 5 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue