Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions stackline/query.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,19 @@ local function yabai(command, callback) -- {{{
callback = callback or function(x) return x end
command = '-m ' .. command

hs.task.new(
stackline.config:get'paths.yabai',
u.task_cb(callback), -- wrap callback in json decoder
command:split(' ')
local task = hs.task.new(
stackline.config:get 'paths.yabai',
u.task_cb(callback), -- wrap callback in json decoder
command:split(' ')
):start()
end -- }}}
if not task then
log.e(
"Error calling '" ..
stackline.config:get('paths.yabai') ..
" " .. command .. "'. " .. "Please check logs above this message to find out what went wrong."
)
end
end -- }}}

local function stackIdMapper(yabaiWindow) -- {{{
-- u.p(yabaiWindow)
Expand Down