diff options
author | Christian Hesse <mail@eworm.de> | 2013-09-24 12:31:08 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2013-09-24 12:31:08 +0200 |
commit | 8761f34ab31e95f80d36486623cce4dabb89055e (patch) | |
tree | 610fb771788407c5085e568f16ed318582a4fc74 | |
parent | 5ac1bc01dcc7f8a2d4585a3bf81ae28aefadbeaf (diff) | |
download | udev-block-notify-8761f34ab31e95f80d36486623cce4dabb89055e.tar.gz udev-block-notify-8761f34ab31e95f80d36486623cce4dabb89055e.tar.zst |
add icon for device mapper, change icon for loop
-rw-r--r-- | udev-block-notify.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/udev-block-notify.c b/udev-block-notify.c index 6116bd5..9c97e9f 100644 --- a/udev-block-notify.c +++ b/udev-block-notify.c @@ -20,11 +20,12 @@ #define DEBUG 0 #endif +#define ICON_DEVICE_MAPPER "media-playlist-shuffle" #define ICON_DRIVE_HARDDISK "drive-harddisk" #define ICON_DRIVE_HARDDISK_IEEE1394 "drive-harddisk-ieee1394" #define ICON_DRIVE_HARDDISK_USB "drive-harddisk-usb" #define ICON_DRIVE_OPTICAL "drive-optical" -#define ICON_LOOP "processor" +#define ICON_LOOP "media-playlist-repeat" #define ICON_MEDIA_FLASH "media-flash" #define ICON_MEDIA_FLOPPY "media-floppy" #define ICON_MEDIA_REMOVABLE "media-removable" @@ -219,6 +220,8 @@ int main (int argc, char ** argv) { icon = ICON_MEDIA_ZIP; } else if (udev_device_get_property_value(dev, "ID_MEDIA_PLAYER") != NULL) { icon = ICON_MULTIMEDIA_PLAYER; + } else if (udev_device_get_property_value(dev, "DM_NAME") != NULL) { + icon = ICON_DEVICE_MAPPER; } else if (strncmp(device, "loop", 4) == 0 || strncmp(device, "ram", 3) == 0) { icon = ICON_LOOP; |