Skip to content

Instantly share code, notes, and snippets.

@lidgnulinux
Created September 18, 2022 00:55
Show Gist options
  • Save lidgnulinux/29daa57d46c46431e879799795f96d86 to your computer and use it in GitHub Desktop.
Save lidgnulinux/29daa57d46c46431e879799795f96d86 to your computer and use it in GitHub Desktop.
#!/usr/bin/bash
volstock=$(pulsemixer --get-volume | awk {'print $1'})
yadi_sembako () {
yad --scale \
--title "Yad pulse" \
--text " Volume" --min-value 0 \
--max-value=100 \
--step=5 \
--value $volstock --print-partial \
--no-buttons \
--vertical \
--height 150 \
--width 55
}
yadi_sembako | while read val; do pulsemixer --set-volume $val; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment