Closed colmugx closed 3 months ago
I'm trying to replace a shell script with an equivalent Lua script using sbarlua, but the Lua version is not working as intended.
shell code:
sketchybar --set $NAME label="$INFO" icon.background.image="app.$INFO"
lua code:
front_app:subscribe({ "front_app_switched" }, function(env) front_app:set({ icon = { background = { image = { string = "app." .. env.INFO } } }, label = { string = env.INFO } }) end)
maybe i solved it.
make color transparent likes
transparent
front_app:set({ icon = { background = { image = { string = "app." .. env.INFO }, color = 0xffffffff } }, label = { string = env.INFO } })
I'm trying to replace a shell script with an equivalent Lua script using sbarlua, but the Lua version is not working as intended.
shell code:
lua code: