mirror of
https://github.com/SL-RU/ranger_udisk_menu.git
synced 2025-01-13 15:56:43 +01:00
This script draws menu to choose, mount and unmount drives using udisksctl and ncurses for ranger file manager
.gitignore | ||
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
- udisks2 (for udisksctl)
- lsblk
How to install
Firstly you need to clone this repo to ranger config directory
cd ~/.config/ranger
git clone https://github.com/SL-RU/ranger_udisk_menu
Then you need to add to ~/.config/ranger/commands.py
line:
from ranger_udisk_menu.mounter import mount
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 driveENTER
to open selected mountpoint in current tab