# # bashmount.conf # # Place in /etc/bashmount.conf for system wide configuration. # Place in ~/.config/bashmount/config for per-user configuration. # XDG_CONFIG_HOME is respected if it has been set. # Set whether to or not to use udisksctl. The default is to autodetect whether # it is available. This can be '0', '1', or 'auto'. #udisks='auto' # Set which sections to show in the output. These can be '0' or '1'. #show_internal='1' #show_removable='1' #show_optical='1' #show_commands='1' # Set whether to colourize the output. This can be '0' or '1'. #colourize='1' # Set whether to use unicode for pretty layout. This can be '0' or '1'. #pretty='1' # Set default mount options. The default is to pass no options. #mount_options='--options nosuid,noexec,noatime' # Set devices to exclude. Any device whose "lsblk -P" output contains a string # listed here will be hidden. The following key-value-pairs are printed: # lsblk -dPno NAME,TYPE,FSTYPE,LABEL,MOUNTPOINT,PARTLABEL,UUID [device_name] # The strings are matched using "grep -E" regular expression. #exclude=() ### ### This example will match any device with "Photosmart" in any field. ### exclude=( 'Photosmart' ) ### ### This example will match the device found at /dev/sda1. ### exclude=( 'NAME="sda1"' ) ### ### This example will match /dev/sda1, /dev/sda2 and /dev/sda3. ### exclude=( 'NAME="sda[1-3]"' ) ### ### This example matches several different devices. Note that the array can be ### split over multiple lines for convenience. ### exclude=( 'FSTYPE="ext3"' ) ### exclude+=( 'LABEL="secret"' ) ### exclude+=( 'MOUNTPOINT="/"' ) ### exclude+=( 'UUID="0c4d6d9c-87a2-4579-b2ae-35b0790c718a"' ) ### # Set filemanager command to use when performing the "open" command. The mount # point is passed as the first argument. The default is to open the directory # within your terminal. # Uncomment this example to launch a graphical file manager. #filemanager() { # /usr/bin/nautilus "$1" & >/dev/null 2>&1 #} # Uncomment this example to launch midnight commander in a new window. #filemanager() { # /usr/bin/uxterm -wf -e /usr/bin/mc "$1" & >/dev/null 2>&1 #} # Set custom commands. Set "customX_show" to '0' to disable or '1' to enable. # If enabled, the custom commands will be shown in the device sub-menu. The # description and command functions can be set to anything you desire. The # device name (e.g. /dev/sdb1) is passed as the first and only argument. # A maximum of 3 custom actions are configurable. #custom4_show='0' #custom4_desc='changeme' #custom4_command() { # sudo mount --options remount,ro "$1" "/mnt/${1##*/}" #} #custom5_show='0' #custom5_desc='changeme' #custom5_command() { # #} #custom6_show='0' #custom6_desc='changeme' #custom6_command() { # #} # Set custom commands to be run automatically after mounting or unmounting. # post_mount is run immediately after a successful mount operation, and # post_unmount is run immediately after a successful unmount operation. # Set "run_post_mount" to '0' to disable or '1' to enable. #run_post_mount='0' #post_mount() { # #} # Set "run_post_unmount" to '0' to disable or '1' to enable. #run_post_unmount='0' #post_unmount() { # #}