yambar-modules-removables - Man Page

This module detects removable drives

Description

This module detects removable drives (USB sticks, CD-ROMs) and instantiates the provided content particle for each detected drive.

Tags

NameTypeDescription
vendorstringName of the drive vendor
modelstringDrive model name
opticalboolTrue if the drive is an optical drive (CD-ROM, DVD-ROM etc)
audioboolTrue if an optical drive has an audio CD inserted (i.e. this property is always false for non-optical drives).
devicestringVolume device name (typically /dev/sd?)
sizerangeThe volume's size, in bytes. The tag's maximum value is set to the underlying block device's size
labelstringThe volume's label, or its size if it has no label
mountedboolTrue if the volume is mounted
mount_pointstringPath where the volume is mounted, or "" if it is not mounted

Configuration

NameTypeReqDescription
left-spacingintnoSpace, in pixels, in the left side of each rendered volume
right-spacingintnoSpace, in pixels, on the right side of each rendered volume
spacingintnoShort-hand for setting both left-spacing and right-spacing
ignorelist of stringsnoList of device paths that should be ignored (e.g. /dev/mmcblk0, or /dev/mmcblk0p1)

Examples

  bar:
    right:
      - removables:
          content:
            map:
              tag: mounted
              values:
                false:
                  string:
                    on-click: udisksctl mount -b {device}
                    text: "{label}"
                true:
                  string:
                    on-click: udisksctl unmount -b {device}
                    text: "{label}"
                    deco: {underline: {size: 2, color: ffffffff}}

See Also

yambar-modules(5), yambar-particles(5), yambar-tags(5), yambar-decorations(5)

Referenced By

yambar-modules(5).

2022-08-26