Logs on 2022-08-07 (liberachat/#xmonad)
| 01:32:54 | → | mvk joins (~mvk@2607:fea8:5ce3:8500::d5f2) |
| 02:02:09 | × | steve_ quits (~steve@ool-182c2b80.dyn.optonline.net) (Ping timeout: 268 seconds) |
| 02:03:27 | × | banc quits (banc@gateway/vpn/airvpn/banc) (Ping timeout: 252 seconds) |
| 02:23:02 | → | banc joins (banc@gateway/vpn/airvpn/banc) |
| 02:35:26 | × | td_ quits (~td@94.134.91.51) (Ping timeout: 240 seconds) |
| 02:37:33 | → | td_ joins (~td@94.134.91.67) |
| 02:42:48 | × | terrorjack quits (~terrorjac@2a01:4f8:1c1e:509a::1) (Quit: The Lounge - https://thelounge.chat) |
| 02:45:04 | → | terrorjack joins (~terrorjac@2a01:4f8:1c1e:509a::1) |
| 03:00:04 | → | steve_ joins (~steve@ool-182c2b80.dyn.optonline.net) |
| 03:15:19 | × | jao quits (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net) (Ping timeout: 252 seconds) |
| 06:03:06 | → | rekahsoft joins (~rekahsoft@bras-base-wdston4533w-grc-02-142-113-160-8.dsl.bell.ca) |
| 06:05:57 | × | rekahsoft quits (~rekahsoft@bras-base-wdston4533w-grc-02-142-113-160-8.dsl.bell.ca) (Remote host closed the connection) |
| 06:09:43 | → | rekahsoft joins (~rekahsoft@bras-base-wdston4533w-grc-02-142-113-160-8.dsl.bell.ca) |
| 06:10:05 | × | rekahsoft quits (~rekahsoft@bras-base-wdston4533w-grc-02-142-113-160-8.dsl.bell.ca) (Remote host closed the connection) |
| 06:10:47 | → | rekahsoft joins (~rekahsoft@bras-base-wdston4533w-grc-02-142-113-160-8.dsl.bell.ca) |
| 06:12:25 | × | steve_ quits (~steve@ool-182c2b80.dyn.optonline.net) (Ping timeout: 252 seconds) |
| 06:27:06 | → | qbt joins (~qbt@user/edun) |
| 06:31:28 | → | steve_ joins (~steve@ool-182c2b80.dyn.optonline.net) |
| 07:17:53 | × | rekahsoft quits (~rekahsoft@bras-base-wdston4533w-grc-02-142-113-160-8.dsl.bell.ca) (Ping timeout: 268 seconds) |
| 07:19:26 | × | steve_ quits (~steve@ool-182c2b80.dyn.optonline.net) (Ping timeout: 240 seconds) |
| 08:06:33 | → | mc47 joins (~mc47@xmonad/TheMC47) |
| 08:42:23 | × | jeeeun quits (~jeeeun@78.40.148.178) (Read error: Connection reset by peer) |
| 08:42:28 | → | jeeeun4 joins (~jeeeun@78.40.148.178) |
| 09:46:05 | <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 |
| 09:46:40 | <liskin> | also it depends on the layouts, some haven't changed much others did |
| 09:53:47 | → | logzet joins (~quassel@2001:9e8:e503:e800:dabb:c1ff:fed3:a1b9) |
| 10:14:20 | <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. |
| 11:36:14 | <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. :) |
| 13:53:19 | → | redgloboli joins (~redglobol@user/redgloboli) |
| 13:53:26 | × | [Leary] quits (~Leary]@122-58-224-198-vdsl.sparkbb.co.nz) (Ping timeout: 240 seconds) |
| 14:09:46 | → | diep joins (~diep@2a01:cb11:2d7:4a00:a13f:e40c:c4e8:736c) |
| 14:10:15 | → | jao joins (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net) |
| 14:11:43 | × | diep quits (~diep@2a01:cb11:2d7:4a00:a13f:e40c:c4e8:736c) (Remote host closed the connection) |
| 14:20:44 | → | steve_ joins (~steve@ool-182c2b80.dyn.optonline.net) |
| 14:22:43 | → | diep joins (~diep@2a01:cb11:2d7:4a00:a13f:e40c:c4e8:736c) |
| 14:25:33 | <zim0369[m]> | geekosaur: I've tried most things now but couldn't find anything. |
| 14:25:33 | <zim0369[m]> | My findings till now: |
| 14:25:51 | × | jao quits (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net) (Ping timeout: 268 seconds) |
| 14:26:46 | <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? |
| 14:27:47 | <geekosaur> | ghc doesn't like literal characters for various things (notably private use area characters), you have to use escapes |
| 14:28:23 | <zim0369[m]> | 1. It is caused by misconfiguration or missing configuration in my xmonad.hs |
| 14:28:23 | <zim0369[m]> | 2. It isn't caused by myDecorate, windowNavigation, subTabbed, boringWindows, reflectHoriz |
| 14:29:33 | <geekosaur> | > generalCategory '\985015' |
| 14:29:35 | <lambdabot> | PrivateUse |
| 14:29:56 | <geekosaur> | yeh, ghc will reject that as a literal character |
| 14:32:37 | <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 |
| 14:32:57 | <geekosaur> | it depends on the category |
| 14:33:10 | <geekosaur> | ghc will accept most things but not private use |
| 14:33:47 | <diep> | Is "category" something haskell langage related? |
| 14:34:03 | <geekosaur> | no, it's defined by unicode |
| 14:35:28 | <diep> | humm okay |
| 14:35:36 | <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 |
| 14:36:04 | <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 |
| 14:36:39 | <diep> | yeah but again this is weird, because this same icon doesnt cause compilation error when used with workspace |
| 14:36:59 | <diep> | and based on what you explained, it should cause error |
| 14:37:11 | <diep> | with workspace as well |
| 14:38:14 | <geekosaur> | again it depends on the category. ghc is fine with smileys, for example, or dingbats, because they both have well defined categories |
| 14:38:22 | <geekosaur> | private use area characters don't |
| 14:38:32 | <geekosaur> | they're just private use |
| 14:39:09 | <geekosaur> | > generalCategory '😛' |
| 14:39:12 | <lambdabot> | OtherSymbol |
| 14:42:08 | <geekosaur> | zim0369[m], I really don't know what to tell you at this point |
| 14:43:17 | <zim0369[m]> | geekosaur: is this sus worthy:... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/930ed98afb7ef3dbfbb43accf3a0c48da0d3bdae) |
| 14:44:40 | <diep> | what is the right impot for `generalCategory`? |
| 14:44:55 | <diep> | import* |
| 14:45:15 | <geekosaur> | Data.Char |
| 14:45:21 | <diep> | thx! |
| 14:45:22 | <geekosaur> | @index generalCategory |
| 14:45:22 | <lambdabot> | Data.Char |
| 14:45:34 | <geekosaur> | convenient way to look things like that up |
| 14:45:49 | <geekosaur> | zim0369[m], why do you havfe both xmobarProp and withEasySB? |
| 14:47:32 | <zim0369[m]> | the docs |
| 14:48:25 | <zim0369[m]> | under "Changing what xmonad sends to xmobar" |
| 14:48:26 | <zim0369[m]> | https://xmonad.org/TUTORIAL.html |
| 14:48:52 | <geekosaur> | right, it first sets you up with xmobarProp and then it *replaces* it with withEasySB |
| 14:48:59 | <geekosaur> | it does not *add* it |
| 14:49:14 | <geekosaur> | they will interfere with each other |
| 14:50:13 | <zim0369[m]> | oh yes i was lost |
| 14:50:19 | <zim0369[m]> | ill keep the witheasysb line |
| 14:50:32 | <zim0369[m]> | still no success |
| 14:54:30 | <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 |
| 14:54:57 | <diep> | Couldn't match type ‘GeneralCategory’ with ‘[Char]’ |
| 15:07:14 | <diep> | geekosaur ? |
| 15:09:07 | <geekosaur> | I'm not sure what you mean. but no, generalCaegory doesn't produce a String |
| 15:09:14 | <geekosaur> | :t generalCategory |
| 15:09:15 | <lambdabot> | Char -> GeneralCategory |
| 15:10:26 | <diep> | I'm asking how to use it in my topic declaration |
| 15:10:51 | <diep> | I want the name of the topic to be that icon "" |
| 15:11:08 | <diep> | and you told me to use `generalCategory '\985015'` for it |
| 15:11:15 | <diep> | so that's why I tested |
| 15:11:29 | <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 |
| 15:11:49 | <geekosaur> | I used generalCategory just to verify that it was a PUA character |
| 15:13:44 | <diep> | oh ok I misinterpreted |
| 15:14:07 | <diep> | `inHome "\985015" spawnShell` works fine ;) |
| 15:14:09 | <diep> | thx |
| 15:14:15 | <geekosaur> | https://github.com/geekosaur/xmonad.hs/blob/pyanfar/xmonad.hs#L61 |
| 15:15:03 | <geekosaur> | (I don't have icons for my workspaces but I added a module which associates icons with scratchpads) |
| 15:41:56 | × | qbt quits (~qbt@user/edun) (Quit: WeeChat 3.5) |
| 15:42:15 | → | [Leary] joins (~Leary]@122-58-224-198-vdsl.sparkbb.co.nz) |
| 16:14:09 | → | coco joins (~coco@212-51-146-199.fiber7.init7.net) |
| 16:14:28 | × | diep quits (~diep@2a01:cb11:2d7:4a00:a13f:e40c:c4e8:736c) (Remote host closed the connection) |
| 17:54:15 | → | jao joins (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net) |
| 19:52:38 | <zim0369[m]> | geekosaur: do i give up? |
| 19:54:16 | <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) |
| 19:55:29 | <zim0369[m]> | I tried to comment out stuff from my file but no success. |
| 19:55:43 | <zim0369[m]> | I'm deleting configuration and following the docs again and again |
| 19:55:50 | <zim0369[m]> | but still no luck |
| 20:15:14 | <zim0369[m]> | umm... geekosaur there's one part I don't understand |
| 20:15:20 | <zim0369[m]> | can you check if that has a problem |
| 20:15:57 | <zim0369[m]> | https://paste.tomsmeding.com/vdUNowwy |
| 20:19:23 | <geekosaur[m]> | If what has a problem? I'm missing some context |
| 20:20:53 | <zim0369[m]> | umm.... I've checked all of the code |
| 20:20:59 | <zim0369[m]> | config* |
| 20:21:09 | <zim0369[m]> | commented out stuff other than vanilla configuration |
| 20:21:38 | <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 |
| 20:21:53 | <zim0369[m]> | i suspect that this part might have some problem |
| 20:23:26 | <zim0369[m]> | okay i commented out even that |
| 20:23:28 | <zim0369[m]> | all of it |
| 20:23:41 | <zim0369[m]> | nothing |
| 20:23:49 | <geekosaur> | oh, that link didn;t make it to my phone matrix instance for some reason |
| 20:24:03 | <geekosaur> | I've been seeing some dropouts on matrix, sadly |
| 20:24:33 | <zim0369[m]> | it's okay |
| 20:24:50 | <geekosaur> | that's correct as far as it goes, byt myEasySB adds a few more hooks |
| 20:25:37 | <geekosaur> | sorry withEasySB |
| 20:26:40 | <zim0369[m]> | i replaced that with `xmobarProp` that didn't work |
| 20:26:41 | <geekosaur> | it should be okay to comment out the hooks although you may lose some other things |
| 20:27:18 | <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 |
| 20:27:48 | <zim0369[m]> | https://paste.tomsmeding.com/px6Z7GD4 |
| 20:27:57 | <zim0369[m]> | what else should i comment out? |
| 20:28:53 | <zim0369[m]> | i've rearranged the file. main function at the bottom. I'll also try that config on my other machine |
| 20:32:19 | <geekosaur> | commenting out docks and avoidStruts can only break things worse, xmobar would be covered up by any other window |
| 20:37:14 | <zim0369[m]> | uncommented them |
| 20:37:19 | <zim0369[m]> | still same |
| 20:43:57 | <geekosaur> | https://paste.tomsmeding.com/fesccPQb is a really minimal config that should work with xmobar |
| 20:44:18 | <geekosaur> | I ignored the avoidStruts for now since no windows would be opened by it |
| 20:45:15 | <geekosaur> | https://paste.tomsmeding.com/ycuTbThn with the avoidStruts |
| 20:45:26 | <geekosaur> | if this doesn't work then you really have a problem somewhere |
| 20:45:49 | <geekosaur> | but that somewhere won't be xmonad because there's nothing to go wrong there |
| 20:48:23 | <zim0369[m]> | geekosaur: do you want me to change those lines or edit those lines in my file accordingly? |
| 20:49:06 | <geekosaur> | that is a complete xmonad.hs. copy your existing one somewhere and use that file as your xmonad.hs |
| 20:49:23 | <geekosaur> | it's very minimal so there should be nothing to go wrong |
| 20:49:25 | <zim0369[m]> | no need |
| 20:49:35 | <geekosaur> | aside from possibly a PATH issue finding xmobar |
| 20:49:44 | <zim0369[m]> | I probably mentioned it to you that |
| 20:49:48 | <zim0369[m]> | my xmobar works with my old config |
| 20:49:53 | <zim0369[m]> | but not with the new one |
| 20:50:20 | <zim0369[m]> | but now i have an interesting find |
| 20:50:21 | <zim0369[m]> | on my another machine |
| 20:50:25 | <zim0369[m]> | the commented out config i sent you works |
| 20:50:49 | <zim0369[m]> | I'm going to check my full new config again and brb with the results |
| 21:15:21 | × | coco quits (~coco@212-51-146-199.fiber7.init7.net) (Quit: WeeChat 3.5) |
| 21:26:40 | × | mc47 quits (~mc47@xmonad/TheMC47) (Remote host closed the connection) |
| 21:29:47 | <zim0369[m]> | geekosaur: problem solved |
| 21:29:59 | <zim0369[m]> | There's something wrong with my system itslef |
| 21:30:04 | <zim0369[m]> | itself* |
| 21:30:23 | <zim0369[m]> | I tried my xmonad config on my other machine with packages from aur |
| 21:30:47 | <zim0369[m]> | and it worked |
| 21:31:21 | <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 |
| 21:32:12 | <zim0369[m]> | so i will reinstall my arch |
| 21:32:27 | <zim0369[m]> | or rather install endeavorOS to not have to go through all the hassle |
| 21:32:53 | <zim0369[m]> | Thankyou geekosaur you've helped me a lot. A lot! |
| 21:33:00 | <zim0369[m]> | now I have a really amazing config |
| 21:33:05 | <zim0369[m]> | thanks to you guys |
| 21:33:38 | <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. |
| 21:34:45 | <geekosaur> | in what sense not cycling through them? JumpToLayout still cycles through them but you don';t see it |
| 21:34:57 | <geekosaur> | sendMessage $ JumpToLayout "Full" |
| 21:35:32 | <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 |
| 21:36:26 | <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 |
| 21:37:16 | <zim0369[m]> | I mean suppose |
| 21:37:21 | <zim0369[m]> | I have 3 layouts |
| 21:38:02 | <zim0369[m]> | Full, tiled and 3col |
| 21:38:11 | <zim0369[m]> | And i have a binding mod+space that cycles through myLayouts |
| 21:38:43 | <geekosaur> | right, so then you could have a binding to sendMessage $ JumpToLayout "ThreeColumn" |
| 21:38:45 | <zim0369[m]> | I want to put only two layouts in myLayouts -> tiled and 3col |
| 21:39:10 | <zim0369[m]> | While i want to switch to full layout directly with mod+f |
| 21:39:16 | <zim0369[m]> | That possible? |
| 21:39:19 | <geekosaur> | alternately you can assign layouts to workspaces (see X.L.PerWorkspace) |
| 21:39:42 | <geekosaur> | you still need it in the layout. why not just put it at the end and JumpToLayout it? |
| 21:40:34 | <[Leary]> | It's annoying to have layout cycling pass through layouts you don't want it to. |
| 21:40:37 | <zim0369[m]> | So if i have to switch from 3col to tiled |
| 21:40:53 | <zim0369[m]> | Then ill have to cycle through full |
| 21:41:09 | <zim0369[m]> | Annoying |
| 21:41:46 | <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 |
| 21:41:50 | × | logzet quits (~quassel@2001:9e8:e503:e800:dabb:c1ff:fed3:a1b9) (Ping timeout: 240 seconds) |
| 21:41:57 | <geekosaur> | what magic did you expect that would undo it for you? |
| 21:42:59 | <zim0369[m]> | I think it's a necessary feat. |
| 21:43:03 | <geekosaur> | cabal repl likes it here |
| 21:43:33 | <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 |
| 21:43:48 | <zim0369[m]> | Btw geekosaur @geekosaur:libera.chat: have u tried instantwm? |
| 21:44:51 | <geekosaur> | haven't run anything but xmonad since 2006 |
| 21:44:53 | <zim0369[m]> | It is a wm from instantOS. You should take a look once. |
| 21:45:14 | <zim0369[m]> | Btw, night geekosaur |
| 21:45:23 | <zim0369[m]> | Im exhausted today |
| 21:45:30 | <geekosaur> | so under what conditions is xmonad supposed to know to pull out the old list of layouts that you forcibly overwrote with setLayout? |
| 21:46:43 | <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 |
| 21:46:59 | <geekosaur> | becuase it would never proceed past the first layout. |
| 21:47:37 | <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 |
| 21:49:37 | <[Leary]> | No need to hack around; might as well just write the layout combinator. |
| 21:50:33 | <geekosaur> | ToggleLayouts exists, I think. I'm just not sure it's what he(?) wants |
| 21:50:45 | <geekosaur> | also MultiToggle |
| 21:52:44 | <geekosaur> | I'm also not sure PerWorkspace or similar isn't a better solution |
| 21:55:52 | <[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. |
| 21:56:39 | <geekosaur> | I also wonder about, say, Magnify with a small border |
| 22:02:17 | <geekosaur> | also whether they expect mod-space to undo it (pretty sure Toggle and MultiToggle would go through their own lists, which would land them on Full again) |
| 22:16:35 | → | syntactic_sugar joins (~amoljha@2601:644:9080:77c0::54f1) |
| 22:16:42 | × | xmonadtrack quits (~xmonadtra@xmonad/geekosaur) (Ping timeout: 245 seconds) |
| 22:17:42 | × | geekosaur quits (~geekosaur@xmonad/geekosaur) (Killed (NickServ (GHOST command used by allbery_b))) |
| 22:17:42 | → | allbery_b joins (~geekosaur@xmonad/geekosaur) |
| 22:17:45 | allbery_b | is now known as geekosaur |
| 22:21:07 | → | xmonadtrack joins (~xmonadtra@069-135-003-034.biz.spectrum.com) |
| 22:21:07 | × | xmonadtrack quits (~xmonadtra@069-135-003-034.biz.spectrum.com) (Changing host) |
| 22:21:07 | → | xmonadtrack joins (~xmonadtra@xmonad/geekosaur) |
| 23:26:17 | × | zawaken quits (~zawaken@user/zawaken) (Quit: ZNC 1.9.x-git-unknown - https://znc.in) |
| 23:31:36 | → | zawaken joins (~zawaken@user/zawaken) |
All times are in UTC on 2022-08-07.