forked from mirrors/ranger_udisk_menu
This script draws menu to choose, mount and unmount drives using udisksctl and ncurses for ranger file manager
9817561478
This removes the need to add anything to commads.py for installation. |
||
---|---|---|
.gitignore | ||
__init__.py | ||
LICENSE | ||
menu.py | ||
mounter.py | ||
README.md | ||
screenshot.png |
Ranger udisk menu
This script draws menu to mount and unmount partitions using udisksctl and ncurses
Requirements
- python3.8 or newer
- udisks2 (for udisksctl)
- lsblk 2.3 or newer
How to install
You need to clone this repo to the plugins directory of ranger
cd ~/.config/ranger/plugins
git clone https://github.com/SL-RU/ranger_udisk_menu
Thats all
How to use
Enter in ranger :mount
, than will be shown menu. In this menu you can press:
j
orarrow down
orCtrl+n
to move selection downk
orarrow up
orCtrl+p
to move selection upCtrl+g
orEsc
orq
to quitg
orr
to refresh all partitions and drivesm
to mount selected partitionu
to unmount selected partitione
to unmount all partitions of selected partition's drivep
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 unmountedENTER
to open selected mountpoint in current tab of the ranger
Troubles
If 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