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