Skip to content

Commit

Permalink
darwin(sketchybar): fix illegal stuff
Browse files Browse the repository at this point in the history
Signed-off-by: Flokkq <[email protected]>
  • Loading branch information
Flokkq committed Jan 10, 2025
1 parent 6d1eb2f commit a4ef2c1
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions home/darwin/sketchybar/sketchybar/helpers/init.lua
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
-- This will backfire soon enough :/
-- TODO: https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks/lua.section.md
local lua_path = "/nix/store/f6ani7d3cq70fd3j0qygbh08ms600xdh-SketchyBarLua-main/share/lua/5.4"
if lua_path then
package.cpath = package.cpath .. ";" .. lua_path .. "/?.so"
else
error("SB_LUA_PATH environment variable is not set")
end
package.cpath = package.cpath .. ";/Users/" .. os.getenv("USER") .. "/.local/share/sketchybar_lua/?.so"

-- Ensure the module is loaded correctly
sbar = require("sketchybar")
os.execute("(cd helpers && make)")

0 comments on commit a4ef2c1

Please sign in to comment.