Skip to content

A script written in Go to watch dbus and report on what the current media player is and report about it, was made for soda's bar (WIP)

License

Notifications You must be signed in to change notification settings

TheOrnyx/mpris-watcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mpris-watcher - a script to watch dbus

This is a script that watches Mpris DBus objects and returns a string representation of them, it was created for use on my friends window manager bar.

At the moment it exposes some methods to dbus which you can run, these being:

Method nameDesc
com.ornyx.MprisWatcher.NextSwitch the activeplayer to the next mediaPlayer object with wrapping around
com.ornyx.MprisWatcher.PrevSwitch the activeplayer to the previous mediaPlayer object with wrapping back around
com.ornyx.MprisWatcher.PlayPauseToggle between playing and pausing the active mediaPlayer object

There’s a highly likely chance this doesn’t work properly or messes up etc, it’s still kinda a WIP but hopefully it works well enough

I hate you sofa, why did you do this to me. I hate dbus, I hate dbus I hate dbus.

                      .                   
                   ..                   
                  '...                  
                 .'...                  
                .'....                  
              ..''.....                 
             ...''......                
            ...'''......'.              
           ....''''';cooool:.           
   .;     .....''',cllooooool,          
   .'     ....''.,clllollolllc.         
   .     ....'''.;:cllollllcc:'         
        .....''.';::ccccc:::;,.         
    .. .....','..,;;;:::;;;,'..         
  ..'. .....',,..'',,,,,,,'...          
 .,;.......',,,' ...........            
 .;;,..'0KXNWWWWo  ......               
..';,'.,kNMMMMMMW'            ..        
........;OMMMMMMMK;.      .,;,. ...     
....   .;0MMMMMMMM0::;,',;::;;'   ...   
     .;.;XMMMMMMMMMXo:;;;;:::;;.   ...  
  .,'.,.,OMMMMMMMMMMMKo:;;;::;;,    ..  
     ....oMMMMMMMMMMMMMXkoc::::;,   ... 
   .l;...oMMMMMMMMMMMMMMMWNKOxdo:   ... 
   ;O;..'xWMMMMMMMMMMMMMMMMMWNK0x:  ... 
   ox'..'l0MMMMMMMMMMMMMMMMMWWNX0d  ... 
   xd....,xWMMMMMMMMMMMMMMMMWWNXKk:  .. 
  .ko....:ONMMMMMMMMMMMMMMMMMWWNX0c.....
  .xo'..'lKWWWWWMMMMMMMMMMMMMWWNX:..... 
  .ll,..'oXNNNNWWWWWWWWWWMMWWWWX,...,'. 
  .,::'.,dKXXXXXXNNNNWWWWWWWWWW'... ,'..
  ..,cc:lx0000KKKKKXXXXNNNNWWWNk'.,.'.  
   .'cdddxkkkkkOOOO00KKKXXXNNNNK:;,.'.  
   ..:dxddooooodddxxkkOO00KKXXXXl;.,. . 
   ..;ldoc:;;;;;::clooddxkO00KKK0:.,. . 
    .':l:,..........',;:lodkO0000k.. .  
     .','....     ......,:loxkO0Ok: ..  
       ..            ....,:ldxkkkxc..   
                        .';:lddxdl:.    
                         .';:lool:'    

About

A script written in Go to watch dbus and report on what the current media player is and report about it, was made for soda's bar (WIP)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages