{ "info": { "author": "Patrick Ziegler", "author_email": "p.ziegler96 at gmail dot com", "bugtrack_url": null, "classifiers": [ "Environment :: Console", "Intended Audience :: End Users/Desktop", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Natural Language :: English", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3 :: Only", "Topic :: Utilities" ], "description": "notification-mount\n==================\n\n![GPL v3.0](https://img.shields.io/github/license/patrick96/notification-mount.svg)\n\nThis is a script that displays a notification for a drive with a button to mount it.\n\nIt might be wise to call the script from a listeners that fires every time a new block device is detected (see [examples](#examples)).\n\nTable of Contents\n=================\n\n * [notification-mount](#notification-mount)\n * [Table of Contents](#table-of-contents)\n * [Installation](#installation)\n * [Requirements](#requirements)\n * [Non-Arch Systems](#non-arch-systems)\n * [Arch Linux](#arch-linux)\n * [Examples](#examples)\n * [Devmon Script](#devmon-script)\n * [Systemd Unit](#systemd-unit)\n\nInstallation\n============\n\n## Requirements\n* Linux\n* python3\n* [python-gobject](https://wiki.gnome.org/Projects/PyGObject)\n* [python-notify2](https://pypi.python.org/pypi/notify2)\n* [udevil][udevil]\n\n## Non-Arch Systems\n\nIf you are not using **Arch**, then you will need to copy or symlink the `notification-mount` file to somewhere that is in your `PATH` (see below in the systemd example for more info on w\u0125at you need to pay attention to when placing it somewhere in the `PATH`).\n\nFor how to install and start the system service see the [example](#systemd-unit) below.\n\n## Arch Linux\nIf you are using **Arch Linux** either install [notification-mount][notification-mount] or [notification-mount-git][notification-mount-git] from the AUR.\nYou should now also have a user systemd service which you can enable and start like this:\n```bash\nsystemctl --user enable notification-mount.service\nsystemctl --user start notification-mount.service\n```\nThis service is the same as the one in the example below. \n\nExamples\n========\n\n## Devmon Script\nIf you have [udevil][udevil] installed, you can run the following script and it will show a notification whenever a new device is detected:\n\n```bash\ndevmon --no-mount --no-unmount --exec-on-drive \"./notification-mount -d %f\" &\n```\nYou could at this to your `.xinitrc` or any other script that runs whenever your system starts up.\n\nYou may need to change the path to the script depending on where you run this piece of code from.\n## Systemd Unit\nSystemd service using the previous example and [udevil][udevil]:\n```ini\nnotification-mount.service\n--------------------------\n[Unit]\nDescription=Notification when new block device is detected with button to mount\n\n[Service]\nType=simple\nExecStart=/usr/bin/devmon --no-mount --no-unmount --exec-on-drive \"notification-mount -d %%f\"\n\n[Install]\nWantedBy=default.target\n```\nFot this you will need to have the `notification-mount` in a folder that is part of the `PATH`\n\n**Note:** This should be the default `PATH`. Alternatively you can set your modified `PATH` on the systemd environment like described [here](https://wiki.archlinux.org/index.php/Systemd/User#PATH). \n\nAfter that just enable and start the service:\n```bash\nsystemctl --user enable notification-mount.service\nsystemctl --user start notification-mount.service\n```\n\n[udevil]: https://ignorantguru.github.io/udevil/\n[notification-mount]: https://aur.archlinux.org/packages/notification-mount\n[notification-mount-git]: https://aur.archlinux.org/packages/notification-mount-git\n", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/patrick96/notification-mount/tarball/v1.0.1", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/patrick96/notification-mount", "keywords": "mount,notification", "license": "GPLv3", "maintainer": null, "maintainer_email": null, "name": "notification-mount", "package_url": "https://pypi.org/project/notification-mount/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/notification-mount/", "project_urls": { "Download": "https://github.com/patrick96/notification-mount/tarball/v1.0.1", "Homepage": "https://github.com/patrick96/notification-mount" }, "release_url": "https://pypi.org/project/notification-mount/1.0.1/", "requires_dist": null, "requires_python": null, "summary": "Script to show notification for a block device with mount action", "version": "1.0.1" }, "last_serial": 2338565, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "c3e35af2bb91a1a6c255fb430a6bd8b6", "sha256": "cd13613f57e0c8e182b0f98f0ce7a55e4c02048085e53907449fcd5734e8e3ca" }, "downloads": -1, "filename": "notification-mount-1.0.0.tar.gz", "has_sig": true, "md5_digest": "c3e35af2bb91a1a6c255fb430a6bd8b6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15776, "upload_time": "2016-09-12T18:10:57", "url": "https://files.pythonhosted.org/packages/63/72/8bdb50942cb79e0ddf55b596c983aaca3baf811e9d000e1d054019e325cc/notification-mount-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "67fd95bd46356138d8d9f1eb15a0bb0d", "sha256": "c5cc7de75ce2ca2b8123520f923fc7de8f892d9bf67e2609afc4e3a0cf3ba369" }, "downloads": -1, "filename": "notification-mount-1.0.1.tar.gz", "has_sig": true, "md5_digest": "67fd95bd46356138d8d9f1eb15a0bb0d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15760, "upload_time": "2016-09-12T18:17:07", "url": "https://files.pythonhosted.org/packages/f0/3a/d0999c6bb64ddaa2c46a8e12fc24c4af29b58a4d6bf186dd109d55a31ba0/notification-mount-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "67fd95bd46356138d8d9f1eb15a0bb0d", "sha256": "c5cc7de75ce2ca2b8123520f923fc7de8f892d9bf67e2609afc4e3a0cf3ba369" }, "downloads": -1, "filename": "notification-mount-1.0.1.tar.gz", "has_sig": true, "md5_digest": "67fd95bd46356138d8d9f1eb15a0bb0d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15760, "upload_time": "2016-09-12T18:17:07", "url": "https://files.pythonhosted.org/packages/f0/3a/d0999c6bb64ddaa2c46a8e12fc24c4af29b58a4d6bf186dd109d55a31ba0/notification-mount-1.0.1.tar.gz" } ] }