filter disks {
           optical = false
           partition_table = false
           usage = filesystem
       }

filter optical {
          optical = true
          }

match disks {
           automount = true
           automount_options = sync
           post_mount_command = "echo \'udisks_glue:mount_device(\"%device_file\",\"%mount_point\",\"Usb\")\' | awesome-client"
           post_unmount_command = "echo \'udisks_glue:unmount_device(\"%device_file\",\"%mount_point\",\"Usb\")\' | awesome-client"
           post_removal_command = "echo \'udisks_glue:remove_device(\"%device_file\",\"%mount_point\",\"Usb\")\' | awesome-client"
       }

# Use this instead if you want to disable automount on disks.
#match disks {
#	automount = false
#	automount_options = sync
#	post_insertion_command = "echo \'udisks_glue:insert_device(\"%device_file\",\"%mount_point\",\"Usb\")\' | awesome-client"
#	post_mount_command = "echo \'udisks_glue:mount_device(\"%device_file\",\"%mount_point\",\"Usb\")\' | awesome-client"
#	post_unmount_command = "echo \'udisks_glue:unmount_device(\"%device_file\",\"%mount_point\",\"Usb\")\' | awesome-client"
#	post_removal_command = "echo \'udisks_glue:remove_device(\"%device_file\",\"%mount_point\",\"Usb\")\' | awesome-client"
#}

match optical {
          automount = true
          automount_options = ro
          post_mount_command = "echo \'udisks_glue:mount_device(\"%device_file\",\"%mount_point\",\"Cdrom\")\' | awesome-client"
          post_unmount_command = "echo \'udisks_glue:unmount_device(\"%device_file\",\"%mount_point\",\"Cdrom\")\' | awesome-client"
          post_removal_command = "echo \'udisks_glue:remove_device(\"%device_file\",\"%mount_point\",\"Cdrom\")\' | awesome-client"
}

# Use this instead if you want to disable automount of optical devices.
#match optical {
#	automount = false
#	automount_options = ro
#	post_insertion_command = "echo \'udisks_glue:insert_device(\"%device_file\",\"%mount_point\",\"Cdrom\")\' | awesome-client"
#	post_mount_command = "echo \'udisks_glue:mount_device(\"%device_file\",\"%mount_point\",\"Cdrom\")\' | awesome-client"
#	post_unmount_command = "echo \'udisks_glue:unmount_device(\"%device_file\",\"%mount_point\",\"Cdrom\")\' | awesome-client"
#	post_removal_command = "echo \'udisks_glue:remove_device(\"%device_file\",\"%mount_point\",\"Cdrom\")\' | awesome-client"
#}
