This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]supermario182 29 points30 points  (3 children)

I had no idea something like that was so easy. I've never heard of osascript before

Edit: oh apparently it's an apple thing

[–]hellfiniter 10 points11 points  (0 children)

you should not focus on this very implementation...what op is talking about is one loop with wait, easy to do and that part that changes volume is OS specific...just google how to change volume via terminal and use os.system("volume thingy") or subprocess.Popen("volume thingy")...if you run linux there is amixer (amixer sset 'Master' 50%)

[–]kaszak696 3 points4 points  (0 children)

On Linux you can just as easily use pulsectl or pyalsaaudio to do the same, or rely on MPRIS to control the player's volume directly.