{ "info": { "author": "Tudor Roman", "author_email": "tudurom@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: ISC License (ISCL)", "Operating System :: POSIX", "Programming Language :: Python :: 3", "Topic :: Desktop Environment" ], "description": "# `lastplayer`\n\nSimple program that keeps track of the last used MPRIS2 players.\n\n## How?\n\nIt prints the order of the players, from most recent to last recent, on a single\nline on `stdout` any time a player appears or disappears. The most recent list\nof players is also written at `/tmp/lastplayer`.\n\n## Why?\n\nYou can use this program to control from keybinds the most recently opened multimedia player, using for example a program like [playerctl][playerctl].\n\n[playerctl]: https://github.com/acrisci/playerctl\n\nUsing the same technique, you may control another player based on the order of\nwhen it was started.\n\n## Example\n\nStart `lastplayer` beforehand:\n\n```bash\nlastplayer &\n```\n\nToggle the playing state of the most recent player:\n\n```bash\n#!/bin/sh\n\nplayer=\"$(cat /tmp/lastplayer | head -n 1)\"\nplayerctl -p $player play-pause\n```\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ricede/lastplayer", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "lastplayer", "package_url": "https://pypi.org/project/lastplayer/", "platform": "", "project_url": "https://pypi.org/project/lastplayer/", "project_urls": { "Homepage": "https://github.com/ricede/lastplayer" }, "release_url": "https://pypi.org/project/lastplayer/0.0.1/", "requires_dist": [ "PyGObject", "dbus-python" ], "requires_python": ">=3.5", "summary": "Simple program that keeps the order of the last used players", "version": "0.0.1" }, "last_serial": 4054055, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "1fe32e2c17cbf97f96e69af78bb77eb5", "sha256": "e20401a86db719bd4897a7d78267b90a1f900424a617838c32f9bc7dd8029958" }, "downloads": -1, "filename": "lastplayer-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "1fe32e2c17cbf97f96e69af78bb77eb5", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 2610, "upload_time": "2018-07-12T12:03:23", "url": "https://files.pythonhosted.org/packages/bd/86/2246633f48c6327d01be185f1151c1eafbb071377d41cabaccaf4f374912/lastplayer-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e8309565f7c78e5492e626650dcc0cbf", "sha256": "2d44a7e6962dbbe860718849a231cfc31d0fd5f646daee0821d13fa9f6c32fa1" }, "downloads": -1, "filename": "lastplayer-0.0.1.tar.gz", "has_sig": false, "md5_digest": "e8309565f7c78e5492e626650dcc0cbf", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 2214, "upload_time": "2018-07-12T12:03:24", "url": "https://files.pythonhosted.org/packages/a2/bf/f98f01a4b0be01467acd25c9e9fa339d8bcab14e71a1034f27b89ca2a385/lastplayer-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1fe32e2c17cbf97f96e69af78bb77eb5", "sha256": "e20401a86db719bd4897a7d78267b90a1f900424a617838c32f9bc7dd8029958" }, "downloads": -1, "filename": "lastplayer-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "1fe32e2c17cbf97f96e69af78bb77eb5", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 2610, "upload_time": "2018-07-12T12:03:23", "url": "https://files.pythonhosted.org/packages/bd/86/2246633f48c6327d01be185f1151c1eafbb071377d41cabaccaf4f374912/lastplayer-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e8309565f7c78e5492e626650dcc0cbf", "sha256": "2d44a7e6962dbbe860718849a231cfc31d0fd5f646daee0821d13fa9f6c32fa1" }, "downloads": -1, "filename": "lastplayer-0.0.1.tar.gz", "has_sig": false, "md5_digest": "e8309565f7c78e5492e626650dcc0cbf", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 2214, "upload_time": "2018-07-12T12:03:24", "url": "https://files.pythonhosted.org/packages/a2/bf/f98f01a4b0be01467acd25c9e9fa339d8bcab14e71a1034f27b89ca2a385/lastplayer-0.0.1.tar.gz" } ] }