From 8618074e9fed6968cae7f7809778ab8b8afae77a Mon Sep 17 00:00:00 2001 From: earthsea98 Date: Fri, 4 Apr 2025 14:17:42 -0700 Subject: [PATCH] Update sketchybarrc Fix so that it actually loads the lua helpers (points to the right directory) before this fix, sketchybar would not populate --- sketchybar/sketchybarrc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/sketchybar/sketchybarrc b/sketchybar/sketchybarrc index 95ece11..36796b7 100755 --- a/sketchybar/sketchybarrc +++ b/sketchybar/sketchybarrc @@ -1,5 +1,12 @@ #!/usr/bin/env lua --- Load the sketchybar-package and prepare the helper binaries +-- Determine the configuration directory +local config_dir = os.getenv("HOME") .. "/.config/sketchybar" + +-- Prepend the configuration directory to the module search paths +package.path = config_dir .. "/?.lua;" .. config_dir .. "/?/init.lua;" .. package.path +package.cpath = config_dir .. "/?.so;" .. package.cpath + +-- Now require the modules require("helpers") require("init")