Logs: liberachat/#xmonad
| 2025-09-18 18:45:24 | <haskellbridge> | <iqubic (she/her)> I want it to show a "CHRG" label when charging. |
| 2025-09-18 18:45:30 | <haskellbridge> | <iqubic (she/her)> Just those 4 characters. |
| 2025-09-18 18:46:30 | <haskellbridge> | <iqubic (she/her)> And actually, if it's discharging, I want it to show the approximate time left. |
| 2025-09-18 19:49:23 | <haskellbridge> | <iqubic (she/her)> How do I use dynamicSB when I'm also using xmobar's StdinReader? |
| 2025-09-18 21:03:35 | <geekosaur> | use statusBarPipe instead of statusBarProp / statusBarPropTo |
| 2025-09-18 21:13:34 | → | assfacedgollum joins (~assfacedg@dslb-002-201-020-218.002.201.pools.vodafone-ip.de) |
| 2025-09-18 21:15:56 | × | assfacedgollum quits (~assfacedg@dslb-002-201-020-218.002.201.pools.vodafone-ip.de) (Client Quit) |
| 2025-09-18 21:28:19 | → | Enrico63 joins (~Enrico63@2a0b:e541:10d0:0:9efc:e8ff:fe24:3213) |
| 2025-09-18 23:07:11 | × | dibblego quits (~dibblego@haskell/developer/dibblego) (Read error: Connection reset by peer) |
| 2025-09-18 23:07:23 | → | dibblego joins (~dibblego@116-255-1-119.ip4.superloop.au) |
| 2025-09-18 23:07:23 | × | dibblego quits (~dibblego@116-255-1-119.ip4.superloop.au) (Changing host) |
| 2025-09-18 23:07:23 | → | dibblego joins (~dibblego@haskell/developer/dibblego) |
| 2025-09-18 23:26:00 | × | Enrico63 quits (~Enrico63@2a0b:e541:10d0:0:9efc:e8ff:fe24:3213) (Quit: Client closed) |
| 2025-09-18 23:26:39 | <haskellbridge> | <iqubic (she/her)> Hmm... dynamicSBs wants a function of type (ScreenId -> X StatusBarConfig) but statusBarPipe returns IO StatusBarConfig |
| 2025-09-18 23:33:55 | <haskellbridge> | <iqubic (she/her)> https://github.com/IQubic/nixos-config/blob/master/hm/xmonad/XMonad.hs#L218 |
| 2025-09-18 23:34:00 | <haskellbridge> | <iqubic (she/her)> That's my config. |
| 2025-09-18 23:34:34 | <haskellbridge> | <iqubic (she/her)> Here's the error I'm getting: https://dpaste.org/j4SbV |
| 2025-09-18 23:35:38 | <haskellbridge> | <iqubic (she/her)> I'm not sure how to fix this... |
| 2025-09-18 23:37:11 | <liskin> | There `io` somewhere that lifts IO a into X a |
| 2025-09-18 23:37:55 | <liskin> | But also why would you even bother with pipes if xmobar can do props? |
| 2025-09-18 23:38:14 | <haskellbridge> | <iqubic (she/her)> I didn't know it could do props, TBH. |
| 2025-09-18 23:38:49 | <liskin> | I though we made this very prominent in the docs |
| 2025-09-18 23:39:01 | <liskin> | Anyway, bedtime. |
| 2025-09-18 23:39:31 | <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-18 23:49:58 | <geekosaur> | statuiisBarPropTo, and whatever your bar's configuration is for reading properties |
| 2025-09-18 23:53:01 | <haskellbridge> | <iqubic (she/her)> My bar is XMobar. |
| 2025-09-18 23:53:22 | <haskellbridge> | <iqubic (she/her)> I want to tell XMobar to read from _XMONAD_LOG_1 |
| 2025-09-18 23:53:47 | <haskellbridge> | <iqubic (she/her)> I'm switching to XMobar here, because I like the integration with XMonad. |
| 2025-09-19 00:01:44 | <geekosaur> | https://codeberg.org/xmobar/xmobar/src/branch/master/doc/plugins.org#headline-63 |
| 2025-09-19 00:06:26 | <haskellbridge> | <iqubic (she/her)> Hmm.... Now I need to work out why my xmobar isn't spawning... |
| 2025-09-19 00:06:36 | <haskellbridge> | <iqubic (she/her)> My config compiles properly. |
| 2025-09-19 00:18:55 | <haskellbridge> | <iqubic (she/her)> So, I have this xmobarrc file: https://dpaste.org/0pATb/raw |
| 2025-09-19 00:19:02 | <haskellbridge> | <iqubic (she/her)> And it's not working properly... |
| 2025-09-19 00:20:08 | <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 00:20:13 | <haskellbridge> | <iqubic (she/her)> unexpected "s" |
| 2025-09-19 00:20:14 | <haskellbridge> | <iqubic (she/her)> expecting space or "Run" |
| 2025-09-19 00:31:35 | <haskellbridge> | <iqubic (she/her)> geekosaur: Do you know what's going wrong here? |
| 2025-09-19 00:33:31 | <geekosaur> | that's usually a missing pugin combined with a horrible parser |
| 2025-09-19 00:35:17 | <haskellbridge> | <iqubic (she/her)> Hmm.... How do I figure it out? |
| 2025-09-19 00:35:31 | <haskellbridge> | <iqubic (she/her)> I'm just trying to run my XMobar config... |
| 2025-09-19 00:35:35 | <geekosaur> | so it fails to parse "sepChar" with a weird error when the real problem is in the "Run" list |
| 2025-09-19 00:36:34 | <geekosaur> | also I don't think comments work in there. It only looks like Haskell |
| 2025-09-19 00:36:37 | <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 00:36:46 | <geekosaur> | it might be |
| 2025-09-19 00:37:30 | <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 00:37:47 | <geekosaur> | xmobar's config parser is really horrible |
| 2025-09-19 00:38:31 | <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 00:39:09 | <geekosaur> | that part shouldn't affect it (I think) |
| 2025-09-19 00:39:49 | <haskellbridge> | <iqubic (she/her)> Right... Removing the line that's supposed to be a comment still doesn't work. |
| 2025-09-19 00:40:07 | <haskellbridge> | <iqubic (she/her)> Same error |
| 2025-09-19 00:40:13 | <geekosaur> | this is one of the reasons I don't run xmobar, debugging config errors is a nightmare |
| 2025-09-19 00:40:27 | <haskellbridge> | <iqubic (she/her)> I see... |
| 2025-09-19 00:41:07 | <geekosaur> | oh. I see a problem |
| 2025-09-19 00:42:56 | <geekosaur> | hm, maybe not. your page uses BatteryN, you're using BatteryP |
| 2025-09-19 00:43:07 | <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 00:44:42 | <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 00:44:50 | <geekosaur> | hm |
| 2025-09-19 00:45:02 | <geekosaur> | are you using an xmonad build from git? |
| 2025-09-19 00:45:10 | <geekosaur> | er, xmobar build |
| 2025-09-19 00:46:23 | <haskellbridge> | <iqubic (she/her)> I don't think so. I'm using the latest version from Hackage. |
| 2025-09-19 00:47:23 | <geekosaur> | right, I just checked versions, the trick came with 0.36 but they're on at least 0.45 now |
| 2025-09-19 00:47:46 | <geekosaur> | 0.50 in fact |
| 2025-09-19 00:48:02 | <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 00:48:22 | <haskellbridge> | <iqubic (she/her)> I'm using xmobar 0.49 |
| 2025-09-19 00:48:41 | <haskellbridge> | <iqubic (she/her)> That's what "xmobar --version" gives me. |
| 2025-09-19 00:51:07 | <geekosaur> | then it's not getting the latest |
| 2025-09-19 00:51:46 | <geekosaur> | https://hackage.haskell.org/package/xmobar-0.50 |
| 2025-09-19 00:52:06 | <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 00:52:38 | <geekosaur> | right, my asking about that was a mistake, I meant xmobar |
| 2025-09-19 00:52:44 | <geekosaur> | xmonad isn't actually relevant here |
| 2025-09-19 00:53:03 | <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 00:53:09 | <geekosaur> | \I was trying to figure out if your xmobar actually supported the "trick" in that blog page |
| 2025-09-19 00:54:06 | <haskellbridge> | <iqubic (she/her)> It should... |
| 2025-09-19 00:59:11 | <geekosaur> | I'm not seeing anything here, you probably need someone who knows xmobar better |
| 2025-09-19 00:59:41 | <haskellbridge> | <iqubic (she/her)> Sounds good. |
| 2025-09-19 01:23:25 | <haskellbridge> | <iqubic (she/her)> Alright... I've removed the Battery section for now and it seems to work... |
| 2025-09-19 01:55:25 | <haskellbridge> | <iqubic (she/her)> Why is there no easy way to search through a repo that's being hosted on codeberg? |
| 2025-09-19 02:18:34 | <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 02:18:57 | <haskellbridge> | <iqubic (she/her)> https://dpaste.org/0pATb/raw |
| 2025-09-19 02:19:01 | <haskellbridge> | <iqubic (she/her)> That's the broken version. |
| 2025-09-19 02:35:52 | × | haskellbridge quits (~hackager@syn-096-028-224-214.res.spectrum.com) (Remote host closed the connection) |
| 2025-09-19 02:36:21 | → | haskellbridge joins (~hackager@syn-096-028-224-214.res.spectrum.com) |
| 2025-09-19 03:19:44 | <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 03:20:07 | <haskellbridge> | <iqubic (she/her)> https://codeberg.org/xmobar/xmobar/src/branch/master/doc/plugins.org#headline-50 |
| 2025-09-19 04:08:59 | × | zawaken quits (~zawaken@user/zawaken) (Ping timeout: 260 seconds) |
| 2025-09-19 04:10:50 | → | zawaken joins (~zawaken@user/zawaken) |
| 2025-09-19 05:28:20 | × | Lears quits (~Leary@user/Leary/x-0910699) (Remote host closed the connection) |
| 2025-09-19 05:35:38 | → | Leary joins (~Leary@user/Leary/x-0910699) |
| 2025-09-19 06:42:46 | → | Enrico63 joins (~Enrico63@2a0b:e541:10d0:0:9efc:e8ff:fe24:3213) |
| 2025-09-19 07:03:04 | × | ft quits (~ft@p4fc2a25a.dip0.t-ipconnect.de) (Quit: leaving) |
| 2025-09-19 07:05:14 | <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 07:05:15 | <Enrico63> | , ((modMask .|. shiftMask, xK_slash ), helpCommand) -- %! Run xmessage with a summary of the default keybindings (useful for beginners) |
| 2025-09-19 07:05:15 | <Enrico63> | -- repeat the binding for non-American layout keyboards |
| 2025-09-19 07:05:16 | <Enrico63> | , ((modMask , xK_question), helpCommand) |
| 2025-09-19 07:05:16 | <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 07:05:17 | <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 07:05:17 | <Enrico63> | I, on my end, use an Italian layout, but ? still requires shift+' , and / still requires shift+7 |
| 2025-09-19 07:05:18 | <Enrico63> | So... how am I supposed to run helpCommand? |
| 2025-09-19 07:07:10 | <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 07:08:19 | × | Enrico63 quits (~Enrico63@2a0b:e541:10d0:0:9efc:e8ff:fe24:3213) (Quit: Client closed) |
All times are in UTC.