Logs: liberachat/#xmonad
| 2026-04-24 16:14:48 | <geekosaur> | working with `keys` directly is generally painful and a bit tricky |
| 2026-04-24 16:16:22 | <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 | <geekosaur> | (also `withoutOld` is wrong as it's not including `shiftMask`, but that shouldn't matter here) |
| 2026-04-24 16:21:09 | <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 | <stefan> | It still has binding for "M-S-Return" which doesn't works: alacritty opens, not firefox |
| 2026-04-24 16:22:29 | <geekosaur> | those are the same paste |
| 2026-04-24 16:23:12 | <geekosaur> | (not just same url but same content) |
| 2026-04-24 16:23:13 | <stefan> | https://paste.rs/c4m4O |
| 2026-04-24 16:23:15 | <stefan> | sorry |
| 2026-04-24 16:25:23 | <geekosaur> | mm, I think the problem is actually somewhere else, your hook composition is wrong |
| 2026-04-24 16:26:17 | <stefan> | xmobar troubles? |
| 2026-04-24 16:27:42 | <geekosaur> | yes |
| 2026-04-24 16:29:03 | <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 | <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 | <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 | <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 | <geekosaur> | and were rather painful to debug |
| 2026-04-24 16:32:41 | <stefan> | thank you! |
| 2026-04-24 16:38:02 | <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 | <geekosaur> | sorry, "=<<" but it's the same problem |
| 2026-04-24 16:43:57 | <stefan> | moved to . withEasySB (statusBarProp "xmobar" (pure def)) defToggleStrutsKey |
| 2026-04-24 16:44:00 | <stefan> | . withEasySB (statusBarProp "xmobar" (pure def)) defToggleStrutsKey |
| 2026-04-24 16:44:24 | <stefan> | moved to withEasySB (statusBarProp "xmobar" (pure def)) defToggleStrutsKey and xmobar disappeared |
| 2026-04-24 16:46:08 | <stefan> | with pure myXmobarPP instead of pure def same result |
| 2026-04-24 16:49:28 | <haskellbridge> | <ijouw> Does your xmobar read property? |
| 2026-04-24 16:50:22 | <haskellbridge> | <ijouw> statusBarProp "xmobar" ... says xmonad should write into "xmobar" but you need to configure xmobar to read that |
| 2026-04-24 16:50:54 | samhh_ | is now known as samhh |
| 2026-04-24 16:51:34 | <haskellbridge> | <ijouw> You usually do it with something like 'Run XMonadLog' (instead of Pipe) |
| 2026-04-24 16:51:50 | × | dxld quits (a6d27c8ee6@2a03:6000:1812:100::52) (Ping timeout: 245 seconds) |
| 2026-04-24 16:54:49 | <geekosaur> | actually it's StdinReader that has to change to XMonadLog |
| 2026-04-24 16:55:11 | <geekosaur> | otherwise StdinReader will get EOF on the first read and xmobar will exit |
| 2026-04-24 16:55:38 | <haskellbridge> | <ijouw> <- did not remember the name |
| 2026-04-24 16:55:38 | <geekosaur> | but there are some other nasty things that can happen if you use StdinReader, which is why we moved away from it |
| 2026-04-24 16:56:13 | <stefan> | ijouw: where can I see how to configure xmobar to read from xmonad? |
| 2026-04-24 16:57:33 | <stefan> | should it be in xmobarPP or somewhere else? |
| 2026-04-24 16:58:46 | <geekosaur> | https://codeberg.org/xmobar/xmobar#headline-9 |
| 2026-04-24 16:58:55 | × | wsx quits (055e6b628d@2a03:6000:1812:100::dd6) (Ping timeout: 245 seconds) |
| 2026-04-24 16:58:56 | <geekosaur> | it goes in .xmobarrc file by default |
| 2026-04-24 16:59:30 | × | raghavgururajan quits (ea769b8000@user/raghavgururajan) (Ping timeout: 248 seconds) |
| 2026-04-24 17:01:07 | × | samhh quits (7569f027cf@2a03:6000:1812:100::e4) (Ping timeout: 276 seconds) |
| 2026-04-24 17:03:07 | <geekosaur> | the PP controls what xmonad sends to xmobar; .xmobarrc controls what xmobar does with it |
| 2026-04-24 17:04:09 | × | eso quits (a0662dfd5e@2a03:6000:1812:100::1266) (Ping timeout: 248 seconds) |
| 2026-04-24 17:04:21 | → | samhh_ joins (7569f027cf@2a03:6000:1812:100::e4) |
| 2026-04-24 17:04:29 | → | wsx joins (055e6b628d@2a03:6000:1812:100::dd6) |
| 2026-04-24 17:05:14 | <stefan> | here is my xmobarrc, afaik it reads from xmonad, stdinReader is present https://paste.rs/clir7 |
| 2026-04-24 17:05:26 | × | rekahsoft quits (~rekahsoft@70.51.99.119) (Remote host closed the connection) |
| 2026-04-24 17:05:51 | <geekosaur> | then STdinReader must be replaced with XMonadLog |
| 2026-04-24 17:05:58 | <stefan> | but it doesn't start with xmonad and if I manually run xmobar, the section with stdinReader is always "Updating..." |
| 2026-04-24 17:06:02 | <geekosaur> | *StdinReader |
| 2026-04-24 17:06:06 | <geekosaur> | case is significant |
| 2026-04-24 17:07:10 | <haskellbridge> | <ijouw> you can test xmonad output with 'xmobar -c "[Run XMonadLog]" -t "%XMonadLog%"' |
| 2026-04-24 17:07:58 | samhh_ | is now known as samhh |
| 2026-04-24 17:09:34 | × | smiesner quits (b0cf5acf8c@user/smiesner) (Ping timeout: 276 seconds) |
| 2026-04-24 17:12:12 | × | samhh quits (7569f027cf@2a03:6000:1812:100::e4) (Ping timeout: 244 seconds) |
| 2026-04-24 17:13:58 | → | smiesner joins (b0cf5acf8c@user/smiesner) |
| 2026-04-24 17:14:11 | → | dxld joins (a6d27c8ee6@2a03:6000:1812:100::52) |
| 2026-04-24 17:14:13 | → | samhh joins (7569f027cf@2a03:6000:1812:100::e4) |
| 2026-04-24 17:16:07 | <stefan> | ijouw: yes, it works if I run manually tour command, but from .xmobarrc it always Updating... |
| 2026-04-24 17:17:13 | <haskellbridge> | <ijouw> did you put XMonadLog instead of StdinReader? |
| 2026-04-24 17:17:28 | <stefan> | yes |
| 2026-04-24 17:18:08 | <stefan> | Run XMonadLog is first element in commands list |
| 2026-04-24 17:18:12 | → | raghavgururajan joins (ea769b8000@user/raghavgururajan) |
| 2026-04-24 17:19:08 | <haskellbridge> | <ijouw> the one in template? |
| 2026-04-24 17:19:14 | → | eso joins (a0662dfd5e@2a03:6000:1812:100::1266) |
| 2026-04-24 17:23:00 | <stefan> | https://paste.rs/r7BlC here |
| 2026-04-24 17:23:44 | <haskellbridge> | <ijouw> You don't use %XMonadLog% but instead %StdinReader% |
| 2026-04-24 17:24:55 | <stefan> | ijouw, ah, I got it, function reads, and in template there should pe a placeholder with proper name. |
| 2026-04-24 17:24:59 | <stefan> | Thank you very much! |
| 2026-04-24 17:25:14 | <haskellbridge> | <ijouw> You are welcome |
| 2026-04-24 17:59:14 | × | haskellbridge quits (~hackager@96.28.224.214) (Read error: Connection reset by peer) |
| 2026-04-24 18:04:36 | → | haskellbridge joins (~hackager@96.28.224.214) |
| 2026-04-24 18:31:43 | → | tremon joins (~tremon@83.80.159.219) |
| 2026-04-24 18:35:09 | <stefan> | because you can't use `readProcess` drectly, as xmonad ignores child process termination which breaks most of `System.Process`. use |
| 2026-04-24 18:35:34 | <stefan> | sorry, pasted by mistake. I'm back with the same problem |
| 2026-04-24 18:35:56 | <stefan> | now I have correct xmobar binding, and nothing should interrupt keybindings |
| 2026-04-24 18:36:26 | <stefan> | https://paste.rs/sCqdr but this still doesn't works |
| 2026-04-24 18:36:52 | <stefan> | i got M-S-Return from default config, it opens what is said in config.terminal, not spawns firefox |
| 2026-04-24 19:01:28 | <geekosaur> | seems to look okay |
| 2026-04-24 19:01:34 | <geekosaur> | do any of the other keybindings work? |
| 2026-04-24 19:03:29 | <geekosaur> | like, M-h normally moves the divider in `tiled`, but you rebound it to `prevWS`, which does it do? |
| 2026-04-24 19:39:07 | ← | f-a parts (ff2a@joined.irc.for-some.fun) () |
All times are in UTC.