This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Simple demo volume control script module for Polybar | |
| # Get current volume | |
| VOL="$(pamixer --get-volume)" | |
| MUTE="$(pamixer --get-mute)" | |
| # Desired width of module | |
| WIDTH="10" | |
| # Multiply volume by this value | |
| SVM="$(( 100/$WIDTH ))" |
OlderNewer