2022/03/02

2022-03-02 00:03:56 +0100wz1000(~zubin@static.11.113.47.78.clients.your-server.de)
2022-03-02 00:05:12 +0100iqubic(~iqubic@c-67-171-37-233.hsd1.wa.comcast.net) (Quit: Connection closed)
2022-03-02 01:08:02 +0100seschwar(~seschwar@user/seschwar) (Quit: :wq)
2022-03-02 02:40:57 +0100aplainze1akind(~johndoe@captainludd.powered.by.lunarbnc.net)
2022-03-02 02:44:13 +0100aplainzetakind(~johndoe@captainludd.powered.by.lunarbnc.net) (Ping timeout: 240 seconds)
2022-03-02 04:04:57 +0100banc-(banc@gateway/vpn/airvpn/banc) (Ping timeout: 272 seconds)
2022-03-02 04:16:35 +0100yauhsien(~Yau-Hsien@61-231-37-5.dynamic-ip.hinet.net) (Read error: Connection reset by peer)
2022-03-02 04:19:31 +0100td_(~td@muedsl-82-207-238-074.citykom.de) (Ping timeout: 272 seconds)
2022-03-02 04:21:01 +0100td_(~td@94.134.91.171)
2022-03-02 04:22:18 +0100banc(banc@gateway/vpn/airvpn/banc)
2022-03-02 04:59:00 +0100jao(~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net) (Ping timeout: 240 seconds)
2022-03-02 05:22:30 +0100rekahsoft(~rekahsoft@cpe0008a20f982f-cm64777d666260.cpe.net.cable.rogers.com)
2022-03-02 06:08:33 +0100iqubic(~iqubic@c-67-171-37-233.hsd1.wa.comcast.net)
2022-03-02 06:13:37 +0100mvk(~mvk@2607:fea8:5cc3:7e00::45ee) (Ping timeout: 240 seconds)
2022-03-02 06:30:47 +0100yauhsien(~Yau-Hsien@61-231-37-5.dynamic-ip.hinet.net)
2022-03-02 07:16:58 +0100a6a45081-2b83(~aditya@2601:249:4300:1296:88ec:cc73:84d4:1507)
2022-03-02 07:23:32 +0100a6a45081-2b83(~aditya@2601:249:4300:1296:88ec:cc73:84d4:1507) (Remote host closed the connection)
2022-03-02 07:31:17 +0100 <iqubic> So, I just switched from using the official Arch Linux "xmonad" package to having XMonad installed via "cabal-install"
2022-03-02 07:33:57 +0100 <iqubic> I haven't changed my config in ~/.xmonad/xmonad.hs at all, but now I'm getting compilation errors when running "xmonad --recompile": https://dpaste.com/58GVBZ8TW
2022-03-02 07:34:06 +0100 <iqubic> Anyone know what's up with this?
2022-03-02 07:56:27 +0100 <Solid> AFAIK xmonad does not yet automatically detect cabal (there is a WIP PR by geekosaur https://github.com/xmonad/xmonad/pull/375 but apparently there are some issues)
2022-03-02 07:56:32 +0100 <Solid> which means you will need a build script
2022-03-02 07:56:41 +0100rekahsoft(~rekahsoft@cpe0008a20f982f-cm64777d666260.cpe.net.cable.rogers.com) (Ping timeout: 256 seconds)
2022-03-02 07:56:49 +0100 <iqubic> Oh? So how can I deal with this?
2022-03-02 07:57:49 +0100 <iqubic> Is there a way I can install XMonad and Contrib via stack, and just have that work instead?
2022-03-02 07:59:29 +0100 <Solid> sure, our install page is pretty comprehensive when it comes to installing via stack: https://xmonad.org/INSTALL.html#preparation
2022-03-02 08:00:00 +0100 <Solid> there is a build script for cabal in xmonad-testing ( https://github.com/xmonad/xmonad-testing/blob/master/build-scripts/build-with-cabal.sh ) but I've never used it since I'm quite content with stack
2022-03-02 08:00:26 +0100 <iqubic> How do I uninstall the cabal version?
2022-03-02 08:00:54 +0100 <iqubic> I ran "cabal install xmonad" and I want to undo that.
2022-03-02 08:02:49 +0100 <Solid> you can do ghc-pkg unregister xmonad
2022-03-02 08:03:58 +0100 <iqubic> If I install xmonad via stack, will I still need to write my own build script?
2022-03-02 08:04:31 +0100 <Solid> no, the new version of xmonad (0.17.0) recognises stack automatically
2022-03-02 08:04:47 +0100 <Solid> (and the install page has you build from source, so you'll get the newest version)
2022-03-02 08:06:10 +0100 <iqubic> I can verify that I have the latest version when I build my config.
2022-03-02 08:06:30 +0100 <iqubic> I've got a few modules that were introduced in 0.17.0 in there.
2022-03-02 08:13:46 +0100 <iqubic> Solid: Thanks for helping me get this set up.
2022-03-02 08:14:13 +0100 <iqubic> I just have one last thing to do, but it might be out of the scope of what XMonad support is.
2022-03-02 08:14:41 +0100 <iqubic> How can I make sure that LightDM is able to launch XMonad for me?
2022-03-02 08:15:20 +0100 <Solid> this should (hopefully) be covered by https://xmonad.org/INSTALL.html#make-xmonad-your-window-manager
2022-03-02 08:15:22 +0100 <iqubic> "which xmonad" returns "~/.local/bin/xmonad"
2022-03-02 08:20:34 +0100iqubic(~iqubic@c-67-171-37-233.hsd1.wa.comcast.net) (Quit: Connection closed)
2022-03-02 08:40:01 +0100iqubic(~iqubic@c-67-171-37-233.hsd1.wa.comcast.net)
2022-03-02 08:40:40 +0100 <iqubic> Solid: After a bit of fiddling with some LightDM config files, I finally have xmonad set up properly again.
2022-03-02 08:41:46 +0100 <Solid> \o/
2022-03-02 08:43:23 +0100 <iqubic> Now, I have a question: I have a user-defined ManageHook. Really it's just a list of rules that I'm mconcat-ed together.
2022-03-02 08:44:37 +0100 <iqubic> I'm using (-->) with a query on the lhs, and an operation on the rhs.
2022-03-02 08:45:40 +0100 <iqubic> A lot of my rules are simple like: "className =? "Gimp"            --> doFloat"
2022-03-02 08:46:01 +0100 <iqubic> But I do have some more complicated things too.
2022-03-02 08:47:22 +0100 <iqubic> I know that this compiles: (className =? "Gimp" --> doFloat >> hasBorder False). But does it actually do both of the things on right hand side of "-->"?
2022-03-02 08:48:31 +0100 <iqubic> Basically, long story short: what's the best way to combine two things of type `Query m` so that both actions are run?
2022-03-02 08:49:45 +0100 <iqubic> Should I use the monad sequencing operator of (>>) or the monoid combining operator of (<>)?
2022-03-02 08:50:42 +0100 <iqubic> Query has instances of both, and I'm not sure which is the right one to make sure that both actions get fired off when a matching ManageHook rule is found.
2022-03-02 08:51:50 +0100 <iqubic> Currently, what I'm trying to do is make it so that, if className is "Gimp", the window is floated and has no borders.
2022-03-02 08:52:47 +0100 <Solid> for Query we have that (>>) = (<>) so it doesn't matter which one you use
2022-03-02 08:53:22 +0100 <iqubic> Oh. I see.
2022-03-02 08:53:34 +0100 <iqubic> Will that ensure both "actions" get run?
2022-03-02 08:53:38 +0100 <Solid> yes
2022-03-02 08:53:42 +0100 <iqubic> Thanks.
2022-03-02 08:55:14 +0100 <iqubic> XMonad.Layout.NoBorders from contrib is a really cool module. SmartBorders is basically the best thing.
2022-03-02 09:01:58 +0100 <iqubic> What is the "XMonad.Hooks.TaffybarPagerHints" module for? Is that for getting TaffyBar to interface with XMonad?
2022-03-02 09:05:45 +0100 <Solid> yeah it exports some more information about xmonad's internal state to be used by taffybar
2022-03-02 09:06:04 +0100 <Solid> (and, well, I guess every other status bar that reads from EWMH atoms)
2022-03-02 09:06:18 +0100 <iqubic> Right... And then I assume that taffybar has some modules to read that data?
2022-03-02 09:06:58 +0100 <Solid> indeed
2022-03-02 09:12:36 +0100dschrempf(~dominik@070-207.dynamic.dsl.fonira.net)
2022-03-02 09:13:54 +0100 <iqubic> I'm just reading through the Taffybar docs and I found the module "System.Taffybar.Widget.SNITray" a variable that has the best possible name ever: "sniTrayThatStartsWatcherEvenThoughThisIsABadWayToDoIt :: TaffyIO Widget"
2022-03-02 09:15:29 +0100cfricke(~cfricke@user/cfricke)
2022-03-02 09:18:04 +0100 <iqubic> Solid: Will using "layoutHook = avoidStruts def" work with Taffybar, or not?
2022-03-02 09:30:19 +0100mc47(~mc47@xmonad/TheMC47)
2022-03-02 09:48:11 +0100 <lyiriyah[m]> <iqubic> "I'm just reading through the..." <- Ahaha that's great
2022-03-02 10:00:06 +0100denbrahe(~denbrahe@2001:470:69fc:105::19c0) (Quit: You have been kicked for being idle)
2022-03-02 10:00:14 +0100HAL[m](~evadk8mat@2001:470:69fc:105::3ed0) (Quit: You have been kicked for being idle)
2022-03-02 10:39:05 +0100dschrempf(~dominik@070-207.dynamic.dsl.fonira.net) (Ping timeout: 256 seconds)
2022-03-02 10:43:09 +0100nomadxxxx3(~lanomadx@208.91.64.217)
2022-03-02 10:44:11 +0100nomadxx3(~lanomadx@69.167.38.124) (Ping timeout: 250 seconds)
2022-03-02 11:14:18 +0100 <Solid> iqubic: I would imagine so (it should work with any non-broken status bar)
2022-03-02 11:14:25 +0100 <Solid> and that name :D
2022-03-02 11:22:16 +0100 <iqubic> What exactly does "avoidStruts" do?
2022-03-02 11:23:34 +0100 <davve> if i remember correctly it will make the windows avoid placing on top of the status bar
2022-03-02 11:24:43 +0100 <iqubic> Yes, but how does XMonad know which are the status bars?
2022-03-02 11:29:18 +0100 <Solid> these things are thankfully standardised (e.g., by the EWMH spec)
2022-03-02 11:29:34 +0100 <Solid> so we just look for which windows set _NET_WM_WINDOW_TYPE_DOCK (or _NET_WM_WINDOW_TYPE_DESKTOP)
2022-03-02 11:31:39 +0100 <iqubic> Ah. I see. Does taffybar set these hints correctly?
2022-03-02 11:36:41 +0100mc47(~mc47@xmonad/TheMC47) (Remote host closed the connection)
2022-03-02 11:39:17 +0100 <liskin> Solid: I should clarify the cabal-install autodetection… it does "detect" it if it's installed in the way INSTALL.md recommends; geekosaur's PR just adds support for having cabal.project in ~/.xmonad and having xmonad --recompile rebuild the deps in addition to xmonad.hs, so it's very likely irrelevant here, and for most users
2022-03-02 11:41:36 +0100 <Solid> liskin: oh, interesting, thanks for the clarification :)
2022-03-02 11:44:34 +0100 <liskin> it's a bit silly that installing xmonad is so complicated that even core contributors don't understand all the intricacies :-/
2022-03-02 11:44:51 +0100 <liskin> not sure if that's our fault though
2022-03-02 11:45:00 +0100 <liskin> and not sure what we can do to make it easier
2022-03-02 11:45:54 +0100 <Solid> well, part of the problem is that I don't think I've ever used pure cabal
2022-03-02 11:46:46 +0100 <liskin> yeah, the other part being why are there multiple "official" build tools anyway
2022-03-02 11:47:02 +0100 <Solid> and I don't think I've ever consciously acknowledged the existence of things like cabal.project files :)
2022-03-02 11:49:44 +0100 <liskin> I wonder how difficult it'd be to run xmonad in flatpak
2022-03-02 11:50:18 +0100 <liskin> it'd need a permission to spawn things back on the host, not sure if that's even possibly
2022-03-02 11:50:23 +0100 <liskin> it'd certainly be a fun exercise
2022-03-02 13:00:27 +0100 <geekosaur> I'm probably withdrawing that PR — it's already marked as draft, and in its current form the only thing it adds over current support is the `install --lib` stuff is unnecessary *for anything listed in cabal.project*. which is kinda useless
2022-03-02 13:01:01 +0100 <geekosaur> next version will probably look for xmonad.cabal and use it to get deps and build a binary
2022-03-02 13:01:13 +0100 <geekosaur> so it's more like the stack one
2022-03-02 13:04:09 +0100 <liskin> but xmonad.cabal can exist even in a stack-based setup, whereas cabal.project quite clearly indicates a cabal-based setup
2022-03-02 13:04:31 +0100 <geekosaur> right, but even now the code checks for stack.yaml first
2022-03-02 13:05:54 +0100 <geekosaur> and you could have a perfectly good xmonad.cabal without a cabal.project if you're just getting xmonad and contrib from hackage
2022-03-02 13:06:04 +0100 <geekosaur> so yes, ordering matters
2022-03-02 13:06:15 +0100 <geekosaur> and I took that into account when writing it
2022-03-02 13:07:35 +0100 <liskin> yeah but with just a xmonad.cabal, how do you tell where you're getting xmonad(-contrib) from?
2022-03-02 13:08:00 +0100 <geekosaur> if there's nocabal.project then it uses hackage
2022-03-02 13:08:12 +0100 <geekosaur> cabal.project lets you vendor things
2022-03-02 13:09:37 +0100 <geekosaur> same as with the existing instructions, and iirc that's even mentioned in INSTALL.html
2022-03-02 13:11:40 +0100 <liskin> it seems a bit weird to me that the mere existence of something.cabal (where something /= "xmonad", for obvious reasons) should trigger a cabal build, but I need to go now, so I'll leave it up to you to think it through
2022-03-02 13:12:35 +0100 <geekosaur> actually the name of the cabal file is irrelevant, since we're not `cabal install`ing anything (I would use `find-bin` as with the existing code)
2022-03-02 13:12:53 +0100 <geekosaur> but it's no weirder thana stack.yaml doing so
2022-03-02 13:13:56 +0100 <geekosaur> and the only reason I'm fixing it to xmonad.cabal is so I don't have to do a directory search :)
2022-03-02 13:33:29 +0100dschrempf(~dominik@070-207.dynamic.dsl.fonira.net)
2022-03-02 14:09:12 +0100geekosaur(~geekosaur@xmonad/geekosaur) (Quit: Leaving)
2022-03-02 14:10:30 +0100geekosaur(~geekosaur@xmonad/geekosaur)
2022-03-02 15:06:24 +0100bfrk(~Thunderbi@i59F7ABB9.versanet.de)
2022-03-02 15:12:24 +0100 <bfrk> I hope this is the right channel to ask about a java compatibility problem. My problem is that with java apps the main menu bar doesn't work. I can pull down a submenu, it is visible as long as I keep the mouse button pressed, but I cannot select any item from it.
2022-03-02 15:14:05 +0100dschrempf(~dominik@070-207.dynamic.dsl.fonira.net) (Quit: WeeChat 3.3)
2022-03-02 15:20:40 +0100 <lyiriyah[m]> <bfrk> "I hope this is the right channel..." <- Have you tried setting your wmname to LG3D?
2022-03-02 15:21:58 +0100 <bfrk> Thanks, I will try that trick (which incidentally I just read about in the FAQ).
2022-03-02 15:22:53 +0100 <Solid> might also be worth to set _JAVA_AWT_WM_NONREPARENTING to 1 (as done by e.g. https://hackage.haskell.org/package/xmonad-contrib-0.17.0/docs/XMonad-Util-Hacks.html#v:javaHack )
2022-03-02 15:24:08 +0100 <geekosaur> which one works depends on which version of Java. OpenJDK uses what Solid said; Orscle Java requires the LG3D trick
2022-03-02 15:24:57 +0100 <lyiriyah[m]> Oh ok, TIL
2022-03-02 15:25:09 +0100catman(~catman@user/catman) (Ping timeout: 272 seconds)
2022-03-02 15:26:14 +0100 <geekosaur> *Oracle
2022-03-02 15:31:56 +0100 <bfrk> It seems that neither trick has any effect. I just discovered accidentally that there is work-around (sort of): click on the menu item, holding the button down, then moving the mouse out of the parent window. This makes the menu stick and now I can select items. Not ideal but not a 100% show-stopper.
2022-03-02 15:35:13 +0100dschrempf(~dominik@070-207.dynamic.dsl.fonira.net)
2022-03-02 15:42:10 +0100dschrempf(~dominik@070-207.dynamic.dsl.fonira.net) (Quit: WeeChat 3.3)
2022-03-02 16:06:23 +0100mc47(~mc47@xmonad/TheMC47)
2022-03-02 16:08:42 +0100jao(~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net)
2022-03-02 16:50:03 +0100 <bfrk> Also, hitting Alt key and then navigating with cursor keys works.
2022-03-02 16:51:57 +0100 <bfrk> Solid: Wait, setting _JAVA_AWT_WM_NONREPARENTING=1 in the environment, is that for xmonad or for the Java program?
2022-03-02 16:55:50 +0100 <geekosaur> for the Java program
2022-03-02 16:56:59 +0100 <geekosaur> you can set it for xmonad but then you must use xmonad to launch the java program or it won't be in the java program's environment. (so you can't use e.g. a statusbar or menu applet launched by a session manager)
2022-03-02 17:04:24 +0100 <bfrk> I see. Too bad. BTW, one of the strange things is that a colleague told me they had the same problem with the/an X server on Windows.
2022-03-02 17:09:50 +0100 <geekosaur> that doesn't surprise me too much because the frame wouldn't be managed by X11, but by Windows
2022-03-02 17:10:18 +0100 <geekosaur> and all location calculations get thrown off because X11 is window-relative coordinates while Windows is screen-relative
2022-03-02 17:10:44 +0100 <geekosaur> so AWT can't find itself using X11 APIs if it can't find the frame using X11 APIs
2022-03-02 17:22:38 +0100mc47(~mc47@xmonad/TheMC47) (Remote host closed the connection)
2022-03-02 17:28:39 +0100dschrempf(~dominik@070-207.dynamic.dsl.fonira.net)
2022-03-02 17:29:11 +0100dschrempf(~dominik@070-207.dynamic.dsl.fonira.net) (Client Quit)
2022-03-02 17:31:13 +0100bfrk(~Thunderbi@i59F7ABB9.versanet.de) (Read error: Connection reset by peer)
2022-03-02 17:31:31 +0100bfrk(~Thunderbi@i59F7ABB9.versanet.de)
2022-03-02 17:32:01 +0100jao(~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net) (Ping timeout: 245 seconds)
2022-03-02 17:50:17 +0100werneta(~werneta@70-142-214-115.lightspeed.irvnca.sbcglobal.net) (Ping timeout: 256 seconds)
2022-03-02 18:08:27 +0100iqubic(~iqubic@c-67-171-37-233.hsd1.wa.comcast.net) (Quit: Ping timeout (120 seconds))
2022-03-02 18:16:36 +0100seschwar(~seschwar@user/seschwar)
2022-03-02 18:35:15 +0100yauhsien_(~Yau-Hsien@61-231-37-5.dynamic-ip.hinet.net)
2022-03-02 18:37:27 +0100Benzi-Junior(~BenziJuni@dsl-149-64-179.hive.is) (Quit: ZNC 1.8.2 - https://znc.in)
2022-03-02 18:38:11 +0100Benzi-Junior(~BenziJuni@dsl-149-64-179.hive.is)
2022-03-02 18:38:57 +0100yauhsien(~Yau-Hsien@61-231-37-5.dynamic-ip.hinet.net) (Ping timeout: 272 seconds)
2022-03-02 18:39:39 +0100bfrk(~Thunderbi@i59F7ABB9.versanet.de) (Quit: bfrk)
2022-03-02 18:40:06 +0100bfrk(~Thunderbi@2001:9e8:36c:900:e7ef:921d:e711:82f8)
2022-03-02 18:45:10 +0100scardinal(~supreme@customer-212-237-101-39.ip4.gigabit.dk) (Quit: Lost terminal)
2022-03-02 18:46:03 +0100scardinal(~supreme@customer-212-237-101-39.ip4.gigabit.dk)
2022-03-02 19:15:53 +0100cfricke(~cfricke@user/cfricke) (Ping timeout: 256 seconds)
2022-03-02 19:27:32 +0100Natch(~natch@c-4db8e255.014-297-73746f25.bbcust.telenor.se) (Remote host closed the connection)
2022-03-02 19:29:30 +0100bfrk(~Thunderbi@2001:9e8:36c:900:e7ef:921d:e711:82f8) (Ping timeout: 260 seconds)
2022-03-02 19:32:28 +0100Natch(~natch@c-4db8e255.014-297-73746f25.bbcust.telenor.se)
2022-03-02 19:39:12 +0100kayvank(~user@52-119-115-185.PUBLIC.monkeybrains.net)
2022-03-02 19:44:14 +0100kayvank(~user@52-119-115-185.PUBLIC.monkeybrains.net) (Quit: ERC (IRC client for Emacs 27.1))
2022-03-02 19:48:20 +0100kayvank(~user@52-119-115-185.PUBLIC.monkeybrains.net)
2022-03-02 19:48:55 +0100kayvank(~user@52-119-115-185.PUBLIC.monkeybrains.net) (Remote host closed the connection)
2022-03-02 19:52:22 +0100kayvank(~user@52-119-115-185.PUBLIC.monkeybrains.net)
2022-03-02 19:55:54 +0100kayvank(~user@52-119-115-185.PUBLIC.monkeybrains.net) ()
2022-03-02 20:24:00 +0100AngryBromide[m](~angrybrom@2001:470:69fc:105::1:cfb3)
2022-03-02 21:01:26 +0100bfrk(~Thunderbi@2001:9e8:36c:900:e7ef:921d:e711:82f8)
2022-03-02 21:20:43 +0100AIM[m](~iamaravin@2001:470:69fc:105::1:50eb) ()
2022-03-02 21:25:25 +0100jao(~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net)
2022-03-02 22:07:06 +0100GustavoNasciment(~gutsvaomm@2001:470:69fc:105::1:cfca)
2022-03-02 22:07:07 +0100 <GustavoNasciment> Hey Good afternoon
2022-03-02 22:08:16 +0100 <geekosaur> hi
2022-03-02 22:30:04 +0100 <GustavoNasciment> eu não sei fazer exercício haskell, algúem pode me ajudar?
2022-03-02 22:30:19 +0100 <GustavoNasciment> I don't know how to do haskell exercise, can anyone help me?
2022-03-02 22:31:08 +0100 <geekosaur> that's probably better asked in #haskell or #haskell-beginners
2022-03-02 22:31:19 +0100 <geekosaur> there are more people who could help you
2022-03-02 22:33:24 +0100 <GustavoNasciment> can someone help me exercise Haskell Programming... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/85074ff5cd682e6c39bb66280f766fe20a6f…)
2022-03-02 23:19:35 +0100sagax(~sagax_nb@user/sagax)
2022-03-02 23:39:13 +0100Czernobog(~Czernobog@user/czernobog) (Quit: ZNC 1.8.2 - https://znc.in)
2022-03-02 23:39:42 +0100Czernobog(~Czernobog@user/czernobog)