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...