{"id":13696693,"url":"https://github.com/SL-RU/ranger_udisk_menu","last_synced_at":"2025-05-03T17:31:55.968Z","repository":{"id":36995188,"uuid":"361479641","full_name":"SL-RU/ranger_udisk_menu","owner":"SL-RU","description":"This script draws menu to choose, mount and unmount drives using udisksctl and ncurses for ranger file manager","archived":false,"fork":false,"pushed_at":"2023-05-06T21:20:16.000Z","size":145,"stargazers_count":52,"open_issues_count":4,"forks_count":9,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-08-03T18:21:11.166Z","etag":null,"topics":["ranger","ranger-config","ranger-fm","ranger-plugin"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SL-RU.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-25T16:27:08.000Z","updated_at":"2024-07-20T22:49:36.000Z","dependencies_parsed_at":"2022-07-09T04:00:19.085Z","dependency_job_id":null,"html_url":"https://github.com/SL-RU/ranger_udisk_menu","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SL-RU%2Franger_udisk_menu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SL-RU%2Franger_udisk_menu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SL-RU%2Franger_udisk_menu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SL-RU%2Franger_udisk_menu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SL-RU","download_url":"https://codeload.github.com/SL-RU/ranger_udisk_menu/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224369683,"owners_count":17299940,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ranger","ranger-config","ranger-fm","ranger-plugin"],"created_at":"2024-08-02T18:00:45.092Z","updated_at":"2025-05-03T17:31:55.931Z","avatar_url":"https://github.com/SL-RU.png","language":"Python","funding_links":[],"categories":["Plugins"],"sub_categories":[],"readme":"# DEPRECATED\n\nYou can use now improved version with same functionality: https://github.com/SL-RU/mmtui?tab=readme-ov-file#ranger-file-manager\n\n# Ranger udisk menu\nThis script draws menu to mount and unmount partitions using udisksctl and ncurses\n\n![Screenshot](screenshot.png)\n\n# Requirements\n- python3.8 or newer\n- udisks2 (for udisksctl)\n- lsblk 2.3 or newer\n\n# How to install\nFirstly you need to clone this repo to the plugins directory of ranger\n\n```Bash\ncd ~/.config/ranger/plugins\ngit clone https://github.com/SL-RU/ranger_udisk_menu\n```\n\nThen you need to add to `~/.config/ranger/commands.py` line: \n\n```Python3\nfrom plugins.ranger_udisk_menu.mounter import mount\n```\n\nThats all\n\n# How to use\nEnter in ranger `:mount`, than will be shown menu. In this menu you can press:\n\n- `j` or `arrow down` or `Ctrl+n` to move selection down\n- `k` or `arrow up` or `Ctrl+p` to move selection up\n- `Ctrl+g` or `Esc` or `q` to quit\n- `g` or `r` to refresh all partitions and drives\n- `m` to mount selected partition\n- `u` to unmount selected partition\n- `e` to unmount all partitions of selected partition's drive\n- `p` to power off selected the selected partition's drive (also called safely remove). It can be done only when all partitions of the drive are unmounted\n- `ENTER` to open selected mountpoint in current tab of the ranger\n\n# Troubles\n\nIf there is trouble with permissions, then you need to create group `storage` and add your user to it. Then you need to update your Polkit or PolicyKit permissions like it shown [here: https://github.com/coldfix/udiskie/wiki/Permissions](https://github.com/coldfix/udiskie/wiki/Permissions)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSL-RU%2Franger_udisk_menu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSL-RU%2Franger_udisk_menu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSL-RU%2Franger_udisk_menu/lists"}