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 ++++++++++++++++++++++++ .udisk-glue.conf | 24 ------------------------ .xinitrc | 2 +- 3 files changed, 25 insertions(+), 25 deletions(-) create mode 100644 .config/.udisk-glue.conf delete mode 100644 .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" +} diff --git a/.udisk-glue.conf b/.udisk-glue.conf deleted file mode 100644 index b69d1dd..0000000 --- a/.udisk-glue.conf +++ /dev/null @@ -1,24 +0,0 @@ -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" -} diff --git a/.xinitrc b/.xinitrc index dc4513b..2f4d798 100644 --- a/.xinitrc +++ b/.xinitrc @@ -47,7 +47,7 @@ compton -b --config ~/.config/compton.conf & thunar --daemon & # automount drives -udisks-glue -c ~/.udisk-glue.conf --session & +udisks-glue -c ~/.config/.udisk-glue.conf --session & # wallpaper nitrogen --restore && -- cgit v1.2.1