Home liberachat/#xmonad: Logs Calendar

Logs: liberachat/#xmonad

←Prev  Next→ 184,790 events total
2024-02-14 15:32:35 × scardinal quits (~supreme@0x573d64a9.static.cust.fastspeed.dk) (Ping timeout: 252 seconds)
2024-02-14 15:34:07 scardinal joins (~supreme@0x573d64a9.static.cust.fastspeed.dk)
2024-02-14 16:22:48 × MrElendig quits (~Urist@archlinux/op/MrElendig) (Quit: exterminate exterminate exterminate)
2024-02-14 16:24:05 MrElendig joins (~Urist@archlinux/op/MrElendig)
2024-02-14 17:11:32 L29Ah parts (~L29Ah@wikipedia/L29Ah) ()
2024-02-14 18:34:19 × jeeeun8 quits (~jeeeun@78.40.148.178) (Quit: The Lounge - https://thelounge.chat)
2024-02-14 18:57:42 L29Ah joins (~L29Ah@wikipedia/L29Ah)
2024-02-14 19:39:27 todi joins (~todi@pd9571068.dip0.t-ipconnect.de)
2024-02-14 19:57:30 ft joins (~ft@p508db2e6.dip0.t-ipconnect.de)
2024-02-14 21:05:02 nickstwist joins (~nickstwis@cpc140418-slou6-2-0-cust78.17-4.cable.virginm.net)
2024-02-14 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)
2024-02-14 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 :)
2024-02-14 21:07:49 <nickstwist> thanks very much
2024-02-14 21:09:32 <geekosaur> it should also be in xmonad.error
2024-02-14 21:09:59 <geekosaur> er, xmonad.errors
2024-02-14 21:10:25 <geekosaur> with XDG it's ~/.local/share/xmonad/xmonad.errors, otherwise ~/.xmonad/xmonad.errors
2024-02-14 21:11:32 <nickstwist> ah right. thank you, found it. that will help a lot going forward :)
2024-02-14 21:12:03 <nickstwist> i got this error
2024-02-14 21:12:10 <nickstwist> xmonad.hs:64:72: error: [GHC-83865]
2024-02-14 21:12:10 <nickstwist>     • Couldn't match type: String -> String
2024-02-14 21:12:11 <nickstwist>                      with: [Char]
2024-02-14 21:12:11 <nickstwist>       Expected: String
2024-02-14 21:12:12 <nickstwist>         Actual: String -> String
2024-02-14 21:12:12 <nickstwist>     • Probable cause: ‘magenta’ is applied to too few arguments
2024-02-14 21:12:13 <nickstwist>       In the second argument of ‘xmobarBorder’, namely ‘magenta’
2024-02-14 21:12:13 <nickstwist>       In the second argument of ‘(.)’, namely
2024-02-14 21:12:14 <nickstwist>         ‘xmobarBorder "Bottom" magenta 2’
2024-02-14 21:12:14 <nickstwist>       In the expression:
2024-02-14 21:12:15 <nickstwist>         wrap " [ " " ] " . xmobarBorder "Bottom" magenta 2
2024-02-14 21:12:15 <nickstwist>    |
2024-02-14 21:12:16 <nickstwist> 64 |     ,   ppVisible           = wrap " [ " " ] " . xmobarBorder "Bottom" magenta 2
2024-02-14 21:12:16 <nickstwist>    |                                                                        ^^^^^^^
2024-02-14 21:12:31 <nickstwist> whoops, the carets at the bottom are in the wrong place. they should be pointing at magenta.
2024-02-14 21:12:47 <nickstwist> replacing magenta with a string like "#ffffff" works
2024-02-14 21:12:57 <geekosaur> please use a pastebin next time
2024-02-14 21:13:00 <geekosaur> @where paste
2024-02-14 21:13:00 <lambdabot> Help us help you: please paste full code, input and/or output at e.g. https://paste.tomsmeding.com
2024-02-14 21:13:11 <nickstwist> oh right. my mistake, sorry about that
2024-02-14 21:13:36 <nickstwist> https://paste.tomsmeding.com/OI2jcpjv
2024-02-14 21:16:07 <geekosaur> I think you want the string "magenta", not a value (which appears to be a function)
2024-02-14 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
2024-02-14 21:18:35 <nickstwist> https://paste.tomsmeding.com/sWnujXpd
2024-02-14 21:18:38 <nickstwist> this is the whole function
2024-02-14 21:21:01 <geekosaur> yes, "foobar" is not a color in X11's rgb.txt so it gets defaulted
2024-02-14 21:21:08 <geekosaur> a string is not a function
2024-02-14 21:25:30 <nickstwist> oh. right, i see. is there a way to pass the values assigned at the bottom to xmobarBorder?
2024-02-14 21:31:08 <nickstwist> sorry, i am a bit new to this
2024-02-14 21:36:56 <geekosaur> you need to use the string inside it, for example for foobar you want "#ff79c6"
2024-02-14 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
2024-02-14 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
2024-02-14 21:39:21 <nickstwist> and thereby change the colours being used on xmobar based on the wallpaper set
2024-02-14 21:39:28 <geekosaur> I don't think xmobar lets you dynamically change them
2024-02-14 21:40:17 <nickstwist> sorry i meant something like the bottom of this file
2024-02-14 21:40:20 <nickstwist> https://github.com/unsafe-andrew/dotfiles/blob/master/xmonad.hs
2024-02-14 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
2024-02-14 21:42:32 <geekosaur> I would use `foobarColor = "ff79c6"` and then use `foobarColor` to define both `foobar` and the anonymous function for `ppVisible`
2024-02-14 21:50:53 wlhn joins (~wenzel@ip-87-108-38-187.customer.academica.fi)
2024-02-14 21:51:15 × nickstwist quits (~nickstwis@cpc140418-slou6-2-0-cust78.17-4.cable.virginm.net) (Quit: Client closed)
2024-02-14 21:51:49 nickstwist joins (~nickstwis@cpc140418-slou6-2-0-cust78.17-4.cable.virginm.net)
2024-02-14 21:53:15 <nickstwist> sorry, i am a little bit confused by what you meant geekosaur. i did the following which worked
2024-02-14 21:53:16 <nickstwist> https://paste.tomsmeding.com/hfVgC8nU
2024-02-14 21:54:14 <nickstwist> but did not quite understand what you meant by defining foobar, or the anonymous function
2024-02-14 21:54:48 <geekosaur> you (re)defined foobar there
2024-02-14 21:55:14 <geekosaur> the anonymous function is the value of ppVisible (and ppCurrent is another one)
2024-02-14 21:56:21 <nickstwist> oh i see what you mean now. sorry for the misunderstanding and thank you very much for your help :)
2024-02-14 21:56:54 <geekosaur> Haskell takes some gettin used to unless you have experience in another ML-family language
2024-02-14 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
2024-02-14 22:29:52 nickstwist parts (~nickstwis@cpc140418-slou6-2-0-cust78.17-4.cable.virginm.net) ()
2024-02-14 23:59:33 × wlhn quits (~wenzel@ip-87-108-38-187.customer.academica.fi) (Ping timeout: 255 seconds)
2024-02-15 01:10:45 L29Ah parts (~L29Ah@wikipedia/L29Ah) ()
2024-02-15 01:11:52 L29Ah joins (~L29Ah@wikipedia/L29Ah)
2024-02-15 01:47:17 nickstwist joins (~nickstwis@cpc140418-slou6-2-0-cust78.17-4.cable.virginm.net)
2024-02-15 01:50:25 <nickstwist> hello, sorry to bother again. i was just wondering how i might import a module into xmonad.hs. my file is saved at `~/.config/xmonad` and i created a folder called `~/.config/xmonad/lib`, where i symlinked the relevant file but i keep getting the error `Could not find module`
2024-02-15 01:50:32 <nickstwist> @where pastebin
2024-02-15 01:50:32 <lambdabot> http://rafb.net/paste
2024-02-15 01:50:40 <nickstwist> @where pastebin
2024-02-15 01:50:41 <lambdabot> http://rafb.net/paste
2024-02-15 01:51:00 <geekosaur> @where paste
2024-02-15 01:51:00 <lambdabot> Help us help you: please paste full code, input and/or output at e.g. https://paste.tomsmeding.com
2024-02-15 01:51:05 <geekosaur> or there's
2024-02-15 01:51:06 <geekosaur> @paste
2024-02-15 01:51:07 <lambdabot> A pastebin: https://paste.debian.net/
2024-02-15 01:51:11 <geekosaur> pick one 🙂
2024-02-15 01:52:03 <nickstwist> ah right. thank you for that :)
2024-02-15 01:53:48 <geekosaur> anyway it sounds like you did the right thing, unless you mismade the symlink somehow
2024-02-15 01:54:45 <nickstwist> i think the only thing i did different was capitalise the file name
2024-02-15 01:54:59 <nickstwist> Colors.hs instead of colors.hs
2024-02-15 01:58:08 <geekosaur> what exactly is in it?
2024-02-15 01:58:38 <nickstwist> here is the minimal working example of my xmonad.hs and the symlinked file, Colors.hs
2024-02-15 01:58:40 <nickstwist> https://paste.tomsmeding.com/XA3GrmMr
2024-02-15 01:59:44 <geekosaur> why are you importing it as XMonad.Custom.Wal.Colors ?
2024-02-15 01:59:56 <geekosaur> if it's in lib then it'd be `import Colors`
2024-02-15 02:00:00 <nickstwist> oh, sorry, that was an earlier change. it should say import Colors
2024-02-15 02:02:02 <nickstwist> i must have input something incorrectly but it is working now..
2024-02-15 02:02:09 <nickstwist> i'll just test it with a colour
2024-02-15 02:02:59 <nickstwist> ah, that works. great :)
2024-02-15 02:03:01 <nickstwist> thanks again!
2024-02-15 02:04:11 <geekosaur> np
2024-02-15 03:17:14 srk_ joins (~sorki@user/srk)
2024-02-15 03:20:13 srk| joins (~sorki@user/srk)

All times are in UTC.