Home liberachat/#xmonad: Logs Calendar

Logs on 2023-03-29 (liberachat/#xmonad)

00:17:15 × catman quits (~catman@user/catman) (Ping timeout: 248 seconds)
01:50:02 rekahsoft joins (~rekahsoft@bras-base-orllon1122w-grc-07-174-95-68-142.dsl.bell.ca)
01:50:41 × rekahsoft quits (~rekahsoft@bras-base-orllon1122w-grc-07-174-95-68-142.dsl.bell.ca) (Remote host closed the connection)
01:51:19 rekahsoft joins (~rekahsoft@bras-base-orllon1122w-grc-07-174-95-68-142.dsl.bell.ca)
02:12:29 catman joins (~catman@user/catman)
02:29:54 × td_ quits (~td@i5387093D.versanet.de) (Ping timeout: 255 seconds)
02:31:41 td_ joins (~td@i53870923.versanet.de)
02:58:12 × catman quits (~catman@user/catman) (Ping timeout: 265 seconds)
04:15:32 × rekahsoft quits (~rekahsoft@bras-base-orllon1122w-grc-07-174-95-68-142.dsl.bell.ca) (Ping timeout: 265 seconds)
05:45:12 chomwitt joins (~chomwitt@2a02:587:7a0f:e00:1ac0:4dff:fedb:a3f1)
05:50:16 × thunderrd quits (~thunderrd@183.182.114.86) (Ping timeout: 265 seconds)
06:11:44 <Solid> oh, right :)
06:17:13 <Solid> guess we can always rename the branch when its time
06:29:57 × ft quits (~ft@p3e9bc443.dip0.t-ipconnect.de) (Quit: leaving)
06:31:34 × werneta quits (~werneta@70-142-214-115.lightspeed.irvnca.sbcglobal.net) (Ping timeout: 255 seconds)
06:33:15 werneta joins (~werneta@70-142-214-115.lightspeed.irvnca.sbcglobal.net)
06:41:21 mncheck joins (~mncheck@193.224.205.254)
07:41:09 <liskin> Solid: yeah you'll need to cherry-pick enough of the CI commits to make github show a green tick for the head commit in that branch
07:41:34 <liskin> I mean, getting the haskell-ci workflow green *should* be enough for the release, but…
07:43:31 <liskin> (If we wanted to be super robust we'd need a release branch naming scheme and change the packdeps and generatemanpage workflows to run on release branches as well but in this case we can run packdeps manually and generatemanpage isn't needed.)
08:06:37 <xmonadtrack> xmonad-contrib Tony Zorman * v0.17.1-143-gfb63987a: X.Prompt: Factor out how to accept the current selection (2 hours ago, 1 file, 11+ 7-) https://github.com/xmonad/xmonad-contrib/commit/fb63987ac89c
08:06:39 <xmonadtrack> xmonad-contrib Tony Zorman * v0.17.1-144-gf127f71c: X.Prompt: Alias C-m to RET in Emacs/Vim bindings (2 hours ago, 2 files, 9+ 0-) https://github.com/xmonad/xmonad-contrib/commit/f127f71c914a
08:17:17 <wz1000> can xmonad handle REL_WHEEL_HI_RES events? https://www.kernel.org/doc/html/latest/input/event-codes.html#ev-rel
08:17:40 <wz1000> It doesn't seem so after adding tracing to the event hook
08:17:48 × shinjipf quits (~shinjipf@159.65.131.14) (Quit: Shinji leaves)
08:19:59 <wz1000> I'm trying to fix a bug where if I have a device that advertises these events, and also have regular mouse wheel scroll events bound in xmonad, the hi res versions are not grabbed by xmonad and instead passed through to the underlying window (so the xmonad action is triggered but firefox also scrolls)
08:20:29 <wz1000> I guess that xmonad doesn't use xinput2 or evdev so doesn't know about these events
08:31:40 <geekosaur> correct
08:38:48 <geekosaur> you could conceivably mask for those events in startupHook but you'd have to modify the X11 library to recognize them the same way liskin had to modify it to recognize XRandR events. conceivably we could crash without that, since if we received an XI2 event the X11 lib wouldn't know what to do with it
08:42:19 <geekosaur> and it might even use more memory than is reserved for a received event which would corrupt the heap
08:43:25 <geekosaur> (I don't really like how X11 lib deals with events, but that ship sailed in xmonad 0.1)
08:44:16 × L29Ah quits (~L29Ah@wikipedia/L29Ah) (Ping timeout: 252 seconds)
08:44:17 <geekosaur> or even whenever the original X11 bindings were written because it's that that expect an `alloca`d buffer for `nextEvent`
08:49:29 shinjipf joins (~shinjipf@137.184.4.49)
08:50:10 × shinjipf quits (~shinjipf@137.184.4.49) (Client Quit)
08:50:38 shinjipf joins (~shinjipf@137.184.4.49)
09:00:06 × deip[m] quits (~deipmatri@2001:470:69fc:105::2:679e) (Quit: You have been kicked for being idle)
09:00:37 × liskin[m] quits (~liskinmat@2001:470:69fc:105::768) (Quit: You have been kicked for being idle)
09:22:10 real-fht[m] joins (~real-fhtm@2001:470:69fc:105::2:d597)
09:27:15 <real-fht[m]> is it possible to combine different actions in a single manageHook match?
09:27:22 <real-fht[m]> (for example, run doShift and doFloat)
09:42:05 <geekosaur> use <+> or >>
09:42:22 liskin[m] joins (~liskinmat@2001:470:69fc:105::768)
09:42:42 <geekosaur> or <> which is the new spelling for <+>
09:43:15 <geekosaur> some things need to happen in a particular order (https://github.com/geekosaur/xmonad.hs/blob/skkukuk/xmonad.hs#L281-L282)
09:44:31 <geekosaur> https://github.com/geekosaur/xmonad.hs/blob/skkukuk/xmonad.hs#L162-L163 is an example within a manageHook
10:39:00 Ou42 joins (~Ou4242a@2600:1700:e930:41b0:65bd:94a:d3f4:d966)
10:41:12 <Ou42> Hello! ( XY prob(s) will abound... ) I think what I want is to be able to change to a dark theme and increase the font size in xmessage, is this possible? and/or can it be replaced w/ something that has those features?
10:46:51 <Ou42> OK I just now found this: <https://gist.github.com/SilverSoldier/739433e99b291f2f818bc556b00780a3> but how to use it w/ xmonad?
10:50:10 <geekosaur> I use https://github.com/geekosaur/xmonad.hs/blob/skkukuk/xmessage (warning: perl) which accepts xmessage options and translates to zenity, which will use your gtk theme
10:52:17 <Ou42> geekosaur: TYVM! That said, I'm only familiar w/ perl in name only. ( I'm running xmonad ATM so I'm a bit slow flipping back / forth )
10:52:47 <Ou42> I'm basically in "Couch OS" ATM -- laptop connected to TV
10:52:50 <Solid> Ou42: you can, in principle specify any executable via $XMONAD_XMESSAGE (see https://github.com/xmonad/xmonad/blob/master/src/XMonad/Core.hs#L457 )
10:53:07 <Solid> you'd just need to take care of either doing something with, or ignoring the xmessage-specific arguments that we give it
10:54:00 <Ou42> Solid: there it is! I think! the link I found -- right after joining the chan of course! -- states that the fg/bg color args aren't in the man page.
10:54:09 <Ou42> ... so that might be the easiest way.
10:55:10 <geekosaur> a lot of standard (for old-style X programs) options are in X(7) instead of every program's manpage
10:55:20 <geekosaur> (which kinda sucks)
10:57:52 <Ou42> one moment
11:00:08 <Ou42> OK, I'm learning... maybe?! so that would be "man 7 X" ?
11:00:18 <geekosaur> yes
11:00:24 <Ou42> I didn't find mention of xmessage, but did find -fg
11:00:36 <Ou42> cool beans.
11:00:48 <geekosaur> look for OPTIONS
11:01:18 <geekosaur> it won't mention individual programs; it lists the options that all old-style X11 programs take
11:02:07 <geekosaur> (so it doesn't include things like -fn because not all programs use fonts)
11:03:52 <Ou42> interesting
11:04:12 <Ou42> Now I realize I hsould have followed the xmonad tutorial more closely and installed the screen cap feature. ;o)
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
11:05:49 <geekosaur> you can also specify -fg/-bg as `Xmessage*foreground` and `Xmessage*background` in the .Xresources file
11:07:04 <Ou42> you're beating me to my Q's.
11:07:06 <Ou42> ha!
11:07:49 <Ou42> I was gonna go the environ var path, but I'll try that first
11:07:54 <geekosaur> it's xfonts-scalable on debian/ubuntu/mint, I don't know for other distros
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?
11:09:39 <Ou42> ... like for instance, do y'all just close xmessage and open the log in a term instead?
11:09:40 <geekosaur> the default programs used by xmonad don't have a concept of themes, really
11:10:04 L29Ah joins (~L29Ah@wikipedia/L29Ah)
11:10:17 <geekosaur> that's why I have a wrapper for xmessage that runs zenity, because gtk programs have themes
11:11:28 <Solid> Ou42: I've never thought about this, but my xmessage has had a dark background ever since I can remember
11:11:48 <Solid> and I don't know why :)
11:12:12 <Ou42> oh c'mon, aren't you curious?
11:12:33 <Ou42> maybe you asked this same Q years ago and you are using geekosaur's perl script?! :oD
11:13:00 <Ou42> I'm not bash-ing any languages here.
11:13:07 <Solid> hah, no I'm definitely not
11:14:20 <Solid> Mh, I still have `*.background: #32302f` in my Xresources back from when I was still using urxvt
11:14:29 <Solid> so I guess that'd be it?
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.
11:14:39 <Ou42> Now I'm going thru the tutorial as I should have.
11:14:46 <Ou42> w/ a very tiny xmonad.hs
11:14:54 <Solid> going through the tutorial is always a good idea :)
11:15:00 <geekosaur> Solid: yes
11:15:22 <Solid> maybe we should mention how to at least get rid of the white background there
11:26:04 <Ou42> progress!
11:26:14 <Ou42> TY Solid & geekosaur !!
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
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?
11:29:36 <Ou42> <https://hackage.haskell.org/package/xmonad-contrib-0.16/docs/XMonad-Util-Themes.html>
11:35:26 <geekosaur> tabbed is a layout modifier that takes parameters; you can't use it by itself
11:35:50 <geekosaur> there is simpleTabbed which provides default parameters and a default underlying layout (Simplest)
11:36:49 <geekosaur> oh, no layout, just a shrinker and a formatter. https://github.com/geekosaur/xmonad.hs/blob/skkukuk/xmonad.hs#L290
11:43:34 Ou42 reading
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
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 🙂
12:00:53 Ou42 is (slowly) documenting this ...
12:10:12 <Ou42> geekosaur: It'll take me some time to sift thru your code, but much appreciated!
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
12:17:28 <geekosaur> (sorry I disappeared; let's just say I had to take a pepto bismol break)
12:18:15 <Ou42> I call it the "office"
12:19:25 L29Ah parts (~L29Ah@wikipedia/L29Ah) ()
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 ...
12:21:42 <Ou42> ... I just issued `xmonad --recompile` for the first time ... it worked! Lack of faith?
12:21:47 <Ou42> Now I'll break something and try it again.
12:21:49 fnurglewitz joins (uid263868@id-263868.lymington.irccloud.com)
12:21:50 <Ou42> brb
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.
12:24:29 <Ou42> ( re: xmessage: I did get the colors inverted, so it does look better. )
12:25:18 <geekosaur> they should also be in xmonad.errors somewhere (~/.xmonad or ~/.local/share/xmonad/xmonad.errors)
12:25:45 <geekosaur> er, ~/.xmonad/xmonad.errors
12:26:15 <Ou42> thx!
12:26:43 <Ou42> I just remembered my next Q: I don't normally use `stack` and just tinker in ghci ...
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
12:27:50 <Ou42> but now that I'm starting "small" and building up no errors and things are building / working
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?
12:28:35 <Ou42> in ghci using `:t`?
12:28:55 <geekosaur> use `stack ghci` in your xmonad directory
12:29:09 <Ou42> ok one sec
12:29:24 <geekosaur> beware that layout types tend to be huge and complicated
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
12:31:04 <Ou42> ugh. it tried to compile 319 things
12:31:13 <Ou42> lots of warnigns, then an error on ...
12:31:38 <Ou42> "[ 45 of 319] Compiling XMonad.Layout.MessageControl"
12:31:41 <geekosaur> hm, I don't think it should need to recompile
12:32:06 <Ou42> it did it automatically after issuing "stack ghci"
12:32:15 <Ou42> but like I said, I think I have my stack installation borked
12:32:24 <Ou42> that's for another day
12:32:34 <Ou42> I gotta catch some Z's before the sun comes up
12:32:49 <Ou42> Thanks again for the help!
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/>
12:36:24 <Ou42> g'nite and thanks for all the ... monads?
12:37:01 × Ou42 quits (~Ou4242a@2600:1700:e930:41b0:65bd:94a:d3f4:d966) (Quit: Leaving)
13:04:29 × haskl[error] quits (~haskl@user/haskl) (Read error: Connection reset by peer)
13:07:28 haskl joins (~haskl@user/haskl)
13:19:57 Ou42 joins (~Ou4242a@2600:1700:e930:41b0:65bd:94a:d3f4:d966)
13:20:07 <Ou42> I couldn't let it go...
13:20:21 <Ou42> I found / fixed one of my errors/mistakes
13:20:27 <Ou42> but the other persists
13:20:39 <geekosaur> @where paste
13:20:39 <lambdabot> Help us help you: please paste full code, input and/or output at e.g. https://paste.tomsmeding.com
13:21:12 <Ou42> https://gist.github.com/Ou42/6355010c1829b7097b1fcf602b8c4beb
13:21:34 <Ou42> that's the hard to kill error
13:22:07 <Ou42> the mistake I fixed was "tabbed = tabbed ..." <== not allowed to use a func name as a binding? I s'pose
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 🙂
13:23:16 <geekosaur> so even if it had typechecked it would have failed
13:23:51 <Ou42> \o?
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
13:24:05 <Ou42> grrr. \o//
13:24:38 <geekosaur> > let ones = 1:ones in ones
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...
13:24:58 <geekosaur> > let x = x in x
13:25:00 <lambdabot> *Exception: <<loop>>
13:25:01 <Ou42> but why can't the compiler infer the types when I have them "outside" that where clause?
13:26:27 <Ou42> my xmonad.hs is below the error output
13:28:50 <geekosaur> it can't infer types for layouts very well, especially in the case where they're not used
13:29:07 <Ou42> :lightbulb:
13:29:28 <Ou42> it needs to be used for it to infer the type! gotcha!
13:29:40 <Ou42> I think I can sleep on that.
13:29:47 <geekosaur> a layout has as its most general type `LayoutClass l => l Window`. typeclasses tend to break type inference
13:30:25 <geekosaur> (note that you can't give a layout that type; you need to give it a type compatible with that type, but specific to the layout
13:31:22 <Ou42> I grok maybe a 1/3 of what you're saying... so I'll still have to sleep on it. But I def grok the point about needing to have the thing used for the compiler to make the right assumptions.
13:32:09 <geekosaur> well, let's just say that it only has half the information it needs to infer a type. the other half it has to get from use providing that `LayoutClass` thing
13:33:36 <Ou42> I think I follow.
13:33:43 <geekosaur> I'm tempted to say this is because things are overparameterized
13:33:44 <Ou42> OK, *now* I'm gonna call it a night
13:34:21 <Ou42> geekosaur: tyvm
13:34:22 <geekosaur> we use type variables where we don't strictly need to, because that way we can provide alternative types to feed it through a proof checker that doesn't have access to X11 types
13:34:24 <Ou42> Solid: ty too
13:34:54 <geekosaur> but that means it breaks very badly when nothing provides those types to it
13:36:07 <Ou42> makes sense.
13:36:35 <Ou42> seriously appreciate this.
13:36:55 <Ou42> g'nite #xmonad! May we cross paths after a short nap
13:37:04 <Ou42> peace & 42
13:37:18 × Ou42 quits (~Ou4242a@2600:1700:e930:41b0:65bd:94a:d3f4:d966) (Quit: Leaving)
14:02:50 L29Ah joins (~L29Ah@wikipedia/L29Ah)
14:26:18 × redgloboli_ quits (~redglobol@user/redgloboli) (Quit: ...enter the matrix...)
14:27:28 redgloboli joins (~redglobol@user/redgloboli)
14:28:47 L29Ah parts (~L29Ah@wikipedia/L29Ah) ()
16:00:15 × liskin[m] quits (~liskinmat@2001:470:69fc:105::768) (Quit: You have been kicked for being idle)
16:28:44 L29Ah joins (~L29Ah@wikipedia/L29Ah)
16:50:05 catman joins (~catman@user/catman)
17:09:48 × catman quits (~catman@user/catman) (Ping timeout: 264 seconds)
17:31:30 ft joins (~ft@p4fc2a88b.dip0.t-ipconnect.de)
19:29:37 malook joins (~Thunderbi@2a02:9b0:4029:41a8:3d46:a94b:9330:d637)
20:03:06 × malook quits (~Thunderbi@2a02:9b0:4029:41a8:3d46:a94b:9330:d637) (Ping timeout: 252 seconds)
20:08:51 malook joins (~Thunderbi@46.52.72.170)
20:12:24 × malook quits (~Thunderbi@46.52.72.170) (Remote host closed the connection)
20:12:52 malook joins (~Thunderbi@2a02:9b0:4029:41a8:e76d:c79c:d48f:d8b1)
20:26:45 × malook quits (~Thunderbi@2a02:9b0:4029:41a8:e76d:c79c:d48f:d8b1) (Quit: malook)
20:40:15 × haskl quits (~haskl@user/haskl) (Ping timeout: 255 seconds)
20:52:48 haskl joins (~haskl@user/haskl)
22:31:38 × fnurglewitz quits (uid263868@id-263868.lymington.irccloud.com) (Quit: Connection closed for inactivity)
23:10:36 × chomwitt quits (~chomwitt@2a02:587:7a0f:e00:1ac0:4dff:fedb:a3f1) (Ping timeout: 260 seconds)
23:22:55 × mncheck quits (~mncheck@193.224.205.254) (Ping timeout: 250 seconds)
23:49:43 catman joins (~catman@user/catman)
23:53:27 × catman quits (~catman@user/catman) (Client Quit)

All times are in UTC on 2023-03-29.