removables - This module detects removable drives
Contents
Configuration
┌───────────────┬─────────────────┬─────┬───────────────────────────────────────────────────────────────┐
│ Name │ Type │ Req │ Description │
├───────────────┼─────────────────┼─────┼───────────────────────────────────────────────────────────────┤
│ left-spacing │ int │ no │ Space, in pixels, in the left side of each rendered volume │
├───────────────┼─────────────────┼─────┼───────────────────────────────────────────────────────────────┤
│ right-spacing │ int │ no │ Space, in pixels, on the right side of each rendered volume │
├───────────────┼─────────────────┼─────┼───────────────────────────────────────────────────────────────┤
│ spacing │ int │ no │ Short-hand for setting both left-spacing and right-spacing │
├───────────────┼─────────────────┼─────┼───────────────────────────────────────────────────────────────┤
│ ignore │ list of strings │ no │ List of device paths that should be ignored (e.g. │
│ │ │ │ /dev/mmcblk0, or /dev/mmcblk0p1) │
└───────────────┴─────────────────┴─────┴───────────────────────────────────────────────────────────────┘
Description
This module detects removable drives (USB sticks, CD-ROMs) and instantiates the provided content particle
for each detected drive.
Examples
bar:
right:
- removables:
content:
map:
conditions:
~mounted:
string:
on-click: udisksctl mount -b {device}
text: "{label}"
mounted:
string:
on-click: udisksctl unmount -b {device}
text: "{label}"
deco: {underline: {size: 2, color: ffffffff}}
Name
removables - This module detects removable drives
See Also
yambar-modules(5), yambar-particles(5), yambar-tags(5), yambar-decorations(5)
2024-04-20 yambar-modules-removables(5)
