mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-24 12:55:41 +02:00
Introduce a new icon particle. It follows the icon spec (https://specifications.freedesktop.org/icon-theme-spec/latest/index.html). Rendering logic is taken from fuzzel (using nanosvg + libpng), while loading logic is taken from sway. Standard usage is with `use-tag = false` which expands the provided string template and then loads the string as the icon name. There are settings to manually override the base paths, themes, etc. The second usage which is required for tray support is a special icon tag that transfers raw pixmaps. With `use-tag = true` it first expands the string, and then uses that output to find an icon pixmap tag. To reduce memory usage, themes are reference counted so they can be passed down the configuration stack without having to load them in multiple times. For programmability, a fallback particle can be specified if no icon/tag is found `fallback: ...`. And the new icon pixmap tag can be existence checked in map conditions using `+{tag_name}`. Future work to be done in follow up diffs: 1. Icon caching. Currently performs an icon lookup on each instantiation & a render on each refresh. 2. Theme caching. Changing theme directories results in a new "theme collection" being created resulting in the possibility of duplicated theme loading.
52 lines
2.6 KiB
Meson
52 lines
2.6 KiB
Meson
option(
|
|
'backend-x11', type: 'feature', value: 'enabled', description: 'XCB (X11) backend')
|
|
option(
|
|
'backend-wayland', type: 'feature', value: 'enabled', description: 'Wayland backend')
|
|
option(
|
|
'core-plugins-as-shared-libraries', type: 'boolean', value: false,
|
|
description: 'Compiles modules, particles and decorations as shared libraries, which are loaded on-demand')
|
|
|
|
option('plugin-alsa', type: 'feature', value: 'auto',
|
|
description: 'ALSA support')
|
|
option('plugin-backlight', type: 'feature', value: 'auto',
|
|
description: 'Backlight support')
|
|
option('plugin-battery', type: 'feature', value: 'auto',
|
|
description: 'Battery support')
|
|
option('plugin-clock', type: 'feature', value: 'auto',
|
|
description: 'Clock support')
|
|
option('plugin-cpu', type: 'feature', value: 'auto',
|
|
description: 'CPU monitoring support')
|
|
option('plugin-disk-io', type: 'feature', value: 'auto',
|
|
description: 'Disk I/O support')
|
|
option('plugin-dwl', type: 'feature', value: 'auto',
|
|
description: 'dwl (dwm for wayland) support')
|
|
option('plugin-foreign-toplevel', type: 'feature', value: 'auto',
|
|
description: 'Foreign toplevel (window tracking for Wayland) support')
|
|
option('plugin-mem', type: 'feature', value: 'auto',
|
|
description: 'Memory monitoring support')
|
|
option('plugin-mpd', type: 'feature', value: 'auto',
|
|
description: 'Music Player Daemon (MPD) support')
|
|
option('plugin-i3', type: 'feature', value: 'auto',
|
|
description: 'i3+Sway support')
|
|
option('plugin-label', type: 'feature', value: 'auto',
|
|
description: 'Label support')
|
|
option('plugin-network', type: 'feature', value: 'auto',
|
|
description: 'Network monitoring support')
|
|
option('plugin-pipewire', type: 'feature', value: 'auto',
|
|
description: 'Pipewire support')
|
|
option('plugin-pulse', type: 'feature', value: 'auto',
|
|
description: 'PulseAudio support')
|
|
option('plugin-removables', type: 'feature', value: 'auto',
|
|
description: 'Removables (USB sticks, CD-ROM etc) monitoring support')
|
|
option('plugin-river', type: 'feature', value: 'auto',
|
|
description: 'River support')
|
|
option('plugin-script', type: 'feature', value: 'auto',
|
|
description: 'Script support')
|
|
option('plugin-sway-xkb', type: 'feature', value: 'auto',
|
|
description: 'keyboard support for Sway')
|
|
option('plugin-xkb', type: 'feature', value: 'auto',
|
|
description: 'keyboard support for X11')
|
|
option('plugin-xwindow', type: 'feature', value: 'auto',
|
|
description: 'XWindow (window tracking for X11) support')
|
|
option('system-nanosvg', type: 'feature', value: 'disabled',
|
|
description: 'use system\'s nanosvg instead of the bundled version')
|