Home liberachat/#xmonad: Logs Calendar

Logs on 2024-02-14 (liberachat/#xmonad)

03:29:53 × td_ quits (~td@i5387092A.versanet.de) (Ping timeout: 252 seconds)
03:31:28 td_ joins (~td@i5387092F.versanet.de)
04:56:05 × amenonsen quits (~amenonsen@pitta.toroid.org) (Ping timeout: 240 seconds)
05:10:09 amenonsen joins (~amenonsen@pitta.toroid.org)
07:39:34 derfflinger joins (~derffling@user/derfflinger)
08:04:11 × derfflinger quits (~derffling@user/derfflinger) (Ping timeout: 264 seconds)
08:29:03 derfflinger joins (~derffling@user/derfflinger)
09:31:11 × derfflinger quits (~derffling@user/derfflinger) (Ping timeout: 264 seconds)
09:33:54 × ft quits (~ft@p508db2e6.dip0.t-ipconnect.de) (Quit: leaving)
09:38:08 derfflinger joins (~derffling@user/derfflinger)
10:30:35 × derfflinger quits (~derffling@user/derfflinger) (Ping timeout: 264 seconds)
10:36:44 derfflinger joins (~derffling@user/derfflinger)
11:14:07 × derfflinger quits (~derffling@user/derfflinger) (Ping timeout: 255 seconds)
11:17:23 derfflinger joins (~derffling@user/derfflinger)
12:29:43 × derfflinger quits (~derffling@user/derfflinger) (Read error: Connection reset by peer)
13:28:02 × rieper quits (~riepernet@2a03:4000:6:f1d6:6885:6fff:fe5a:8933) (Remote host closed the connection)
13:29:55 rieper joins (~riepernet@2a03:4000:6:f1d6:6885:6fff:fe5a:8933)
13:54:51 × rieper quits (~riepernet@2a03:4000:6:f1d6:6885:6fff:fe5a:8933) (Ping timeout: 272 seconds)
14:02:36 rieper joins (~riepernet@2a03:4000:6:f1d6:6885:6fff:fe5a:8933)
14:43:07 × rieper quits (~riepernet@2a03:4000:6:f1d6:6885:6fff:fe5a:8933) (Quit: No Ping reply in 180 seconds.)
14:44:16 rieper joins (~riepernet@2a03:4000:6:f1d6:6885:6fff:fe5a:8933)
15:32:35 × scardinal quits (~supreme@0x573d64a9.static.cust.fastspeed.dk) (Ping timeout: 252 seconds)
15:34:07 scardinal joins (~supreme@0x573d64a9.static.cust.fastspeed.dk)
16:22:48 × MrElendig quits (~Urist@archlinux/op/MrElendig) (Quit: exterminate exterminate exterminate)
16:24:05 MrElendig joins (~Urist@archlinux/op/MrElendig)
17:11:32 L29Ah parts (~L29Ah@wikipedia/L29Ah) ()
18:34:19 × jeeeun8 quits (~jeeeun@78.40.148.178) (Quit: The Lounge - https://thelounge.chat)
18:57:42 L29Ah joins (~L29Ah@wikipedia/L29Ah)
19:39:27 todi joins (~todi@pd9571068.dip0.t-ipconnect.de)
19:57:30 ft joins (~ft@p508db2e6.dip0.t-ipconnect.de)
21:05:02 nickstwist joins (~nickstwis@cpc140418-slou6-2-0-cust78.17-4.cable.virginm.net)
21:06:54 <nickstwist> hi there, i am having a bit of trouble with Xmobar. it's basically that i'd like to use an xmobarColor for xmobarBorder. i keep getting an error when this happens (unfortunately i cannot read this error because of a rendering issue with xmessage)
21:07:47 <nickstwist> i can post the function of myXmobarPP if that would help? if anyone could point me in the right direction, i would really appreciate it :)
21:07:49 <nickstwist> thanks very much
21:09:32 <geekosaur> it should also be in xmonad.error
21:09:59 <geekosaur> er, xmonad.errors
21:10:25 <geekosaur> with XDG it's ~/.local/share/xmonad/xmonad.errors, otherwise ~/.xmonad/xmonad.errors
21:11:32 <nickstwist> ah right. thank you, found it. that will help a lot going forward :)
21:12:03 <nickstwist> i got this error
21:12:10 <nickstwist> xmonad.hs:64:72: error: [GHC-83865]
21:12:10 <nickstwist>     • Couldn't match type: String -> String
21:12:11 <nickstwist>                      with: [Char]
21:12:11 <nickstwist>       Expected: String
21:12:12 <nickstwist>         Actual: String -> String
21:12:12 <nickstwist>     • Probable cause: ‘magenta’ is applied to too few arguments
21:12:13 <nickstwist>       In the second argument of ‘xmobarBorder’, namely ‘magenta’
21:12:13 <nickstwist>       In the second argument of ‘(.)’, namely
21:12:14 <nickstwist>         ‘xmobarBorder "Bottom" magenta 2’
21:12:14 <nickstwist>       In the expression:
21:12:15 <nickstwist>         wrap " [ " " ] " . xmobarBorder "Bottom" magenta 2
21:12:15 <nickstwist>    |
21:12:16 <nickstwist> 64 |     ,   ppVisible           = wrap " [ " " ] " . xmobarBorder "Bottom" magenta 2
21:12:16 <nickstwist>    |                                                                        ^^^^^^^
21:12:31 <nickstwist> whoops, the carets at the bottom are in the wrong place. they should be pointing at magenta.
21:12:47 <nickstwist> replacing magenta with a string like "#ffffff" works
21:12:57 <geekosaur> please use a pastebin next time
21:13:00 <geekosaur> @where paste
21:13:00 <lambdabot> Help us help you: please paste full code, input and/or output at e.g. https://paste.tomsmeding.com
21:13:11 <nickstwist> oh right. my mistake, sorry about that
21:13:36 <nickstwist> https://paste.tomsmeding.com/OI2jcpjv
21:16:07 <geekosaur> I think you want the string "magenta", not a value (which appears to be a function)
21:18:07 <nickstwist> unfortunately, using "magenta" will default to (i am guessing) xmonad's default definition for magenta. for instance, renaming the xmobarColor to foobar renders the element white instead of its intended light pink
21:18:35 <nickstwist> https://paste.tomsmeding.com/sWnujXpd
21:18:38 <nickstwist> this is the whole function
21:21:01 <geekosaur> yes, "foobar" is not a color in X11's rgb.txt so it gets defaulted
21:21:08 <geekosaur> a string is not a function
21:25:30 <nickstwist> oh. right, i see. is there a way to pass the values assigned at the bottom to xmobarBorder?
21:31:08 <nickstwist> sorry, i am a bit new to this
21:36:56 <geekosaur> you need to use the string inside it, for example for foobar you want "#ff79c6"
21:37:28 <geekosaur> you can't use foobar directly, it's not a color, it's a function which takes a string and wraps that in a color-setting xmobar command
21:38:50 <nickstwist> ah i see. i was hoping there might have been a way to use the colours at the bottom as i wanted to dynamically change them with something like pywal
21:39:21 <nickstwist> and thereby change the colours being used on xmobar based on the wallpaper set
21:39:28 <geekosaur> I don't think xmobar lets you dynamically change them
21:40:17 <nickstwist> sorry i meant something like the bottom of this file
21:40:20 <nickstwist> https://github.com/unsafe-andrew/dotfiles/blob/master/xmonad.hs
21:41:11 <nickstwist> where the colours are appended to the bottom of the file and then invoked elsewhere. i guess what i am doing currently is not quite that but rather wrapping the colour in a command, as you said
21:42:32 <geekosaur> I would use `foobarColor = "ff79c6"` and then use `foobarColor` to define both `foobar` and the anonymous function for `ppVisible`
21:50:53 wlhn joins (~wenzel@ip-87-108-38-187.customer.academica.fi)
21:51:15 × nickstwist quits (~nickstwis@cpc140418-slou6-2-0-cust78.17-4.cable.virginm.net) (Quit: Client closed)
21:51:49 nickstwist joins (~nickstwis@cpc140418-slou6-2-0-cust78.17-4.cable.virginm.net)
21:53:15 <nickstwist> sorry, i am a little bit confused by what you meant geekosaur. i did the following which worked
21:53:16 <nickstwist> https://paste.tomsmeding.com/hfVgC8nU
21:54:14 <nickstwist> but did not quite understand what you meant by defining foobar, or the anonymous function
21:54:48 <geekosaur> you (re)defined foobar there
21:55:14 <geekosaur> the anonymous function is the value of ppVisible (and ppCurrent is another one)
21:56:21 <nickstwist> oh i see what you mean now. sorry for the misunderstanding and thank you very much for your help :)
21:56:54 <geekosaur> Haskell takes some gettin used to unless you have experience in another ML-family language
21:57:19 <nickstwist> i do not, unfortunately. i picked up xmonad to learn haskell. it's very fun so far, but a bit different to get my head around
22:29:52 nickstwist parts (~nickstwis@cpc140418-slou6-2-0-cust78.17-4.cable.virginm.net) ()
23:59:33 × wlhn quits (~wenzel@ip-87-108-38-187.customer.academica.fi) (Ping timeout: 255 seconds)

All times are in UTC on 2024-02-14.