-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add app/window/screen events #72
Comments
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
With just WindowCreated and WindowClosed, we should be able to create a nice one-workspace clone of http://xmonad.org. |
+1 |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Is there already an API to use to get notified of launched Applications? |
This comment was marked as resolved.
This comment was marked as resolved.
Nice! Looking forward to it :-). |
This comment was marked as resolved.
This comment was marked as resolved.
I've got a better idea of how to implement this now. |
Working on this now. |
Thinking of making this a generic module like |
I need to do this on a night when I have a fresh mind and no distractions. Tonight I had neither. :/ |
Would be great, if we can get these events – https://github.com/jigish/slate/wiki/Events How about some thing like Maybe |
add key pressed/key released events benefit:
|
@muescha That was done in eventtap which is coming in 1.1 |
i would prefer the @iakshay syntax |
@muescha For input events, the eventtap module is pretty much set in stone at this point. This issue is for other events, which need more thought. |
but then it looks more consistent if it have always the same syntax and fits your idea for making a generic module for listener (or Event) |
Moving to mjolnir-io/ext#14. |
this would be the final piece of the puzzle for https://github.com/nathankot/mjolnir.tiling 😄 although can't seem to find mjolnir-io/ext ?? |
+1, @sdegutis can you link to the issue? |
+1 for events |
Yeah, I'd love that too, shouldn't we reopen this? |
@sdegutis 👍 as well, also can't find mjolnir-io/ext. |
I'm currently working on events. |
@sdegutis thanks for the update 😄 |
awesome! looking forward for event driven tiling WM on osx :) (in fact, the only thing keeping me from using osx is not having xmonad there) |
@svalaskevicius I hope we convert you eventually 😛 |
@nathankot thanks :) |
@svalaskevicius yep it works, but doesn't respond to new windows being added (so you'll have to re-tile manually), the tiling project is young so don't think there are videos out in the wild but could do one of my workflow if you want? |
it would be definitely interesting to see! - it's usually one of the first things I look for when I hear of a new tiling WM :) |
@nathankot The last time I checked, the tiling project did not work for multiple monitors. Has that issue been addressed? |
@creese don't use multiple screens myself but this may have fixed it: nathankot/mjolnir.tiling#9 , if not , please make a new issue at mjolnir.tiling ;) |
Any progress on event handling so far? |
They're basically finished in the Swift window manager I was writing. Main problem is there's no UI in that one yet. |
Hmmm, but is everything else working? I for one don't need a UI to use it... Is it mjolnir compatible? I'd love to use some modules we already have... |
@szymonkaliski It's all working, but I haven't finished porting all the functions (it's so tedious). It's probably already Mjolnir-compatible, but if not, it could easily be made to be so. I have two versions: one that uses Lua very similarly to Hammerspoon (a Mjolnir fork), and one that's meant to be one you write in pure Swift (in Xcode), and compile into an app that you can run. Since the work was split in two repos, each repo might have an API function or two that the other doesn't, so I'm not entirely which has what. Anyway, I plan to spend an hour or so today cleaning that up and making both repos presentable, and writing down the current status of each in their own READMEs. There'll likely still be some work needed to port some API functions over from Mjolnir, and if that's the case, I'd love some help. |
Oh right, I remember what I planned for the Swift-only version: it would be a framework that you could just import, and you'd just make a new Swift app that embeds and links to this framework, and uses it in |
@szymonkaliski turned it into a framework at https://github.com/sdegutis/WindowManager fwiw |
FWIW, I expect that the Hammerspoon modules for app/window/screen events would port over pretty easily. The code is at: app events: https://github.com/Hammerspoon/hammerspoon/blob/master/extensions/application/watcher.m (some of this stuff was inherited from Mjolnir's various modules anyway, so it may not all need to be ported over :) |
@sdegutis https://github.com/sdegutis/WindowManager looks very cool, I hope I'll have some time to play with it soon! |
App events:
Window events:
Screen events:
The text was updated successfully, but these errors were encountered: