appicons patch

This commit is contained in:
Rumen
2025-10-24 16:20:39 +02:00
committed by A Frederick Christensen
parent 7c70e204b8
commit 010b4b70be
3 changed files with 300 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
![dwl bar-appicons patch example](example.png)
### Description
Adds support for app icons that can replace the tag indicator and tag name.
This feature is configurable through an additional option in `rules`.
Icons should work out of the box. Emojis require a special font like
[Noto Color Emoji](https://fonts.google.com/noto/specimen/Noto+Color+Emoji).
When one or more app icons are present in a tag, the tag name will be enclosed
by the outer separators (`outer_separator_beg` and `outer_separator_end`).
Additionally, the icons within the tag will be separated by `inner_separator`.
Each tag can display a maximum of `truncate_icons_after` icons, after which the
`truncate_symbol` will be shown.
**Inspiration:** [XMonad's DynamicIcons](https://hackage.haskell.org/package/xmonad-contrib-0.18.1/docs/XMonad-Hooks-DynamicIcons.html)
### Prerequisites
Make sure you have the [bar](/dwl/dwl-patches/raw/branch/main/patches/bar) patch.
### Download
- [main_2025-10-24](/dwl/dwl-patches/raw/branch/main/patches/bar-appicons/appicons.patch)
### Authors
- [rumenmitov](https://codeberg.org/rumenmitov)