2026/04/24

2026-04-24 01:27:46 +0000haskellbridge(~hackager@96.28.224.214) (Remote host closed the connection)
2026-04-24 01:28:20 +0000haskellbridge(~hackager@96.28.224.214) hackager
2026-04-24 02:03:36 +0000tremon(~tremon@83.80.159.219) (Quit: getting boxed in)
2026-04-24 07:05:36 +0000ft(~ft@p508db287.dip0.t-ipconnect.de) (Quit: leaving)
2026-04-24 13:47:57 +0000rekahsoft(~rekahsoft@70.51.99.119) rekahsoft
2026-04-24 14:01:33 +0000ft(~ft@p508db287.dip0.t-ipconnect.de) ft
2026-04-24 15:57:45 +0000stefan(~stefan@176.120.178.197) vistefan
2026-04-24 15:59:22 +0000 <stefan> Hi! Why this config doesn't rebinds default "M-S-Return" terminal opening keybinding? https://paste.rs/FekhV
2026-04-24 16:04:30 +0000 <geekosaur> because you can't use `readProcess` drectly, as xmonad ignores child process termination which breaks most of `System.Process`. use https://hackage.haskell.org/package/xmonad-contrib-0.18.1/docs/XMonad-Util-Run.html#v:runProcessWi… instead
2026-04-24 16:05:35 +0000 <geekosaur> (you don't want your window manager to be subject to child process limits)
2026-04-24 16:07:26 +0000 <stefan> geekosaur: let's ignore my WIP trial to make it work. Even if I run minimal example with nothing except additionalKeysP, and the rest is default from ezconfig, it doesn't rebinds "M-S-Return". If I delete terminal field from config (drop it to defualt xterm) and bind some spawn on "M-S-Return", after pressing xterm opens, not my handwritten spawn.
2026-04-24 16:14:19 +0000 <geekosaur> wait. why are you using mkKeymap? that's a very weird way to make keybindings and I'm not sure how well it would work. I'd just use `additionalKeysP`
2026-04-24 16:14:48 +0000 <geekosaur> working with `keys` directly is generally painful and a bit tricky
2026-04-24 16:16:22 +0000 <geekosaur> otherwise it sounds as if you have the parameters to `M.union` reversed… but they look right to me, as it's left-biased but your new keymap is on the left
2026-04-24 16:17:58 +0000 <geekosaur> (also `withoutOld` is wrong as it's not including `shiftMask`, but that shouldn't matter here)
2026-04-24 16:21:09 +0000 <stefan> geekosaur: this config is in the middle of my trial, sorry. Here is what it looked like when I started to try add logic in keybinding. https://paste.rs/FekhV
2026-04-24 16:21:48 +0000 <stefan> It still has binding for "M-S-Return" which doesn't works: alacritty opens, not firefox
2026-04-24 16:22:29 +0000 <geekosaur> those are the same paste
2026-04-24 16:23:12 +0000 <geekosaur> (not just same url but same content)
2026-04-24 16:23:13 +0000 <stefan> https://paste.rs/c4m4O
2026-04-24 16:23:15 +0000 <stefan> sorry
2026-04-24 16:25:23 +0000 <geekosaur> mm, I think the problem is actually somewhere else, your hook composition is wrong
2026-04-24 16:26:17 +0000 <stefan> xmobar troubles?
2026-04-24 16:27:42 +0000 <geekosaur> yes
2026-04-24 16:29:03 +0000 <geekosaur> you have both X.H.DynamicLog (deprecated, provides the `xmobar` combinator) and `X.H.StatusBar` (new composable interface) loaded, and use the old one which ignores your `myXmobarPP` and probably gives you a mangled config
2026-04-24 16:30:10 +0000 <stefan> I don't really understand what that ewmh magic does, but the variant with easySB doesn't make xmobar to appear. Will try to remove DynamicLog usages
2026-04-24 16:30:19 +0000 <geekosaur> you may want to go through https://xmonad.org/TUTORIAL.html and see how to do it properly, which should also fix the key bindings getting lost
2026-04-24 16:31:06 +0000 <geekosaur> one of the problems with the old way was you could have silent errors that lost configuration information
2026-04-24 16:31:33 +0000 <geekosaur> and were rather painful to debug
2026-04-24 16:32:41 +0000 <stefan> thank you!
2026-04-24 16:38:02 +0000 <geekosaur> (basically "." and ">>=" don't combine that way, and what they do when used together can be tricky to figure out)
2026-04-24 16:38:39 +0000 <geekosaur> sorry, "=<<" but it's the same problem
2026-04-24 16:43:57 +0000 <stefan> moved to . withEasySB (statusBarProp "xmobar" (pure def)) defToggleStrutsKey
2026-04-24 16:44:00 +0000 <stefan> . withEasySB (statusBarProp "xmobar" (pure def)) defToggleStrutsKey
2026-04-24 16:44:24 +0000 <stefan> moved to withEasySB (statusBarProp "xmobar" (pure def)) defToggleStrutsKey and xmobar disappeared