It's possible to show icons in drun. dmenu also has the option of showing icons, but it's a little more complicated. The result does not include the icon, so we need to build 2 dict()s. The first with the label+icon string to pass to rofi, and another with just the label to lookup the action_id when we get menu_result.
It's possible to show icons in drun. dmenu also has the option of showing icons, but it's a little more complicated. The result does not include the icon, so we need to build 2
dict()
s. The first with thelabel+icon
string to pass to rofi, and another with just thelabel
to lookup theaction_id
when we getmenu_result
.We need to parse the icon theme from
kdeglobals
, as it defaults toAdwaita
icons.