This program displays a list of devices using dmenu
and mounts or unmounts the one you select.
Mount a device:
./dmenu-mounter.py mount
Unmount:
./dmenu-mounter.py unmount
The mount
action accepts “mount rules”, e.g.
./dmenu-mounter.py mount --rule \
'filesystem == "vfat" :: {"mount_args": ["-o", "uid=user,gid=user"]}'
See ./dmenu-mounter.py mount --help
for more details.
This program requires the dmenu
, lsblk
and pkexec
utilities, as well as the tabulate
and notify2
Python libraries. To install them on Debian, use:
sudo apt-get install dmenu util-linux policykit-1 python3-tabulate python3-notify2