freenode/#stumpwm - IRC Chatlog
Search
15:57:56
tosh
i've written something and i wonder if it would be appropriate to submit to stumpwm-contrib as a module. it basically implements a different group management style closer to the way i3wm does it. is that something that would belong in contrib or be of any interest in having?
16:01:38
JasonGrossman
tosh: Even if it wasn't useful, contrib could do with more examples of how to code modules.
16:14:10
sjl
PuercoPop: sorry, didn't see your response (about xcape/key release events) til now. I'm not sure I see how those that issue you linked would be related, but I don't know much about the internals of stumpwm (yet)
16:15:00
sjl
I'm trying to use xcape to map my capslock key to be ctrl when held down, but escape when pressed and released quickly. similarly for shifts -- I want it to be shift when held down and parens when pressed and released
16:15:41
sjl
I'd definitely be up for porting that functionality to stumpwm. But like you said, I think I'd need a key release hook to be able to do that.
16:30:50
tosh
JasonGrossman: ok i will give this a shot then. i have not ever written a module myself.
16:31:48
tosh
MichaelRaskin: it basically dynamically creates numbered groups as needed. for example if you switch to group 4 it will create it if it does not exist. if you switch away from a group and it is empty it will remove it. same for moving windows to/from groups etc.
16:33:51
MichaelRaskin
Not sure why ever delete groups, instead of just pre-creating ten groups on start
16:50:45
MichaelRaskin
Tags: each window can have one or more tags (case-insensitive strings without whitespace), they are persisted across StumpWM restarts (X11 windows properties), they can be used for various operations, I have bindings that replace group handling with tag-defined window set handling
16:52:57
MichaelRaskin
Initially for defining tag commands, but it is actually generally usable, there is a notion of WSE: window selection expressions. Basically, SQL is nice, but windows are so few we can afford to give up on optimmisations, and just write selection conditions in a natural s-expression form evaluating everything in a stupid way.
16:53:16
MichaelRaskin
JasonGrossman: there is a catch — it is across StumpWM restarts inside the same X session
16:53:48
MichaelRaskin
On the other hand, it is easy (and I do this) to assign tag automatically based on window class, role, title…
16:57:22
MichaelRaskin
Then I don't like that most of the things are completely global, so I create the frame layouts by functions, and assign tags to frames. Some special tags define that a set of frames (_usually_ one, but splits do not destroy this part of the tag assignment) should behave as a single whole when I say «put tag browser here instead of what there is now»
16:59:12
MichaelRaskin
So normally I have an almost-fixed layout and I use bindings that correspond to «this tagged group of frames (that happens to be just one frame) should now display all the windows with tag X instead of the current contents» (or all the windows with tag Y not assigned elsewhere in addition to current content)
17:01:55
MichaelRaskin
At some point I added an extra hook related to window properties, for example…
17:33:27
tosh
oh yeah, i wasn't suggesting using it. just felt familiar but couldn't remember what WM i was thinking of.
17:34:30
MichaelRaskin
Well, it's a good idea to understand why I am not using another implementation of some of these concepts
17:36:15
tosh
stump is nice in the same way as emacs to me. it's a nice platform to build the editor/wm you want on top of.
17:42:49
MichaelRaskin
I think there have been some changes that can force a change in the config, but nothing that is hard to accomodate in StumpWM
17:46:35
tychoish
I've always packaged through AUR on arch, and I haven't really updated my config in a reasonable way wrt modules and what not on laptops and desktops
17:59:00
sjl
What do folks do for calendar notifications with stumpwm? I recently switched to it and am mostly happy, but I've been late to a bunch of meetings because google calendar only notifies me when I happen to switch back to its tab.
18:01:46
MichaelRaskin
I write a text file that I use to generate remind config file, and then remind just runs a program to notify me at the time I specify
18:05:11
JasonGro`
Yep, I use my cell phone too, for alarms. For a calendar I use something in emacs. So my alarms and my calendar are not linked. Personally, I haven't found that a problem.
18:08:52
sjl
Cell phone would be okay for personal stuff, but I don't have work stuff on my phone so unfortunately that's not an option