2023/11/30

2023-11-30 00:07:11 +0100vishnix(~vishwas@c-73-9-42-9.hsd1.il.comcast.net) (Quit: leaving)
2023-11-30 01:08:43 +0100todi(~todi@p4fd1a3e6.dip0.t-ipconnect.de) (Ping timeout: 260 seconds)
2023-11-30 01:21:12 +0100todi(~todi@p5dca586e.dip0.t-ipconnect.de)
2023-11-30 02:51:17 +0100tremon(~tremon@83.80.159.219) (Quit: getting boxed in)
2023-11-30 02:55:08 +0100mc47(~mc47@xmonad/TheMC47) (Remote host closed the connection)
2023-11-30 03:29:03 +0100kayvan(~user@52-119-115-185.public.monkeybrains.net)
2023-11-30 03:32:16 +0100kayvan(~user@52-119-115-185.public.monkeybrains.net) (Remote host closed the connection)
2023-11-30 04:05:40 +0100td_(~td@i5387091D.versanet.de) (Ping timeout: 276 seconds)
2023-11-30 04:07:05 +0100td_(~td@i53870919.versanet.de)
2023-11-30 04:19:47 +0100todi(~todi@p5dca586e.dip0.t-ipconnect.de) (Ping timeout: 264 seconds)
2023-11-30 04:24:09 +0100todi(~todi@pd9571327.dip0.t-ipconnect.de)
2023-11-30 04:48:14 +0100m5zs7k(aquares@web10.mydevil.net) (Ping timeout: 260 seconds)
2023-11-30 04:50:40 +0100m5zs7k(aquares@web10.mydevil.net)
2023-11-30 05:03:27 +0100td_(~td@i53870919.versanet.de) (Ping timeout: 256 seconds)
2023-11-30 05:05:10 +0100td_(~td@i53870924.versanet.de)
2023-11-30 07:56:56 +0100alp_(~alp@2001:861:e3d6:8f80:6883:ec6f:ae5:a98b)
2023-11-30 10:08:25 +0100L29Ah(~L29Ah@wikipedia/L29Ah) (Ping timeout: 268 seconds)
2023-11-30 10:08:59 +0100m5zs7k(aquares@web10.mydevil.net) (Ping timeout: 264 seconds)
2023-11-30 10:11:29 +0100m5zs7k(aquares@web10.mydevil.net)
2023-11-30 10:12:02 +0100cfricke(~cfricke@user/cfricke)
2023-11-30 10:47:24 +0100alp_(~alp@2001:861:e3d6:8f80:6883:ec6f:ae5:a98b) (Remote host closed the connection)
2023-11-30 10:47:41 +0100alp_(~alp@2001:861:e3d6:8f80:d84:b3f3:e592:cdc5)
2023-11-30 11:09:28 +0100m5zs7k(aquares@web10.mydevil.net) (Ping timeout: 268 seconds)
2023-11-30 11:11:20 +0100m5zs7k(aquares@web10.mydevil.net)
2023-11-30 12:20:42 +0100tremon(~tremon@83.80.159.219)
2023-11-30 13:18:02 +0100[Leary](~Leary]@user/Leary/x-0910699) (Remote host closed the connection)
2023-11-30 13:18:16 +0100[Leary](~Leary]@user/Leary/x-0910699)
2023-11-30 14:57:21 +0100cfricke(~cfricke@user/cfricke) (Ping timeout: 252 seconds)
2023-11-30 16:18:00 +0100vishnix(~vishwas@c-73-9-42-9.hsd1.il.comcast.net)
2023-11-30 16:30:11 +0100sadmax(~user@64.130.91.66)
2023-11-30 16:36:58 +0100alp_(~alp@2001:861:e3d6:8f80:d84:b3f3:e592:cdc5) (Ping timeout: 256 seconds)
2023-11-30 17:01:11 +0100td_(~td@i53870924.versanet.de) (Quit: waking up from the american dream ...)
2023-11-30 17:12:43 +0100td_(~td@i53870924.versanet.de)
2023-11-30 17:41:32 +0100diep(~diep@172-104-137-130.ip.linodeusercontent.com)
2023-11-30 17:46:01 +0100 <diep> Hi! Im looking for a special layout modifier: If there is only a single displayed window in a workspace, take 2/3 of the available height of the screen, take 100% of the width and anchor the window at the bottom
2023-11-30 17:47:05 +0100 <diep> looking to xmonad contrib, the most closest layout I found is `CenteredIfSingle`
2023-11-30 17:47:55 +0100 <diep> but with it, the window has to be centered in the screen, but I need it to be anchored at the bottom of the screen
2023-11-30 17:49:16 +0100 <fizzie> You might be able to get that by using Full modified by XMonad.Layout.Gaps to add a 1/3 screen top gap; it lets you specify each side separately. Though I think that's in pixels, not in relative fractions.
2023-11-30 17:50:08 +0100 <fizzie> And then of course XMonad.Layout.IfMax to limit that special behavior to the "only one window" case.
2023-11-30 17:54:29 +0100 <diep> https://b.deip.fr/p/emu-emu-mouse
2023-11-30 17:55:59 +0100 <fizzie> (FWIW, CenteredIfSingle is not a lot of of code discounting comments -- you might also just copy that into your own configuration and modify it to anchor at the bottom. I think that would be a one-line change, `pos * 2` → `pos`.)
2023-11-30 18:01:16 +0100 <diep> I'll try that thx!
2023-11-30 18:03:39 +0100 <diep> Im really a noob with xmonad thou, I dont know the langage, but I suppose it's possible to put the code in a separate file next to my xmonad.hs and then import it using relative path?
2023-11-30 18:14:13 +0100Natch(~natch@c-9e07225c.038-60-73746f7.bbcust.telenor.se) (Remote host closed the connection)
2023-11-30 18:21:34 +0100 <geekosaur> you're supposed to put it in the lib subdirectory, actually, then you import it as normal
2023-11-30 18:34:25 +0100Natch(~natch@c-9e07225c.038-60-73746f7.bbcust.telenor.se)
2023-11-30 18:37:47 +0100diep(~diep@172-104-137-130.ip.linodeusercontent.com) (Ping timeout: 264 seconds)
2023-11-30 19:37:35 +0100alp_(~alp@2001:861:e3d6:8f80:5320:a0af:5fbb:fa76)
2023-11-30 19:56:36 +0100mc47(~mc47@xmonad/TheMC47)
2023-11-30 21:14:35 +0100alp_(~alp@2001:861:e3d6:8f80:5320:a0af:5fbb:fa76) (Ping timeout: 256 seconds)
2023-11-30 21:35:23 +0100sadmax(~user@64.130.91.66) (Ping timeout: 268 seconds)
2023-11-30 21:41:15 +0100sadmax(~user@38.158.180.90)
2023-11-30 21:44:26 +0100diep(~diep@172-104-137-130.ip.linodeusercontent.com)
2023-11-30 22:56:27 +0100sadmax`(~user@38.158.180.90)
2023-11-30 23:00:03 +0100sadmax(~user@38.158.180.90) (Ping timeout: 260 seconds)
2023-11-30 23:03:05 +0100alp_(~alp@2001:861:e3d6:8f80:7a87:ac61:3be:9d6)
2023-11-30 23:13:35 +0100 <diep> geekosaur: not sure about the lib subdir. Note that I'm using stack to build xmonad, so that my current xmonad project structure -> https://b.deip.fr/p/ape-panda-bison
2023-11-30 23:14:26 +0100 <geekosaur> lib subdir is how you're supposed to do it. top dir working is actually a ghc bug
2023-11-30 23:14:34 +0100 <geekosaur> so I'd be a bit wary of using it
2023-11-30 23:15:14 +0100 <diep> I suppose I have to edit my stack.yaml file?
2023-11-30 23:16:41 +0100 <diep> https://bin.deip.fr/upload/emu-toad-lizard
2023-11-30 23:20:31 +0100 <geekosaur> https://gitlab.haskell.org/ghc/ghc/-/issues/23937
2023-11-30 23:20:41 +0100 <geekosaur> yes
2023-11-30 23:21:06 +0100 <geekosaur> (xmonad passes `-i` and has since 0.2)
2023-11-30 23:21:41 +0100 <diep> when I try to put MyCustomLayout.hs into `lib/` subdir and I import it inside xmonad.hs like this `import MyCustomLayout` I get the error "Cound not find module" when building
2023-11-30 23:29:46 +0100 <diep> Am I missing something or?
2023-11-30 23:32:40 +0100 <diep> https://b.deip.fr/p/eel-cat-monkey
2023-11-30 23:34:30 +0100 <diep> omg is it really that complicated to import a module from a local file in haskell???
2023-11-30 23:34:38 +0100 <diep> wtf
2023-11-30 23:34:52 +0100sadmax`(~user@38.158.180.90) (Ping timeout: 255 seconds)
2023-11-30 23:36:14 +0100 <geekosaur> I haven't used stack, I don't know what you need to change to have it tell ghc that there are modules in lib
2023-11-30 23:37:00 +0100 <geekosaur> hm, actually it shouldn't matter because we use `stack exec ghc`
2023-11-30 23:38:33 +0100 <liskin> Yeah it shouldn't. Can we see the whole output?
2023-11-30 23:40:12 +0100 <geekosaur> although I do wonder if we should make the `-i` go away since it has never done anything and might break people's setups if ghc fixes the bug
2023-11-30 23:41:15 +0100 <diep> https://b.deip.fr/p/monkey-wasp-wolf
2023-11-30 23:43:28 +0100 <diep> https://b.deip.fr/p/snail-parrot-hawk
2023-11-30 23:46:34 +0100mc47(~mc47@xmonad/TheMC47) (Remote host closed the connection)
2023-11-30 23:54:24 +0100 <liskin> It's looking in /home/pierre/.config/xmonad/lib
2023-11-30 23:54:53 +0100 <liskin> What's /o/xmonad? Is that the same? Probably not
2023-11-30 23:57:39 +0100 <diep> nope, it's /opt/xmonad where I have xmonad and contrib and stack files
2023-11-30 23:57:45 +0100 <diep> where I build xmonad
2023-11-30 23:58:02 +0100 <diep> so yes /home/pierre/.config/xmonad/lib is wrong
2023-11-30 23:58:21 +0100 <diep> should be /opt/xmonad/lib