Skip to content

Mount or unmount a partition selected using dmenu.

License

Notifications You must be signed in to change notification settings

pkkm/dmenu-mounter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dmenu-mounter

This program displays a list of devices using dmenu and mounts or unmounts the one you select.

./screenshot.png

Usage

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.

Dependencies

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

About

Mount or unmount a partition selected using dmenu.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages