Logs: freenode/#xmonad
| 2021-02-16 15:34:37 | <ttmx> | Sorry, this is a text editor, vim to be more specific. |
| 2021-02-16 15:34:39 | <Liskni_si> | I have no idea what we're looking at |
| 2021-02-16 15:35:04 | <ttmx> | My bad in not specifying. |
| 2021-02-16 15:35:28 | <ttmx> | This is me viewing the tee output in vim. |
| 2021-02-16 15:37:16 | <ttmx> | It seems the output pipe is in a different encoding or something? |
| 2021-02-16 15:37:19 | <Liskni_si> | maybe try this https://github.com/xmonad/xmonad-contrib/blob/9c4c417936a4506566947c91ddd3b1f6af31e412/XMonad/Util/Run.hs#L185 |
| 2021-02-16 15:37:29 | <Liskni_si> | instead of spawnPipe |
| 2021-02-16 15:38:29 | → | malook joins (~Thunderbi@2a02:9b0:4001:e78f:449d:1fa2:974c:7655) |
| 2021-02-16 15:38:56 | <Liskni_si> | spawnPipe should default to using the locale encoding these days, but in the last release it was probably wrong |
| 2021-02-16 15:39:05 | <Liskni_si> | https://github.com/xmonad/xmonad-contrib/commit/1d0eaddc253078f22106869fc5b11be8d1f63995 isn't released yet |
| 2021-02-16 15:39:55 | <Liskni_si> | I haven't used spawnPipe for over 10 years so I had no idea it's this broken |
| 2021-02-16 15:40:13 | <Liskni_si> | xmonad to xmobar supported logging via X properties for ages |
| 2021-02-16 15:40:15 | <ttmx> | What do you use then? and I shall then |
| 2021-02-16 15:40:26 | <Liskni_si> | property-based logging |
| 2021-02-16 15:40:31 | <ttmx> | THAT WORKED! |
| 2021-02-16 15:40:56 | <Liskni_si> | what exactly? |
| 2021-02-16 15:42:11 | <ttmx> | spawnPipeWithNoEncoding |
| 2021-02-16 15:42:32 | <Liskni_si> | uh, WithNoEncoding? |
| 2021-02-16 15:42:36 | <Liskni_si> | that's a bit unexpected |
| 2021-02-16 15:43:36 | <ttmx> | xmproc <- spawnPipeWithNoEncoding "xmobar -x 0" Worked, instead of just the spawnPipe |
| 2021-02-16 15:43:50 | <ttmx> | Uploaded file: https://uploads.kiwiirc.com/files/870093d0e857ccafee54639c2e326aec/image.png |
| 2021-02-16 15:43:56 | <ttmx> | Its so pretty |
| 2021-02-16 15:46:24 | <ttmx> | Now time to break it some more, I wanna swap some of the numbers by emoji xD |
| 2021-02-16 15:47:29 | × | malook quits (~Thunderbi@2a02:9b0:4001:e78f:449d:1fa2:974c:7655) (Quit: malook) |
| 2021-02-16 15:48:01 | <ttmx> | Also ideally would change the "Spacing Tall" by an icon, but I have no idea how to do that either |
| 2021-02-16 15:48:41 | <Solid> | spawnPipeWithNoEncoding lets xmobar deal with the UTF8 encoding (which I think it tries first instead of respecting the locale) |
| 2021-02-16 15:49:06 | <Solid> | ttmx: X.L.Renamed does that |
| 2021-02-16 15:50:00 | <ttmx> | X.L.Renamed? |
| 2021-02-16 15:50:24 | <Solid> | https://hackage.haskell.org/package/xmonad-contrib-0.16/docs/XMonad-Layout-Renamed.html |
| 2021-02-16 15:57:17 | <ttmx> | Is this cursed? myWorkspaces = ["<fn=1>\62057</fn>","2","3","4","5","6","7","8","9","10"] |
| 2021-02-16 15:57:32 | <ttmx> | Instead of using the renamed package I just... Changed the name. |
| 2021-02-16 16:00:12 | <Solid> | didn't you want to change the name of a layout? |
| 2021-02-16 16:03:07 | <mc47> | The renamed is for the layout, for the workspaces, that *is* how you do it |
| 2021-02-16 16:04:34 | <Liskni_si> | Solid: not really, spawnPipeWithNoEncoding should create a binary handle and writing anything else than 7-bit ascii should result in garbage |
| 2021-02-16 16:04:39 | → | scardinal joins (~supreme@unaffiliated/scardinal) |
| 2021-02-16 16:04:40 | <Liskni_si> | Solid: and that's exactly what's happening here |
| 2021-02-16 16:05:09 | <Liskni_si> | it looks almost as if ttmx's config was encoding the string as utf8 before writing it to the handle |
| 2021-02-16 16:05:55 | <Liskni_si> | oh, of course it is, because dynamicLogString does that |
| 2021-02-16 16:06:17 | <Liskni_si> | which means psibi[m]'s patch to X.U.Run breaks a lot of configs |
| 2021-02-16 16:06:39 | <Liskni_si> | ttmx: you've found an actual bug in xmonad, congratulations and thanks :-) |
| 2021-02-16 16:07:14 | <ttmx> | Right, I wanted to do both Solid |
| 2021-02-16 16:07:52 | <ttmx> | You're welcome I think or something |
| 2021-02-16 16:08:11 | <ttmx> | Glad I didn't bang my head against the wall due to my pure lack of knowledge |
| 2021-02-16 16:09:37 | <ttmx> | Riiight, also, is there a way for me to place actual emojis in my source code? |
| 2021-02-16 16:09:56 | <ttmx> | Its slightly bothersome to go find out their escape sequence every time I want to use one |
| 2021-02-16 16:15:07 | <Liskni_si> | seems you can't use privateuse unicode chars in Haskell :-/ |
| 2021-02-16 16:20:09 | <ttmx> | Why is that? |
| 2021-02-16 16:22:58 | <ttmx> | Aaand now to fix avoidstruts again... |
| 2021-02-16 16:23:07 | <ttmx> | How do I even get started on that department? |
| 2021-02-16 16:23:29 | <ttmx> | It is not avoiding the xmobar |
| 2021-02-16 16:23:46 | <Liskni_si> | https://stackoverflow.com/questions/60682325/use-unicode-characters-for-xmonad-workspaces#comment107367852_60683742 |
| 2021-02-16 16:24:09 | <ttmx> | Probably because I changed my config from the old simple prepackaged solution to a spawnpipe solution |
| 2021-02-16 16:25:26 | <Liskni_si> | xmonad $ docks . ewmh $ def … |
| 2021-02-16 16:25:31 | <Liskni_si> | and then drop the manageDocks |
| 2021-02-16 16:25:50 | <Liskni_si> | (and leave avoidStruts, that needs to be there still) |
| 2021-02-16 16:27:17 | <ttmx> | How would I make my keybind toggle the dock then? |
| 2021-02-16 16:27:41 | <ttmx> | Also, that seems to have half worked? |
| 2021-02-16 16:28:02 | <ttmx> | It seems to be treating the dock as a normal window of sorts? |
| 2021-02-16 16:28:50 | <ttmx> | Uploaded file: https://uploads.kiwiirc.com/files/228f1e9aa023651d7075e1177d357e1c/image.png |
| 2021-02-16 16:29:04 | <ttmx> | It has spacing, but only small spacing, unlike the other sides |
| 2021-02-16 16:29:12 | <ttmx> | Uploaded file: https://uploads.kiwiirc.com/files/3bfdaed98a90de12f9750b1844e6047e/image.png |
| 2021-02-16 16:34:01 | <psibi[m]> | Liskni_si: Which patch of mine are you talking about ? But I do have a history of breaking things.. :-) |
| 2021-02-16 16:36:38 | <psibi[m]> | Ah, I see that you've pinged in github too. |
| 2021-02-16 16:37:40 | <Liskni_si> | psibi[m]: and I just got an idea for a better solution, I'm writing another github comment |
| 2021-02-16 16:38:54 | × | hexo quits (~hexo@gateway/tor-sasl/hexo) (Remote host closed the connection) |
| 2021-02-16 16:39:09 | → | hexo joins (~hexo@gateway/tor-sasl/hexo) |
| 2021-02-16 16:40:45 | <psibi[m]> | I do remember fixing a double utf8 encoding issue in xmobar which was caused by this MR though. |
| 2021-02-16 16:41:32 | <Liskni_si> | oh, crap |
| 2021-02-16 16:41:39 | <Liskni_si> | I need to see that one too |
| 2021-02-16 16:43:12 | → | idhugo joins (~idhugo@80-62-117-97-mobile.dk.customer.tdc.net) |
| 2021-02-16 16:44:21 | <Solid> | Liskni_si: https://github.com/jaor/xmobar/pull/482 |
| 2021-02-16 16:46:16 | <Liskni_si> | oh |
| 2021-02-16 16:46:30 | <Liskni_si> | so you just broke xmonad and then added a workaround to xmobar to compensate for it :-/ |
| 2021-02-16 16:54:17 | <Liskni_si> | ttmx: what version of xmobar do you have, btw? |
| 2021-02-16 16:56:57 | <ttmx> | xmobar 0.36 |
| 2021-02-16 16:57:03 | <ttmx> | Liskni_si |
| 2021-02-16 16:59:07 | <Liskni_si> | interesting |
| 2021-02-16 16:59:27 | <Liskni_si> | this double-utf8 encoding crap also totaly breaks xmobarRaw |
| 2021-02-16 16:59:37 | <Liskni_si> | which is probably what mc47 hit as well |
| 2021-02-16 16:59:47 | <Liskni_si> | how the hell did this go unnoticed for so many months? |
| 2021-02-16 17:00:27 | <ttmx> | You don't have zoomer users such as myself 😎 |
| 2021-02-16 17:01:14 | <Liskni_si> | well yeah you probably got a bit unlucky that you used unicode characters that are so weird that all these hacks finally broke down |
| 2021-02-16 17:01:22 | <ttmx> | Also because you only notice it if the utf8 version of the emoji has a control character like a paragrapth inside of it. |
| 2021-02-16 17:01:34 | <ttmx> | Otherwise it is not displayed |
| 2021-02-16 17:01:37 | <Liskni_si> | yeah that's probably the real reason :-) |
| 2021-02-16 17:02:19 | <ttmx> | Idk how it works |
| 2021-02-16 17:02:37 | → | malook joins (~Thunderbi@2a02:9b0:4001:e78f:ce3:24dd:9e30:bbeb) |
| 2021-02-16 17:02:39 | <ttmx> | But it was displaying both the unicode emoji AND the paragraph character, which should be INSIDE the emoji |
| 2021-02-16 17:03:00 | <ttmx> | It should be one or the other I feel like |
| 2021-02-16 17:04:19 | <ttmx> | Does what I am saying make sense? |
| 2021-02-16 17:04:22 | <Liskni_si> | yeah |
| 2021-02-16 17:05:10 | <Liskni_si> | it's possible that double-utf8 encoding of that particular emoji results in something that, when decoded only once, results in that same emoji and an extra character |
| 2021-02-16 17:06:09 | <ttmx> | Imagine my emoji's hex is 0x123441, it should either display broken stuff with an "A" in the end(41) or my full emoji, but instead it displays the equivalent to 0x12344141 |
| 2021-02-16 17:06:21 | <ttmx> | Mhm |
| 2021-02-16 17:06:33 | <Liskni_si> | might be interesting to investigate this deeper, but I'd just like to fix it and go back to all the other stuff that I wanted to work on :-/ |
| 2021-02-16 17:06:42 | <ttmx> | Luckily I don't have to deal with encodings myself 😎 |
| 2021-02-16 17:07:03 | <Liskni_si> | but if you do have time, I'd definitely encourage you to play with it, UTF-8 is interesting :-) |
| 2021-02-16 17:07:21 | <Liskni_si> | might impress a prof or a nerd girl with what you find |
| 2021-02-16 17:08:02 | <ttmx> | I hate character encodings as much as I hate timezones and daylight saving times. |
| 2021-02-16 17:08:18 | <ttmx> | I just wanna use utf8 and unix epoch for everything |
All times are in UTC.