Home liberachat/#xmonad: Logs Calendar

Logs on 2022-12-11 (liberachat/#xmonad)

00:45:15 thyriaen joins (~thyriaen@2a01:aea0:dd4:4bae:2f5b:a119:9b18:3b52)
00:45:51 × chomwitt quits (~chomwitt@2a02:587:7a05:dc00:1ac0:4dff:fedb:a3f1) (Ping timeout: 256 seconds)
01:07:12 × tremon quits (~tremon@83-84-18-241.cable.dynamic.v4.ziggo.nl) (Quit: getting boxed in)
01:24:38 diep joins (~diep@2a01:cb11:2d7:4a00:a13f:e40c:c4e8:736c)
01:43:54 sogens joins (sogens@gateway/vpn/protonvpn/sogens)
01:45:47 × sogens_ quits (sogens@gateway/vpn/protonvpn/sogens) (Ping timeout: 264 seconds)
01:51:44 mvk joins (~mvk@2607:fea8:5ce3:8500::efb)
01:53:30 × mvk quits (~mvk@2607:fea8:5ce3:8500::efb) (Client Quit)
02:18:48 × thyriaen quits (~thyriaen@2a01:aea0:dd4:4bae:2f5b:a119:9b18:3b52) (Remote host closed the connection)
02:34:17 diep_ joins (~diep@2a01:cb11:2d7:4a00:be51:377e:4f72:b218)
02:40:23 × sogens quits (sogens@gateway/vpn/protonvpn/sogens) (Ping timeout: 264 seconds)
02:42:54 × jao quits (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net) (Remote host closed the connection)
02:49:23 jao joins (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net)
02:55:08 × ^[ quits (~user@user//x-8473491) (Ping timeout: 252 seconds)
02:58:08 × thunderrd quits (~thunderrd@183.182.115.167) (Ping timeout: 255 seconds)
03:03:48 × banc quits (banc@gateway/vpn/protonvpn/banc) (Ping timeout: 265 seconds)
03:05:10 × jao quits (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net) (Ping timeout: 268 seconds)
03:05:55 sogens joins (sogens@gateway/vpn/protonvpn/sogens)
03:12:57 × diep quits (~diep@2a01:cb11:2d7:4a00:a13f:e40c:c4e8:736c) (Remote host closed the connection)
03:23:45 banc joins (banc@gateway/vpn/protonvpn/banc)
03:25:50 × diep_ quits (~diep@2a01:cb11:2d7:4a00:be51:377e:4f72:b218) (Remote host closed the connection)
03:41:08 × td_ quits (~td@83.135.9.5) (Ping timeout: 256 seconds)
03:42:34 td_ joins (~td@83.135.9.54)
03:44:25 × terrorjack quits (~terrorjac@2a01:4f8:1c1e:509a::1) (Quit: The Lounge - https://thelounge.chat)
03:47:01 terrorjack joins (~terrorjac@2a01:4f8:1c1e:509a::1)
04:21:24 ^[ joins (~user@user//x-8473491)
04:30:19 × sogens quits (sogens@gateway/vpn/protonvpn/sogens) (Ping timeout: 260 seconds)
05:26:01 sogens joins (sogens@gateway/vpn/protonvpn/sogens)
06:00:36 × sogens quits (sogens@gateway/vpn/protonvpn/sogens) (Quit: WeeChat 3.7.1)
06:00:53 sogens joins (sogens@gateway/vpn/protonvpn/sogens)
09:38:55 <ChaoticMist[m]> Can someone help me understand why neovide is launching with wrong NSP `customFloating` size?... (full message at <https://libera.ems.host/_matrix/media/v3/download/libera.chat/f42e5cbe8b716ddaf45953834e49d6e5efac612b>)
09:39:05 <ChaoticMist[m]> How it should look like:
09:39:10 ChaoticMist[m] uploaded an image: (267KiB) < https://libera.ems.host/_matrix/media/v3/download/matrix.org/zQJGtmOsejCodEQHLFXQceET/image.png >
09:39:17 <ChaoticMist[m]> What it looks like:
09:39:36 ChaoticMist[m] uploaded an image: (134KiB) < https://libera.ems.host/_matrix/media/v3/download/matrix.org/wsTlkzjZmpLthyvGTArIZIyb/image.png >
10:17:41 chomwitt joins (~chomwitt@2a02:587:7a05:dc00:1ac0:4dff:fedb:a3f1)
11:08:27 mc47 joins (~mc47@xmonad/TheMC47)
12:59:22 jao joins (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net)
14:17:07 <geekosaur> either you have an existing matcher in the manageHook (but that seems unlikely especially as it's going off the screen) or more likely nvim is overriding the size itself
14:45:49 <ChaoticMist[m]> <geekosaur> "either you have an existing..." <- But it shouldn't do that though
14:46:03 <ChaoticMist[m]> It used to work just fine in Qtile
14:48:47 × ^[ quits (~user@user//x-8473491) (Ping timeout: 252 seconds)
14:52:44 <geekosaur> can you show a bit more of your config? in particular, are you sure you're matching it correctly?
15:01:11 ^[ joins (~user@user//x-8473491)
16:45:26 <ChaoticMist[m]> Do ping when you reply so I know someone types! :)
16:45:27 <ChaoticMist[m]> <geekosaur> "can you show a bit more of..." <- https://github.com/Icy-Thought/snowflake/blob/main/config/xmonad/xmonad.hs
16:46:01 <ChaoticMist[m]> Where I define it is in: #L762
16:54:07 mvk joins (~mvk@2607:fea8:5ce3:8500::efb)
16:55:00 <geekosaur> is the className correct? as shown by the other ones, className usually starts with an uppercase character
16:55:01 × mvk quits (~mvk@2607:fea8:5ce3:8500::efb) (Client Quit)
16:55:02 × mc47 quits (~mc47@xmonad/TheMC47) (Ping timeout: 256 seconds)
17:01:11 <AskYourself[m]> If I want my steam games to launch in fullscreen by default, is there a way to achieve that? The default behaviour spawns steam to stack and the game to master then I have to manually make the game fullscreen.
17:01:35 mc47 joins (~mc47@xmonad/TheMC47)
17:01:54 <ChaoticMist[m]> AskYourself[m]: That never happened with me, wonder if Ivan had added something like that in the config
17:01:54 <ChaoticMist[m]> Brb will check
17:02:31 <ChaoticMist[m]> <geekosaur> "is the className correct? as..." <- className is: `WM_CLASS(STRING) = "neovide", "neovide"`
17:02:45 <geekosaur> interesting
17:03:06 <ChaoticMist[m]> I wonder what Qtile did for it towkr
17:03:09 <ChaoticMist[m]> s/towkr/to work/
17:03:14 <ChaoticMist[m]> s/towkr/to work OTB/
17:09:04 tremon joins (~tremon@83-84-18-241.cable.dynamic.v4.ziggo.nl)
17:11:34 <geekosaur> AskYourself[m], sounds to me like it should be possible to match the game window instead of the Steam window; have you checked?
17:13:21 <geekosaur> I use ManageDebug, but here they might spawn close enough together that debugManageHookOn would miss the second window spawning
17:20:38 <AskYourself[m]> <geekosaur> "Ask Yourself🍉, sounds to me like..." <- I am not actually sure what you mean. I'm a bit of a noob here.
17:21:55 <geekosaur> AskYourself[m], this is what the manageHook is for. you would insert a section that matches the game window and fullscreens it in one of several ways
17:23:07 <geekosaur> probably `liftX (sendMessage $ JumpToLayout "Full")` or similar
17:31:52 <AskYourself[m]> Ohhh, ok. I'm going to play with that. Thanks.
18:28:48 × Maeda quits (~Maeda@91-161-10-149.subs.proxad.net) (Quit: :))
18:29:46 Maeda joins (~Maeda@91-161-10-149.subs.proxad.net)
18:29:51 × Maeda quits (~Maeda@91-161-10-149.subs.proxad.net) (Client Quit)
18:30:18 Maeda joins (~Maeda@91-161-10-149.subs.proxad.net)
19:52:43 × jao quits (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net) (Remote host closed the connection)
20:00:45 diep joins (~diep@2a01:cb11:2d7:4a00:ebbf:6d8:c835:19bb)
20:01:11 × diep quits (~diep@2a01:cb11:2d7:4a00:ebbf:6d8:c835:19bb) (Remote host closed the connection)
20:04:03 × mc47 quits (~mc47@xmonad/TheMC47) (Remote host closed the connection)
20:04:43 jao joins (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net)
20:13:33 <ChaoticMist[m]> GL
20:13:46 <ChaoticMist[m]> It might be that the overlay is being misused or something.. idk
20:16:45 <ChaoticMist[m]> I keep tripping.. wtf
20:16:50 <ChaoticMist[m]> * I keep tripping on the wrong chat.. wtf
21:35:55 × sogens quits (sogens@gateway/vpn/protonvpn/sogens) (Ping timeout: 256 seconds)
21:52:19 <AskYourself[m]> <geekosaur> "probably `liftX (sendMessage..." <- I'm not really clear how I can work this into my manage hook.
21:53:01 <AskYourself[m]> I understand that I can do stuff like... (full message at <https://libera.ems.host/_matrix/media/v3/download/libera.chat/16a2acad1406727c43cab9e415d0324e52841f2c>)
21:53:14 <geekosaur> first you need a predicate to match the window, then you use `-->` to combine it with the liftX
21:53:36 <geekosaur> oh, and I think that isn't quite sufficient because it has the wrong type
21:54:13 <AskYourself[m]> geekosaur: I'm not really following.
21:54:33 <AskYourself[m]> I need the stupid person explanation.
21:55:23 <geekosaur> have you been through the tutorial yet? I think it shows how the manageHook works
21:55:52 <AskYourself[m]> Yes. I have, that's actually how I learned to build the manageHook I currently have.
21:55:54 <AskYourself[m]> But I'm not seeing how to extend it is the problem.
21:57:39 <geekosaur> you add an entry to the composeAll list
21:58:44 <geekosaur> the entry looks like: predicate --> liftX (sendMessage $ JumpToLayout "Full") <> idHook
21:59:03 <AskYourself[m]> Is it important for id hook to be there?
21:59:15 <geekosaur> where `predicate` is something that matches the game window. you'll want to use the xprop command to figure out what will work
21:59:26 <geekosaur> yes, without it it'll have the wrong type
21:59:45 <geekosaur> oh, and I meant >> not <>
21:59:48 <geekosaur> sigh
21:59:54 <geekosaur> the entry looks like: predicate --> liftX (sendMessage $ JumpToLayout "Full") >> idHook
22:00:33 <AskYourself[m]> Oh ok that did it. I was missing the `>> idHook`.
22:00:35 <AskYourself[m]> Thank you very much.
22:01:38 <geekosaur> yes, that's what I meant by [11 21:53:35] <geekosaur> oh, and I think that isn't quite sufficient because it has the wrong type
22:02:12 <geekosaur> the `>> idHook` makes it have the right type
22:02:27 <AskYourself[m]> Right, ok that makes sense.
22:03:14 <geekosaur> more specifrically, it makes the manageHook part do nothing; the liftX part "jumps out" of the manageHook and does something in xmonad proper
22:03:33 <geekosaur> but that ends up with the wrong type, so we have to combine it with an actual manageHook
22:07:51 <AskYourself[m]> That's a bit confusing.
22:08:16 <AskYourself[m]> But it's working great now, I've got a list of them with composeAll. It's really cool to be able to write precise rules like this.
22:31:01 <AskYourself[m]> Another thing is I want to toggle my compositor on and off. I know I can toggle it on with `("M-p", spawn "picom"),` but how can I toggle it off when you need to enter a password to do so?
22:36:25 <geekosaur> spawn "killall picom"?
22:36:37 <geekosaur> I don't think picom has a control
22:36:43 <geekosaur> hm, maybe it does via dbus
22:38:34 <geekosaur> oh, it does. pass --dbus to enable it, connect to dbus (see https://github.com/geekosaur/xmonad.hs/blob/skkukuk/xmonad.hs#L129-L130 although you want to use a different endpoint than getWellKnownName there does)
22:39:25 <geekosaur> "It’s possible to control compton via D-Bus messages, by running compton with --dbus and send messages to
22:39:25 <geekosaur> com.github.chjj.compton.<DISPLAY>. <DISPLAY> is the display used by compton, with all non-alphanumeric characters
22:39:25 <geekosaur> transformed to underscores. For DISPLAY=:0.0 you should use com.github.chjj.compton._0_0, for example.
22:39:25 <geekosaur> The D-Bus methods and signals are not yet stable, thus undocumented right now."
22:40:06 <geekosaur> so you would have to examine the picom source (I'm running picom prerelease, which still calls itself compton) to find out what messages to send
22:40:22 <geekosaur> might also be possible to use dbus-send with spawn
22:46:46 <AskYourself[m]> Hmm ok.
22:50:55 <AskYourself[m]> <geekosaur> "spawn "killall picom"?" <- I don't think this will work. Cause `killAll` is for windows not services.
22:51:01 <AskYourself[m]> Maybe I'm just confused though.
22:53:12 <geekosaur> killall is for commands not windows
22:53:20 <geekosaur> xkill is for windows
22:55:36 <AskYourself[m]> Oh that actually works great haha.
22:55:52 <AskYourself[m]> I was confusing killall and killAll (from WithAll) 🤦‍♂️
22:56:25 <AskYourself[m]> Is there a way to have XMonad detect whether a service is running?
22:56:42 <AskYourself[m]> If that's possible then I could have the same keybind work as a toggle instead of having an on and off switch.
22:58:30 <geekosaur> it wouldn't be xmonad, but you're doing it in a spawn either way, so: spawn "if pgrep picom; then killall picom; else picom; fi"
22:58:53 <AskYourself[m]> Oh right I see.
22:59:09 <AskYourself[m]> I seen to learn shell and stuff. That didn't even occur to me.
22:59:12 <AskYourself[m]> Ok thanks.
23:03:46 mvk joins (~mvk@2607:fea8:5ce3:8500::efb)
23:15:13 <AskYourself[m]> One other thing. I'm trying to figure out how to rotate my windows. So if I have:... (full message at <https://libera.ems.host/_matrix/media/v3/download/libera.chat/e7ef6277a1b527f3af0f34fdded5c79392533773>)
23:15:26 <AskYourself[m]> * One other thing. I'm trying to figure out how to rotate my windows. So if I have:... (full message at <https://libera.ems.host/_matrix/media/v3/download/libera.chat/3cfdb1e5ea24265bcc6b695a2f31e391b343234f>)
23:15:49 <AskYourself[m]> Is there a function or library or something to look at to find window rotation stuff like this?
23:19:35 <geekosaur> there are window rotation functions but they're stack-based, not screen-based. https://hackage.haskell.org/package/xmonad-contrib-0.17.1/docs/XMonad-Actions-CycleWindows.html
23:20:22 <AskYourself[m]> Yeah, this was what I came across but I don't think that's what I need. Dang. Ok.
23:20:42 <AskYourself[m]> Another one I was hoping for was a mirror thing. Where it flips the master with the stack.
23:20:58 <geekosaur> Mirror is in the core
23:21:19 <geekosaur> oh wait, that mirrirs diagonally (horiz vs., vert)
23:21:36 <AskYourself[m]> Yeahh..
23:21:43 <geekosaur> I think you want https://hackage.haskell.org/package/xmonad-contrib-0.17.1/docs/XMonad-Layout-Reflect.html
23:22:16 <AskYourself[m]> Ok, I'm gonna mess with this. Thank you.
23:22:40 <AskYourself[m]> The rotation stuff is surprising, for some reason it seems odd to me that nobody else would want that functionality.
23:23:05 × scardinal quits (~supreme@customer-212-237-101-39.ip4.gigabit.dk) (Ping timeout: 268 seconds)
23:24:02 <geekosaur> not sure that it's "nobody wants it", it's that it's hard to implement. a rotation function can't, for example, tell how many windows are exposed in a layout or how they're arranged
23:25:35 <geekosaur> someone asked for the ability to step through that kind of window arrangement recently, and that can't be done for the same reason
23:29:48 scardinal joins (~supreme@customer-212-237-101-39.ip4.gigabit.dk)
23:37:23 <AskYourself[m]> Makes sense.
23:39:11 <AskYourself[m]> So I've modded my config like this:... (full message at <https://libera.ems.host/_matrix/media/v3/download/libera.chat/ea501372407c1115bd53c20e345cde19d99e9e4e>)
23:39:46 <AskYourself[m]> s///, s///
23:40:09 × tremon quits (~tremon@83-84-18-241.cable.dynamic.v4.ziggo.nl) (Quit: getting boxed in)
23:44:02 <geekosaur> I don't know how well the layout modifier combines with the toggle
23:45:25 <AskYourself[m]> Hmm, that's what it suggests in the Reflect page.
23:47:19 <geekosaur> looks to me like the transformer just inserts the same reflection, so it's a no-op if you also use it directly
23:48:15 <geekosaur> it might work better if you want the key but want it to default on, to put `sendMessage $ Toggle REFLECTY` in the startupHook
23:48:22 <geekosaur> so it starts out enabled

All times are in UTC on 2022-12-11.