2021/10/10

2021-10-10 00:07:59 +0200mc47(~mc47@xmonad/TheMC47) (Remote host closed the connection)
2021-10-10 00:27:25 +0200syntactic_sugar(~amoljha@2601:644:8601:2e30::822c)
2021-10-10 00:46:09 +0200seschwar(~seschwar@user/seschwar) (Quit: :wq)
2021-10-10 01:41:04 +0200spider(~spider@vps-951ce37a.vps.ovh.ca)
2021-10-10 01:41:18 +0200spiderspider_
2021-10-10 01:43:05 +0200 <abhixec> Probably a little off topic but what is some good recommendations for getting to speed with Haskell where I can feel comfortable trying to understand xmonad? Rather simple question what is path to learning internals of xmonad?
2021-10-10 01:43:31 +0200 <geekosaur> @where books
2021-10-10 01:43:31 +0200 <lambdabot> https://www.extrema.is/articles/haskell-books, see also @where LYAH, RWH, YAHT, SOE, HR, PIH, TFwH, wikibook, PCPH, HPFFP, HTAC, TwT, FoP, PFAD, WYAH, non-haskell-books
2021-10-10 01:44:25 +0200 <geekosaur> that's just for Haskell though. for xmonad, once you have a basic understanding of Haskell you should be able to understand xmonad's core fairly easily
2021-10-10 01:44:38 +0200 <geekosaur> and it's only 5 smallish files
2021-10-10 01:44:52 +0200 <geekosaur> maybe 6 smallish files
2021-10-10 01:45:18 +0200 <geekosaur> many of the extensions are just as simple, but there's over 200 of those :)
2021-10-10 01:46:54 +0200 <geekosaur> there's also the so-called Gentle Introduction to Haskell on haskell.org, but many people find it less than gentle. (I had no problem with it, but I'd already been exposed to Scheme and SML/NJ by that point.)
2021-10-10 01:48:44 +0200 <abhixec> Thanks geekosaur
2021-10-10 01:49:02 +0200 <geekosaur> you can also ask questions in #haskell or #haskell-beginners
2021-10-10 01:49:34 +0200 <geekosaur> and you can play with Haskell expressions in lambdabot in those channels or here
2021-10-10 02:01:00 +0200 <abhixec> thanks!
2021-10-10 02:38:27 +0200syntactic_sugar(~amoljha@2601:644:8601:2e30::822c) (Quit: WeeChat 3.1)
2021-10-10 04:02:24 +0200banc(banc@gateway/vpn/airvpn/banc) (Ping timeout: 245 seconds)
2021-10-10 04:20:51 +0200tremontremon_
2021-10-10 04:22:33 +0200banc(banc@gateway/vpn/airvpn/banc)
2021-10-10 04:51:40 +0200rarelyafk(~minty@pool-173-61-191-195.cmdnnj.fios.verizon.net) (Ping timeout: 252 seconds)
2021-10-10 04:53:34 +0200td_(~td@muedsl-82-207-238-244.citykom.de) (Ping timeout: 260 seconds)
2021-10-10 04:55:01 +0200td_(~td@muedsl-82-207-238-022.citykom.de)
2021-10-10 06:33:42 +0200syntactic_sugar(~amoljha@2601:644:8601:2e30::822c)
2021-10-10 06:35:05 +0200syntactic_sugar(~amoljha@2601:644:8601:2e30::822c) (Client Quit)
2021-10-10 07:33:14 +0200thunderrd(~thunderrd@183.182.110.52) (Ping timeout: 245 seconds)
2021-10-10 07:51:42 +0200 <electr0n> abhixec: https://blog.realogs.in/a-more-practical-beginning-to-haskell/
2021-10-10 08:16:27 +0200qbt(~qbt@user/edun)
2021-10-10 08:34:21 +0200wonko(~wjc@62.115.229.50)
2021-10-10 10:05:03 +0200mc47(~mc47@xmonad/TheMC47)
2021-10-10 10:17:36 +0200wonko(~wjc@62.115.229.50) (Ping timeout: 245 seconds)
2021-10-10 10:17:37 +0200allbery_b(~geekosaur@xmonad/geekosaur)
2021-10-10 10:17:37 +0200geekosaur(~geekosaur@xmonad/geekosaur) (Killed (NickServ (GHOST command used by allbery_b)))
2021-10-10 10:17:40 +0200allbery_bgeekosaur
2021-10-10 10:20:10 +0200wonko(~wjc@62.115.229.50)
2021-10-10 10:46:50 +0200wonko(~wjc@62.115.229.50) (Ping timeout: 260 seconds)
2021-10-10 11:17:06 +0200humky(~humky@user/humky) (Quit: Leaving)
2021-10-10 11:18:25 +0200seschwar(~seschwar@user/seschwar)
2021-10-10 11:26:41 +0200Elis21F(~KELEBEK@188.119.54.133)
2021-10-10 11:29:50 +0200jmct_(sid160793@5.254.36.57) (Read error: Connection reset by peer)
2021-10-10 11:29:56 +0200Elis21F(~KELEBEK@188.119.54.133) (Quit: � Www.Kelebek.Org Mutlaka Download Edin! Kelebek Final irc.kelebek.org �y wToprak �)
2021-10-10 11:30:06 +0200Nahra(~user@static.161.95.99.88.clients.your-server.de) (Ping timeout: 245 seconds)
2021-10-10 11:33:37 +0200jmct_(sid160793@id-160793.tinside.irccloud.com)
2021-10-10 11:34:21 +0200werneta(~werneta@70-142-214-115.lightspeed.irvnca.sbcglobal.net) (Ping timeout: 250 seconds)
2021-10-10 12:34:38 +0200jmct_(sid160793@id-160793.tinside.irccloud.com) (Ping timeout: 260 seconds)
2021-10-10 12:39:50 +0200jmct_(sid160793@tinside.irccloud.com)
2021-10-10 13:00:41 +0200humky(~humky@user/humky)
2021-10-10 13:02:40 +0200rarelyafk(~minty@pool-173-61-191-195.cmdnnj.fios.verizon.net)
2021-10-10 14:32:10 +0200lazycat(~lazycat@user/lazycat) (Quit: ZNC - https://znc.in)
2021-10-10 14:34:31 +0200lazycat(~lazycat@user/lazycat)
2021-10-10 16:18:41 +0200azg256(~user@78-56-98-5.static.zebra.lt)
2021-10-10 17:33:14 +0200themc47(~mc47@xmonad/TheMC47)
2021-10-10 17:35:37 +0200mc47(~mc47@xmonad/TheMC47) (Ping timeout: 252 seconds)
2021-10-10 18:36:09 +0200 <rarelyafk> i asked a few days ago, does anyone have a good solution for alt+tab behavior *between* workspaces, in other words, always goint to the most recently focused window in the stack
2021-10-10 18:51:14 +0200wonko(~wjc@62.115.229.50)
2021-10-10 19:01:58 +0200rarelyafk(~minty@pool-173-61-191-195.cmdnnj.fios.verizon.net) (Ping timeout: 252 seconds)
2021-10-10 19:11:45 +0200 <themc47> isn't there a contrib module that does that?
2021-10-10 19:16:40 +0200 <geekosaur> there's a contrib that goes between workspaces (not windows in workspaces) and one which goes between windows on the current wokspace
2021-10-10 19:16:56 +0200 <geekosaur> I think one could be built fairly easily but there isn't one yet
2021-10-10 19:50:24 +0200 <FOSSHuman[m]> Hey guys, been messing around with the new git version of XMonad and XMonad-Contrib in a VM, and I love it, so much more things are possible with the new loggers etc.. But I have one question, how would I make the logTitles logger which is in ppExtras respond to a click?? I want to make it so that when I click on it with the left mouse button, it will switch to the unfocused window?? Would I use some sort of escape?
2021-10-10 19:51:37 +0200 <geekosaur> that depends on what you're logging it to
2021-10-10 19:51:52 +0200 <FOSSHuman[m]> XMobar
2021-10-10 19:52:06 +0200 <FOSSHuman[m]> Using X properties, not StDinreader
2021-10-10 19:52:23 +0200 <FOSSHuman[m]> Would I use xmobarAction ?
2021-10-10 19:52:26 +0200 <geekosaur> if you're sending it to xmobar there's an escape you can use to specify a command to run; that command would presumably be wmctrl
2021-10-10 19:52:30 +0200 <geekosaur> yes
2021-10-10 19:52:44 +0200 <FOSSHuman[m]> Oh k nice
2021-10-10 19:53:11 +0200 <geekosaur> you might also need to modify the logger to capture the window ID so you can send it to wmctrl; you coyuld specify it by the title but it'll be somewhat unreliable
2021-10-10 19:56:14 +0200 <liskin> for a specific example of a clickable window titles, see https://github.com/liskin/dotfiles/blob/b89803e15b5e384b7586551c6b8657b0861ceda8/.xmonad/XMonad/Ut… and https://github.com/liskin/dotfiles/blob/b89803e15b5e384b7586551c6b8657b0861ceda8/.xmonad/xmonad.hs…
2021-10-10 19:57:18 +0200 <abhixec> electr0n: Thanks will check that out! I got PIH(Graham Hutton) and reading it now :)
2021-10-10 19:57:37 +0200 <FOSSHuman[m]> liskin: nice, thank you I will look at these aswell
2021-10-10 20:26:32 +0200benin03693230163(~benin@183.82.30.186) (Ping timeout: 265 seconds)
2021-10-10 20:27:26 +0200azg256(~user@78-56-98-5.static.zebra.lt) (Quit: ERC (IRC client for Emacs 27.1))
2021-10-10 20:29:17 +0200geekosaur(~geekosaur@xmonad/geekosaur) (Remote host closed the connection)
2021-10-10 20:29:36 +0200geekosaur(~geekosaur@xmonad/geekosaur)
2021-10-10 21:07:24 +0200Nahra(~user@static.161.95.99.88.clients.your-server.de)
2021-10-10 21:16:55 +0200 <jakefromstatefar> What type should I set my layoutHook to? I'm trying to do `layoutHook = foldr1 (|||) $ [layouts here] <> [layouts here] <> [layouts here]`, but it keeps giving me a wall of different type mismatchings...
2021-10-10 21:17:19 +0200 <geekosaur> yeh, types are really difficult for layoutHooks
2021-10-10 21:17:39 +0200 <jakefromstatefar> Is there any solution though?
2021-10-10 21:17:43 +0200 <geekosaur> LayoutClass l => l Window
2021-10-10 21:17:47 +0200 <geekosaur> may work
2021-10-10 21:17:49 +0200 <jakefromstatefar> Not giving it one doesn't work in this case
2021-10-10 21:18:14 +0200 <geekosaur> but depending on what's going on it may not be specific enough and then you can't use e.g. foldr1 at all
2021-10-10 21:18:51 +0200 <jakefromstatefar> Is there any mapping function that would work here?
2021-10-10 21:19:00 +0200 <geekosaur> not really
2021-10-10 21:19:22 +0200 <geekosaur> there are too many existential games being played behind the scenes with layoutHooks
2021-10-10 21:19:38 +0200 <jakefromstatefar> ack
2021-10-10 21:21:37 +0200 <jakefromstatefar> Also, that type didn't work: `Expecting one more argument to 'LayoutClass l' Expected a constraint, but 'LayoutClass l' has kind '* -> Constraint' • In the type signature: 'af :: [LayoutClass l => l Window]'`
2021-10-10 21:21:56 +0200 <jakefromstatefar> Did the []'s break it?
2021-10-10 21:23:30 +0200 <geekosaur> hm
2021-10-10 21:23:45 +0200 <geekosaur> the [] will break it later but I thought I remembered how that worked, sorry
2021-10-10 21:24:05 +0200 <jakefromstatefar> I'll try converting it to a chain with `|||`, rather than a list, then maybe it'll work
2021-10-10 21:26:41 +0200 <geekosaur> LayoutClass l a => l Window, maybe
2021-10-10 21:26:56 +0200 <geekosaur> but again you can't use that in a list, so it doesn't really matter
2021-10-10 21:27:10 +0200 <geekosaur> you'd have to wrap it in a newtype but thne that'd break everything else
2021-10-10 21:33:16 +0200terrorjack(~terrorjac@static.3.200.12.49.clients.your-server.de) (Quit: The Lounge - https://thelounge.chat)
2021-10-10 21:35:40 +0200terrorjack(~terrorjac@static.3.200.12.49.clients.your-server.de)
2021-10-10 21:39:36 +0200werneta(~werneta@70-142-214-115.lightspeed.irvnca.sbcglobal.net)
2021-10-10 21:44:44 +0200qbt(~qbt@user/edun) (Quit: Leaving.)
2021-10-10 21:45:21 +0200 <jakefromstatefar> Now I'm getting an error: `Data constructor not in scope: Dwindle` `Perhaps you want to add Dwindle to the import list in the import of 'XMonad.Layout.Dwindle'`
2021-10-10 21:45:41 +0200 <jakefromstatefar> Funny thing is, my import of that module is: `import XMonad.Layout.Dwindle (Dwindle, Chirality(CW))`
2021-10-10 21:46:06 +0200 <jakefromstatefar> I have two other imports behaving this way.
2021-10-10 21:46:08 +0200 <jakefromstatefar> Why?
2021-10-10 21:46:29 +0200 <geekosaur> because you only imported the type constructor
2021-10-10 21:46:34 +0200 <geekosaur> try Dwindle(..)
2021-10-10 21:46:55 +0200 <jakefromstatefar> Ahh.. Thanks.
2021-10-10 21:47:09 +0200 <geekosaur> or Dwindle(Dwindle) if you only want the onbe and not all three
2021-10-10 21:51:22 +0200wonko(~wjc@62.115.229.50) (Ping timeout: 252 seconds)
2021-10-10 21:52:33 +0200 <jakefromstatefar> OK, well now that all the import problems are gone, there's this type issue: [error](https://p.bsd-unix.net/view/c62d6eb2) [file](https://p.bsd-unix.net/view/7aca2b94).
2021-10-10 21:52:48 +0200 <jakefromstatefar> Adding that type you gave me gave the same error
2021-10-10 21:53:35 +0200 <jakefromstatefar> there're two links, just realized how unclear that is...
2021-10-10 21:53:38 +0200 <geekosaur> right, I was afraid that would happen. I think you can't really get away with anything but full types, which will prevent you from making a list of them
2021-10-10 21:53:51 +0200 <geekosaur> yeh, I understood the links
2021-10-10 21:54:13 +0200 <jakefromstatefar> I didn't make a list, I made a long chain of them joined by `|||`. Unless that's what you're referring to.
2021-10-10 21:54:31 +0200 <geekosaur> also fully specified layoutHook types are messy and nasty; I just let them be inferred
2021-10-10 21:54:49 +0200 <geekosaur> even though normally I prefer specifying types
2021-10-10 21:55:16 +0200 <jakefromstatefar> I get that.
2021-10-10 21:55:56 +0200 <jakefromstatefar> I stopped typing about half my xmonad config because it got tedious to maintain. In my config, I only type something when it breaks without it.
2021-10-10 21:56:18 +0200 <jakefromstatefar> Probably not the best habit... But it's saved me time
2021-10-10 21:56:20 +0200 <jakefromstatefar> ¯\_(ツ)_/¯
2021-10-10 21:57:53 +0200 <geekosaur> there's also that you're often just restating the layoutHook itself, often morer verbosely
2021-10-10 21:58:22 +0200 <geekosaur> since the layoutHook is usually a chain of data constructors (or simple wrappers thereof)
2021-10-10 22:02:47 +0200 <jakefromstatefar> Yeah
2021-10-10 22:03:18 +0200 <jakefromstatefar> After reading those long errors closer, I was able to resolve most of them by fixing some declarations. Turns out I'd missed a few arguments here and there.
2021-10-10 22:03:34 +0200 <jakefromstatefar> Those example docs probably need some updating in that regard.
2021-10-10 22:04:12 +0200 <geekosaur> possibly
2021-10-10 22:05:03 +0200 <jakefromstatefar> Since I've made all the examples work (all but 1, so far) maybe I could update them. That would be one heck of a script to write, or a lot of time though...
2021-10-10 22:05:22 +0200 <geekosaur> actually if you mean docs in the module haddocks themselves, then by all means report bugs for the ones that are wrong
2021-10-10 22:05:39 +0200 <jakefromstatefar> I do mean the haddocks.
2021-10-10 22:07:27 +0200 <geekosaur> also if you think any of them could be clarified, report those too (possibly with matching PRs)
2021-10-10 22:07:59 +0200 <geekosaur> some of them, especially the earlier ones, assume the user is well versed in Haskell and/or Unix
2021-10-10 22:08:19 +0200 <geekosaur> but that hasn't been true of the xmonad community in general since 0.4ish
2021-10-10 22:08:41 +0200 <jakefromstatefar> Yeah. Turns out the module exported its own `Tall`, I had to qualify the import, and pull it that way.
2021-10-10 22:08:49 +0200 <jakefromstatefar> But, it compiled!
2021-10-10 22:08:59 +0200 <jakefromstatefar> So, I can start mucking with the screenshots now.
2021-10-10 22:10:16 +0200 <jakefromstatefar> Oh dear... I think I just ran into the black screen bug.
2021-10-10 22:10:52 +0200 <jakefromstatefar> On a secondary TTY, I fired it up, after 3s of just sitting there, not accepting input or showing the mouse, it went completely black.
2021-10-10 22:10:57 +0200 <jakefromstatefar> My other session's fine though.
2021-10-10 22:11:23 +0200 <geekosaur> check stderr, wherever it's going/being logged, for exception output; that often means it defaulted to Full
2021-10-10 22:11:40 +0200 <geekosaur> which is all it can do if the layout causes an exception
2021-10-10 22:17:08 +0200 <jakefromstatefar> The last ~200 lines of the log: https://p.bsd-unix.net/view/d042e93f
2021-10-10 22:17:55 +0200 <jakefromstatefar> That was from my Xorg log, my stderr had the errors it usually does. It loves to complain about missing keymaps, but it works fine.
2021-10-10 22:19:30 +0200 <geekosaur> I needed the stderr, not xorg, but I do fild the nvidia permissions stuff at the end suspicious
2021-10-10 22:19:49 +0200 <geekosaur> and that could also lead to a black screen just because the display buffer is too confused to display at all
2021-10-10 22:20:42 +0200 <geekosaur> I don't have any nvidia-based stuff here so I never bothered to learn about it and don't know what would cause the permissions error
2021-10-10 22:22:00 +0200 <geekosaur> mm, come to think of it an exception in the layout might not get reported usefully, might need to set GHCRTS=-xc in the environment before running xmonad
2021-10-10 22:24:24 +0200 <jakefromstatefar> Hm, turns out I had an alacritty flag wrong, so my terminal wasn't showing up. But, whenever I try to change windows, my xmobar disappears.
2021-10-10 22:24:38 +0200 <jakefromstatefar> So, not the black screen bug, false alarm. But still a strange occurance.
2021-10-10 22:25:08 +0200 <geekosaur> do you have avoidStruts in the right place?
2021-10-10 22:25:16 +0200 <geekosaur> @where paste
2021-10-10 22:25:16 +0200 <lambdabot> Help us help you: please paste full code, input and/or output at e.g. https://paste.tomsmeding.com
2021-10-10 22:25:45 +0200 <jakefromstatefar> I don't have it at all yet, but, even after removing the windows, or floating them and moving them... It's still gone.
2021-10-10 22:26:10 +0200 <geekosaur> ok, that sounds weird
2021-10-10 22:26:21 +0200 <jakefromstatefar> If I start it manually it's fine.
2021-10-10 22:26:36 +0200 <geekosaur> unless you are also missing manageDocks and then xmobar will behave oddly at best
2021-10-10 22:26:54 +0200 <jakefromstatefar> nope, vanilla docks behavior in this config
2021-10-10 22:36:46 +0200 <jakefromstatefar> Oh, misconfigured loghook.
2021-10-10 22:36:54 +0200 <jakefromstatefar> weird behavior for that though...
2021-10-10 22:39:27 +0200 <geekosaur> if the behavior expresses as an exception you quietly get the Full layout (actually the no-layout default; layout Full is literally instance LayoutClass Full where {})
2021-10-10 22:45:44 +0200zouhair(~zouhair@142.182.58.252) (Ping timeout: 245 seconds)
2021-10-10 22:47:26 +0200zouhair(~zouhair@lnsm3-montreal02-142-119-71-187.internet.virginmobile.ca)
2021-10-10 23:08:20 +0200themc47(~mc47@xmonad/TheMC47) (Remote host closed the connection)
2021-10-10 23:14:57 +0200Nosrep(~archbox@user/nosrep)
2021-10-10 23:15:06 +0200Nahra(~user@static.161.95.99.88.clients.your-server.de) (Ping timeout: 245 seconds)
2021-10-10 23:25:11 +0200rarelyafk(~minty@pool-173-61-191-195.cmdnnj.fios.verizon.net)
2021-10-10 23:26:48 +0200 <Nosrep> if anyone uses dzen2 here
2021-10-10 23:26:57 +0200 <Nosrep> echo "^p(_LEFT)test" | dzen2 -p <- why doesn't this left align
2021-10-10 23:44:33 +0200 <FOSSHuman[m]> Hey everyone, can someone link me to the deprecations page, I forgot where it was...
2021-10-10 23:45:17 +0200 <geekosaur> it's part of https://github.com/xmonad/xmonad-contrib/blob/master/CHANGES.md
2021-10-10 23:49:12 +0200 <FOSSHuman[m]> geekosaur: nice, thanks
2021-10-10 23:56:19 +0200cjb(~cjb@user/cjb)