2022/02/24

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