2022/08/07

2022-08-07 00:15:32 +0200mvk(~mvk@2607:fea8:5ce3:8500::d5f2) (Ping timeout: 244 seconds)
2022-08-07 01:23:12 +0200theliver[m](~theliverm@2001:470:69fc:105::2:25e4)
2022-08-07 01:27:08 +0200 <theliver[m]> I just upgraded to 0.17 from 0.15, and yay it all compiles / runs... But for some reason windows are only populating on the right half of the screen?
2022-08-07 01:27:08 +0200 <theliver[m]> If perhaps this is a common problem, if anyone knows what the issue is - though didn't find anything on a web search. Else I'll continue trying to debug this.
2022-08-07 01:30:20 +0200 <theliver[m]> Restarted the display manager and everything works correctly. Maybe it was the old state file messing things up.
2022-08-07 01:34:59 +0200steve_(~steve@ool-182c2b80.dyn.optonline.net)
2022-08-07 03:32:54 +0200mvk(~mvk@2607:fea8:5ce3:8500::d5f2)
2022-08-07 04:02:09 +0200steve_(~steve@ool-182c2b80.dyn.optonline.net) (Ping timeout: 268 seconds)
2022-08-07 04:03:27 +0200banc(banc@gateway/vpn/airvpn/banc) (Ping timeout: 252 seconds)
2022-08-07 04:23:02 +0200banc(banc@gateway/vpn/airvpn/banc)
2022-08-07 04:35:26 +0200td_(~td@94.134.91.51) (Ping timeout: 240 seconds)
2022-08-07 04:37:33 +0200td_(~td@94.134.91.67)
2022-08-07 04:42:48 +0200terrorjack(~terrorjac@2a01:4f8:1c1e:509a::1) (Quit: The Lounge - https://thelounge.chat)
2022-08-07 04:45:04 +0200terrorjack(~terrorjac@2a01:4f8:1c1e:509a::1)
2022-08-07 05:00:04 +0200steve_(~steve@ool-182c2b80.dyn.optonline.net)
2022-08-07 05:15:19 +0200jao(~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net) (Ping timeout: 252 seconds)
2022-08-07 08:03:06 +0200rekahsoft(~rekahsoft@bras-base-wdston4533w-grc-02-142-113-160-8.dsl.bell.ca)
2022-08-07 08:05:57 +0200rekahsoft(~rekahsoft@bras-base-wdston4533w-grc-02-142-113-160-8.dsl.bell.ca) (Remote host closed the connection)
2022-08-07 08:09:43 +0200rekahsoft(~rekahsoft@bras-base-wdston4533w-grc-02-142-113-160-8.dsl.bell.ca)
2022-08-07 08:10:05 +0200rekahsoft(~rekahsoft@bras-base-wdston4533w-grc-02-142-113-160-8.dsl.bell.ca) (Remote host closed the connection)
2022-08-07 08:10:47 +0200rekahsoft(~rekahsoft@bras-base-wdston4533w-grc-02-142-113-160-8.dsl.bell.ca)
2022-08-07 08:12:25 +0200steve_(~steve@ool-182c2b80.dyn.optonline.net) (Ping timeout: 252 seconds)
2022-08-07 08:27:06 +0200qbt(~qbt@user/edun)
2022-08-07 08:31:28 +0200steve_(~steve@ool-182c2b80.dyn.optonline.net)
2022-08-07 09:17:53 +0200rekahsoft(~rekahsoft@bras-base-wdston4533w-grc-02-142-113-160-8.dsl.bell.ca) (Ping timeout: 268 seconds)
2022-08-07 09:19:26 +0200steve_(~steve@ool-182c2b80.dyn.optonline.net) (Ping timeout: 240 seconds)
2022-08-07 10:06:33 +0200mc47(~mc47@xmonad/TheMC47)
2022-08-07 10:42:23 +0200jeeeun(~jeeeun@78.40.148.178) (Read error: Connection reset by peer)
2022-08-07 10:42:28 +0200jeeeun4(~jeeeun@78.40.148.178)
2022-08-07 11:46:05 +0200 <liskin> I'd expect the upgrade path to be smooth but I don't think anyone actually tested upgrading a running xmonad from 0.15 to 0.17
2022-08-07 11:46:40 +0200 <liskin> also it depends on the layouts, some haven't changed much others did
2022-08-07 11:53:47 +0200logzet(~quassel@2001:9e8:e503:e800:dabb:c1ff:fed3:a1b9)
2022-08-07 12:14:20 +0200 <theliver[m]> It works correctly at startup, however upon a restart (of xmonad) I get the same issue. Debugging this now and indeed it seems `pureLayout` is returning a `Rectangle` that has an incorrect width.
2022-08-07 13:36:14 +0200 <theliver[m]> Ah seems to have been due to a fix of how dock panels are 'avoided' due to desktopLayoutModifiers. As I have a panel that shows/hides in the middle of the screen, my windows/screen was being resized to avoid that. So easy fix to just remove desktopLayoutModifiers. :)
2022-08-07 15:53:19 +0200redgloboli(~redglobol@user/redgloboli)
2022-08-07 15:53:26 +0200[Leary](~Leary]@122-58-224-198-vdsl.sparkbb.co.nz) (Ping timeout: 240 seconds)
2022-08-07 16:09:46 +0200diep(~diep@2a01:cb11:2d7:4a00:a13f:e40c:c4e8:736c)
2022-08-07 16:10:15 +0200jao(~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net)
2022-08-07 16:11:43 +0200diep(~diep@2a01:cb11:2d7:4a00:a13f:e40c:c4e8:736c) (Remote host closed the connection)
2022-08-07 16:20:44 +0200steve_(~steve@ool-182c2b80.dyn.optonline.net)
2022-08-07 16:22:43 +0200diep(~diep@2a01:cb11:2d7:4a00:a13f:e40c:c4e8:736c)
2022-08-07 16:25:33 +0200 <zim0369[m]> geekosaur: I've tried most things now but couldn't find anything.
2022-08-07 16:25:33 +0200 <zim0369[m]> My findings till now:
2022-08-07 16:25:51 +0200jao(~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net) (Ping timeout: 268 seconds)
2022-08-07 16:26:46 +0200 <diep> Hi, I just switched to topics, and for some topics I would like to use font icons (through a nerd font) for topic name. But it fails to compile > "lexical error in string/character literal at character '\985015'" there is something I missed?
2022-08-07 16:27:47 +0200 <geekosaur> ghc doesn't like literal characters for various things (notably private use area characters), you have to use escapes
2022-08-07 16:28:23 +0200 <zim0369[m]> 1. It is caused by misconfiguration or missing configuration in my xmonad.hs
2022-08-07 16:28:23 +0200 <zim0369[m]> 2. It isn't caused by myDecorate, windowNavigation, subTabbed, boringWindows, reflectHoriz
2022-08-07 16:29:33 +0200 <geekosaur> > generalCategory '\985015'
2022-08-07 16:29:35 +0200 <lambdabot> PrivateUse
2022-08-07 16:29:56 +0200 <geekosaur> yeh, ghc will reject that as a literal character
2022-08-07 16:32:37 +0200 <diep> hmm okay thx, but the strange thing is I was used to name my workspaces with icons, and Im pretty sure I didnt need to write the names using escapes
2022-08-07 16:32:57 +0200 <geekosaur> it depends on the category
2022-08-07 16:33:10 +0200 <geekosaur> ghc will accept most things but not private use
2022-08-07 16:33:47 +0200 <diep> Is "category" something haskell langage related?
2022-08-07 16:34:03 +0200 <geekosaur> no, it's defined by unicode
2022-08-07 16:35:28 +0200 <diep> humm okay
2022-08-07 16:35:36 +0200 <geekosaur> but the haskell language standard defines characters in terms of their unicode category, and private use can't really be defined since ghc has no idea how to treat such characters
2022-08-07 16:36:04 +0200 <geekosaur> I did at one point request that they be accepted in Char or String literals but that would comp-licate the lexer too much to only accept them there
2022-08-07 16:36:39 +0200 <diep> yeah but again this is weird, because this same icon doesnt cause compilation error when used with workspace
2022-08-07 16:36:59 +0200 <diep> and based on what you explained, it should cause error
2022-08-07 16:37:11 +0200 <diep> with workspace as well
2022-08-07 16:38:14 +0200 <geekosaur> again it depends on the category. ghc is fine with smileys, for example, or dingbats, because they both have well defined categories
2022-08-07 16:38:22 +0200 <geekosaur> private use area characters don't
2022-08-07 16:38:32 +0200 <geekosaur> they're just private use
2022-08-07 16:39:09 +0200 <geekosaur> > generalCategory '😛'
2022-08-07 16:39:12 +0200 <lambdabot> OtherSymbol
2022-08-07 16:42:08 +0200 <geekosaur> zim0369[m], I really don't know what to tell you at this point
2022-08-07 16:43:17 +0200 <zim0369[m]> geekosaur: is this sus worthy:... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/930ed98afb7ef3dbfbb43accf3a0c48da0d3…)
2022-08-07 16:44:40 +0200 <diep> what is the right impot for `generalCategory`?
2022-08-07 16:44:55 +0200 <diep> import*
2022-08-07 16:45:15 +0200 <geekosaur> Data.Char
2022-08-07 16:45:21 +0200 <diep> thx!
2022-08-07 16:45:22 +0200 <geekosaur> @index generalCategory
2022-08-07 16:45:22 +0200 <lambdabot> Data.Char
2022-08-07 16:45:34 +0200 <geekosaur> convenient way to look things like that up
2022-08-07 16:45:49 +0200 <geekosaur> zim0369[m], why do you havfe both xmobarProp and withEasySB?
2022-08-07 16:47:32 +0200 <zim0369[m]> the docs
2022-08-07 16:48:25 +0200 <zim0369[m]> under "Changing what xmonad sends to xmobar"
2022-08-07 16:48:26 +0200 <zim0369[m]> https://xmonad.org/TUTORIAL.html
2022-08-07 16:48:52 +0200 <geekosaur> right, it first sets you up with xmobarProp and then it *replaces* it with withEasySB
2022-08-07 16:48:59 +0200 <geekosaur> it does not *add* it
2022-08-07 16:49:14 +0200 <geekosaur> they will interfere with each other
2022-08-07 16:50:13 +0200 <zim0369[m]> oh yes i was lost
2022-08-07 16:50:19 +0200 <zim0369[m]> ill keep the witheasysb line
2022-08-07 16:50:32 +0200 <zim0369[m]> still no success
2022-08-07 16:54:30 +0200 <diep> sorry guys but I fails to use `generalCategory` in my topics declaration, what I tested is `inHome (generalCategory '\985015') spawnShell` but I get a compile error
2022-08-07 16:54:57 +0200 <diep> Couldn't match type ‘GeneralCategory’ with ‘[Char]’
2022-08-07 17:07:14 +0200 <diep> geekosaur ?
2022-08-07 17:09:07 +0200 <geekosaur> I'm not sure what you mean. but no, generalCaegory doesn't produce a String
2022-08-07 17:09:14 +0200 <geekosaur> :t generalCategory
2022-08-07 17:09:15 +0200 <lambdabot> Char -> GeneralCategory
2022-08-07 17:10:26 +0200 <diep> I'm asking how to use it in my topic declaration
2022-08-07 17:10:51 +0200 <diep> I want the name of the topic to be that icon "ó°ž·"
2022-08-07 17:11:08 +0200 <diep> and you told me to use `generalCategory '\985015'` for it
2022-08-07 17:11:15 +0200 <diep> so that's why I tested
2022-08-07 17:11:29 +0200 <geekosaur> I don't think you need generalCategory there, you just need to use the escape sequence (in decimal like that, or in hex with \x...) in the string
2022-08-07 17:11:49 +0200 <geekosaur> I used generalCategory just to verify that it was a PUA character
2022-08-07 17:13:44 +0200 <diep> oh ok I misinterpreted
2022-08-07 17:14:07 +0200 <diep> `inHome "\985015" spawnShell` works fine ;)
2022-08-07 17:14:09 +0200 <diep> thx
2022-08-07 17:14:15 +0200 <geekosaur> https://github.com/geekosaur/xmonad.hs/blob/pyanfar/xmonad.hs#L61
2022-08-07 17:15:03 +0200 <geekosaur> (I don't have icons for my workspaces but I added a module which associates icons with scratchpads)
2022-08-07 17:41:56 +0200qbt(~qbt@user/edun) (Quit: WeeChat 3.5)
2022-08-07 17:42:15 +0200[Leary](~Leary]@122-58-224-198-vdsl.sparkbb.co.nz)
2022-08-07 18:14:09 +0200coco(~coco@212-51-146-199.fiber7.init7.net)
2022-08-07 18:14:28 +0200diep(~diep@2a01:cb11:2d7:4a00:a13f:e40c:c4e8:736c) (Remote host closed the connection)
2022-08-07 19:54:15 +0200jao(~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net)
2022-08-07 21:52:38 +0200 <zim0369[m]> geekosaur: do i give up?
2022-08-07 21:54:16 +0200 <geekosaur> I have no idea what is going on. if nobody else here does then not sure what else you can do. (I also noticed you asked on #haskell:matrix.org)
2022-08-07 21:55:29 +0200 <zim0369[m]> I tried to comment out stuff from my file but no success.
2022-08-07 21:55:43 +0200 <zim0369[m]> I'm deleting configuration and following the docs again and again
2022-08-07 21:55:50 +0200 <zim0369[m]> but still no luck
2022-08-07 22:15:14 +0200 <zim0369[m]> umm... geekosaur there's one part I don't understand
2022-08-07 22:15:20 +0200 <zim0369[m]> can you check if that has a problem
2022-08-07 22:15:57 +0200 <zim0369[m]> https://paste.tomsmeding.com/vdUNowwy
2022-08-07 22:19:23 +0200 <geekosaur[m]> If what has a problem? I'm missing some context
2022-08-07 22:20:53 +0200 <zim0369[m]> umm.... I've checked all of the code
2022-08-07 22:20:59 +0200 <zim0369[m]> config*
2022-08-07 22:21:09 +0200 <zim0369[m]> commented out stuff other than vanilla configuration
2022-08-07 22:21:38 +0200 <zim0369[m]> this part about hooks and stuff is the only one that I don't know how to comment out so that my config also compiles
2022-08-07 22:21:53 +0200 <zim0369[m]> i suspect that this part might have some problem
2022-08-07 22:23:26 +0200 <zim0369[m]> okay i commented out even that
2022-08-07 22:23:28 +0200 <zim0369[m]> all of it
2022-08-07 22:23:41 +0200 <zim0369[m]> nothing
2022-08-07 22:23:49 +0200 <geekosaur> oh, that link didn;t make it to my phone matrix instance for some reason
2022-08-07 22:24:03 +0200 <geekosaur> I've been seeing some dropouts on matrix, sadly
2022-08-07 22:24:33 +0200 <zim0369[m]> it's okay
2022-08-07 22:24:50 +0200 <geekosaur> that's correct as far as it goes, byt myEasySB adds a few more hooks
2022-08-07 22:25:37 +0200 <geekosaur> sorry withEasySB
2022-08-07 22:26:40 +0200 <zim0369[m]> i replaced that with `xmobarProp` that didn't work
2022-08-07 22:26:41 +0200 <geekosaur> it should be okay to comment out the hooks although you may lose some other things
2022-08-07 22:27:18 +0200 <zim0369[m]> yes, at the moment most of the stuff i customized has been commented out. it's pretty close to vanilla except for the keybindings
2022-08-07 22:27:48 +0200 <zim0369[m]> https://paste.tomsmeding.com/px6Z7GD4
2022-08-07 22:27:57 +0200 <zim0369[m]> what else should i comment out?
2022-08-07 22:28:53 +0200 <zim0369[m]> i've rearranged the file. main function at the bottom. I'll also try that config on my other machine
2022-08-07 22:32:19 +0200 <geekosaur> commenting out docks and avoidStruts can only break things worse, xmobar would be covered up by any other window
2022-08-07 22:37:14 +0200 <zim0369[m]> uncommented them
2022-08-07 22:37:19 +0200 <zim0369[m]> still same
2022-08-07 22:43:57 +0200 <geekosaur> https://paste.tomsmeding.com/fesccPQb is a really minimal config that should work with xmobar
2022-08-07 22:44:18 +0200 <geekosaur> I ignored the avoidStruts for now since no windows would be opened by it
2022-08-07 22:45:15 +0200 <geekosaur> https://paste.tomsmeding.com/ycuTbThn with the avoidStruts
2022-08-07 22:45:26 +0200 <geekosaur> if this doesn't work then you really have a problem somewhere
2022-08-07 22:45:49 +0200 <geekosaur> but that somewhere won't be xmonad because there's nothing to go wrong there
2022-08-07 22:48:23 +0200 <zim0369[m]> geekosaur: do you want me to change those lines or edit those lines in my file accordingly?
2022-08-07 22:49:06 +0200 <geekosaur> that is a complete xmonad.hs. copy your existing one somewhere and use that file as your xmonad.hs
2022-08-07 22:49:23 +0200 <geekosaur> it's very minimal so there should be nothing to go wrong
2022-08-07 22:49:25 +0200 <zim0369[m]> no need
2022-08-07 22:49:35 +0200 <geekosaur> aside from possibly a PATH issue finding xmobar
2022-08-07 22:49:44 +0200 <zim0369[m]> I probably mentioned it to you that
2022-08-07 22:49:48 +0200 <zim0369[m]> my xmobar works with my old config
2022-08-07 22:49:53 +0200 <zim0369[m]> but not with the new one
2022-08-07 22:50:20 +0200 <zim0369[m]> but now i have an interesting find
2022-08-07 22:50:21 +0200 <zim0369[m]> on my another machine
2022-08-07 22:50:25 +0200 <zim0369[m]> the commented out config i sent you works
2022-08-07 22:50:49 +0200 <zim0369[m]> I'm going to check my full new config again and brb with the results
2022-08-07 23:15:21 +0200coco(~coco@212-51-146-199.fiber7.init7.net) (Quit: WeeChat 3.5)
2022-08-07 23:26:40 +0200mc47(~mc47@xmonad/TheMC47) (Remote host closed the connection)
2022-08-07 23:29:47 +0200 <zim0369[m]> geekosaur: problem solved
2022-08-07 23:29:59 +0200 <zim0369[m]> There's something wrong with my system itslef
2022-08-07 23:30:04 +0200 <zim0369[m]> itself*
2022-08-07 23:30:23 +0200 <zim0369[m]> I tried my xmonad config on my other machine with packages from aur
2022-08-07 23:30:47 +0200 <zim0369[m]> and it worked
2022-08-07 23:31:21 +0200 <zim0369[m]> now on my problematic machine i removed all the git xmonad stuff and installed from aur as i did on my other machine but still no success
2022-08-07 23:32:12 +0200 <zim0369[m]> so i will reinstall my arch
2022-08-07 23:32:27 +0200 <zim0369[m]> or rather install endeavorOS to not have to go through all the hassle
2022-08-07 23:32:53 +0200 <zim0369[m]> Thankyou geekosaur you've helped me a lot. A lot!
2022-08-07 23:33:00 +0200 <zim0369[m]> now I have a really amazing config
2022-08-07 23:33:05 +0200 <zim0369[m]> thanks to you guys
2022-08-07 23:33:38 +0200 <zim0369[m]> btw, the only thing i crave is jumping to layouts without having to cycle through them. hope we get to see that in xmonad soon.
2022-08-07 23:34:45 +0200 <geekosaur> in what sense not cycling through them? JumpToLayout still cycles through them but you don';t see it
2022-08-07 23:34:57 +0200 <geekosaur> sendMessage $ JumpToLayout "Full"
2022-08-07 23:35:32 +0200 <geekosaur> just make sure to use the layout description as shown by xmobar, or use X.L.Renamed to name the layout so you know what it is
2022-08-07 23:36:26 +0200 <geekosaur> if you're on 0.17 or later then you can just import XMonad.Layout.LayoutHelpers to get it; on 0.15 and earlier there's a hoop to jump through
2022-08-07 23:37:16 +0200 <zim0369[m]> I mean suppose
2022-08-07 23:37:21 +0200 <zim0369[m]> I have 3 layouts
2022-08-07 23:38:02 +0200 <zim0369[m]> Full, tiled and 3col
2022-08-07 23:38:11 +0200 <zim0369[m]> And i have a binding mod+space that cycles through myLayouts
2022-08-07 23:38:43 +0200 <geekosaur> right, so then you could have a binding to sendMessage $ JumpToLayout "ThreeColumn"
2022-08-07 23:38:45 +0200 <zim0369[m]> I want to put only two layouts in myLayouts -> tiled and 3col
2022-08-07 23:39:10 +0200 <zim0369[m]> While i want to switch to full layout directly with mod+f
2022-08-07 23:39:16 +0200 <zim0369[m]> That possible?
2022-08-07 23:39:19 +0200 <geekosaur> alternately you can assign layouts to workspaces (see X.L.PerWorkspace)
2022-08-07 23:39:42 +0200 <geekosaur> you still need it in the layout. why not just put it at the end and JumpToLayout it?
2022-08-07 23:40:34 +0200 <[Leary]> It's annoying to have layout cycling pass through layouts you don't want it to.
2022-08-07 23:40:37 +0200 <zim0369[m]> So if i have to switch from 3col to tiled
2022-08-07 23:40:53 +0200 <zim0369[m]> Then ill have to cycle through full
2022-08-07 23:41:09 +0200 <zim0369[m]> Annoying
2022-08-07 23:41:46 +0200 <geekosaur> looking at the code, `setLayout $ Layout Full` *might* work. problem there is you necessarily lose the other layouts because you've just overwritten them
2022-08-07 23:41:50 +0200logzet(~quassel@2001:9e8:e503:e800:dabb:c1ff:fed3:a1b9) (Ping timeout: 240 seconds)
2022-08-07 23:41:57 +0200 <geekosaur> what magic did you expect that would undo it for you?
2022-08-07 23:42:59 +0200 <zim0369[m]> I think it's a necessary feat.
2022-08-07 23:43:03 +0200 <geekosaur> cabal repl likes it here
2022-08-07 23:43:33 +0200 <geekosaur> so it sould have a magic place to save your layout so it should somehow know without being told that you want a different layout instead
2022-08-07 23:43:48 +0200 <zim0369[m]> Btw geekosaur @geekosaur:libera.chat: have u tried instantwm?
2022-08-07 23:44:51 +0200 <geekosaur> haven't run anything but xmonad since 2006
2022-08-07 23:44:53 +0200 <zim0369[m]> It is a wm from instantOS. You should take a look once.
2022-08-07 23:45:14 +0200 <zim0369[m]> Btw, night geekosaur
2022-08-07 23:45:23 +0200 <zim0369[m]> Im exhausted today
2022-08-07 23:45:30 +0200 <geekosaur> so under what conditions is xmonad supposed to know to pull out the old list of layouts that you forcibly overwrote with setLayout?
2022-08-07 23:46:43 +0200 <geekosaur> it would be possible to define a key sequence to force the layout back to its original shape. there is no way to have mod-space do that *and* cycle between layouts
2022-08-07 23:46:59 +0200 <geekosaur> becuase it would never proceed past the first layout.
2022-08-07 23:47:37 +0200 <geekosaur> maybe you could hack something up with ExtensibleState to know when you've forced Full and that it should unforce it instead of cycling
2022-08-07 23:49:37 +0200 <[Leary]> No need to hack around; might as well just write the layout combinator.
2022-08-07 23:50:33 +0200 <geekosaur> ToggleLayouts exists, I think. I'm just not sure it's what he(?) wants
2022-08-07 23:50:45 +0200 <geekosaur> also MultiToggle
2022-08-07 23:52:44 +0200 <geekosaur> I'm also not sure PerWorkspace or similar isn't a better solution
2022-08-07 23:55:52 +0200 <[Leary]> I'm fairly sure they just want to toggle to and from an alternative layout without it cramping their regular layout cycling. I didn't know about X.L.ToggleLayouts; that's probably it.
2022-08-07 23:56:39 +0200 <geekosaur> I also wonder about, say, Magnify with a small border