Slider sets its value to 0 instead of the awk output. #1347
-
How do I set the volume to the system volume if not like this? (My system volume is 95% and the awk output is "95") |
Beta Was this translation helpful? Give feedback.
Answered by
hypernova7
Jul 7, 2025
Replies: 1 comment 3 replies
-
Use printf instead of print |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try using back stick instead of double quotes and defpoll instead of defvar
(defpoll outputVolume :interval "1s" `awk -F'[][]' '/Left:/ { printf substr($2, 1, length($2)-1)}' <(amixer sget Master)`)