Home liberachat/#xmonad: Logs Calendar

Logs on 2022-02-24 (liberachat/#xmonad)

00:02:24 <geekosaur> o.O I'd use the Xrm library, since that's what it's there fore
00:19:56 × seschwar quits (~seschwar@user/seschwar) (Quit: :wq)
01:35:42 × td_ quits (~td@94.134.91.238) (Ping timeout: 256 seconds)
01:44:12 × jao quits (~jao@66.63.167.125) (Ping timeout: 256 seconds)
01:46:24 jao joins (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net)
01:51:51 × steve__ quits (~steve@ool-182c2b80.dyn.optonline.net) (Ping timeout: 256 seconds)
03:04:41 × banc quits (banc@gateway/vpn/airvpn/banc) (Ping timeout: 256 seconds)
03:16:25 × jao quits (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net) (Ping timeout: 272 seconds)
03:32:44 banc joins (banc@gateway/vpn/airvpn/banc)
03:45:16 × abhixec quits (~abhinav@c-67-169-139-16.hsd1.ca.comcast.net) (Remote host closed the connection)
04:31:01 benin joins (~benin@106.195.37.136)
04:37:39 steve__ joins (~steve@ool-182c2b80.dyn.optonline.net)
04:44:04 <galactic_starfis> I didn't use .Xresources, but I have a similar thing, if you're interested.
04:44:34 <galactic_starfis> It just pulls from specific files, and if one doesn't exist, it pulls from the next, etc, etc, with a fallback of some default colors.
04:45:12 <galactic_starfis> I'm curious if it could ever be built in a way so that you could achieve color switching without having to restart XMonad.
04:45:25 <galactic_starfis> Given the types surrounding it all though... Unlikely...
05:09:08 benin6 joins (~benin@106.195.34.202)
05:12:36 × benin quits (~benin@106.195.37.136) (Ping timeout: 240 seconds)
05:12:37 benin6 is now known as benin
05:48:01 × benin quits (~benin@106.195.34.202) (Read error: Connection reset by peer)
06:17:08 benin joins (~benin@106.195.33.202)
06:34:42 benin5 joins (~benin@106.195.39.120)
06:35:55 × benin5 quits (~benin@106.195.39.120) (Read error: Connection reset by peer)
06:36:53 × benin quits (~benin@106.195.33.202) (Ping timeout: 256 seconds)
06:37:51 benin joins (~benin@106.195.39.120)
06:44:17 × benin quits (~benin@106.195.39.120) (Read error: Connection reset by peer)
06:47:23 benin joins (~benin@106.195.39.120)
07:05:14 arjun joins (~arjun@user/arjun)
07:05:23 <arjun> hi
07:05:47 <arjun> anyone knows why font-awesome shows boxes for some icons in xmobar while some other icons work fine?
07:08:37 × benin quits (~benin@106.195.39.120) (Ping timeout: 256 seconds)
07:21:00 <Solid> galactic_starfis: introduce an IORef for the colour and just switch it based on that?
07:21:11 <Solid> would certainly work if you had different prompts with all the available colours
07:21:49 <Solid> but that "let's call xrdb and then unsafePerformIO it" is truly scary
07:24:36 abhixec joins (~abhinav@c-67-169-139-16.hsd1.ca.comcast.net)
07:46:51 × steve__ quits (~steve@ool-182c2b80.dyn.optonline.net) (Ping timeout: 272 seconds)
07:49:40 mc47 joins (~mc47@xmonad/TheMC47)
07:55:57 × mvk quits (~mvk@2607:fea8:5cdc:bf00::99e7) (Ping timeout: 240 seconds)
08:48:19 cfricke joins (~cfricke@user/cfricke)
08:59:37 yauhsien joins (~Yau-Hsien@61-231-19-150.dynamic-ip.hinet.net)
09:00:11 × lyiriyah[m] quits (~lyiriyahm@2001:470:69fc:105::cc0) (Quit: You have been kicked for being idle)
09:02:23 td_ joins (~td@94.134.91.148)
09:07:30 dschrempf joins (~dominik@070-207.dynamic.dsl.fonira.net)
10:52:11 × dschrempf quits (~dominik@070-207.dynamic.dsl.fonira.net) (Quit: WeeChat 3.3)
11:46:22 <geekosaur> depending on how it's done I wouldn't say scary, just unreliable
13:18:15 × arjun quits (~arjun@user/arjun) (Remote host closed the connection)
13:25:32 × cfricke quits (~cfricke@user/cfricke) (Ping timeout: 240 seconds)
13:58:38 <mc47> well, pretty sure one can remove unsafePerformIO and just work in the X monad
14:03:47 <mc47> Not even needed, barSpawner is in IO
14:23:48 × catman quits (~catman@user/catman) (Ping timeout: 240 seconds)
14:23:51 catman_ joins (~catman@user/catman)
14:26:06 catman_ is now known as catman
14:36:15 cfricke joins (~cfricke@user/cfricke)
15:04:40 jao joins (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net)
15:29:20 <M-elo-[m]> <galactic_starfis> "I'm curious if it could ever..." <- Crap.. I thought that was what would've happened if I switched to xresources.. well it's still worth changing to it for easier color management but damn that would've been nice to have
15:31:12 <geekosaur> I don't see much wrong with using Xrm to configure colors before starting xmonad, and restarting when the RESOURCE_MANAGER prop changes
15:32:20 <M-elo-[m]> Need to read about it before doing anything, haven't had much haskell progress in the past couple of months
16:00:06 × sig[m] quits (~sigrdrifa@2001:470:69fc:105::1:7148) (Quit: You have been kicked for being idle)
16:07:05 dschrempf joins (~dominik@070-207.dynamic.dsl.fonira.net)
16:17:12 × dschrempf quits (~dominik@070-207.dynamic.dsl.fonira.net) (Quit: WeeChat 3.3)
16:31:00 sebas joins (~sebas@207.248.198.65)
16:32:28 <sebas> hi, Is this a good place to ask questions or should I do it on reddit?
16:33:46 <geekosaur> this is a fine place to ask questions
16:34:21 <sebas> thanks
16:37:40 <sebas> I tried changing the resolution with spawn "xrandr --output HDMI-0 --mode 1600x900" inside the startUpHook
16:39:16 <sebas> when I enter xmonad it works fine, but when I quit it and reenter the screen is shown in the bottom-left corner of the monitor
16:40:04 <geekosaur> I think you want to do that before going into the xmonad combinator, otherwise you need the new XRandR hook for it to work? https://hackage.haskell.org/package/xmonad-contrib-0.17.0/docs/XMonad-Hooks-Rescreen.html
16:41:50 <sebas> I belive I can't use xmonad 0.17 still. I'm a Manjaro user, let me check
16:42:10 <geekosaur> you'll probably need to install via stack, cabal, or use git
16:42:42 <geekosaur> practically every distro goes by stackage, which has been "stuck" for the past several months
16:43:39 <Solid> new major stack resolver don't come out _that_ often anyways
16:44:20 <Solid> so we're not even in "that's unusually long" territory so far
16:44:32 <Solid> but I also don't know how far along aeson 2.0 is
16:45:08 <geekosaur> and we'restill waiting for them to land text 2.0, I think
16:45:33 <sebas> I did it install it from the stack once, but the option to change from kde to xmonad didn't appear in the display manager, so  I unistalled it. May I install it from the stack and ask again here how to make it appear in the login screen?
16:45:59 <Solid> is the new text such a big breaking change? i thought it was mostly internals associated with the UTF8 switch
16:46:10 <Solid> sebas: sure, sounds like an idea
16:46:21 <sebas> :)
16:46:23 <Solid> (the issue was most likely that your display manager couldn't find xmonad in $PATH)
16:46:38 <geekosaur> depends on the display manager, a lot of them want those desktop files
16:46:39 × sebas quits (~sebas@207.248.198.65) (Quit: Client closed)
16:46:51 <geekosaur> the TUTORIAL shows how to create one, as does the wiki
16:46:59 <Solid> shit
16:47:12 <Solid> should've waited with the "yes, go for it" until I'd linked INSTALL.md :)
16:47:20 <Solid> ?tell sebas also this may be useful: https://xmonad.org/INSTALL.html
16:47:21 <lambdabot> Consider it noted.
16:47:45 <Solid> in unrelated news
16:47:51 <geekosaur> oh right, INSTALL, not TUToRIAL
16:47:53 Solid got his hacktoberfest t-shirt today
16:48:22 <liskin> Um, why do we think the new Rescreen is necessary?
16:48:32 <liskin> What does quit and reenter mean, anyway?
16:49:12 <Solid> my guess would be quit to the display manager
16:49:17 <Solid> but i didn't follow that part very well
16:49:38 <geekosaur> was starting to doubt that one after I loaded the docs, although I don't know offhand if that xrandr invocation sends a ConfigureEvent or just an RRChangeNotify
16:49:55 <geekosaur> and yes, "quit and restart" is open to interpretation
16:53:39 mvk joins (~mvk@2607:fea8:5cdc:bf00::99e7)
16:54:56 <galactic_starfis> <Solid> "would certainly work if you..." <- It would work for prompts, bars, gridselects, decorations, etc, but not borders... Unless there's a way to change that on the fly.
16:55:09 <galactic_starfis> I already sort of have it for all of that, just on restart
16:55:19 <galactic_starfis> s/sort of//
17:01:29 <Solid> yeah borders would probably need a fork of the core (just smash an IORef in there :)
17:01:42 <liskin> Solid: wow, mine still hasn't left the US
17:01:51 <Solid> but the real solution is, of course, to set the borderWidth to 0!
17:02:09 <galactic_starfis> `smartBorders` :)
17:02:13 × mc47 quits (~mc47@xmonad/TheMC47) (Remote host closed the connection)
17:05:40 × jludwig quits (~justin@user/jludwig) (Quit: ZNC - https://znc.in)
17:06:33 jludwig joins (~justin@user/jludwig)
18:05:42 sebas joins (~sebas@207.248.198.65)
18:06:09 × sebas quits (~sebas@207.248.198.65) (Client Quit)
18:07:00 sebas joins (~sebas@207.248.198.65)
18:24:41 <galactic_starfis> https://0bin.net/paste/FQewS5k9#m75iRBt5L3dw08G4XeTGA+1x+exFnzeUt8ku0IKFn3V <-- I'm trying to pass colors into my gridselect, and it's hanging every time I run it.
18:24:50 <galactic_starfis> Why's it hanging?
18:29:38 × sebas quits (~sebas@207.248.198.65) (Quit: Client closed)
18:35:01 mc47 joins (~mc47@xmonad/TheMC47)
18:36:35 sebas joins (~sebas@207.248.198.65)
18:37:58 <sebas> hi, I've installed xmonad through stack. How do I make it appear in the display manager?
18:39:29 <geekosaur> https://github.com/xmonad/xmonad/blob/master/INSTALL.md#make-xmonad-your-window-manager has a section about display managers that use .desktop files
18:40:01 <sebas> let me read (y)
18:40:25 <geekosaur> see also https://github.com/geekosaur/xmonad.hs/blob/skkukuk/start-xmonad.desktop although that uses a wrapper script that sets my PATH
18:42:56 × sebas quits (~sebas@207.248.198.65) (Quit: Client closed)
18:44:46 sebas joins (~sebas@207.248.198.65)
18:53:53 × sebas quits (~sebas@207.248.198.65) (Quit: Client closed)
18:55:36 <geekosaur> galactic_starfis, what's the definition of gsconfig? I see a couple uses and a type signature but no def
19:03:03 <geekosaur> also I assume it must use `colors` since it (and therefore `rand` are otherwise unused
19:28:37 × geekosaur quits (~geekosaur@xmonad/geekosaur) (Ping timeout: 240 seconds)
19:30:17 geekosaur joins (~geekosaur@xmonad/geekosaur)
19:42:43 steve__ joins (~steve@ool-182c2b80.dyn.optonline.net)
19:53:57 <galactic_starfis> It's this: `gsconfig fgs bgs = (buildDefaultGSConfig $ colors fgs bgs) -- ...` with some other settings
20:14:34 × mc47 quits (~mc47@xmonad/TheMC47) (Remote host closed the connection)
20:16:45 × jao quits (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net) (Remote host closed the connection)
20:17:55 jao joins (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net)
20:18:53 seschwar joins (~seschwar@user/seschwar)
20:40:27 × jao quits (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net) (Remote host closed the connection)
20:41:41 jao joins (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net)
20:48:02 yauhsien_ joins (~Yau-Hsien@61-231-21-135.dynamic-ip.hinet.net)
20:50:56 × yauhsien quits (~Yau-Hsien@61-231-19-150.dynamic-ip.hinet.net) (Ping timeout: 252 seconds)
20:53:22 × cfricke quits (~cfricke@user/cfricke) (Quit: WeeChat 3.3)
20:57:53 <galactic_starfis> Any idea why? The colors are appearing, but the entire screen simply freezes and stays that way. The CPU usage ramps up, so I'm guessing it's infinite recursion somewhere.
20:58:13 <galactic_starfis> If I open gridselect at all, I need to kill the process via another TTY.
20:58:43 <galactic_starfis> This entire config, minus the `fgs bgs` arguments everywhere is the exact same
21:00:30 <galactic_starfis> hmm, turns out if I hit escape, then I'm able to restart XMonad from within
21:08:44 <geekosaur> I'mnot spotting anything but I suspect I'd have to annotate everything with `trace` to see what's looping
21:08:56 <geekosaur> and thereisn't quite enough code there for me to try that
21:39:47 dweiss joins (~dweiss@2a02:810a:980:470::6676)
21:52:13 <galactic_starfis> where would I put the trace ideally?
21:57:40 yauhsienhuangtw joins (~Yau-Hsien@61-231-21-135.dynamic-ip.hinet.net)
21:58:05 <geekosaur> I would annotate all of those functions with https://downloads.haskell.org/ghc/8.10.7/docs/html/libraries/base-4.14.3.0/Debug-Trace.html#v:trace naming the function, then check xmonad's stderr (usually ~/.xsession-errors, but if you used startx to start xmonad then it'll be the original console or wherever you redirected startx's stderr to) to see whoch ones are looping
21:58:21 <geekosaur> you really want to catch this because it'll probably be a *lot* of output before you can stop it
22:01:07 × yauhsien_ quits (~Yau-Hsien@61-231-21-135.dynamic-ip.hinet.net) (Ping timeout: 256 seconds)
22:20:50 × dweiss quits (~dweiss@2a02:810a:980:470::6676) (Quit: WeeChat 3.4)
22:56:20 × abhixec quits (~abhinav@c-67-169-139-16.hsd1.ca.comcast.net) (Quit: leaving)
22:57:15 abhixec joins (~abhinav@c-67-169-139-16.hsd1.ca.comcast.net)
23:23:17 × mvk quits (~mvk@2607:fea8:5cdc:bf00::99e7) (Ping timeout: 252 seconds)
23:35:31 × jao quits (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net) (Remote host closed the connection)
23:41:49 jao joins (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net)
23:47:24 × jao quits (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net) (Ping timeout: 240 seconds)
23:49:58 jao joins (~jao@68.235.43.94)

All times are in UTC on 2022-02-24.