Logs: liberachat/#xmonad
| 2024-06-14 03:59:43 | <geekosaur> | the alternative is to use ComboP, which lets you automatically assign windows to panes using what amounts to a ManageHook |
| 2024-06-14 04:00:35 | <geekosaur> | (WindowNavigation is what defines and implements Move) |
| 2024-06-14 04:09:40 | <haskellbridge> | <iqubic (she/her)> Wait... actually, I do want ComboP. |
| 2024-06-14 04:10:48 | <haskellbridge> | <iqubic (she/her)> Why does ComboP also advocate for WindowNavigation? |
| 2024-06-14 04:10:57 | geekosaur | is heading to bed soon… past midnight and he got maybe 4 hours of sleep last night |
| 2024-06-14 04:12:14 | <geekosaur> | because you might want to move a window later |
| 2024-06-14 04:13:05 | <haskellbridge> | <iqubic (she/her)> Oh... I thought ComboP forced you to have all matching windows in the Master Pane. |
| 2024-06-14 04:13:40 | <geekosaur> | only at first |
| 2024-06-14 04:14:35 | <haskellbridge> | <iqubic (she/her)> That's the part I was missing. Thanks. |
| 2024-06-14 04:14:35 | <geekosaur> | when a new window appears, windows that match the Property will go to the master, others to the slave. if you also include WindowNavigation then you can arbitrarily move windows afterward |
| 2024-06-14 04:32:41 | <haskellbridge> | <iqubic (she/her)> If I want to send a message to just one of the sub-layouts in a ComboP layout? How can I do that? It looks like ComboP sends messages to the super layout and both sub-layouts. https://github.com/xmonad/xmonad-contrib/blob/master/XMonad/Layout/ComboP.hs#L127 |
| 2024-06-14 06:21:16 | × | ft quits (~ft@p3e9bcb39.dip0.t-ipconnect.de) (Quit: leaving) |
| 2024-06-14 08:30:42 | → | cfricke joins (~cfricke@user/cfricke) |
| 2024-06-14 08:47:24 | → | ChubaDuba joins (~ChubaDuba@37.112.230.146) |
| 2024-06-14 08:52:38 | → | rascasse joins (~rascasse@user/diep) |
| 2024-06-14 09:18:13 | × | cfricke quits (~cfricke@user/cfricke) (Ping timeout: 268 seconds) |
| 2024-06-14 09:31:48 | → | cfricke joins (~cfricke@user/cfricke) |
| 2024-06-14 10:22:36 | × | rascasse quits (~rascasse@user/diep) (Ping timeout: 256 seconds) |
| 2024-06-14 11:22:01 | → | rascasse joins (~rascasse@user/diep) |
| 2024-06-14 12:34:03 | → | ChubaDuba_ joins (~ChubaDuba@5.166.233.249) |
| 2024-06-14 12:36:29 | × | ChubaDuba quits (~ChubaDuba@37.112.230.146) (Ping timeout: 240 seconds) |
| 2024-06-14 13:11:44 | × | cfricke quits (~cfricke@user/cfricke) (Quit: WeeChat 4.2.2) |
| 2024-06-14 13:13:07 | → | Digit joins (~user@user/digit) |
| 2024-06-14 13:40:32 | × | ChubaDuba_ quits (~ChubaDuba@5.166.233.249) (Quit: Leaving) |
| 2024-06-14 13:52:54 | → | ft joins (~ft@p3e9bcb39.dip0.t-ipconnect.de) |
| 2024-06-14 14:21:43 | × | rascasse quits (~rascasse@user/diep) (Remote host closed the connection) |
| 2024-06-14 14:51:59 | → | cfricke joins (~cfricke@user/cfricke) |
| 2024-06-14 15:24:47 | <geekosaur> | XMonad.Layout.MessageControl, I think |
| 2024-06-14 15:42:53 | × | cfricke quits (~cfricke@user/cfricke) (Ping timeout: 240 seconds) |
| 2024-06-14 15:47:11 | <haskellbridge> | <柱間 (@senju_hashirama:aria-net.org)> any way of generating a cool keybinding list/diagram like the one available at the xmonad website? |
| 2024-06-14 16:01:24 | <geekosaur> | someone recently asked where the code for generating that diagram was and we couldn't find it |
| 2024-06-14 16:01:58 | <geekosaur> | I know it at least used to be out there, because it was used to add the mod-shift-/ binding back in 0.9 |
| 2024-06-14 16:48:40 | <haskellbridge> | <柱間 (@senju_hashirama:aria-net.org)> ic |
| 2024-06-14 16:58:52 | <geekosaur> | don't see it in the archived old repo either |
| 2024-06-14 18:15:07 | <haskellbridge> | <iqubic (she/her)> How does X.L.MessageControl work? How would I use that with Combo? |
| 2024-06-14 19:00:07 | <haskellbridge> | <柱間 (@senju_hashirama:aria-net.org)> i wish we have a repo listing a lot of user's config, so we could look up what people have done so far |
| 2024-06-14 19:00:27 | <haskellbridge> | <柱間 (@senju_hashirama:aria-net.org)> this would mitigate (partially) the problem of "how i do X or Y?" |
| 2024-06-14 19:51:21 | <geekosaur> | we had one but it's bitrotted (https://wiki.haskell.org/Xmonad/Config_archive). there's a stalled ticket on updating it (https://github.com/xmonad/xmonad-contrib/issues/160) |
| 2024-06-14 19:59:02 | <haskellbridge> | <柱間 (@senju_hashirama:aria-net.org)> thanks |
| 2024-06-14 20:02:44 | <geekosaur> | the main developers (liskin, Solid, and myself) have links to our configs in the README. (if you think mine's complex, wait until you see liskin's…) |
| 2024-06-14 20:04:22 | <geekosaur> | iqubic: it wraps messages intended for sublayouts. you send a wrapped message, and modify (or wrap) the sublayout to unescape it |
| 2024-06-14 20:04:28 | <geekosaur> | it's not especially friendly |
| 2024-06-14 20:04:48 | <geekosaur> | but the interaction of layouts and messages is a somewhat tricky part of xmonad |
| 2024-06-14 20:08:14 | <haskellbridge> | <柱間 (@senju_hashirama:aria-net.org)> im using a package that can limit the number of visible windows to 2 , and i thought it was hacky, lol |
| 2024-06-14 20:08:27 | <haskellbridge> | <柱間 (@senju_hashirama:aria-net.org)> * module |
| 2024-06-14 20:11:07 | <geekosaur> | it's not that hacky |
| 2024-06-14 20:11:28 | <geekosaur> | it's a pretty simple thing to do in runLayout |
| 2024-06-14 20:12:18 | <haskellbridge> | <柱間 (@senju_hashirama:aria-net.org)> i suck at haskell, so it was a bit hard for me |
| 2024-06-14 20:13:23 | <haskellbridge> | <柱間 (@senju_hashirama:aria-net.org)> https://kf8nh.com/_matrix/media/v3/download/aria-net.org/ifjTdCcENkCmtTguQXqrMNFc/image.png |
| 2024-06-14 20:13:50 | <geekosaur> | yes |
| 2024-06-14 20:16:00 | <haskellbridge> | <iqubic (she/her)> I would like to look at liskin's config, but I can't seem to find it. |
| 2024-06-14 20:36:08 | <geekosaur> | oh, sorry, it's at the end of the tutorial, not the readme. https://github.com/liskin/dotfiles/tree/home/.xmonad |
| 2024-06-14 21:06:12 | → | dysthesis joins (~dysthesis@user/dysthesis) |
| 2024-06-14 21:07:46 | <haskellbridge> | <柱間 (@senju_hashirama:aria-net.org)> geekosaur: i stopped caring about red-shift after getting red glasses... |
| 2024-06-14 21:08:21 | <haskellbridge> | <柱間 (@senju_hashirama:aria-net.org)> i think im okay with the actual state of my config, just wanted to see which cool things others user are using |
| 2024-06-14 21:08:47 | <haskellbridge> | <柱間 (@senju_hashirama:aria-net.org)> i changed to xmonad because stumpwm has not so hackable to me, and xmonad did an awesome job |
| 2024-06-14 21:33:47 | <geekosaur> | no, awesome's the other one 😛 |
| 2024-06-14 22:06:16 | <haskellbridge> | <adamame> I was wondering, is there a function in xmonad contrib like runOrRaise but it checks for a window with a given class in the current workspace only? |
| 2024-06-14 22:06:47 | <haskellbridge> | <iqubic (she/her)> Does "additionalKeysP" let me do key chords? For example: something like "M-a s" to trigger a command. That's "Mod + a then s" to invoke a command. |
| 2024-06-14 22:06:53 | <haskellbridge> | <iqubic (she/her)> * That would be |
| 2024-06-14 22:09:14 | <geekosaur> | yes. but I wouldn't call that a chord; that would be holding down mod, a, and s all together |
| 2024-06-14 22:09:49 | <geekosaur> | (which isn't supported by the core; you'd have to do it in a handleEventHook) |
| 2024-06-14 22:10:40 | <geekosaur> | basically as you wrote it. see for example https://github.com/geekosaur/xmonad.hs/blob/hilfy-2023/xmonad.hs#L225 |
| 2024-06-14 22:10:50 | <geekosaur> | (mod-control-C, u, e) |
| 2024-06-14 22:11:57 | <haskellbridge> | <iqubic (she/her)> Yeah, I'm looking at that, and wondering what exactly that's do it. |
| 2024-06-14 22:12:31 | <haskellbridge> | <iqubic (she/her)> *wondering exactly what that does |
| 2024-06-14 22:13:00 | <geekosaur> | press mod-control-c, release, press and release u, press and release e |
| 2024-06-14 22:13:13 | <geekosaur> | through the magic of XMonad.Actions.Submap |
| 2024-06-14 22:13:52 | <haskellbridge> | <iqubic (she/her)> Oh, I need XMonad.Actions.Submap? Got it. Will I need to change the call to "additionalKeysP"? |
| 2024-06-14 22:14:19 | <geekosaur> | no, you don't need it, EZConfig builds Submaps for you |
| 2024-06-14 22:15:06 | <haskellbridge> | <iqubic (she/her)> Does it import the required modules, or will I need to do that myself? |
| 2024-06-14 22:15:09 | <geekosaur> | it assigns M-C-c to a Submap, then adds entries to it for any other binding starting with M-C-c |
| 2024-06-14 22:15:22 | <geekosaur> | you don't need to import it since you don't manipulate it directly |
| 2024-06-14 22:15:39 | <haskellbridge> | <iqubic (she/her)> Thanks. |
| 2024-06-14 22:29:43 | <haskellbridge> | <iqubic (she/her)> Does "additionalKeysP" care about the order I put the modifiers? Will "M-C-a" be the same as "C-M-a"? I assume, because it just combines them into a bitmask, the answer is that order doesn't matter, but I'm not sure. |
| 2024-06-14 22:37:56 | <geekosaur> | order doesn't matter |
| 2024-06-14 22:38:23 | <geekosaur> | the only rule is that it can't combine keys defined another way, including via multiple additionalKeys / additionalKeysP calls |
| 2024-06-14 22:38:55 | <geekosaur> | because they generate code, which can't be introspected so there's no way to combine keymaps generated by separate operations |
| 2024-06-14 22:43:26 | <haskellbridge> | <iqubic (she/her)> Thanks |
| 2024-06-14 22:49:45 | <haskellbridge> | <iqubic (she/her)> Would using a list comprehension like this work? https://dpaste.com/5V3HCF6MZ |
| 2024-06-14 22:49:57 | <haskellbridge> | <iqubic (she/her)> This uses X.L.WindowNavigation |
| 2024-06-14 22:50:44 | <haskellbridge> | <iqubic (she/her)> I assume it would, because Haskell is a good language. |
| 2024-06-14 22:50:57 | <geekosaur> | looks like it |
| 2024-06-14 22:52:20 | <haskellbridge> | <iqubic (she/her)> It's creating "M-<U>", "M-S-<U>", and "M-S-C-<U>" bindings for all 4 directions that send the correct window navigation messages. |
| 2024-06-14 22:55:20 | <geekosaur> | looks like it's the right type, at least |
| 2024-06-14 22:57:31 | <haskellbridge> | <iqubic (she/her)> It is. There might be some parse errors, but at least it compiles. |
| 2024-06-14 23:00:24 | <haskellbridge> | <iqubic (she/her)> Hmm... I'm looking to get to create a keybinging that jumps to layout "Full", but also remembers what the previous layout is so I can jump back to that when I hit the same keybinding again. Would that be possible, and is that just what X.L.Maximize does already? |
| 2024-06-14 23:01:06 | <geekosaur> | Maximize isn't quite the same thing |
| 2024-06-14 23:01:23 | <haskellbridge> | <iqubic (she/her)> What does Maximize do? |
| 2024-06-14 23:01:37 | <geekosaur> | you probably want https://hackage.haskell.org/package/xmonad-contrib-0.18.0/docs/XMonad-Layout-ToggleLayouts.html |
| 2024-06-14 23:01:57 | <geekosaur> | it pops the window out of the layout and makes it _almost_ full screen |
| 2024-06-14 23:02:22 | <haskellbridge> | <iqubic (she/her)> geekosaur: That's not what I want. |
| 2024-06-14 23:02:42 | <geekosaur> | https://imgur.com/F0qNKBg.png |
| 2024-06-14 23:08:20 | <haskellbridge> | <iqubic (she/her)> What I want is something like toggle layout, but I can swap to it from any layout. Like if I'm in a Tabbed layout and I switch to a Full layout, I want to be able to switch back to the Tabbed layout. But if I'm Tall, then I want that to be remembered so that when I switch to Full and back again, I want to return to the Tall layout. |
| 2024-06-14 23:09:25 | <geekosaur> | right, that's ToggleLayouts or MultiToggle |
| 2024-06-14 23:10:42 | <haskellbridge> | <iqubic (she/her)> MultiToggle is what I want. Thanks! |
| 2024-06-14 23:11:10 | <geekosaur> | if all you want is a single toggle, ToggleLayouts is much easier |
| 2024-06-14 23:11:20 | <geekosaur> | MultiToggle makes you deal with HLists |
| 2024-06-14 23:12:30 | <haskellbridge> | <iqubic (she/her)> Oh? I just want the ability to swap to Full and back again. |
| 2024-06-14 23:13:20 | <geekosaur> | that's the example in ToggleLayouts documentation |
All times are in UTC.