Home liberachat/#xmonad: Logs Calendar

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

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

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