{ "info": { "author": "Michael Fladischer", "author_email": "michael@fladi.at", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Environment :: X11 Applications :: GTK", "Intended Audience :: End Users/Desktop", "License :: OSI Approved :: MIT License", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3 :: Only", "Topic :: Desktop Environment :: Screen Savers", "Topic :: Security", "Topic :: Utilities" ], "description": "cinnamon-udev-locker\n====================\n\n.. image:: https://img.shields.io/pypi/v/cinnamon-udev-locker.svg\n :target: https://pypi.python.org/pypi/cinnamon-udev-locker\n :alt: Latest PyPI version\n\n.. image:: https://travis-ci.org/fladi/cinnamon-udev-locker.png\n :target: https://travis-ci.org/fladi/cinnamon-udev-locker\n :alt: Latest Travis CI build status\n\nLock Cinnamon desktop session through device status (i.e YubiKey)\n\nUsage\n-----\n\nRun in INIT mode with an empty YAML configuration:\n\n > touch ~/.config/cinnamon-udev-locker/config.yml\n > cinnamon-udev-locker --init\n\nThis will print out all available properties for a UDev event. With a YubiKey\njust plug it in after executing the above steps and it will output something\nlike this:\n\n add:\n * ACTION: add\n * BUSNUM: 003\n * DEVNAME: /dev/bus/usb/003/030\n * DEVNUM: 030\n * DEVPATH: /devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1.1\n * DEVTYPE: usb_device\n * DRIVER: usb\n * ID_BUS: usb\n * ID_FOR_SEAT: usb-pci-0000_00_14_0-usb-0_1_1\n * ID_MODEL: Yubikey_4_U2F+CCID\n * ID_MODEL_ENC: Yubikey\\x204\\x20U2F+CCID\n * ID_MODEL_FROM_DATABASE: Yubikey 4 U2F+CCID\n * ID_MODEL_ID: 0406\n * ID_PATH: pci-0000:00:14.0-usb-0:1.1\n * ID_PATH_TAG: pci-0000_00_14_0-usb-0_1_1\n * ID_REVISION: 0427\n * ID_SERIAL: Yubico_Yubikey_4_U2F+CCID\n * ID_SMARTCARD_READER: 1\n * ID_SMARTCARD_READER_DRIVER: gnupg\n * ID_USB_INTERFACES: :030000:0b0000:\n * ID_VENDOR: Yubico\n * ID_VENDOR_ENC: Yubico\n * ID_VENDOR_FROM_DATABASE: Yubico.com\n * ID_VENDOR_ID: 1050\n * MAJOR: 189\n * MINOR: 285\n * PRODUCT: 1050/406/427\n * SEQNUM: 3746\n * SUBSYSTEM: usb\n * SYSTEMD_WANTS: smartcard.target\n * TAGS: :uaccess:systemd:seat:\n * TYPE: 0/0/0\n * USEC_INITIALIZED: 359396531717\n\nYou can now create rules in the config file based on the above attributes and\ntheir values. Values are matched against regular expressions to provide more\nfelxibility.\n\nTo have the screen locked when a YubiKey is disconnected and\nto activate the password prompt to unlock the screen once it is reconnected, use\nthe following rule in `~/.config/cinnamon-udev-locker/config.yml`:\n\n ---\n - devices:\n - ID_VENDOR: ^Yubico$\n ID_MODEL: ^Yubikey.*\n add: wakeup\n remove: lock\n\nIt is possible to define more than one rule with different behaviours. To have a\nsecond device that only activates the password prompt on connect but does not\nlock the screen on disconnect just append to the YAML list of rules:\n\n ---\n - devices:\n - ID_VENDOR: ^Yubico$\n ID_MODEL: ^Yubikey.*\n add: wakeup\n remove: lock\n - devices:\n - ID_VENDOR: ^ACME$\n ID_MODEL_FROM_DATABASE: ^Detonator$\n add: wakeup\n\nAfterwards make sure to have `cinnamon-udev-locker` automatically started for\nyour Cinnamon session.\n\nInstallation\n------------\n\n pip install cinnamon-udev-locker\n\nRequirements\n^^^^^^^^^^^^\n\n * click\n * click-log\n * pygobject\n * pyxdg\n\nCompatibility\n-------------\n\nThis script was written for Python3 only.\n\nLicence\n-------\n\nPublished under MIT/Expat license.\n\nAuthors\n-------\n\n`cinnamon-udev-locker` was written by `Michael Fladischer `_.\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/fladi/cinnamon-udev-locker", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "cinnamon-udev-locker", "package_url": "https://pypi.org/project/cinnamon-udev-locker/", "platform": "", "project_url": "https://pypi.org/project/cinnamon-udev-locker/", "project_urls": { "Homepage": "https://github.com/fladi/cinnamon-udev-locker" }, "release_url": "https://pypi.org/project/cinnamon-udev-locker/0.1.0/", "requires_dist": [ "click", "click-log", "pygobject", "pyxdg" ], "requires_python": "", "summary": "Lock Cinnamon desktop session on device removal (i.e YubiKey)", "version": "0.1.0" }, "last_serial": 2751741, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "b88220be7d8aac359764dd09001a9f08", "sha256": "6562cc070e0997db345f05220af6331c7c567978941e1cfd22a4925956ca3fd3" }, "downloads": -1, "filename": "cinnamon_udev_locker-0.1.0-py3-none-any.whl", "has_sig": true, "md5_digest": "b88220be7d8aac359764dd09001a9f08", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6997, "upload_time": "2017-04-04T11:13:21", "url": "https://files.pythonhosted.org/packages/43/ca/161d586aa4320ef7aa927a72cbb3b893c4348a484772ee3095e329517631/cinnamon_udev_locker-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ea7bdabf5cd661c1b9baf2dd3bb3705a", "sha256": "6d3464d052e46305e1180454cc27e95b285fdc25538af36bf15ffcccb9d83470" }, "downloads": -1, "filename": "cinnamon-udev-locker-0.1.0.tar.gz", "has_sig": true, "md5_digest": "ea7bdabf5cd661c1b9baf2dd3bb3705a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4511, "upload_time": "2017-04-04T11:13:24", "url": "https://files.pythonhosted.org/packages/ff/5c/ac0b97ea93aa0c24d241e763e8710fad61f07d24993ee0ad4902b9ad3bcd/cinnamon-udev-locker-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b88220be7d8aac359764dd09001a9f08", "sha256": "6562cc070e0997db345f05220af6331c7c567978941e1cfd22a4925956ca3fd3" }, "downloads": -1, "filename": "cinnamon_udev_locker-0.1.0-py3-none-any.whl", "has_sig": true, "md5_digest": "b88220be7d8aac359764dd09001a9f08", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6997, "upload_time": "2017-04-04T11:13:21", "url": "https://files.pythonhosted.org/packages/43/ca/161d586aa4320ef7aa927a72cbb3b893c4348a484772ee3095e329517631/cinnamon_udev_locker-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ea7bdabf5cd661c1b9baf2dd3bb3705a", "sha256": "6d3464d052e46305e1180454cc27e95b285fdc25538af36bf15ffcccb9d83470" }, "downloads": -1, "filename": "cinnamon-udev-locker-0.1.0.tar.gz", "has_sig": true, "md5_digest": "ea7bdabf5cd661c1b9baf2dd3bb3705a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4511, "upload_time": "2017-04-04T11:13:24", "url": "https://files.pythonhosted.org/packages/ff/5c/ac0b97ea93aa0c24d241e763e8710fad61f07d24993ee0ad4902b9ad3bcd/cinnamon-udev-locker-0.1.0.tar.gz" } ] }