Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- get_volume() {
- vol="$(pamixer --get-volume-human)"
- if [[ "$vol" == "muted" ]]; then
- printf "🔇 %s" "$vol"
- else
- printf "🔊 %s" "$vol"
- fi
- }
- while true
- do
- xsetroot -name "$(get_volume)";
- sleep 1m;
- done
Advertisement
Add Comment
Please, Sign In to add comment