2025/09/19

2025-09-19 01:07:11 +0200dibblego(~dibblego@haskell/developer/dibblego) (Read error: Connection reset by peer)
2025-09-19 01:07:23 +0200dibblego(~dibblego@116-255-1-119.ip4.superloop.au)
2025-09-19 01:07:23 +0200dibblego(~dibblego@116-255-1-119.ip4.superloop.au) (Changing host)
2025-09-19 01:07:23 +0200dibblego(~dibblego@haskell/developer/dibblego) dibblego
2025-09-19 01:26:00 +0200Enrico63(~Enrico63@2a0b:e541:10d0:0:9efc:e8ff:fe24:3213) (Quit: Client closed)
2025-09-19 01:26:39 +0200 <haskellbridge> <iqubic (she/her)> Hmm... dynamicSBs wants a function of type (ScreenId -> X StatusBarConfig) but statusBarPipe returns IO StatusBarConfig
2025-09-19 01:33:55 +0200 <haskellbridge> <iqubic (she/her)> https://github.com/IQubic/nixos-config/blob/master/hm/xmonad/XMonad.hs#L218
2025-09-19 01:34:00 +0200 <haskellbridge> <iqubic (she/her)> That's my config.
2025-09-19 01:34:34 +0200 <haskellbridge> <iqubic (she/her)> Here's the error I'm getting: https://dpaste.org/j4SbV
2025-09-19 01:35:38 +0200 <haskellbridge> <iqubic (she/her)> I'm not sure how to fix this...
2025-09-19 01:37:11 +0200 <liskin> There `io` somewhere that lifts IO a into X a
2025-09-19 01:37:55 +0200 <liskin> But also why would you even bother with pipes if xmobar can do props?
2025-09-19 01:38:14 +0200 <haskellbridge> <iqubic (she/her)> I didn't know it could do props, TBH.
2025-09-19 01:38:49 +0200 <liskin> I though we made this very prominent in the docs
2025-09-19 01:39:01 +0200 <liskin> Anyway, bedtime.
2025-09-19 01:39:31 +0200 <haskellbridge> <iqubic (she/her)> But also, I want to have a main screen bar and an auxiliary screen bar. How do I tell xmobar which prop to read from in the config?
2025-09-19 01:49:58 +0200 <geekosaur> statuiisBarPropTo, and whatever your bar's configuration is for reading properties
2025-09-19 01:53:01 +0200 <haskellbridge> <iqubic (she/her)> My bar is XMobar.
2025-09-19 01:53:22 +0200 <haskellbridge> <iqubic (she/her)> I want to tell XMobar to read from _XMONAD_LOG_1
2025-09-19 01:53:47 +0200 <haskellbridge> <iqubic (she/her)> I'm switching to XMobar here, because I like the integration with XMonad.
2025-09-19 02:01:44 +0200 <geekosaur> https://codeberg.org/xmobar/xmobar/src/branch/master/doc/plugins.org#headline-63
2025-09-19 02:06:26 +0200 <haskellbridge> <iqubic (she/her)> Hmm.... Now I need to work out why my xmobar isn't spawning...
2025-09-19 02:06:36 +0200 <haskellbridge> <iqubic (she/her)> My config compiles properly.
2025-09-19 02:18:55 +0200 <haskellbridge> <iqubic (she/her)> So, I have this xmobarrc file: https://dpaste.org/0pATb/raw
2025-09-19 02:19:02 +0200 <haskellbridge> <iqubic (she/her)> And it's not working properly...
2025-09-19 02:20:08 +0200 <haskellbridge> <iqubic (she/her)> When I try to run xmobar from the terminal I'm getting an error: Invalid configuration file: "Config" (line 34, column 10):
2025-09-19 02:20:13 +0200 <haskellbridge> <iqubic (she/her)> unexpected "s"
2025-09-19 02:20:14 +0200 <haskellbridge> <iqubic (she/her)> expecting space or "Run"
2025-09-19 02:31:35 +0200 <haskellbridge> <iqubic (she/her)> geekosaur: Do you know what's going wrong here?
2025-09-19 02:33:31 +0200 <geekosaur> that's usually a missing pugin combined with a horrible parser
2025-09-19 02:35:17 +0200 <haskellbridge> <iqubic (she/her)> Hmm.... How do I figure it out?
2025-09-19 02:35:31 +0200 <haskellbridge> <iqubic (she/her)> I'm just trying to run my XMobar config...
2025-09-19 02:35:35 +0200 <geekosaur> so it fails to parse "sepChar" with a weird error when the real problem is in the "Run" list
2025-09-19 02:36:34 +0200 <geekosaur> also I don't think comments work in there. It only looks like Haskell
2025-09-19 02:36:37 +0200 <haskellbridge> <iqubic (she/her)> Is the issue that I'm commenting out the ALSA section because I haven't finished configuring it?
2025-09-19 02:36:46 +0200 <geekosaur> it might be
2025-09-19 02:37:30 +0200 <geekosaur> the other ones look fine, I think they're all builtins. so yeh, I think I'd try removing the "comment"
2025-09-19 02:37:47 +0200 <geekosaur> xmobar's config parser is really horrible
2025-09-19 02:38:31 +0200 <haskellbridge> <iqubic (she/her)> The battery config was taken from here: https://jao.io/blog/xmobar-a-battery-trick.html and lightly modified it.
2025-09-19 02:39:09 +0200 <geekosaur> that part shouldn't affect it (I think)
2025-09-19 02:39:49 +0200 <haskellbridge> <iqubic (she/her)> Right... Removing the line that's supposed to be a comment still doesn't work.
2025-09-19 02:40:07 +0200 <haskellbridge> <iqubic (she/her)> Same error
2025-09-19 02:40:13 +0200 <geekosaur> this is one of the reasons I don't run xmobar, debugging config errors is a nightmare
2025-09-19 02:40:27 +0200 <haskellbridge> <iqubic (she/her)> I see...
2025-09-19 02:41:07 +0200 <geekosaur> oh. I see a problem
2025-09-19 02:42:56 +0200 <geekosaur> hm, maybe not. your page uses BatteryN, you're using BatteryP
2025-09-19 02:43:07 +0200 <haskellbridge> <iqubic (she/her)> Is there a way I can write my config in actual haskell and call it directly from my XMonad config? I assume GHC compiler errors would be better than the errors from the XMobar parser.
2025-09-19 02:44:42 +0200 <haskellbridge> <iqubic (she/her)> Yeah, BatteryN is basically the same but just lets you provide a string to be used as the alias in the template string.
2025-09-19 02:44:50 +0200 <geekosaur> hm
2025-09-19 02:45:02 +0200 <geekosaur> are you using an xmonad build from git?
2025-09-19 02:45:10 +0200 <geekosaur> er, xmobar build
2025-09-19 02:46:23 +0200 <haskellbridge> <iqubic (she/her)> I don't think so. I'm using the latest version from Hackage.
2025-09-19 02:47:23 +0200 <geekosaur> right, I just checked versions, the trick came with 0.36 but they're on at least 0.45 now
2025-09-19 02:47:46 +0200 <geekosaur> 0.50 in fact
2025-09-19 02:48:02 +0200 <haskellbridge> <iqubic (she/her)> I'm using Nix and I'm telling Nix to download the XMonad and XMonad-Contrib libraries from hackage and using that to compile my XMonad config.
2025-09-19 02:48:22 +0200 <haskellbridge> <iqubic (she/her)> I'm using xmobar 0.49
2025-09-19 02:48:41 +0200 <haskellbridge> <iqubic (she/her)> That's what "xmobar --version" gives me.
2025-09-19 02:51:07 +0200 <geekosaur> then it's not getting the latest
2025-09-19 02:51:46 +0200 <geekosaur> https://hackage.haskell.org/package/xmobar-0.50
2025-09-19 02:52:06 +0200 <haskellbridge> <iqubic (she/her)> I'm pulling the latest versions of XMonad and XMonad-Contrib. I'm not pulling the latest version of XMobar.
2025-09-19 02:52:38 +0200 <geekosaur> right, my asking about that was a mistake, I meant xmobar
2025-09-19 02:52:44 +0200 <geekosaur> xmonad isn't actually relevant here
2025-09-19 02:53:03 +0200 <haskellbridge> <iqubic (she/her)> But if the fancy -w 0 trick was added in 0.36, then it should just work, right?
2025-09-19 02:53:09 +0200 <geekosaur> \I was trying to figure out if your xmobar actually supported the "trick" in that blog page
2025-09-19 02:54:06 +0200 <haskellbridge> <iqubic (she/her)> It should...
2025-09-19 02:59:11 +0200 <geekosaur> I'm not seeing anything here, you probably need someone who knows xmobar better
2025-09-19 02:59:41 +0200 <haskellbridge> <iqubic (she/her)> Sounds good.
2025-09-19 03:23:25 +0200 <haskellbridge> <iqubic (she/her)> Alright... I've removed the Battery section for now and it seems to work...
2025-09-19 03:55:25 +0200 <haskellbridge> <iqubic (she/her)> Why is there no easy way to search through a repo that's being hosted on codeberg?
2025-09-19 04:18:34 +0200 <haskellbridge> <iqubic (she/her)> geekosaur: Here's what I get for not using a tool with proper syntax highlighting... The error was that I was missing a few commas on the line "-l" and "-h".
2025-09-19 04:18:57 +0200 <haskellbridge> <iqubic (she/her)> https://dpaste.org/0pATb/raw
2025-09-19 04:19:01 +0200 <haskellbridge> <iqubic (she/her)> That's the broken version.
2025-09-19 04:35:52 +0200haskellbridge(~hackager@syn-096-028-224-214.res.spectrum.com) (Remote host closed the connection)
2025-09-19 04:36:21 +0200haskellbridge(~hackager@syn-096-028-224-214.res.spectrum.com) hackager
2025-09-19 05:19:44 +0200 <haskellbridge> <iqubic (she/her)> Hmm... The xmobar module for Wireless networking seems to be lacking a way to set a different display string and color when the machine isn't connected to internet.
2025-09-19 05:20:07 +0200 <haskellbridge> <iqubic (she/her)> https://codeberg.org/xmobar/xmobar/src/branch/master/doc/plugins.org#headline-50
2025-09-19 06:08:59 +0200zawaken(~zawaken@user/zawaken) (Ping timeout: 260 seconds)
2025-09-19 06:10:50 +0200zawaken(~zawaken@user/zawaken) zawaken
2025-09-19 07:28:20 +0200Lears(~Leary@user/Leary/x-0910699) (Remote host closed the connection)
2025-09-19 07:35:38 +0200Leary(~Leary@user/Leary/x-0910699) Leary
2025-09-19 08:42:46 +0200Enrico63(~Enrico63@2a0b:e541:10d0:0:9efc:e8ff:fe24:3213) Enrico63
2025-09-19 09:03:04 +0200ft(~ft@p4fc2a25a.dip0.t-ipconnect.de) (Quit: leaving)
2025-09-19 09:05:14 +0200 <Enrico63> Hi there, I have a question about key bindings, that stems from my attempt to see the window with the default commands. To spawn that window, one needs to use these bindings:
2025-09-19 09:05:15 +0200 <Enrico63>     , ((modMask .|. shiftMask, xK_slash ), helpCommand) -- %! Run xmessage with a summary of the default keybindings (useful for beginners)
2025-09-19 09:05:15 +0200 <Enrico63>     -- repeat the binding for non-American layout keyboards
2025-09-19 09:05:16 +0200 <Enrico63>     , ((modMask , xK_question), helpCommand)
2025-09-19 09:05:16 +0200 <Enrico63> The former works on American keyboard layout where / is a "plain" character (I'm glad if you can tell me the terminology for "plain". Is it "unmodified"?).
2025-09-19 09:05:17 +0200 <Enrico63> The latter works on not-better-identified non-American layout. What is that? From wikipedia https://en.wikipedia.org/wiki/British_and_American_keyboards I see that typing ? on a British keyboard amounts to hitting shift+/ , just like on the American keyboard.
2025-09-19 09:05:17 +0200 <Enrico63> I, on my end, use an Italian layout, but ? still requires shift+' , and / still requires shift+7
2025-09-19 09:05:18 +0200 <Enrico63> So... how am I supposed to run helpCommand?
2025-09-19 09:07:10 +0200 <Enrico63> It seems to me that if doing xK_something requires a shift-modified keystroke, then such a binding won't work..
2025-09-19 09:08:19 +0200Enrico63(~Enrico63@2a0b:e541:10d0:0:9efc:e8ff:fe24:3213) (Quit: Client closed)
2025-09-19 09:11:03 +0200Enrico63(~Enrico63@2a0b:e541:10d0:0:9efc:e8ff:fe24:3213) Enrico63
2025-09-19 09:23:30 +0200 <Leary> Enrico63: I don't see a better way than this: https://gist.github.com/LSLeary/6047e083e778da13c2e0d0615c6809f5
2025-09-19 09:25:13 +0200assface(~assface@dslb-002-201-020-218.002.201.pools.vodafone-ip.de)
2025-09-19 09:25:37 +0200assface(~assface@dslb-002-201-020-218.002.201.pools.vodafone-ip.de) (Client Quit)
2025-09-19 09:28:36 +0200 <Enrico63> Leary, it doesn't seem to work :O
2025-09-19 09:29:14 +0200 <Enrico63> No, wait, it does
2025-09-19 09:31:34 +0200 <Leary> Apparently `EZConfig` exposes `remapKeysP`, so you could also write `xmonad $ def{ ... } `remapKeysP` [("S-'", "?")]`.
2025-09-19 09:31:35 +0200 <Enrico63> Oh, in the example it was mapped to just shift+' , i.e. without super
2025-09-19 09:32:04 +0200 <Leary> Ah, right, you'll want another modifier.
2025-09-19 09:36:48 +0200 <Enrico63> A bit sad that there's there's no remapKeys, just remapKeysP, whereas additionalKeysP comes with additionalKeys too :(
2025-09-19 09:37:11 +0200 <Enrico63> `remapKeysP` [("M-S-?", "M-S-'")]
2025-09-19 09:37:12 +0200 <Enrico63> doesn't work
2025-09-19 09:37:35 +0200 <Leary> It should be M-S-/ or M-?
2025-09-19 09:37:58 +0200 <Enrico63> What do you mean?
2025-09-19 09:38:17 +0200 <Enrico63> On my layout ? is shift+'
2025-09-19 09:38:42 +0200 <Enrico63> so I'd want super+shift+' to be mapped to help
2025-09-19 09:38:54 +0200 <Enrico63> hence
2025-09-19 09:38:55 +0200 <Enrico63> `remapKeysP` [("M-S-?", "M-S-'")]
2025-09-19 09:39:02 +0200 <Leary> Err, and the order is flipped. Try `[("M-S-'", "M-?")]`.
2025-09-19 09:39:43 +0200 <Enrico63> doesn't work either
2025-09-19 09:44:05 +0200Enrico63(~Enrico63@2a0b:e541:10d0:0:9efc:e8ff:fe24:3213) (Quit: Client closed)
2025-09-19 10:06:32 +0200Enrico63(~Enrico63@2a0b:e541:10d0:0:9efc:e8ff:fe24:3213) Enrico63
2025-09-19 10:42:27 +0200byorgey(~byorgey@user/byorgey) (Ping timeout: 258 seconds)
2025-09-19 10:42:33 +0200rekahsoft(~rekahsoft@bras-base-orllon1103w-grc-15-174-95-4-83.dsl.bell.ca) (Ping timeout: 260 seconds)
2025-09-19 10:44:12 +0200byorgey(~byorgey@user/byorgey) byorgey
2025-09-19 12:23:47 +0200Enrico63(~Enrico63@2a0b:e541:10d0:0:9efc:e8ff:fe24:3213) (Quit: Client closed)