Home liberachat/#xmonad: Logs Calendar

Logs on 2021-11-02 (liberachat/#xmonad)

00:00:21 <geekosaur> hrm. so what happens if that's true in general of debian? are ubuntu, mint, etc. in trouble?
00:01:33 geekosaur does *not* want to go nixos
00:01:43 <liskin> Well they're over a year behind pandoc updates anyway
00:02:16 <liskin> So yeah, they're probably not a good distro for Haskell deployments any more
00:02:33 gruntsplatter joins (~sogens@gateway/vpn/pia/sogens)
00:03:00 <liskin> I'll probably just switch to ghcup or something, as awful as that sounds.
00:03:08 <geekosaur> well, tbh I'm not interested in running them for their haskell support since I use ghcup
00:03:22 <liskin> In that case you needn't worry
00:03:25 <geekosaur> but I do worry if they're also seeing other developers leave for greener pastures
00:03:54 <liskin> Python and R packaging is better than ever
00:04:34 <liskin> KDE in good hands, GNOME obviously not as good as Fedora but usable
00:04:51 <liskin> I wouldn't worry just yet
00:05:35 <liskin> Not sure about Rust and Go but certainly both in way better shape than Haskell
00:06:08 <liskin> One would almost think the problem isn't at Debian's side ;-)
00:06:17 <geekosaur> yeh. and the predominant attitude of the haskell community ("use stack or ghcup") probably doesn't help
00:06:33 <liskin> Yep :-)
00:07:58 × CosmosAtlas quits (~CosmosAtl@bras-base-ktnron060cw-grc-02-76-69-147-188.dsl.bell.ca) (Quit: WeeChat 3.3)
00:08:16 <geekosaur> still, there's a few packages that it would be nice if they still updated — not just xmonad but pandoc and hledger among others
00:08:39 <liskin> Indeed, that's a shame
00:09:19 <liskin> Downloading binaries from Github is very meh
00:10:54 <liskin> Oh well, complaining isn't going to solve it though is it? :-)
00:11:18 <liskin> (I mean, good night.)
00:21:23 <geekosaur> mm, another worrisome thing to me is we have no logo submissions yet
00:25:13 <davean> geekosaur: theres a logo competition?
00:25:44 <geekosaur> https://github.com/xmonad/xmonad/discussions/343
00:26:50 geekosaur is paranoid enough to wonder if we've done something wrong there, like maybe only maintainers can post to the discussion or something
00:27:16 <geekosaur> also it was in the release announcement
00:28:03 <davean> I mean I didn't read the release announcement - it said new version that seemed great to me, and I moved on to more usually useful sources of information. Specificly the changelog since its usually less full of fluff :)
00:28:29 <davean> Why replace the logo anyway?
00:29:42 <geekosaur> nobody else likes it, apparently. I think it's fine
00:29:48 <davean> I don't care
00:29:53 <davean> a logo is a logo
00:29:57 <davean> Its clear, I know what it is
00:30:04 <davean> I've no reason to want it replaced.
00:30:21 <geekosaur> but the >>= is apparently scary or something
00:30:34 <davean> Ok
00:30:41 <davean> Scary is fine
00:30:42 <geekosaur> personally I want to print the current one out and post it on my apartment door :)
00:31:37 <davean> Also I left debian because a mear few years out of date is record breakingly modern!
00:32:47 <davean> I remember being stuck using packages that were 2 years out of date *when that version of debian released* and a new version was months out
00:34:30 <davean> Anyway actually setting up funding is cool
00:38:20 <davean> I guess I should consider funding it
00:49:43 × catman quits (~catman@user/catman) (Read error: Connection reset by peer)
00:51:33 catman joins (~catman@user/catman)
00:58:32 × catman quits (~catman@user/catman) (Quit: WeeChat 3.4-dev)
00:59:03 catman joins (~catman@user/catman)
01:06:00 etrigan63[m] joins (~etrigan63@2001:470:69fc:105::1:2982)
01:09:31 <etrigan63[m]> Hey all. Got my xmonad running almost the way I want it. One thing left. How do I assign workspaces 1-5 to my left monitor and 6-10 to my right monitor? I import XMonad.Layout.IndependentScreens but when I do `withScreens 2 myWorkspaces`, it goes awry.
01:14:42 <fizzie> There's more to IndependentScreens setup than just `withScreens`; you'll need to also change at least the workspace-switching and window-moving keybindings, plus any other more custom things you might have.
01:15:12 <fizzie> Also, it doesn't split `myWorkspaces` to two screens, it creates copies for each monitor, so that if you start with workspaces 1, 2, 3, 4, 5, you end up with 1_0, 2_0, 3_0, 4_0, 5_0 for monitor 0 and 1_1, 2_1, 3_1, 4_1, 5_1 for monitor 1.
01:18:37 <fizzie> If you want to have your "real" workspaces numbered from 1-10 and just keep 1-5 on one monitor and 6-10 on the other, I don't think IndependentScreens provides anything too useful for that. You'd just want to update your keybindings to follow that logic. And maybe avoid any other actions that might switch workspaces and end up messing that up.
01:19:47 <etrigan63[m]> So how do I properly assign 1-5 to left monitor and 6-10 to the right monitor. I don't want desktops jumping randomly from one monitor to the other. Drives me bananas.
01:20:15 <etrigan63[m]> s/./?/
01:21:56 <fizzie> By having your workspace-swapping keybindings respect that. Not sure what exactly you'd want the logic to be. Should mod-1..5 always just change the workspace on one screen, and mod-6..0 on other?
01:23:59 <etrigan63[m]> That would work.
01:27:08 × srk quits (~sorki@user/srk) (Ping timeout: 260 seconds)
01:27:19 srk_ joins (~sorki@user/srk)
01:27:47 <fizzie> Hmm, I'm not sure if XMonad.StackSet has very helpful convenience functions of changing the workspace visible on the non-current screen. :/ Not that I think there's anything impossible about it, it's just that `view` and `greedyView` are pretty focused on only changing the current screen's one.
01:28:04 × tremon quits (~tremon@217-63-61-89.cable.dynamic.v4.ziggo.nl) (Quit: getting boxed in)
01:28:21 <fizzie> Maybe with XMonad.Actions.OnScreen from xmonad-contrib though.
01:28:50 <etrigan63[m]> I will look into it.
01:29:37 <fizzie> It has an example that relates to workspace-switching in the documentation.
01:29:59 srk_ is now known as srk
01:33:02 <fizzie> So for you, maybe something like... [((m, k), windows (viewOnScreen 0 i)) | (i, k) <- zip (take 5 myWorkspaces) [xK_1 .. xK_5])] ++ [((m, k), windows (viewOnScreen 1 i)) | (i, k) <- zip (drop 5 myWorkspaces) ([xK_6 .. xK_9] ++ [xK_0]))].
01:33:13 <fizzie> Probably there's a prettier way to write that too, but anyway.
01:35:15 <fizzie> (Where `m` is the modMask you like, and myWorkspaces the list of 10 workspace names, and viewOnScreen is from XMonad.Actions.OnScreen.)
01:37:39 <fizzie> Or perhaps [((modMask, k), windows $ viewOnScreen s i) | (i, k, s) <- zip3 myWorkspaces ([xK_1 .. xK_9] ++ [xK_0]) [0 0 0 0 0 1 1 1 1 1])] to compact it a little.
02:43:21 × trillp quits (~trillp@69.233.98.238) (Quit: nyaa~)
02:46:18 × banc quits (banc@gateway/vpn/airvpn/banc) (Ping timeout: 260 seconds)
03:22:06 banc joins (banc@gateway/vpn/airvpn/banc)
04:56:19 × Extropy quits (~extropy@user/extropy) (Quit: "need to preserve some semblance of regular sleep")
05:19:26 × gruntsplatter quits (~sogens@gateway/vpn/pia/sogens) (Ping timeout: 268 seconds)
05:59:37 gruntsplatter joins (~sogens@gateway/vpn/pia/sogens)
06:16:43 × electr0n quits (~electr0n@about/security/founder/electr0n) (Quit: WeeChat 3.3)
06:22:42 qbt joins (~qbt@user/edun)
07:05:47 × eblip quits (~eb0t@90.196.142.2) (Ping timeout: 264 seconds)
07:07:23 eblip joins (~eb0t@90.194.37.155)
07:25:40 cyr4x3 joins (~cyr4x3@139.47.115.87)
07:33:37 <Solid> liskin: sounds like it's time to step up and offer to maintain xmonad for the debian folks :P
07:33:58 <Solid> geekosaur: I think every logo I've seen so far (that were posted on IRC) had a version of >>= in there, so that's probably not it
07:34:17 <Solid> though there's nothing stopping you (rule wise) to submit the current xmonad logo and see if that wins :>
07:34:58 Solid will probably post his "Haskell logo with an X" idea to make it look less empty and scary
07:41:08 <Solid> oh I seem to have deleted the project file
08:13:39 cfricke joins (~cfricke@user/cfricke)
08:41:33 × cyr4x3 quits (~cyr4x3@139.47.115.87) (Quit: WeeChat 2.3)
08:45:06 cyr4x3 joins (~cyr4x3@139.47.115.87)
09:00:12 mc47 joins (~mc47@xmonad/TheMC47)
09:00:49 × cyr4x3 quits (~cyr4x3@139.47.115.87) (Quit: WeeChat 2.3)
09:01:02 × geekosaur quits (~geekosaur@xmonad/geekosaur) (Remote host closed the connection)
09:01:11 cyr4x3 joins (~cyr4x3@139.47.115.87)
09:04:37 geekosaur joins (~geekosaur@xmonad/geekosaur)
09:37:32 <liskin> geekosaur: the release itself didn't get much of a reaction so few people read the announcement :-/
09:37:44 <liskin> geekosaur: I can tweet about the logo contest specifically though
09:47:58 <sibi> Probably we can reach out to Tyson Tan. I loved his Kate icon. More details here: https://kate-editor.org/post/2020/2020-01-25-new-kate-icon/
10:10:31 × mc47 quits (~mc47@xmonad/TheMC47) (Ping timeout: 268 seconds)
10:24:25 × cyr4x3 quits (~cyr4x3@139.47.115.87) (Quit: WeeChat 2.3)
10:24:40 cyr4x3 joins (~cyr4x3@139.47.115.87)
10:28:00 dschrempf joins (~dominik@070-207.dynamic.dsl.fonira.net)
10:28:30 × dschrempf quits (~dominik@070-207.dynamic.dsl.fonira.net) (Client Quit)
10:43:39 × cyr4x3 quits (~cyr4x3@139.47.115.87) (Quit: WeeChat 2.3)
12:07:22 mc47 joins (~mc47@xmonad/TheMC47)
12:13:50 × mc47 quits (~mc47@xmonad/TheMC47) (Ping timeout: 268 seconds)
12:25:43 Ainoretho joins (~ypw@huji-132-64-245-223.xt.huji.ac.il)
12:25:50 × Ainoretho quits (~ypw@huji-132-64-245-223.xt.huji.ac.il) (Client Quit)
12:28:46 Ainoretho joins (~ypw@huji-132-64-245-223.xt.huji.ac.il)
12:30:02 × Ainoretho quits (~ypw@huji-132-64-245-223.xt.huji.ac.il) (Client Quit)
12:30:16 Ainoretho joins (~ypw@huji-132-64-245-223.xt.huji.ac.il)
12:31:47 × Ainoretho quits (~ypw@huji-132-64-245-223.xt.huji.ac.il) (Client Quit)
12:32:02 Ainoretho joins (~ypw@huji-132-64-245-223.xt.huji.ac.il)
12:37:02 × Ainoretho quits (~ypw@huji-132-64-245-223.xt.huji.ac.il) (Quit: WeeChat 3.3)
13:05:43 nomadxxxx3 joins (~lanomadx@208.91.66.247)
13:06:46 × nomadxx3 quits (~lanomadx@208.91.67.219) (Ping timeout: 245 seconds)
13:09:25 geekosaur wonders if we can package up the logic for workspace-switching keys as a helper function in place of the scary-looking list comprehension
13:35:53 <FOSSHuman[m]> Hello everyone, I was wondering how I would show an icon for example when XMonad is on a certain layout, I've tried this: `ppLayout = \l -> xmobarColor ...` and ghc returns the error that `String` was expected but `String -> String` was found, I wanted to use an if statement to see which layout I'm on currently and then print an icon to XMobar depending on the layout... How would I do this?
13:36:22 <FOSSHuman[m]> s///, s/see/check/
13:37:48 <FOSSHuman[m]> Then I also added at the end `if l == "Spacing Tall" then hPutStrLn "example" else "example_a"` as an example to see if it would work, but experienced more errors...
13:37:58 <FOSSHuman[m]> * "example" else hPutStrLn "example_a"` as
13:39:02 FOSS_Human joins (~lol111@user/foss-human/x-0231813)
13:40:51 FOSS_Human parts (~lol111@user/foss-human/x-0231813) ()
13:48:30 <geekosaur> can you provide a paste of a more complete failing example?
13:48:34 <geekosaur> @where paste
13:48:34 <lambdabot> Help us help you: please paste full code, input and/or output at e.g. https://paste.tomsmeding.com
13:49:18 <geekosaur> and you can't do putStrLn or other IO in there
13:50:39 <geekosaur> ppLayout :: String -> String -- not IO String
14:33:25 <FOSSHuman[m]> <geekosaur> "can you provide a paste of a..." <- k, I've made a paste with the PutStrLn bits removed: https://paste.tomsmeding.com/Qkp88xVa
14:34:43 mc47 joins (~mc47@xmonad/TheMC47)
14:35:49 <geekosaur> yeh, that looks wrong, you
14:35:50 <geekosaur> 'er
14:36:07 <geekosaur> you're passing the if expression as a parameter to pad, which doesn't take a parameter
14:37:03 <FOSSHuman[m]> oh k, so how would I add an if expression to this for example?
14:37:04 <geekosaur> https://paste.tomsmeding.com/PDsyJh83
14:37:26 <geekosaur> all I did was insert a composition operator, although that is probably wrong as well
14:37:33 <geekosaur> think it needs to be a $ instead of a .
14:38:19 <FOSSHuman[m]> geekosaur: Yes! This worked, now XMobar shows example_a when the layout is `Spacing Tall`
14:38:31 <FOSSHuman[m]> very nice
14:39:19 <FOSSHuman[m]> Thank you for the help.. I learn more about XMonad every day lol
14:39:20 <geekosaur> so presumably you want to change "example_a" to your icon and "example_b" to l
14:40:30 <FOSSHuman[m]> geekosaur: yep
14:54:59 <FOSSHuman[m]> btw how do replies appear in IRC
14:55:14 <FOSSHuman[m]> In Matrix they appear as normal replies, but idk if on IRC they appear as replies
14:55:20 <liskin> 15:33:25 <FOSSHuman[m]> <geekosaur> "can you provide a paste of a..." <- k, I've made a paste …
14:55:41 <liskin> which is actually way better than in Matrix as it only takes one line
14:55:58 <liskin> (in most Matrix clients, to be precise)
14:56:22 <FOSSHuman[m]> Ahk, so they are compacted down then, pretty decent I guess..
16:13:14 × sagax quits (~sagax_nb@user/sagax) (Remote host closed the connection)
16:29:18 sagax joins (~sagax_nb@user/sagax)
16:52:08 SenranKaguya joins (~weechat@c-73-15-19-170.hsd1.ca.comcast.net)
17:06:43 seschwar joins (~seschwar@user/seschwar)
17:17:49 × cfricke quits (~cfricke@user/cfricke) (Quit: WeeChat 3.3)
17:41:48 <Solid> matrix replies are much better on IRC than on matrix
17:41:51 <Solid> what a time to be alive
17:45:13 <L29Ah> that's only because y... Read the rest of the message: https://natribu.org/en/
17:47:55 <liskin> it's also quite subjective
17:48:16 <liskin> there are, after all, people who prefer to only see 5 messages at once on a 1080p
17:52:06 <SenranKaguya> a small price to pay for animated frog emotes
18:14:16 × darkstardevx quits (~darkstard@2601:1c2:300:c8a0::6c32) (Ping timeout: 245 seconds)
18:33:59 line joins (~info@li2021-150.members.linode.com)
18:35:12 darkstardevx joins (~darkstard@50.39.114.152)
18:37:32 tremon joins (~tremon@217-63-61-89.cable.dynamic.v4.ziggo.nl)
18:50:26 × SenranKaguya quits (~weechat@c-73-15-19-170.hsd1.ca.comcast.net) (Ping timeout: 260 seconds)
19:03:06 <liskin> :-D
19:03:29 <FOSSHuman[m]> btw, some Matrix clients do have an option to change the UI style to look like IRC
19:03:40 <FOSSHuman[m]> So it's not THAT bad
19:04:54 <FOSSHuman[m]> The one I use, Schildichat for example has that option
19:05:22 <FOSSHuman[m]> But IRC is a lot more minimal and less distracting tbh
19:05:54 <FOSSHuman[m]> Since Schildichat is a fork of Element, Element might have that option too, but idk..
19:06:09 <liskin> yeah Element does have that
19:06:14 <liskin> it's still crap
19:06:33 <liskin> anyway, here's a direct comparison of weechat as an IRC client and weechat as a Matrix client:
19:06:39 <evilop> there are some cli matrix clients too
19:06:39 <liskin> https://store.lisk.in/tmp/2021-11-02-190412_956x1031_scrot.png vs https://store.lisk.in/tmp/2021-11-02-190417_956x1031_scrot.png
19:06:47 <Solid> I think element still shows the full quote though
19:07:09 <liskin> replies look _way_ better on the IRC side
19:09:32 <FOSSHuman[m]> weechat does look pretty nice though, never tried it
19:09:45 <FOSSHuman[m]> I've only tried GUI IRC clients
19:10:57 Hash is now known as LordOfThePings
19:11:15 × qbt quits (~qbt@user/edun) (Read error: Connection reset by peer)
19:11:37 liskin likes keyboard-controlled software and console apps are usually better at that
19:12:14 qbt joins (~qbt@user/edun)
19:44:37 × mc47 quits (~mc47@xmonad/TheMC47) (Ping timeout: 268 seconds)
19:55:11 <jakefromstatefar> I tried weechat, but the controls and setup just seemed like too much for me
20:09:32 <FOSSHuman[m]> I managed to set it up but couldn't get SASL working for some reason
20:09:52 <FOSSHuman[m]> Even on the GUI ones I couldn't
20:10:32 <FOSSHuman[m]> * tried Konversation & Hexchat
20:10:53 <geekosaur> SASL worked for me but I had to figure out which field was actually used as the SASL username (hexchat)
20:15:03 <liskin> I think setting up weechat took me almost a week
20:15:41 <liskin> but that was primarily because I used irssi for 10+ years and wanted everything to work same or better
20:15:50 <liskin> and I had to port a couple scripts from irssi to weechat
20:21:01 <FOSSHuman[m]> I think the `extensible` nature of Weechat is what drove me to not use it, since I wanted a "Just Works (TM)" experience. But I might spend more time looking at the docs this time around..
20:21:58 <liskin> yeah, that's completely fair :-)
20:32:19 <Solid> weechat is surprisingly usable ootb (I'm running it almost vanilla, only added a few well-known scripts)
20:32:57 <Solid> (can't wait for the day I switch to erc, though :))
20:33:54 <geekosaur> emacs is kinda bad for irc
21:01:59 × qbt quits (~qbt@user/edun) (Quit: Leaving.)
21:15:09 mc47 joins (~mc47@xmonad/TheMC47)
21:20:34 × mc47 quits (~mc47@xmonad/TheMC47) (Remote host closed the connection)
21:27:02 <Solid> I mean, there is a capable matrix client that's being developed (ement.el); how hard can IRC be? :)
21:27:50 <geekosaur> doubt that will work any better. elisp really needs multiple threads
22:01:20 trillp joins (~trillp@69.233.98.238)
23:00:07 × gruntsplatter quits (~sogens@gateway/vpn/pia/sogens) (Ping timeout: 268 seconds)
23:18:13 × seschwar quits (~seschwar@user/seschwar) (Quit: :wq)
23:49:58 × eblip quits (~eb0t@90.194.37.155) (Read error: Connection reset by peer)
23:55:42 eblip joins (~eb0t@90.202.252.138)

All times are in UTC on 2021-11-02.