Metadata-Version: 2.1
Name: lastplayer
Version: 0.0.1
Summary: Simple program that keeps the order of the last used players
Home-page: https://github.com/ricede/lastplayer
Author: Tudor Roman
Author-email: tudurom@gmail.com
License: UNKNOWN
Description: # `lastplayer`
        
        Simple program that keeps track of the last used MPRIS2 players.
        
        ## How?
        
        It prints the order of the players, from most recent to last recent, on a single
        line on `stdout` any time a player appears or disappears. The most recent list
        of players is also written at `/tmp/lastplayer`.
        
        ## Why?
        
        You can use this program to control from keybinds the most recently opened multimedia player, using for example a program like [playerctl][playerctl].
        
        [playerctl]: https://github.com/acrisci/playerctl
        
        Using the same technique, you may control another player based on the order of
        when it was started.
        
        ## Example
        
        Start `lastplayer` beforehand:
        
        ```bash
        lastplayer &
        ```
        
        Toggle the playing state of the most recent player:
        
        ```bash
        #!/bin/sh
        
        player="$(cat /tmp/lastplayer | head -n 1)"
        playerctl -p $player play-pause
        ```
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: ISC License (ISCL)
Classifier: Operating System :: POSIX
Classifier: Topic :: Desktop Environment
Requires-Python: >=3.5
Description-Content-Type: text/markdown
