Home liberachat/#xmonad: Logs Calendar

Logs on 2023-06-29 (liberachat/#xmonad)

00:24:16 <Twily[m]> Hey, when I open the same workspace on different screens (one vertical and one horizontal) the width&height of floating windows changes drastically.
00:24:41 <Twily[m]> Can I tell XMonad to not change the size of the floating windows like this?
00:24:54 <Twily[m]> I remember I solved this somehow in the past but don’t remember how exactly
00:39:19 <geekosaur> I don't think there is a solution; it remembers floating windows by RationalRects so they get rescaled
00:42:42 <Twily[m]> Sad, this is extremely annoying, and I remember having the same issue years back
00:44:01 <Twily[m]> I wonder what it would take if I were to patch this myselfƏ
00:44:03 <Twily[m]> s/myselfƏ/myself?/
00:44:08 <geekosaur> I actually filed a ticket for it some time back because it's not only annoying but breaks some programs and some dialogs
00:44:47 <Twily[m]> Maybe I can come up with a hack or something, like storing the sizes as some X props and restoring them as soon as window shows up on some workspace
00:46:01 <geekosaur> oh, I guess it was actually opened by unclechu after I discussed it with them. https://github.com/xmonad/xmonad/issues/44
00:49:10 <geekosaur> I'm still unconvinced the current behavior is viable, even if it's technically correct (that is, programs for which it doesn't work are technically buggy)
00:49:55 <geekosaur> de facto, if a dialog doesn't resize correctly with this (many gtk dialogs, for example), it's not going to be fixed
00:53:27 <Twily[m]> The MR #221 liskin mentions seems to partially fix the problem.
00:54:00 <Twily[m]> I remember in the past if I just open gmrun on a second screen it was all weirdly missized.
00:54:19 <Twily[m]> Now it at least shows up correctly on every screen.
00:54:21 <geekosaur> anyway the fix really needs to be made in XMonad.Operations.windows (one could conceivably do it in a logHook but floating windows will flicker and possibly become scrambled)
00:54:33 <Twily[m]> The problem appears only when moving workspace between screens.
00:55:04 <Twily[m]> Okay, thanks for pointing out. Maybe I could come up with a patch at some point.
00:56:24 <geekosaur> https://github.com/xmonad/xmonad/blob/master/src/XMonad/Operations.hs#L197-L202 note line 198's use of `scaleRationalRect` in particulay
00:56:30 <geekosaur> *particular
00:56:56 <Twily[m]> Maybe I could even add an option to XConfig to make this behavior switchable and propose a merge
00:57:14 <geekosaur> I'd support such a PR
01:02:02 <geekosaur> I think the big problem is deciding what to do with the StackSet: currently floating windows are a Map Window RationalRect
01:02:21 <geekosaur> if you want it to be configurable then I guess that has to become an Either
01:35:27 <ChaoticMist[m]> Question, is there some secret recipe for making scripts called through xmonad config behave similar to scripts called from user terminal? Because cb seems to fail to copy content to user clipboard while the same script works when called from user terminal
01:36:41 <geekosaur> I would expect that to work
01:37:01 <geekosaur> usually when something doesn't it has to do with environment and in particular `$PATH`
01:37:34 <geekosaur> because anything launched from a display manager doesn't read your dotfiles
01:40:36 <geekosaur> I work around this on Ubuntu by having X startup read my dotfiles (https://github.com/geekosaur/xmonad.hs/blob/skkukuk/10profile dropped into `/etc/X11/Xsession.d`) but I don't know how well that'll work on other distros
02:26:29 × td_ quits (~td@i5387093D.versanet.de) (Ping timeout: 240 seconds)
02:28:23 td_ joins (~td@i53870923.versanet.de)
02:39:59 × jusa quits (~jusa@kraa.fi) (*.net *.split)
02:39:59 × hrberg quits (~quassel@171.79-160-161.customer.lyse.net) (*.net *.split)
02:39:59 × samhh_ quits (7569f027cf@2604:bf00:561:2000::e4) (*.net *.split)
02:40:00 × zoglesby quits (f0f8ca1525@2604:bf00:561:2000::64) (*.net *.split)
02:40:00 × koluacik quits (~koluacik@165.227.171.188) (*.net *.split)
02:40:00 × dweller quits (~dweller@178.62.146.60) (*.net *.split)
02:40:12 hrberg joins (~quassel@171.79-160-161.customer.lyse.net)
02:46:36 jusa joins (~jusa@kraa.fi)
02:46:36 samhh joins (7569f027cf@2604:bf00:561:2000::e4)
02:46:36 zoglesby joins (f0f8ca1525@2604:bf00:561:2000::64)
02:46:36 koluacik joins (~koluacik@165.227.171.188)
02:46:36 dweller joins (~dweller@178.62.146.60)
03:29:19 vetu_ joins (~vetu@91-156-31-97.elisa-laajakaista.fi)
03:29:27 × vetu quits (~vetu@91-156-31-97.elisa-laajakaista.fi) (Read error: Connection reset by peer)
04:36:09 × Nexilva[m] quits (~nexilvama@2001:470:69fc:105::2:cf52) (Server closed connection)
05:43:42 × HB|ANetSecECESIT quits (~hash@2001:470:69fc:105::1:19e2) (Server closed connection)
05:43:56 HB|ANetSecECESIT joins (~hash@2001:470:69fc:105::1:19e2)
07:06:11 × thunderrd quits (~thunderrd@183.182.114.115) (Remote host closed the connection)
07:15:33 cfricke joins (~cfricke@user/cfricke)
07:51:58 malook joins (~Thunderbi@2a02:9b0:4002:7009:2add:2a49:b60a:8dd2)
08:06:54 × cfricke quits (~cfricke@user/cfricke) (Quit: WeeChat 3.8)
08:16:20 × vanvik quits (~vanvik@78.156.11.181) (Quit: Later)
08:17:12 vanvik joins (~vanvik@78.156.11.181)
08:28:20 × vrs quits (~vrs@user/vrs) (Ping timeout: 260 seconds)
08:28:39 vrs joins (~vrs@user/vrs)
08:41:18 × malook quits (~Thunderbi@2a02:9b0:4002:7009:2add:2a49:b60a:8dd2) (Ping timeout: 260 seconds)
09:04:52 × nihilipster[m] quits (~nihilipst@2001:470:69fc:105::720) (Remote host closed the connection)
09:08:52 × unclechu quits (~unclechu@2001:470:69fc:105::354) (Remote host closed the connection)
09:11:42 mc47 joins (~mc47@xmonad/TheMC47)
09:41:50 × ft quits (~ft@p508db151.dip0.t-ipconnect.de) (Quit: leaving)
10:13:33 cfricke joins (~cfricke@user/cfricke)
10:37:13 malook joins (~Thunderbi@5.110.139.81)
10:57:06 × cfricke quits (~cfricke@user/cfricke) (Ping timeout: 260 seconds)
11:51:42 defjam joins (~defjam@2a02:c7e:2807:b900:a912:dc42:6448:f57d)
12:06:12 × malook quits (~Thunderbi@5.110.139.81) (Quit: malook)
12:06:25 malook joins (~Thunderbi@5.110.139.81)
12:11:41 × obimod quits (~weechat@user/obimod) (Remote host closed the connection)
12:12:08 obimod joins (~weechat@user/obimod)
12:46:45 × defjam quits (~defjam@2a02:c7e:2807:b900:a912:dc42:6448:f57d) (Ping timeout: 245 seconds)
12:59:47 defjam joins (~defjam@2a02:c7e:2807:b900:a912:dc42:6448:f57d)
13:04:22 × malook quits (~Thunderbi@5.110.139.81) (Read error: Connection reset by peer)
13:06:02 cfricke joins (~cfricke@user/cfricke)
13:18:00 × defjam quits (~defjam@2a02:c7e:2807:b900:a912:dc42:6448:f57d) (Ping timeout: 245 seconds)
13:30:17 defjam joins (~defjam@2a02:c7e:2807:b900:b839:4da1:9e5e:5777)
13:34:40 × defjam quits (~defjam@2a02:c7e:2807:b900:b839:4da1:9e5e:5777) (Ping timeout: 245 seconds)
13:48:42 defjam joins (~defjam@2a02:c7e:2807:b900:b839:4da1:9e5e:5777)
13:53:30 × defjam quits (~defjam@2a02:c7e:2807:b900:b839:4da1:9e5e:5777) (Ping timeout: 240 seconds)
14:05:44 defjam joins (~defjam@2a02:c7e:2807:b900:b839:4da1:9e5e:5777)
14:12:00 × defjam quits (~defjam@2a02:c7e:2807:b900:b839:4da1:9e5e:5777) (Ping timeout: 240 seconds)
14:18:42 × cfricke quits (~cfricke@user/cfricke) (Ping timeout: 260 seconds)
14:25:42 defjam joins (~defjam@2a02:c7e:2807:b900:b839:4da1:9e5e:5777)
14:30:50 × defjam quits (~defjam@2a02:c7e:2807:b900:b839:4da1:9e5e:5777) (Ping timeout: 260 seconds)
15:02:22 defjam joins (~defjam@2a02:c7e:2807:b900:b839:4da1:9e5e:5777)
15:07:47 × defjam quits (~defjam@2a02:c7e:2807:b900:b839:4da1:9e5e:5777) (Max SendQ exceeded)
15:15:46 × mc47 quits (~mc47@xmonad/TheMC47) (Remote host closed the connection)
15:21:17 defjam joins (~defjam@2a02:c7e:2807:b900:b839:4da1:9e5e:5777)
15:26:22 × defjam quits (~defjam@2a02:c7e:2807:b900:b839:4da1:9e5e:5777) (Ping timeout: 260 seconds)
15:27:33 defjam joins (~defjam@2a02:c7e:2807:b900:b839:4da1:9e5e:5777)
15:45:40 Lears joins (~Leary]@user/Leary/x-0910699)
15:47:56 × [Leary] quits (~Leary]@user/Leary/x-0910699) (Ping timeout: 252 seconds)
16:06:45 cfricke joins (~cfricke@user/cfricke)
16:12:54 byorgey joins (~byorgey@155.138.238.211)
16:29:01 mvk joins (~mvk@2607:fea8:5c9a:a600::1ff2)
16:29:14 × mvk quits (~mvk@2607:fea8:5c9a:a600::1ff2) (Client Quit)
16:29:55 × cfricke quits (~cfricke@user/cfricke) (Quit: WeeChat 3.8)
17:02:58 × defjam quits (~defjam@2a02:c7e:2807:b900:b839:4da1:9e5e:5777) (Ping timeout: 260 seconds)
17:17:12 defjam joins (~defjam@2a02:c7e:2807:b900:b839:4da1:9e5e:5777)
17:20:11 Guest98 joins (~Guest98@151.246.206.85)
17:21:13 <Guest98> does anyone use GridSelect here? https://hackage.haskell.org/package/xmonad-contrib-0.17.1/docs/XMonad-Actions-GridSelect.html
17:21:13 <Guest98> I want to change the text to className and/or appName but there are apparently no options for it
17:21:32 unclechu joins (~unclechu@2001:470:69fc:105::354)
17:26:49 <geekosaur> you can build that yourself using `gridselect`, which lets you specify any text and what it maps to
17:36:05 <Guest98> is it simple enough for me to get an example or
17:36:25 <geekosaur> depends on what exactly you're trying to do
17:36:52 <Guest98> just replace the titles with of all windows their classname
17:37:14 <Guest98> just replace the titles of all windows with their className
17:40:26 malook joins (~Thunderbi@176.18.99.53)
17:41:00 × xmonadtrack quits (~xmonadtra@user/geekosaur/bot/xmonadtrack) (Ping timeout: 240 seconds)
17:44:57 xmonadtrack joins (~xmonadtra@069-135-003-034.biz.spectrum.com)
17:44:57 × xmonadtrack quits (~xmonadtra@069-135-003-034.biz.spectrum.com) (Changing host)
17:44:57 xmonadtrack joins (~xmonadtra@user/geekosaur/bot/xmonadtrack)
17:45:17 <geekosaur> gridselectWindow gsconf = windowMap >>= gridselect gsconf -- where `windowMap` does all the work
17:51:30 × defjam quits (~defjam@2a02:c7e:2807:b900:b839:4da1:9e5e:5777) (Ping timeout: 260 seconds)
17:51:51 ndaniel[m] joins (~ndanielma@2001:470:69fc:105::3:78ff)
17:51:51 <ndaniel[m]> 👋
17:53:58 × xmonadtrack quits (~xmonadtra@user/geekosaur/bot/xmonadtrack) (Ping timeout: 250 seconds)
17:56:06 <geekosaur> sorry, having some issues here. I think github just blocked me because of xmonadtrack 😞
17:58:10 <geekosaur> https://paste.tomsmeding.com/eJwwSsPX I think this is what you want
17:58:24 <geekosaur> in place of windowMap in the above
17:59:01 <geekosaur> oh. huh. #haskell i reporting github's down for everyone…
17:59:26 <ndaniel[m]> geekosaur: It is quite slow
17:59:49 <ndaniel[m]> "There was an error in loading the activity feed."
18:01:32 defjam joins (~defjam@2a02:c7e:2807:b900:b839:4da1:9e5e:5777)
18:15:56 × Guest98 quits (~Guest98@151.246.206.85) (Ping timeout: 246 seconds)
18:17:29 × defjam quits (~defjam@2a02:c7e:2807:b900:b839:4da1:9e5e:5777) (Ping timeout: 240 seconds)
18:19:37 defjam joins (~defjam@2a02:c7e:2807:b900:b839:4da1:9e5e:5777)
18:23:31 xmonadtrack joins (~xmonadtra@069-135-003-034.biz.spectrum.com)
18:23:31 × xmonadtrack quits (~xmonadtra@069-135-003-034.biz.spectrum.com) (Changing host)
18:23:31 xmonadtrack joins (~xmonadtra@user/geekosaur/bot/xmonadtrack)
19:10:24 ft joins (~ft@p508db151.dip0.t-ipconnect.de)
19:24:39 × malook quits (~Thunderbi@176.18.99.53) (Quit: malook)
19:34:36 × obimod quits (~weechat@user/obimod) (Remote host closed the connection)
19:35:10 obimod joins (~weechat@user/obimod)
19:45:46 rekahsoft joins (~rekahsoft@bras-base-orllon1122w-grc-04-174-88-193-177.dsl.bell.ca)
20:44:00 × defjam quits (~defjam@2a02:c7e:2807:b900:b839:4da1:9e5e:5777) (Ping timeout: 240 seconds)
20:54:51 defjam joins (~defjam@2a02:c7e:2807:b900:b839:4da1:9e5e:5777)
22:36:41 × obimod quits (~weechat@user/obimod) (Remote host closed the connection)
22:38:03 obimod joins (~weechat@user/obimod)

All times are in UTC on 2023-06-29.