.udisks-glue.conf 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. filter disks {
  2. optical = false
  3. partition_table = false
  4. usage = filesystem
  5. }
  6. filter optical {
  7. optical = true
  8. }
  9. match disks {
  10. automount = true
  11. automount_options = sync
  12. post_mount_command = "echo \'udisks_glue:mount_device(\"%device_file\",\"%mount_point\",\"Usb\")\' | awesome-client"
  13. post_unmount_command = "echo \'udisks_glue:unmount_device(\"%device_file\",\"%mount_point\",\"Usb\")\' | awesome-client"
  14. post_removal_command = "echo \'udisks_glue:remove_device(\"%device_file\",\"%mount_point\",\"Usb\")\' | awesome-client"
  15. }
  16. # Use this instead if you want to disable automount on disks.
  17. #match disks {
  18. # automount = false
  19. # automount_options = sync
  20. # post_insertion_command = "echo \'udisks_glue:insert_device(\"%device_file\",\"%mount_point\",\"Usb\")\' | awesome-client"
  21. # post_mount_command = "echo \'udisks_glue:mount_device(\"%device_file\",\"%mount_point\",\"Usb\")\' | awesome-client"
  22. # post_unmount_command = "echo \'udisks_glue:unmount_device(\"%device_file\",\"%mount_point\",\"Usb\")\' | awesome-client"
  23. # post_removal_command = "echo \'udisks_glue:remove_device(\"%device_file\",\"%mount_point\",\"Usb\")\' | awesome-client"
  24. #}
  25. match optical {
  26. automount = true
  27. automount_options = ro
  28. post_mount_command = "echo \'udisks_glue:mount_device(\"%device_file\",\"%mount_point\",\"Cdrom\")\' | awesome-client"
  29. post_unmount_command = "echo \'udisks_glue:unmount_device(\"%device_file\",\"%mount_point\",\"Cdrom\")\' | awesome-client"
  30. post_removal_command = "echo \'udisks_glue:remove_device(\"%device_file\",\"%mount_point\",\"Cdrom\")\' | awesome-client"
  31. }
  32. # Use this instead if you want to disable automount of optical devices.
  33. #match optical {
  34. # automount = false
  35. # automount_options = ro
  36. # post_insertion_command = "echo \'udisks_glue:insert_device(\"%device_file\",\"%mount_point\",\"Cdrom\")\' | awesome-client"
  37. # post_mount_command = "echo \'udisks_glue:mount_device(\"%device_file\",\"%mount_point\",\"Cdrom\")\' | awesome-client"
  38. # post_unmount_command = "echo \'udisks_glue:unmount_device(\"%device_file\",\"%mount_point\",\"Cdrom\")\' | awesome-client"
  39. # post_removal_command = "echo \'udisks_glue:remove_device(\"%device_file\",\"%mount_point\",\"Cdrom\")\' | awesome-client"
  40. #}