Home liberachat/#xmonad: Logs Calendar

Logs: liberachat/#xmonad

←Prev  Next→ 184,957 events total
2023-03-29 11:04:12 <Ou42> Now I realize I hsould have followed the xmonad tutorial more closely and installed the screen cap feature. ;o)
2023-03-29 11:05:09 <geekosaur> if you want to go the .Xresources route (why do they even mention .Xdefaults? that was X10 and SunOS 3/4) you can specify a font the way they show in that paste, making sure you install the adobe server-side fonts so the fontspec works (most linuxes don't install them by default these days
2023-03-29 11:05:49 <geekosaur> you can also specify -fg/-bg as `Xmessage*foreground` and `Xmessage*background` in the .Xresources file
2023-03-29 11:07:04 <Ou42> you're beating me to my Q's.
2023-03-29 11:07:06 <Ou42> ha!
2023-03-29 11:07:49 <Ou42> I was gonna go the environ var path, but I'll try that first
2023-03-29 11:07:54 <geekosaur> it's xfonts-scalable on debian/ubuntu/mint, I don't know for other distros
2023-03-29 11:09:03 <Ou42> before I go too far down this rabbit hole, is this the right problem? Or is there a more naive/idomatic way of switching to a dark theme while using xmonad?
2023-03-29 11:09:39 <Ou42> ... like for instance, do y'all just close xmessage and open the log in a term instead?
2023-03-29 11:09:40 <geekosaur> the default programs used by xmonad don't have a concept of themes, really
2023-03-29 11:10:04 L29Ah joins (~L29Ah@wikipedia/L29Ah)
2023-03-29 11:10:17 <geekosaur> that's why I have a wrapper for xmessage that runs zenity, because gtk programs have themes
2023-03-29 11:11:28 <Solid> Ou42: I've never thought about this, but my xmessage has had a dark background ever since I can remember
2023-03-29 11:11:48 <Solid> and I don't know why :)
2023-03-29 11:12:12 <Ou42> oh c'mon, aren't you curious?
2023-03-29 11:12:33 <Ou42> maybe you asked this same Q years ago and you are using geekosaur's perl script?! :oD
2023-03-29 11:13:00 <Ou42> I'm not bash-ing any languages here.
2023-03-29 11:13:07 <Solid> hah, no I'm definitely not
2023-03-29 11:14:20 <Solid> Mh, I still have `*.background: #32302f` in my Xresources back from when I was still using urxvt
2023-03-29 11:14:29 <Solid> so I guess that'd be it?
2023-03-29 11:14:31 <Ou42> I'm slow and the theme change is annoying, but I'll learn. this is my 2nd attempt at using xmonad. I have a little haskell experience. Not a guru by any stretch, but thought I'd be OK ... but jumped too far ahead trying to get DistroTubes setup.
2023-03-29 11:14:39 <Ou42> Now I'm going thru the tutorial as I should have.
2023-03-29 11:14:46 <Ou42> w/ a very tiny xmonad.hs
2023-03-29 11:14:54 <Solid> going through the tutorial is always a good idea :)
2023-03-29 11:15:00 <geekosaur> Solid: yes
2023-03-29 11:15:22 <Solid> maybe we should mention how to at least get rid of the white background there
2023-03-29 11:26:04 <Ou42> progress!
2023-03-29 11:26:14 <Ou42> TY Solid & geekosaur !!
2023-03-29 11:27:20 <Ou42> OK, next Q and hold onto your seats ... per the tut one can create ( I'm not that familiar w/ the ||| operator ) a "list" of Layouts
2023-03-29 11:28:25 <Ou42> AFAICT, this works fine if the Layouts are all non-decorated, but if I try to append `||| tabbed` it doesn't work, is this the correct interpretation?
2023-03-29 11:29:36 <Ou42> <https://hackage.haskell.org/package/xmonad-contrib-0.16/docs/XMonad-Util-Themes.html>
2023-03-29 11:35:26 <geekosaur> tabbed is a layout modifier that takes parameters; you can't use it by itself
2023-03-29 11:35:50 <geekosaur> there is simpleTabbed which provides default parameters and a default underlying layout (Simplest)
2023-03-29 11:36:49 <geekosaur> oh, no layout, just a shrinker and a formatter. https://github.com/geekosaur/xmonad.hs/blob/skkukuk/xmonad.hs#L290
2023-03-29 11:43:34 Ou42 reading
2023-03-29 11:49:18 <geekosaur> only that one line matters; the stuff following is unrelated and the Renamed is just to drop the "Simplest" when I display the layout in my status bar
2023-03-29 11:50:33 <geekosaur> that said, I use a lot of xmonad features so you might be interested in going through my whole config to try to understand it 🙂
2023-03-29 12:00:53 Ou42 is (slowly) documenting this ...
2023-03-29 12:10:12 <Ou42> geekosaur: It'll take me some time to sift thru your code, but much appreciated!
2023-03-29 12:17:11 <geekosaur> I think all of us have our configs up, listed in the README. mine uses more stuff but is straightforward; liskin's has more experimental stuff in it
2023-03-29 12:17:28 <geekosaur> (sorry I disappeared; let's just say I had to take a pepto bismol break)
2023-03-29 12:18:15 <Ou42> I call it the "office"
2023-03-29 12:19:25 L29Ah parts (~L29Ah@wikipedia/L29Ah) ()
2023-03-29 12:21:16 <Ou42> Well, I'm an eternal noob. I've made some progress w/ Haskell, but my eyes were bigger than my brain jumping too far ahead w/ xmonad. Now I (mostly) followed the tutorial off the xmonad.org ...
2023-03-29 12:21:42 <Ou42> ... I just issued `xmonad --recompile` for the first time ... it worked! Lack of faith?
2023-03-29 12:21:47 <Ou42> Now I'll break something and try it again.
2023-03-29 12:21:49 fnurglewitz joins (uid263868@id-263868.lymington.irccloud.com)
2023-03-29 12:21:50 <Ou42> brb
2023-03-29 12:23:50 <Ou42> it still opens up an xmessage, but it does spit out the error msgs in the terminal too, so it's a win in my book.
2023-03-29 12:24:29 <Ou42> ( re: xmessage: I did get the colors inverted, so it does look better. )
2023-03-29 12:25:18 <geekosaur> they should also be in xmonad.errors somewhere (~/.xmonad or ~/.local/share/xmonad/xmonad.errors)
2023-03-29 12:25:45 <geekosaur> er, ~/.xmonad/xmonad.errors
2023-03-29 12:26:15 <Ou42> thx!
2023-03-29 12:26:43 <Ou42> I just remembered my next Q: I don't normally use `stack` and just tinker in ghci ...
2023-03-29 12:27:35 <Ou42> part of my prev issue(s) were conflicting info online due to different xmonad versions and my stack setup not loading the correct ghc ver
2023-03-29 12:27:50 <Ou42> but now that I'm starting "small" and building up no errors and things are building / working
2023-03-29 12:28:23 <Ou42> but here's my Q: can I check the types so I can debug why I can't combine the layouts?
2023-03-29 12:28:35 <Ou42> in ghci using `:t`?
2023-03-29 12:28:55 <geekosaur> use `stack ghci` in your xmonad directory
2023-03-29 12:29:09 <Ou42> ok one sec
2023-03-29 12:29:24 <geekosaur> beware that layout types tend to be huge and complicated
2023-03-29 12:31:00 <geekosaur> I've been using vscode to edit my config of late (this requires a full stack or cabal setup, not the quick and dirty one from INSTALL / TUTORIAL, or vscode won't find xmonad) and layout types are pretty horrifying
2023-03-29 12:31:04 <Ou42> ugh. it tried to compile 319 things
2023-03-29 12:31:13 <Ou42> lots of warnigns, then an error on ...
2023-03-29 12:31:38 <Ou42> "[ 45 of 319] Compiling XMonad.Layout.MessageControl"
2023-03-29 12:31:41 <geekosaur> hm, I don't think it should need to recompile
2023-03-29 12:32:06 <Ou42> it did it automatically after issuing "stack ghci"
2023-03-29 12:32:15 <Ou42> but like I said, I think I have my stack installation borked
2023-03-29 12:32:24 <Ou42> that's for another day
2023-03-29 12:32:34 <Ou42> I gotta catch some Z's before the sun comes up
2023-03-29 12:32:49 <Ou42> Thanks again for the help!
2023-03-29 12:36:15 <Ou42> ps - if I get to it, this might be my next foray: <https://www.reddit.com/r/xmonad/comments/hot295/xmonad_is_not_using_system_theme_settings/>
2023-03-29 12:36:24 <Ou42> g'nite and thanks for all the ... monads?
2023-03-29 12:37:01 × Ou42 quits (~Ou4242a@2600:1700:e930:41b0:65bd:94a:d3f4:d966) (Quit: Leaving)
2023-03-29 13:04:29 × haskl[error] quits (~haskl@user/haskl) (Read error: Connection reset by peer)
2023-03-29 13:07:28 haskl joins (~haskl@user/haskl)
2023-03-29 13:19:57 Ou42 joins (~Ou4242a@2600:1700:e930:41b0:65bd:94a:d3f4:d966)
2023-03-29 13:20:07 <Ou42> I couldn't let it go...
2023-03-29 13:20:21 <Ou42> I found / fixed one of my errors/mistakes
2023-03-29 13:20:27 <Ou42> but the other persists
2023-03-29 13:20:39 <geekosaur> @where paste
2023-03-29 13:20:39 <lambdabot> Help us help you: please paste full code, input and/or output at e.g. https://paste.tomsmeding.com
2023-03-29 13:21:12 <Ou42> https://gist.github.com/Ou42/6355010c1829b7097b1fcf602b8c4beb
2023-03-29 13:21:34 <Ou42> that's the hard to kill error
2023-03-29 13:22:07 <Ou42> the mistake I fixed was "tabbed = tabbed ..." <== not allowed to use a func name as a binding? I s'pose
2023-03-29 13:23:05 <geekosaur> oh, that's much worse. the `tabbed` on both sides of the `=` are the same, so it would try to find the least fixed point. which in practice means an infinite loop 🙂
2023-03-29 13:23:16 <geekosaur> so even if it had typechecked it would have failed
2023-03-29 13:23:51 <Ou42> \o?
2023-03-29 13:23:53 <geekosaur> in any case, yes, you can't reuse the name. which is why I stuck a `q` on the front of mine
2023-03-29 13:24:05 <Ou42> grrr. \o//
2023-03-29 13:24:38 <geekosaur> > let ones = 1:ones in ones
2023-03-29 13:24:40 <lambdabot> [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1...
2023-03-29 13:24:58 <geekosaur> > let x = x in x
2023-03-29 13:25:00 <lambdabot> *Exception: <<loop>>
2023-03-29 13:25:01 <Ou42> but why can't the compiler infer the types when I have them "outside" that where clause?
2023-03-29 13:26:27 <Ou42> my xmonad.hs is below the error output
2023-03-29 13:28:50 <geekosaur> it can't infer types for layouts very well, especially in the case where they're not used
2023-03-29 13:29:07 <Ou42> :lightbulb:
2023-03-29 13:29:28 <Ou42> it needs to be used for it to infer the type! gotcha!
2023-03-29 13:29:40 <Ou42> I think I can sleep on that.

All times are in UTC.