2023/11/30

2023-11-30 00:08:43 +0000todi(~todi@p4fd1a3e6.dip0.t-ipconnect.de) (Ping timeout: 260 seconds)
2023-11-30 00:21:12 +0000todi(~todi@p5dca586e.dip0.t-ipconnect.de)
2023-11-30 01:51:17 +0000tremon(~tremon@83.80.159.219) (Quit: getting boxed in)
2023-11-30 01:55:08 +0000mc47(~mc47@xmonad/TheMC47) (Remote host closed the connection)
2023-11-30 02:29:03 +0000kayvan(~user@52-119-115-185.public.monkeybrains.net)
2023-11-30 02:32:16 +0000kayvan(~user@52-119-115-185.public.monkeybrains.net) (Remote host closed the connection)
2023-11-30 03:05:40 +0000td_(~td@i5387091D.versanet.de) (Ping timeout: 276 seconds)
2023-11-30 03:07:05 +0000td_(~td@i53870919.versanet.de)
2023-11-30 03:19:47 +0000todi(~todi@p5dca586e.dip0.t-ipconnect.de) (Ping timeout: 264 seconds)
2023-11-30 03:24:09 +0000todi(~todi@pd9571327.dip0.t-ipconnect.de)
2023-11-30 03:48:14 +0000m5zs7k(aquares@web10.mydevil.net) (Ping timeout: 260 seconds)
2023-11-30 03:50:40 +0000m5zs7k(aquares@web10.mydevil.net)
2023-11-30 04:03:27 +0000td_(~td@i53870919.versanet.de) (Ping timeout: 256 seconds)
2023-11-30 04:05:10 +0000td_(~td@i53870924.versanet.de)
2023-11-30 06:56:56 +0000alp_(~alp@2001:861:e3d6:8f80:6883:ec6f:ae5:a98b)
2023-11-30 09:08:25 +0000L29Ah(~L29Ah@wikipedia/L29Ah) (Ping timeout: 268 seconds)
2023-11-30 09:08:59 +0000m5zs7k(aquares@web10.mydevil.net) (Ping timeout: 264 seconds)
2023-11-30 09:11:29 +0000m5zs7k(aquares@web10.mydevil.net)
2023-11-30 09:12:02 +0000cfricke(~cfricke@user/cfricke)
2023-11-30 09:47:24 +0000alp_(~alp@2001:861:e3d6:8f80:6883:ec6f:ae5:a98b) (Remote host closed the connection)
2023-11-30 09:47:41 +0000alp_(~alp@2001:861:e3d6:8f80:d84:b3f3:e592:cdc5)
2023-11-30 10:09:28 +0000m5zs7k(aquares@web10.mydevil.net) (Ping timeout: 268 seconds)
2023-11-30 10:11:20 +0000m5zs7k(aquares@web10.mydevil.net)
2023-11-30 11:20:42 +0000tremon(~tremon@83.80.159.219)
2023-11-30 12:18:02 +0000[Leary](~Leary]@user/Leary/x-0910699) (Remote host closed the connection)
2023-11-30 12:18:16 +0000[Leary](~Leary]@user/Leary/x-0910699)
2023-11-30 13:57:21 +0000cfricke(~cfricke@user/cfricke) (Ping timeout: 252 seconds)
2023-11-30 15:18:00 +0000vishnix(~vishwas@c-73-9-42-9.hsd1.il.comcast.net)
2023-11-30 15:30:11 +0000sadmax(~user@64.130.91.66)
2023-11-30 15:36:58 +0000alp_(~alp@2001:861:e3d6:8f80:d84:b3f3:e592:cdc5) (Ping timeout: 256 seconds)
2023-11-30 16:01:11 +0000td_(~td@i53870924.versanet.de) (Quit: waking up from the american dream ...)
2023-11-30 16:12:43 +0000td_(~td@i53870924.versanet.de)
2023-11-30 16:41:32 +0000diep(~diep@172-104-137-130.ip.linodeusercontent.com)
2023-11-30 16:46:01 +0000 <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 16:47:05 +0000 <diep> looking to xmonad contrib, the most closest layout I found is `CenteredIfSingle`
2023-11-30 16:47:55 +0000 <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 16:49:16 +0000 <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 16:50:08 +0000 <fizzie> And then of course XMonad.Layout.IfMax to limit that special behavior to the "only one window" case.
2023-11-30 16:54:29 +0000 <diep> https://b.deip.fr/p/emu-emu-mouse
2023-11-30 16:55:59 +0000 <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 17:01:16 +0000 <diep> I'll try that thx!
2023-11-30 17:03:39 +0000 <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 17:14:13 +0000Natch(~natch@c-9e07225c.038-60-73746f7.bbcust.telenor.se) (Remote host closed the connection)
2023-11-30 17:21:34 +0000 <geekosaur> you're supposed to put it in the lib subdirectory, actually, then you import it as normal
2023-11-30 17:34:25 +0000Natch(~natch@c-9e07225c.038-60-73746f7.bbcust.telenor.se)
2023-11-30 17:37:47 +0000diep(~diep@172-104-137-130.ip.linodeusercontent.com) (Ping timeout: 264 seconds)
2023-11-30 18:37:35 +0000alp_(~alp@2001:861:e3d6:8f80:5320:a0af:5fbb:fa76)
2023-11-30 18:56:36 +0000mc47(~mc47@xmonad/TheMC47)
2023-11-30 20:14:35 +0000alp_(~alp@2001:861:e3d6:8f80:5320:a0af:5fbb:fa76) (Ping timeout: 256 seconds)
2023-11-30 20:35:23 +0000sadmax(~user@64.130.91.66) (Ping timeout: 268 seconds)
2023-11-30 20:41:15 +0000sadmax(~user@38.158.180.90)
2023-11-30 20:44:26 +0000diep(~diep@172-104-137-130.ip.linodeusercontent.com)
2023-11-30 21:56:27 +0000sadmax`(~user@38.158.180.90)
2023-11-30 22:00:03 +0000sadmax(~user@38.158.180.90) (Ping timeout: 260 seconds)
2023-11-30 22:03:05 +0000alp_(~alp@2001:861:e3d6:8f80:7a87:ac61:3be:9d6)
2023-11-30 22:13:35 +0000 <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 22:14:26 +0000 <geekosaur> lib subdir is how you're supposed to do it. top dir working is actually a ghc bug
2023-11-30 22:14:34 +0000 <geekosaur> so I'd be a bit wary of using it
2023-11-30 22:15:14 +0000 <diep> I suppose I have to edit my stack.yaml file?
2023-11-30 22:16:41 +0000 <diep> https://bin.deip.fr/upload/emu-toad-lizard
2023-11-30 22:20:31 +0000 <geekosaur> https://gitlab.haskell.org/ghc/ghc/-/issues/23937
2023-11-30 22:20:41 +0000 <geekosaur> yes
2023-11-30 22:21:06 +0000 <geekosaur> (xmonad passes `-i` and has since 0.2)
2023-11-30 22:21:41 +0000 <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 22:29:46 +0000 <diep> Am I missing something or?
2023-11-30 22:32:40 +0000 <diep> https://b.deip.fr/p/eel-cat-monkey
2023-11-30 22:34:30 +0000 <diep> omg is it really that complicated to import a module from a local file in haskell???
2023-11-30 22:34:38 +0000 <diep> wtf
2023-11-30 22:34:52 +0000sadmax`(~user@38.158.180.90) (Ping timeout: 255 seconds)
2023-11-30 22:36:14 +0000 <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 22:37:00 +0000 <geekosaur> hm, actually it shouldn't matter because we use `stack exec ghc`
2023-11-30 22:38:33 +0000 <liskin> Yeah it shouldn't. Can we see the whole output?
2023-11-30 22:40:12 +0000 <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 22:41:15 +0000 <diep> https://b.deip.fr/p/monkey-wasp-wolf
2023-11-30 22:43:28 +0000 <diep> https://b.deip.fr/p/snail-parrot-hawk
2023-11-30 22:46:34 +0000mc47(~mc47@xmonad/TheMC47) (Remote host closed the connection)
2023-11-30 22:54:24 +0000 <liskin> It's looking in /home/pierre/.config/xmonad/lib
2023-11-30 22:54:53 +0000 <liskin> What's /o/xmonad? Is that the same? Probably not
2023-11-30 22:57:39 +0000 <diep> nope, it's /opt/xmonad where I have xmonad and contrib and stack files
2023-11-30 22:57:45 +0000 <diep> where I build xmonad
2023-11-30 22:58:02 +0000 <diep> so yes /home/pierre/.config/xmonad/lib is wrong
2023-11-30 22:58:21 +0000 <diep> should be /opt/xmonad/lib
2023-11-30 23:04:14 +0000vishnix(~vishwas@c-73-9-42-9.hsd1.il.comcast.net) (Quit: leaving)
2023-11-30 23:04:48 +0000 <geekosaur> you're going to have to set some environment variables if you want xmonad to look somewhere other than its config directory
2023-11-30 23:06:02 +0000 <diep> yes which one?
2023-11-30 23:06:05 +0000 <diep> yes which ones?
2023-11-30 23:07:23 +0000 <liskin> It's using xmonad.hs from /home/pierre as well
2023-11-30 23:07:28 +0000 <liskin> Why wouldn't it?
2023-11-30 23:07:53 +0000 <liskin> If you insist on having stuff out of home perhaps add some symlinks?
2023-11-30 23:08:26 +0000 <geekosaur> XMONAD_CONFIG_DIR, XMONAD_DATA_DIR, and XMONAD_CACHE_DIR. all three must be set
2023-11-30 23:08:35 +0000 <diep> https://b.deip.fr/p/spider-falcon-lizard
2023-11-30 23:08:48 +0000 <geekosaur> or just symlink it, I'm not sure why you would expect xmonad to take its config from somewhere other than its config dir
2023-11-30 23:08:59 +0000 <liskin> Add another one for lib then
2023-11-30 23:12:55 +0000 <diep> does not fix the issue
2023-11-30 23:16:10 +0000 <diep> geekosaur pulling 2 project sources (xmonad & xmonad-contrib) inside XDG_CONFIG_HOME is an anti pattern and make no sens, XDG_CONFIG_HOME is to store user configs, not source code
2023-11-30 23:17:28 +0000 <geekosaur> xmonad.hs is source code
2023-11-30 23:18:18 +0000 <diep> yes, it demonstrate that the initial problem is that to use xmonad software we actually have to code inside source code to configure it
2023-11-30 23:18:40 +0000 <diep> which is an anti pattern as well, and the cause of all those weird things we have to do
2023-11-30 23:18:48 +0000 <diep> to just configure it
2023-11-30 23:19:12 +0000 <diep> anyway
2023-11-30 23:19:48 +0000 <diep> I still fail to include that module to my build
2023-11-30 23:22:21 +0000 <liskin> Did you add the lib symlink?
2023-11-30 23:23:59 +0000 <diep> yes, finally I got it built
2023-11-30 23:24:10 +0000 <diep> was a mistake in module name
2023-11-30 23:24:41 +0000 <diep> not sure why but now it compiles and I can put modules in local files
2023-11-30 23:25:01 +0000 <diep> such an amazing journey to achieve this
2023-11-30 23:26:30 +0000 <diep> thx for the help liskin and geekosaur
2023-11-30 23:31:59 +0000alp_(~alp@2001:861:e3d6:8f80:7a87:ac61:3be:9d6) (Ping timeout: 252 seconds)
2023-11-30 23:33:33 +0000 <liskin> \o/
2023-11-30 23:43:44 +0000 <diep> fizzie: your suggestion was right for the layout change. Works like a charm, thx ;)
2023-11-30 23:49:09 +0000srk-(~sorki@user/srk)
2023-11-30 23:53:01 +0000srk(~sorki@user/srk) (Ping timeout: 276 seconds)
2023-11-30 23:53:01 +0000srk-srk
2023-11-30 23:55:49 +0000ectospasm(~ectospasm@user/ectospasm) (Ping timeout: 268 seconds)
2023-11-30 23:56:53 +0000ectospasm(~ectospasm@user/ectospasm)
2023-11-30 23:57:38 +0000srk-(~sorki@user/srk)