2022/02/24

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