crissNb / Dynamic-Island-Sketchybar

Dynamic Island on iPhone 14 Pro implementation on Mac using Sketchybar
MIT License
410 stars 21 forks source link

i am trying to run this but its giving me an error #45

Open scandicwebsolutions opened 11 months ago

scandicwebsolutions commented 11 months ago

No matching processes belonging to you were found make: `islandhelper' is up to date. /Users/malikwaleed/.config/dynamic-island-sketchybar/item.sh: line 10: 54062 Illegal instruction: 4 "$DYNAMIC_ISLAND_DIR"/helper/islandhelper "$ISLANDHELPER" /Users/malikwaleed/.config/dynamic-island-sketchybar/item.sh: line 31: / 2 - : syntax error: operand expected (error token is "/ 2 - ")

xsova commented 1 month ago

I'm running into the same issue. It looks like it's not reading $P_DYNAMIC_ISLAND_DEFAULT_WIDTH.

xsova commented 1 month ago

I just figured it out. The instructions were a bit unclear, but here's the solution:

  1. After creating your configuration file (like mbp2021_14.sh) in the /userconfigs directory, you need to run the following command from the project root:

    cp userconfigs/mbp2021_14.sh userconfig.sh

    _Note: use your respective userconfigs/mbp file, I was able to have it work as intended with the example file using a mbp202314, ymmv

  2. The userconfigs directory is essentially a staging area for the userconfig.sh file located in the root directory. Until the userconfig.sh file is correctly set up, the system won’t know the values for any environment variables.