yambar-modules-removables(5)
π removables β the yambar module that spots your removable drives
okay so this is yambar-modules-removables, straight out of the File Formats Manual, and bestie it is such a fun little module. let me tell you everything π«Ά
β¨ NAME β¨
removables β this module detects removable drives. that's it, that's the whole vibe. π₯
πΈ DESCRIPTION πΈ
okay so picture this: you plug in a USB stick or slide a CD-ROM in, and removables is right there, detecting every removable drive like the main character it is. β¨ for each drive it finds, it instantiates the content particle you gave it β so every drive gets its own little render moment. no cap, it's giving observant. π
π TAGS π
every drive comes with these tags, and honestly? the range. π
vendorβ string β the name of the drive vendor π·οΈmodelβ string β the drive's model name β¨opticalβ bool βtrueif the drive is an optical drive (CD-ROM, DVD-ROM, etc.) πΏaudioβ bool βtrueif an optical drive has an audio CD inserted. lowkey important: this property is always false for non-optical drives, periodt. π΅deviceβ string β the volume device name (typically/dev/sd?) πsizeβ range β the volume's size, in bytes. and the tag's maximum value is set to the underlying block device's size β cute detail, had to mention it π«Άlabelβ string β the volume's label, or its size if it has no label (fallback queen π )mountedβ bool βtrueif the volume is mounted βmount_pointβ string β the path where the volume is mounted, or""if it's not mounted π
π CONFIGURATION π
the config options, bestie, they're so manageable:
left-spacingβ int β not required β space, in pixels, on the left side of each rendered volume πΈright-spacingβ int β not required β space, in pixels, on the right side of each rendered volume πΈspacingβ int β not required β short-hand for setting bothleft-spacingandright-spacingat once. efficiency icon β¨ignoreβ list of strings β not required β list of device paths that should be ignored (e.g./dev/mmcblk0, or/dev/mmcblk0p1) π
π¦ EXAMPLES π¦
here's the moment you've been waiting for β look at this bar config slaying:
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}}
see what it's doing? when the volume is not mounted it shows {label} and clicking runs udisksctl mount -b {device}; when it is mounted it still shows {label} but the click flips to udisksctl unmount -b {device}, plus it gets a decorated underline (size: 2, color: ffffffff). iconic behavior, honestly. ππ
π SEE ALSO π
go read these too, iykyk: yambar-modules(5), yambar-particles(5), yambar-tags(5), yambar-decorations(5)
okay that's the whole page bestie!! this one's from the yambar family, dated 2024-04-22, and it lives at yambar-modules-removables(5) in the File Formats Manual β go forth and detect those drives, you're gonna ate πππ
π¦ where this page comes from
- opensuse-leap 16.0: yambar 1.11.0-bp160.1.14 Β· MIT
- opensuse-leap 16.0: yambar 1.11.0-bp160.1.14 Β· MIT
- opensuse-leap 16.0: yambar 1.11.0-bp160.1.14 Β· MIT
- opensuse-leap 16.0: yambar 1.11.0-bp160.1.14 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms