This script draws menu to choose, mount and unmount drives using udisksctl and ncurses for ranger file manager
Go to file
Alexander Lutsai c0623bd310 many fixes
2021-04-26 19:58:18 +03:00
.gitignore first 2021-04-25 19:25:47 +03:00
LICENSE Create LICENSE 2021-04-26 13:43:01 +03:00
menu.py many fixes 2021-04-26 19:58:18 +03:00
mounter.py change e-mail 2021-04-25 19:32:45 +03:00
README.md add screenshot 2021-04-25 21:26:38 +03:00
screenshot.png fix help string 2021-04-25 21:35:48 +03:00

Ranger udisk menu

This script draws menu to mount and unmount partitions using udisksctl and ncurses

Screenshot

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 or arrow down or Ctrl+n to move selection down
  • k or arrow up or Ctrl+p to move selection up
  • Ctrl+g or Esc or q to quit
  • g or r to refresh all partitions and drives
  • m to mount selected partition
  • u to unmount selected partition
  • e to unmount all partitions of selected partition's drive