Mounting and unmounting linux devices as a user with dmenu
and pmount
.
Runtime Dependencies: dmenu or dmenu2, and pmount.
Installation: Either get the sources from this repository, or from hackage.
Usage:
-
dmenu-pmount [OPTIONS] [-- DMENUOPTIONS]
Spawns a
dmenu
process to let the user select devices from/dev
to mount withpmount
or unmount withpumount
.All arguments, after the first
--
argument, are directly passed todmenu
.
Options:
-
-u, --unmount
Unmount instead of mount devices.
-
-f, --filter <DevPrefixList>
Only display devices whose filenames have a certain prefix.
Example:
dmenu-pmount -f sd cdrom
only displays devices beginning withsd
orcdrom
, e.g./dev/sda2
. -
-k, --kilo <Natural>
How much byte are represented by 1 KB? Usually 1024 (default) or 1000.
The application is build with the dmenu Haskell bindings, which support customizing the dmenu commandline options in a configuration file.