forked from cedlemo/blingbling
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.udisks-glue.conf
executable file
·45 lines (40 loc) · 2.32 KB
/
.udisks-glue.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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"
#}