๐ I made an ultra-minimal alternative to playerctl (as if that wasn't already minimal enough)
๐ก Newskategorie: Linux Tipps
๐ Quelle: reddit.com
Hey guys, I'm new here but love Linux and have recently started programming for it, which has been a huge step forward in my Linux life :D
First thing I've programmed is mediactl! It does kinda the same thing as playerctl, but with bordering-on-pathological minimalism. It uses the d-bus to broadcast mpris method calls to all compatible players running on your machine; Play, Pause, Stop, Next, Prev... That's it! The x64 binary is 30kb, and spawns no daemons or other... uhmm... "bloat", if you can even call playerctl bloated to begin with hehehe.
A practical use for this
I wrote this program so that I'd get my media keys functional again after switching to i3wm! After installing my program I added the following lines to my i3 config and I've never been happier lol
bindsym XF86AudioPlay exec mediactl PlayPause bindsym XF86AudioNext exec mediactl Next bindsym XF86AudioPrev exec mediactl Previous bindsym XF86AudioStop exec mediactl Stop
Hope you guys like it, and eh, hi :D
[link] [comments] ...