Closed Manas8803 closed 3 weeks ago
ICON_ARC="$(__icon_map "Arc")"
This is not the correct usage of __icon_map
, which should be apparent by reading the README (or the code). It is a bash function, which can not return a string like you would expect from a function in C or javascript. As such, the usual pattern in bash programming when you need to get a value from a function which is not an i8 (exit code type) goes like this:
In our case, the global variable is $icon_result
.
So in your code it should be:
__icon_map "Arc"
export ICON_ARC="${icon_result}"
Description
I'm encountering difficulties using icons from the sketchybar-app-font library in my sketchybar configuration. Despite following the setup instructions, the icons are not displaying correctly.
Current Setup
My
icons.sh
file looks like this:Steps Taken
icon_map.sh
file from the sketchybar-app-font library.__icon_map
function fromicon_map.sh
, but this didn't resolve the issue.Expected Behavior
The icons should display correctly in my sketchybar setup.
Actual Behavior
The icons are not displaying as expected. It seems that the icon mappings are not being recognized or applied correctly.
Questions
Environment
Thank you for your help in resolving this issue!