From 2e88d9b4470d9243e59e8c685ba7de6c08438627 Mon Sep 17 00:00:00 2001 From: xero Date: Sat, 22 Mar 2014 23:16:29 -0400 Subject: move .udisk-glue.conf into .config dir --- .config/.udisk-glue.conf | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .config/.udisk-glue.conf (limited to '.config/.udisk-glue.conf') diff --git a/.config/.udisk-glue.conf b/.config/.udisk-glue.conf new file mode 100644 index 0000000..b69d1dd --- /dev/null +++ b/.config/.udisk-glue.conf @@ -0,0 +1,24 @@ +filter disks { + optical = false + partition_table = false + usage = filesystem + } + +match disks { + automount = true + post_mount_command = "echo 'naughty.notify({title = \"░░░░▒▒▒▒▓▓▓▓████ disk mount ████▓▓▓▓▒▒▒▒░░░░\", text = \"usb mounted : %device_file on %mount_point\", timeout = 10})' | awesome-client" + post_unmount_command = "echo 'naughty.notify({title = \"░░░░▒▒▒▒▓▓▓▓████ disk unmount ████▓▓▓▓▒▒▒▒░░░░\", text = \"usb unmounted : %device_file from %mount_point\", timeout = 10})' | awesome-client" + post_removal_command = "echo 'naughty.notify({title = \"░░░░▒▒▒▒▓▓▓▓████ usb disconnected ████▓▓▓▓▒▒▒▒░░░░\", text = \"usb disconnected : %device_file\", timeout = 10})' | awesome-client" + } + +filter optical { + optical = true + } + +match optical { + automount = true + automount_options = ro + post_mount_command = "echo 'naughty.notify({title = \"░░░░▒▒▒▒▓▓▓▓████ cd-rom mount ████▓▓▓▓▒▒▒▒░░░░\", text = \"cd-rom mounted : %device_file on %mount_point\", timeout = 10})' | awesome-client" + post_unmount_command = "echo 'naughty.notify({title = \"░░░░▒▒▒▒▓▓▓▓████ cd-rom unmount ████▓▓▓▓▒▒▒▒░░░░\", text = \"cd-rom unmounted : %device_file from %mount_point\", timeout = 10})' | awesome-client" + post_removal_command = "echo 'naughty.notify({title = \"░░░░▒▒▒▒▓▓▓▓████ cd-rom eject ████▓▓▓▓▒▒▒▒░░░░\", text = \"cd-rom ejected : %device_file\", timeout = 10})' | awesome-client" +} -- cgit v1.2.1