Home liberachat/#xmonad: Logs Calendar

Logs on 2021-10-10 (liberachat/#xmonad)

00:01:00 <abhixec> thanks!
00:38:27 × syntactic_sugar quits (~amoljha@2601:644:8601:2e30::822c) (Quit: WeeChat 3.1)
02:02:24 × banc quits (banc@gateway/vpn/airvpn/banc) (Ping timeout: 245 seconds)
02:20:51 tremon is now known as tremon_
02:22:33 banc joins (banc@gateway/vpn/airvpn/banc)
02:51:40 × rarelyafk quits (~minty@pool-173-61-191-195.cmdnnj.fios.verizon.net) (Ping timeout: 252 seconds)
02:53:34 × td_ quits (~td@muedsl-82-207-238-244.citykom.de) (Ping timeout: 260 seconds)
02:55:01 td_ joins (~td@muedsl-82-207-238-022.citykom.de)
04:33:42 syntactic_sugar joins (~amoljha@2601:644:8601:2e30::822c)
04:35:05 × syntactic_sugar quits (~amoljha@2601:644:8601:2e30::822c) (Client Quit)
05:33:14 × thunderrd quits (~thunderrd@183.182.110.52) (Ping timeout: 245 seconds)
05:51:42 <electr0n> abhixec: https://blog.realogs.in/a-more-practical-beginning-to-haskell/
06:16:27 qbt joins (~qbt@user/edun)
06:34:21 wonko joins (~wjc@62.115.229.50)
08:05:03 mc47 joins (~mc47@xmonad/TheMC47)
08:17:36 × wonko quits (~wjc@62.115.229.50) (Ping timeout: 245 seconds)
08:17:37 allbery_b joins (~geekosaur@xmonad/geekosaur)
08:17:37 × geekosaur quits (~geekosaur@xmonad/geekosaur) (Killed (NickServ (GHOST command used by allbery_b)))
08:17:40 allbery_b is now known as geekosaur
08:20:10 wonko joins (~wjc@62.115.229.50)
08:46:50 × wonko quits (~wjc@62.115.229.50) (Ping timeout: 260 seconds)
09:17:06 × humky quits (~humky@user/humky) (Quit: Leaving)
09:18:25 seschwar joins (~seschwar@user/seschwar)
09:26:41 Elis21F joins (~KELEBEK@188.119.54.133)
09:29:50 × jmct_ quits (sid160793@5.254.36.57) (Read error: Connection reset by peer)
09:29:56 × Elis21F quits (~KELEBEK@188.119.54.133) (Quit: � Www.Kelebek.Org Mutlaka Download Edin! Kelebek Final irc.kelebek.org �y wToprak �)
09:30:06 × Nahra quits (~user@static.161.95.99.88.clients.your-server.de) (Ping timeout: 245 seconds)
09:33:37 jmct_ joins (sid160793@id-160793.tinside.irccloud.com)
09:34:21 × werneta quits (~werneta@70-142-214-115.lightspeed.irvnca.sbcglobal.net) (Ping timeout: 250 seconds)
10:34:38 × jmct_ quits (sid160793@id-160793.tinside.irccloud.com) (Ping timeout: 260 seconds)
10:39:50 jmct_ joins (sid160793@tinside.irccloud.com)
11:00:41 humky joins (~humky@user/humky)
11:02:40 rarelyafk joins (~minty@pool-173-61-191-195.cmdnnj.fios.verizon.net)
12:32:10 × lazycat quits (~lazycat@user/lazycat) (Quit: ZNC - https://znc.in)
12:34:31 lazycat joins (~lazycat@user/lazycat)
14:18:41 azg256 joins (~user@78-56-98-5.static.zebra.lt)
15:33:14 themc47 joins (~mc47@xmonad/TheMC47)
15:35:37 × mc47 quits (~mc47@xmonad/TheMC47) (Ping timeout: 252 seconds)
16:36:09 <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
16:51:14 wonko joins (~wjc@62.115.229.50)
17:01:58 × rarelyafk quits (~minty@pool-173-61-191-195.cmdnnj.fios.verizon.net) (Ping timeout: 252 seconds)
17:11:45 <themc47> isn't there a contrib module that does that?
17:16:40 <geekosaur> there's a contrib that goes between workspaces (not windows in workspaces) and one which goes between windows on the current wokspace
17:16:56 <geekosaur> I think one could be built fairly easily but there isn't one yet
17:50:24 <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?
17:51:37 <geekosaur> that depends on what you're logging it to
17:51:52 <FOSSHuman[m]> XMobar
17:52:06 <FOSSHuman[m]> Using X properties, not StDinreader
17:52:23 <FOSSHuman[m]> Would I use xmobarAction ?
17:52:26 <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
17:52:30 <geekosaur> yes
17:52:44 <FOSSHuman[m]> Oh k nice
17:53:11 <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
17:56:14 <liskin> for a specific example of a clickable window titles, see https://github.com/liskin/dotfiles/blob/b89803e15b5e384b7586551c6b8657b0861ceda8/.xmonad/XMonad/Util/My.hs#L142 and https://github.com/liskin/dotfiles/blob/b89803e15b5e384b7586551c6b8657b0861ceda8/.xmonad/xmonad.hs#L397
17:57:18 <abhixec> electr0n: Thanks will check that out! I got PIH(Graham Hutton) and reading it now :)
17:57:37 <FOSSHuman[m]> liskin: nice, thank you I will look at these aswell
18:26:32 × benin03693230163 quits (~benin@183.82.30.186) (Ping timeout: 265 seconds)
18:27:26 × azg256 quits (~user@78-56-98-5.static.zebra.lt) (Quit: ERC (IRC client for Emacs 27.1))
18:29:17 × geekosaur quits (~geekosaur@xmonad/geekosaur) (Remote host closed the connection)
18:29:36 geekosaur joins (~geekosaur@xmonad/geekosaur)
19:07:24 Nahra joins (~user@static.161.95.99.88.clients.your-server.de)
19:16:55 <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...
19:17:19 <geekosaur> yeh, types are really difficult for layoutHooks
19:17:39 <jakefromstatefar> Is there any solution though?
19:17:43 <geekosaur> LayoutClass l => l Window
19:17:47 <geekosaur> may work
19:17:49 <jakefromstatefar> Not giving it one doesn't work in this case
19:18:14 <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
19:18:51 <jakefromstatefar> Is there any mapping function that would work here?
19:19:00 <geekosaur> not really
19:19:22 <geekosaur> there are too many existential games being played behind the scenes with layoutHooks
19:19:38 <jakefromstatefar> ack
19:21:37 <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]'`
19:21:56 <jakefromstatefar> Did the []'s break it?
19:23:30 <geekosaur> hm
19:23:45 <geekosaur> the [] will break it later but I thought I remembered how that worked, sorry
19:24:05 <jakefromstatefar> I'll try converting it to a chain with `|||`, rather than a list, then maybe it'll work
19:26:41 <geekosaur> LayoutClass l a => l Window, maybe
19:26:56 <geekosaur> but again you can't use that in a list, so it doesn't really matter
19:27:10 <geekosaur> you'd have to wrap it in a newtype but thne that'd break everything else
19:33:16 × terrorjack quits (~terrorjac@static.3.200.12.49.clients.your-server.de) (Quit: The Lounge - https://thelounge.chat)
19:35:40 terrorjack joins (~terrorjac@static.3.200.12.49.clients.your-server.de)
19:39:36 werneta joins (~werneta@70-142-214-115.lightspeed.irvnca.sbcglobal.net)
19:44:44 × qbt quits (~qbt@user/edun) (Quit: Leaving.)
19:45:21 <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'`
19:45:41 <jakefromstatefar> Funny thing is, my import of that module is: `import XMonad.Layout.Dwindle (Dwindle, Chirality(CW))`
19:46:06 <jakefromstatefar> I have two other imports behaving this way.
19:46:08 <jakefromstatefar> Why?
19:46:29 <geekosaur> because you only imported the type constructor
19:46:34 <geekosaur> try Dwindle(..)
19:46:55 <jakefromstatefar> Ahh.. Thanks.
19:47:09 <geekosaur> or Dwindle(Dwindle) if you only want the onbe and not all three
19:51:22 × wonko quits (~wjc@62.115.229.50) (Ping timeout: 252 seconds)
19:52:33 <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).
19:52:48 <jakefromstatefar> Adding that type you gave me gave the same error
19:53:35 <jakefromstatefar> there're two links, just realized how unclear that is...
19:53:38 <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
19:53:51 <geekosaur> yeh, I understood the links
19:54:13 <jakefromstatefar> I didn't make a list, I made a long chain of them joined by `|||`. Unless that's what you're referring to.
19:54:31 <geekosaur> also fully specified layoutHook types are messy and nasty; I just let them be inferred
19:54:49 <geekosaur> even though normally I prefer specifying types
19:55:16 <jakefromstatefar> I get that.
19:55:56 <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.
19:56:18 <jakefromstatefar> Probably not the best habit... But it's saved me time
19:56:20 <jakefromstatefar> ¯\_(ツ)_/¯
19:57:53 <geekosaur> there's also that you're often just restating the layoutHook itself, often morer verbosely
19:58:22 <geekosaur> since the layoutHook is usually a chain of data constructors (or simple wrappers thereof)
20:02:47 <jakefromstatefar> Yeah
20:03:18 <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.
20:03:34 <jakefromstatefar> Those example docs probably need some updating in that regard.
20:04:12 <geekosaur> possibly
20:05:03 <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...
20:05:22 <geekosaur> actually if you mean docs in the module haddocks themselves, then by all means report bugs for the ones that are wrong
20:05:39 <jakefromstatefar> I do mean the haddocks.
20:07:27 <geekosaur> also if you think any of them could be clarified, report those too (possibly with matching PRs)
20:07:59 <geekosaur> some of them, especially the earlier ones, assume the user is well versed in Haskell and/or Unix
20:08:19 <geekosaur> but that hasn't been true of the xmonad community in general since 0.4ish
20:08:41 <jakefromstatefar> Yeah. Turns out the module exported its own `Tall`, I had to qualify the import, and pull it that way.
20:08:49 <jakefromstatefar> But, it compiled!
20:08:59 <jakefromstatefar> So, I can start mucking with the screenshots now.
20:10:16 <jakefromstatefar> Oh dear... I think I just ran into the black screen bug.
20:10:52 <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.
20:10:57 <jakefromstatefar> My other session's fine though.
20:11:23 <geekosaur> check stderr, wherever it's going/being logged, for exception output; that often means it defaulted to Full
20:11:40 <geekosaur> which is all it can do if the layout causes an exception
20:17:08 <jakefromstatefar> The last ~200 lines of the log: https://p.bsd-unix.net/view/d042e93f
20:17:55 <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.
20:19:30 <geekosaur> I needed the stderr, not xorg, but I do fild the nvidia permissions stuff at the end suspicious
20:19:49 <geekosaur> and that could also lead to a black screen just because the display buffer is too confused to display at all
20:20:42 <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
20:22:00 <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
20:24:24 <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.
20:24:38 <jakefromstatefar> So, not the black screen bug, false alarm. But still a strange occurance.
20:25:08 <geekosaur> do you have avoidStruts in the right place?
20:25:16 <geekosaur> @where paste
20:25:16 <lambdabot> Help us help you: please paste full code, input and/or output at e.g. https://paste.tomsmeding.com
20:25:45 <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.
20:26:10 <geekosaur> ok, that sounds weird
20:26:21 <jakefromstatefar> If I start it manually it's fine.
20:26:36 <geekosaur> unless you are also missing manageDocks and then xmobar will behave oddly at best
20:26:54 <jakefromstatefar> nope, vanilla docks behavior in this config
20:36:46 <jakefromstatefar> Oh, misconfigured loghook.
20:36:54 <jakefromstatefar> weird behavior for that though...
20:39:27 <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 {})
20:45:44 × zouhair quits (~zouhair@142.182.58.252) (Ping timeout: 245 seconds)
20:47:26 zouhair joins (~zouhair@lnsm3-montreal02-142-119-71-187.internet.virginmobile.ca)
21:08:20 × themc47 quits (~mc47@xmonad/TheMC47) (Remote host closed the connection)
21:14:57 Nosrep joins (~archbox@user/nosrep)
21:15:06 × Nahra quits (~user@static.161.95.99.88.clients.your-server.de) (Ping timeout: 245 seconds)
21:25:11 rarelyafk joins (~minty@pool-173-61-191-195.cmdnnj.fios.verizon.net)
21:26:48 <Nosrep> if anyone uses dzen2 here
21:26:57 <Nosrep> echo "^p(_LEFT)test" | dzen2 -p <- why doesn't this left align
21:44:33 <FOSSHuman[m]> Hey everyone, can someone link me to the deprecations page, I forgot where it was...
21:45:17 <geekosaur> it's part of https://github.com/xmonad/xmonad-contrib/blob/master/CHANGES.md
21:49:12 <FOSSHuman[m]> geekosaur: nice, thanks
21:56:19 cjb joins (~cjb@user/cjb)
22:03:40 × seschwar quits (~seschwar@user/seschwar) (Quit: :wq)
22:16:25 <jakefromstatefar> https://github.com/mikenrafter/xmonad-layout-screenshots :)
22:23:18 <FOSSHuman[m]> wow
22:23:27 <FOSSHuman[m]> A lot of dedication went into that lol
22:24:29 <geekosaur> a lot of scripting, I think
22:29:34 <liskin> jakefromstatefar: nice!
22:29:47 × geekosaur quits (~geekosaur@xmonad/geekosaur) (Remote host closed the connection)
22:30:01 <FOSSHuman[m]> liskin: are they going on the website?
22:31:27 <liskin> FOSSHuman[m]: I think they were meant for the documentation but having a layout gallery on the website is a brilliant idea, too
22:31:37 geekosaur joins (~geekosaur@xmonad/geekosaur)

All times are in UTC on 2021-10-10.