powermate-linux
powermate-linux copied to clipboard
Change mute/unmute to play/pause
This is a hacky solution (mute variables reference play/pause) so it needs some work - but it works!
NOTE: I'm just creating this pull request for people to use if they want this functionality. This pull requests is in no means ready to be merged in!
Nice. Thanks for sharing.
I've been thinking about how to pause/play somehow, but never tried to code it. I think I was thinking that it could be dynamic based on the currently focused application (e.g. if you have VLC open).
I wonder if it makes sense to support this mode by using a command line argument? That way people who want it can enable it manually.
I wonder if it makes sense to support this mode by using a command line argument? That way people who want it can enable it manually.
Yeah, I might work on that and update the PR - that way you can pull it in and people can choose which they want.
Hi @JustDerb. I just released a new version, and now this behavior is possible by changing the config file like so:
press_command = "xdotool key XF86AudioPlay"
But there may still be some value to do it natively.. so don't feel obligated to close the PR.
Let me know what you think!