Logs: freenode/#xmonad
| 2021-03-04 18:13:08 | <mc47> | well no, but PP is the second parameter of statusBar which takes 4 parameters in total, so.... |
| 2021-03-04 18:15:22 | <Solid> | but none of those parameters is stuck in a MonadIO or similar |
| 2021-03-04 18:15:37 | <Solid> | and usually the PP you supply to it is pure anyways |
| 2021-03-04 18:15:56 | <Solid> | so you can just do `xmonad =<< statusBar "bar" def tsKey def', no? |
| 2021-03-04 18:16:02 | <Solid> | I think I'm missing something |
| 2021-03-04 18:16:41 | <Solid> | afaik if you're just using `dynamicLogWithPP' this is exactly the setup you need |
| 2021-03-04 18:18:53 | <mc47> | Yeah you could do that, I'm talking if you want to use an X PP instead |
| 2021-03-04 18:19:15 | <mc47> | but you're point holds, you can just use statusBar if you don't need any fancy things |
| 2021-03-04 18:19:18 | <fizzie> | @pl \x -> statusBar a x b c |
| 2021-03-04 18:19:19 | <lambdabot> | flip (flip (statusBar a) b) c |
| 2021-03-04 18:19:52 | <fizzie> | There's no problem in the world that couldn't be solved by an unreadable combination of `.`s and `flip`s. |
| 2021-03-04 18:19:52 | <mc47> | good bot :) |
| 2021-03-04 18:19:56 | <Solid> | it's beautiful |
| 2021-03-04 18:20:07 | <Solid> | I like that it's @pl and not @pf |
| 2021-03-04 18:20:09 | <Solid> | that's a nice touch |
| 2021-03-04 18:20:43 | <mc47> | Well, I guess there's a reason why xmonad users that are non-haskellers don't use statusBar |
| 2021-03-04 18:20:54 | <mc47> | or at least I've never seen it used by them |
| 2021-03-04 18:21:18 | <Solid> | they don't use it because it's not in the 10 year old examples on the wiki |
| 2021-03-04 18:21:31 | <Solid> | nor in that dude-from-youtube's config |
| 2021-03-04 18:22:01 | <mc47> | that config is basically the start point of many new users |
| 2021-03-04 18:22:16 | <mc47> | yeah, whoever updated the docs between the release and now did a great job |
| 2021-03-04 18:22:22 | <Solid> | I always advise them to use it and usually there are absolutely no troubles with getting that to work (if someone needs an `X PP' they're probably an advanced user anyways) |
| 2021-03-04 18:22:31 | <mc47> | true |
| 2021-03-04 18:22:33 | <Solid> | (I did) |
| 2021-03-04 18:22:37 | <Solid> | :D |
| 2021-03-04 18:23:00 | <mc47> | well kudos! |
| 2021-03-04 18:23:04 | <Solid> | <3 |
| 2021-03-04 18:31:08 | <heck-to-the-gnom> | Yeah, my config originally started from DT's (the guy on youtube). But I've modified it so much, its barely recognizable. |
| 2021-03-04 18:31:42 | <Liskni_si> | mc47: what's with the IORef trick? |
| 2021-03-04 18:32:10 | <mc47> | The one you mentioned |
| 2021-03-04 18:32:21 | <mc47> | delaying the spawning to the startupHook |
| 2021-03-04 18:32:56 | <Liskni_si> | so what's wrong with it? |
| 2021-03-04 18:33:27 | <mc47> | (sorry, too much time on the screen I can barely read things correctly) |
| 2021-03-04 18:33:44 | <mc47> | that "race condition" still occurs somehow |
| 2021-03-04 18:34:09 | <mc47> | either the bars don't get spawned at all, the they get spawned with a broken pipe (Updating ...) |
| 2021-03-04 18:34:25 | <heck-to-the-gnom> | I've been configuring it for almost 6 months, and it's been usable for about 5, but it's an ongoing process. I think I'm getting close to my config remaining static. After that I'll replicate my config in the `penrose WM` just for the heck of it, and I'd like to learn rust at some point, so... |
| 2021-03-04 18:34:51 | <heck-to-the-gnom> | Does this race condition just exist with statusbar? Or with dynamiclog too? |
| 2021-03-04 18:35:07 | <heck-to-the-gnom> | I've never had any issues with dynamic log, well, nothing like that. |
| 2021-03-04 18:35:49 | <Liskni_si> | mc47: that makes little sense :-/ |
| 2021-03-04 18:36:23 | <Liskni_si> | I'd need to see the code I guess |
| 2021-03-04 18:38:10 | <heck-to-the-gnom> | I get the `Updating...` thing, but only when I try to place `\x000` style escape codes in my xmobar config, and also only when on pure arch. Manjaro does something differently. And the nix install makes 0 difference. |
| 2021-03-04 18:38:10 | <heck-to-the-gnom> | I've temporarily replaced my `mononoki nerd font` characters that I was using with letters. |
| 2021-03-04 18:39:27 | <mc47> | Liskni_si I know, but that's what's happening :/ here's my config for reference https://github.com/TheMC47/dotfiles/blob/master/.xmonad/src/Config.hs |
| 2021-03-04 18:40:09 | <mc47> | stack at #463 |
| 2021-03-04 18:41:22 | <mc47> | heck-to-the-gnom if you start your status bar manually you won't encounter the problem |
| 2021-03-04 18:41:34 | <mc47> | but that method has a lot of boilerplate, among other problems |
| 2021-03-04 18:43:36 | <Liskni_si> | mc47: where shall I look for the IORef? |
| 2021-03-04 18:46:01 | <mc47> | nevermind... turns out I forgot to add it |
| 2021-03-04 18:46:31 | <mc47> | that's embarrassing hahaha |
| 2021-03-04 18:46:52 | <Liskni_si> | :-) |
| 2021-03-04 18:46:59 | <Liskni_si> | now it does make sense :-D |
| 2021-03-04 18:47:06 | <mc47> | totally lol |
| 2021-03-04 18:49:58 | <Solid> | lol |
| 2021-03-04 18:52:02 | → | growpotkin joins (~growpotki@130-45-30-154.dyn.grandenetworks.net) |
| 2021-03-04 18:53:05 | <Solid> | man, I can't wait to return to hacking on things |
| 2021-03-04 18:53:43 | × | geekosaur quits (82650c7a@130.101.12.122) (Ping timeout: 240 seconds) |
| 2021-03-04 19:13:19 | → | geekosaur joins (82650c7a@130.101.12.122) |
| 2021-03-04 19:20:03 | <heck-to-the-gnom> | Solid: Why can't/aren't you? |
| 2021-03-04 19:21:24 | <geekosaur> | thesis, I think |
| 2021-03-04 19:22:20 | <heck-to-the-gnom> | Ah |
| 2021-03-04 19:23:07 | <heck-to-the-gnom> | Much more disciplined than me. I'm just scatterbrained, I have trouble staying on the same task, well, unless it's fun. I should probably get some AD(H)D medicine tbh. |
| 2021-03-04 19:27:53 | <heck-to-the-gnom> | mc47: Does your config have an example of starting it manually? My log (workspaces, window name -- the unsafeSTDReader) works, it's just when in my XMobar.conf (yeah, yeah, I'll move it to a .hs sometime) has `Run Com "echo" ["\xfidk"] 0`, those remain on "Updating..." |
| 2021-03-04 19:28:20 | <mc47> | what do you mean? |
| 2021-03-04 19:28:40 | <heck-to-the-gnom> | here, I'll get a screenshot |
| 2021-03-04 19:30:10 | heck-to-the-gnom | uploaded an image: image.png (209KiB) < https://matrix.org/_matrix/media/r0/download/matrix.org/LlRaKFZlWZUydKxgdNiCcDvg/image.png > |
| 2021-03-04 19:31:27 | <heck-to-the-gnom> | See where it says "Updating..."? That's where my vim cursor is in my xmobar conf. |
| 2021-03-04 19:32:03 | <mc47> | and what are you expecting? |
| 2021-03-04 19:32:16 | <mc47> | Can you show me your xmonad config? |
| 2021-03-04 19:35:30 | → | Ikosit joins (vherrmanns@gateway/shell/matrix.org/x-hmvzdbbomixuiazx) |
| 2021-03-04 19:35:33 | <heck-to-the-gnom> | Sure, it's a leviathan for a WM, but for the time being it's hosted at https://github.com/techtiger255/xbronad |
| 2021-03-04 19:36:00 | <heck-to-the-gnom> | This one's a bit stale, but I haven't touched my xmobar stuff much since then |
| 2021-03-04 19:39:41 | → | Nahra joins (~Nahra@unaffiliated/nahra) |
| 2021-03-04 19:43:13 | <heck-to-the-gnom> | Oh, sorry, realized I left a question of yours unanswered, see the volume icon, and the power icon? Near the top right? It's supposed to look like that, but when I run it through echo on arch (instead of manjaro) it doesn't ever resolve |
| 2021-03-04 19:43:54 | <heck-to-the-gnom> | It works if I use a different command, as you can see. |
| 2021-03-04 19:44:02 | <geekosaur> | echo may only be provided as a shell built-in there? the standalone one's pretty silly |
| 2021-03-04 19:50:01 | → | rafadc joins (~rafadc@213.37.16.152.dyn.user.ono.com) |
| 2021-03-04 19:55:54 | <mc47> | heck-to-the-gnom I thought you were asking me about the new interface |
| 2021-03-04 20:12:39 | <heck-to-the-gnom> | I was, but I was asking if it would solve this problem, but it does seem a bit out of scope. |
| 2021-03-04 20:17:30 | <heck-to-the-gnom> | geekosaur: it's whatever my shell determines (`~/.nix-profile/bin/echo`), with a fallback of `/bin/echo` |
| 2021-03-04 20:17:32 | <mc47> | No, that's just xmobar |
| 2021-03-04 20:17:47 | <heck-to-the-gnom> | OK, good to know. |
| 2021-03-04 20:18:29 | <mc47> | (or something else related to that, no idea though) |
| 2021-03-04 20:18:43 | <heck-to-the-gnom> | geekosaur: If it helps at all: replacing "echo" with "/bin/echo" or my nix one, it makes no difference |
| 2021-03-04 20:18:56 | <heck-to-the-gnom> | I tried both the cabal and stack versions, same result |
| 2021-03-04 20:51:25 | → | xsperry joins (~as@unaffiliated/xsperry) |
| 2021-03-04 21:07:47 | → | adamik joins (~nodelet@unaffiliated/adamik) |
| 2021-03-04 21:13:52 | → | jd_ joins (~jd@23-127-25-87.lightspeed.rcsntx.sbcglobal.net) |
| 2021-03-04 21:13:55 | jd_ | is now known as juliusdelta |
| 2021-03-04 21:14:25 | <juliusdelta> | Whenever I update xmonad, it breaks after a reboot. I have to login as my root user and I typically reinstall and recompile it for my main user. Anyone else encounter this before? |
| 2021-03-04 21:15:04 | <juliusdelta> | should I recompile it before rebooting after updates? |
| 2021-03-04 21:21:53 | <heck-to-the-gnom> | Probably, it depends on how big the update was, if it was only bug squashing, semantic changes, or performance boosts, then you shouldn't have to recompile. But, if Xmonad updates, and it breaks or changes something you were using, then it might not accept the binary. I personally haven't experienced this, but that's my guess. |
| 2021-03-04 21:22:21 | <juliusdelta> | Welp Arch Wiki to the rescue. -> "Remember to run xmonad --recompile after you upgrade xmonad..." |
| 2021-03-04 21:23:32 | <juliusdelta> | Yeah the xsession-error seems like the binary it's looking for doesn't line up |
| 2021-03-04 21:24:09 | <heck-to-the-gnom> | Oof! A wise man once told me to never use the arch install of xmonad. I'm on arch, BUT, I use the nix install. (https://nixos.org/nix) |
| 2021-03-04 21:25:22 | <juliusdelta> | Oh interesting. I'm on arch and use the arch install lol. I haven't had any problems but this one. The wiki also has a useful pacman hook to auto recompile after updates |
| 2021-03-04 21:25:29 | <juliusdelta> | https://wiki.archlinux.org/index.php/Xmonad#Problems_with_finding_shared_libraries_after_update |
| 2021-03-04 21:26:36 | <Liskni_si> | The wise man probably had this one in mind. |
| 2021-03-04 21:26:56 | × | thc202 quits (~thc202@unaffiliated/thc202) (Ping timeout: 240 seconds) |
| 2021-03-04 21:26:58 | <geekosaur> | one problem is you otherwise need a build script to inject -dynamic, because arch |
| 2021-03-04 21:27:44 | <Liskni_si> | (Although I do wonder how wise men acquire pacman experience, as wise men should know better than to use pacman.) |
All times are in UTC.