Replies: 4 comments 5 replies
-
See [1] http://www.hammerspoon.org/docs/hs.spaces.html |
Beta Was this translation helpful? Give feedback.
-
Edit: I didn't post code because I haven't used Edit-2: Forgot to mention: you will also need to parse successful responses, which will be in JSON. I haven't checked how to do this; you can search for a Lua JSON parser, or you can use LPeg - which will probably enough especially if you only want to cherry-pick some details from the response. Edit-3: There's already a HS module that provides JSON to Lua-table decoder -- http://www.hammerspoon.org/docs/hs.json.html. Here is an example which uses Go: koekeishiya/yabai#1312 (comment). Note that, it uses |
Beta Was this translation helpful? Give feedback.
-
Thank you sharing Carlos!
…On Tue, Nov 8, 2022 at 12:40 AM Carlos Pérez Gutiérrez < ***@***.***> wrote:
Sorry, I'm now just using yabai but I do use hammerspoon for some tricks.
I showed in this presentation: https://youtu.be/UchF6s2j5r8?t=2269
—
Reply to this email directly, view it on GitHub
<#3254 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHBCRKRUAIEJVEMD7OCLDDWHHRVZANCNFSM53GB2HLA>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
I'm wondering if I could ditch tiling managers like Amethyst/Yabai with Hammerspoon. Something I would like to have is the Dynamic tiling when a new window enters/leaves. I'm not sure if there is a watcher for that. Should I use
hs.window.filter.new(true)
and have a global filter and then check all the visible windows?The idea of my tiling manager would be:
From the list above, those that aren't ticked are those that I don't know if it's possible to do with hammerspoon 🤔 If is possible, or if there is a spoon for my needs, could anyone share some tips for achieving this?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions