2024/04/01

2024-04-01 00:01:46 +0200defjam(~defjam@2a02:c7e:2807:b900:5c6a:bfdc:5c93:19b8)
2024-04-01 00:06:20 +0200yaslam(~yaslam@user/yaslam)
2024-04-01 00:07:59 +0200defjam(~defjam@2a02:c7e:2807:b900:5c6a:bfdc:5c93:19b8) (Ping timeout: 255 seconds)
2024-04-01 00:19:37 +0200defjam(~defjam@2a02:c7e:2807:b900:5c6a:bfdc:5c93:19b8)
2024-04-01 00:20:03 +0200yaslam(~yaslam@user/yaslam) (Ping timeout: 260 seconds)
2024-04-01 00:25:17 +0200defjam(~defjam@2a02:c7e:2807:b900:5c6a:bfdc:5c93:19b8) (Ping timeout: 240 seconds)
2024-04-01 00:26:27 +0200yaslam(~yaslam@user/yaslam)
2024-04-01 00:26:28 +0200yaslam(~yaslam@user/yaslam) (Remote host closed the connection)
2024-04-01 00:39:29 +0200defjam(~defjam@2a02:c7e:2807:b900:5c6a:bfdc:5c93:19b8)
2024-04-01 00:58:17 +0200rascasse(~rascasse@user/diep)
2024-04-01 01:03:30 +0200 <haskellbridge> <N​exilva> Hello guys, how do you do?
2024-04-01 01:03:31 +0200 <haskellbridge> <N​exilva> In Xmonad I have setup my meta key as winkey.
2024-04-01 01:03:32 +0200 <haskellbridge> <N​exilva> ```
2024-04-01 01:03:33 +0200 <haskellbridge> <N​exilva> -- current modifier key
2024-04-01 01:03:35 +0200 <haskellbridge> <N​exilva> , modMask = mod4Mask
2024-04-01 01:03:36 +0200 <haskellbridge> <N​exilva> ```
2024-04-01 01:03:37 +0200 <haskellbridge> <N​exilva> I have a Virtual Box Windows 10 VM. In there, I can use the winkey, and windows Start menu pops up. However, I have a program in there which allows resizing windows with winkey + mouse button plus drag. When I hold down winkey in Windows VM, then right click mouse and drag, Xmonad takes over and actually resizea my Virtual Box window instead.
2024-04-01 01:03:56 +0200 <haskellbridge> <N​exilva> How can I make it so that Winkey + mouse also works inside the VM. I hope I'm asking my question right
2024-04-01 01:05:52 +0200 <geekosaur> control+alt while inside vbox should cause it to grab keyboard and mouse
2024-04-01 01:06:21 +0200 <geekosaur> its default behavior tries to guess what you want, and it's guessing wrong
2024-04-01 01:08:37 +0200rascasse_(~rascasse@user/diep)
2024-04-01 01:08:42 +0200rascasse(~rascasse@user/diep) (Ping timeout: 255 seconds)
2024-04-01 01:12:57 +0200 <geekosaur> (this is an oversimplification, but the key is that xmonad owns winkey+mouse activities unless you make vbox own them. there's no real way to make xmonad pass them on)
2024-04-01 01:14:18 +0200 <haskellbridge> <N​exilva> I don't have it setup like that. I have mouse integration turned on where grabbing is automatic. I don't have to click in there first.
2024-04-01 01:18:00 +0200 <haskellbridge> <N​exilva> I will show you my xmonad config.
2024-04-01 01:18:30 +0200 <haskellbridge> <N​exilva> https://bpa.st/C4YQ Here is my xmonad.hd
2024-04-01 01:19:20 +0200 <haskellbridge> <N​exilva> https://bpa.st/C4YQ#1L367-L367 Here I am adding a mouse resize binding with right click and winkey, same as it inside the VM
2024-04-01 01:19:49 +0200 <haskellbridge> <N​exilva> I'm trying to figure out how to make it so that iv the className == Virtualbox Machine, give the control to VM, otherwise retain the control with Xmonad
2024-04-01 01:20:00 +0200 <haskellbridge> <N​exilva> I'm not an expert in haskell so I might need your expertise there
2024-04-01 01:20:20 +0200 <haskellbridge> <N​exilva> https://bpa.st/C4YQ#1L197-L197 Here I tried something but it didn't work.
2024-04-01 01:21:41 +0200 <haskellbridge> <N​exilva> I think I forgot to comment out my original mouse bindings... hmm.
2024-04-01 01:21:47 +0200 <geekosaur> right, if you make it automatic then it won't work because vbox releases everything automatically
2024-04-01 01:22:05 +0200 <haskellbridge> <N​exilva> I don't follow.
2024-04-01 01:22:36 +0200 <haskellbridge> <N​exilva> Without the "Mouse Integration" option (automatic capture of mouse), the mouse movement is quite wonky and doesn't work well. So this is a requirement.
2024-04-01 01:22:58 +0200 <haskellbridge> <N​exilva> Is there a possible workaround in your experienced opinion?
2024-04-01 01:23:35 +0200 <geekosaur> my point is, you can temporarily turn off integration with control+alt, then do things, then control+alt again to go back into mouse integration mode
2024-04-01 01:23:35 +0200 <geekosaur> ]
2024-04-01 01:24:26 +0200 <haskellbridge> <N​exilva> That is also not going to be possible. That's too much hassle, just to do all that just to resize the windows inside the VM with the mouse. It would just easier to resize it manually at that point.
2024-04-01 01:24:30 +0200 <geekosaur> what you can't do is forward mouse events from xmonad to vbox. the code you tried makes xmonad do nothing if vbox is focused, but xmonad has still "eaten" the mouse event at that point
2024-04-01 01:25:51 +0200 <geekosaur> you could use a sendEvent to relay it, but it'll have a flag set marking it as artificial and vbox might drop it as a result
2024-04-01 01:26:48 +0200 <geekosaur> and you would probably need a custom handleEventHook to keep relaying events until some particular event that switches back to normal mode
2024-04-01 01:27:22 +0200 <geekosaur> (I should say "relaying" with scare quotes as they would all be flagged as artificial)
2024-04-01 01:28:07 +0200 <geekosaur> this is an X11 thing, not ssomething xmonad can do much about
2024-04-01 01:28:31 +0200 <haskellbridge> <N​exilva> https://bpa.st/KEIQ This makes it so that if className = Virtualbox Machine, it doesn't resize the window in Xmonad anymore, but the key also doesn't work in VM
2024-04-01 01:28:40 +0200 <haskellbridge> <N​exilva> Hmm.
2024-04-01 01:28:42 +0200 <geekosaur> yes, that's what I just said
2024-04-01 01:28:49 +0200 <haskellbridge> <N​exilva> I could try to map a different key in the VM. Last resort.
2024-04-01 01:28:59 +0200 <haskellbridge> <N​exilva> Insetad of winkey, perhaps alt.
2024-04-01 01:29:00 +0200 <geekosaur> [31 23:24:29] <geekosaur> what you can't do is forward mouse events from xmonad to vbox. the code you tried makes xmonad do nothing if vbox is focused, but xmonad has still "eaten" the mouse event at that point
2024-04-01 01:29:17 +0200 <haskellbridge> <N​exilva> Oh I just saw that line. Sorry text moved a bit fast while I was looking away
2024-04-01 01:29:20 +0200 <haskellbridge> <N​exilva> Thank you
2024-04-01 01:30:19 +0200 <haskellbridge> <N​exilva> Well, that's useful anyway, because a lot of times I accidentally end up resizing vbox and it's painful to fix.
2024-04-01 01:30:37 +0200 <haskellbridge> <N​exilva> How can I send the event? I'll try. Can you give a small example?
2024-04-01 01:31:10 +0200 <haskellbridge> <N​exilva> Current code is fine as I definitely want to block resizing vbox windows.
2024-04-01 01:31:22 +0200 <haskellbridge> <N​exilva> Now I just need to figure out how to try to send the event to Windows VM
2024-04-01 01:31:46 +0200 <haskellbridge> <N​exilva> I don't really know alot about what you are saying also because of my ignorance
2024-04-01 01:32:31 +0200 <geekosaur> hm, I thought we had a function for that but they're all for key events
2024-04-01 01:32:57 +0200 <geekosaur> so you would have to use X11 functions directly, which will make it painful
2024-04-01 01:33:18 +0200 <haskellbridge> <N​exilva> Damn.
2024-04-01 01:35:20 +0200 <geekosaur> this is horrible https://tronche.com/gui/x/xlib/event-handling/XSendEvent.html
2024-04-01 01:36:12 +0200 <haskellbridge> <N​exilva> Eep!
2024-04-01 01:36:17 +0200 <haskellbridge> <N​exilva> Well, thanks man.
2024-04-01 01:36:31 +0200 <haskellbridge> <N​exilva> We'll just say fuck it. Change it to ALT and I'm good to go.
2024-04-01 01:36:38 +0200 <geekosaur> easier to catch it in the handleEventHook instead of the normal mouse event handler, because that way you have an event structure already and can just pass it on to https://hackage.haskell.org/package/X11-1.10.3/docs/Graphics-X11-Xlib-Event.html#v:sendEvent
2024-04-01 01:36:58 +0200 <haskellbridge> <N​exilva> Disable Winkey resize for Vbox machines, and change the Windows 10 auto hotkey script to use ALT + mouse1/2 for window move/resize.
2024-04-01 01:37:01 +0200 <haskellbridge> <N​exilva> Now it's good.
2024-04-01 01:39:07 +0200 <haskellbridge> <N​exilva> Now I can't accidentally resize VMs. Nice. I like Xmonad. What a great softare
2024-04-01 01:41:04 +0200rascasse_(~rascasse@user/diep) (Remote host closed the connection)
2024-04-01 03:34:56 +0200rekahsoft(~rekahsoft@bras-base-orllon1103w-grc-13-184-148-6-204.dsl.bell.ca)
2024-04-01 04:11:49 +0200geekosaurmewosaur
2024-04-01 05:01:55 +0200td_(~td@i53870929.versanet.de) (Ping timeout: 260 seconds)
2024-04-01 05:03:50 +0200td_(~td@i53870937.versanet.de)
2024-04-01 05:49:23 +0200mewosaurgeekopurr
2024-04-01 05:58:45 +0200rekahsoft(~rekahsoft@bras-base-orllon1103w-grc-13-184-148-6-204.dsl.bell.ca) (Ping timeout: 252 seconds)
2024-04-01 09:56:17 +0200hightower3(~hightower@141-136-134-38.dsl.iskon.hr) (Ping timeout: 272 seconds)
2024-04-01 10:26:12 +0200hightower2(~hightower@213.186.15.36)
2024-04-01 12:02:41 +0200Miroboru(~myrvoll@178-164-114.82.3p.ntebredband.no)
2024-04-01 12:48:26 +0200hightower2(~hightower@213.186.15.36) (Quit: Leaving)
2024-04-01 13:46:29 +0200amenonsen(~amenonsen@pitta.toroid.org) (Remote host closed the connection)
2024-04-01 13:46:49 +0200amenonsen(~amenonsen@pitta.toroid.org)
2024-04-01 15:27:51 +0200redgloboli(~redglobol@user/redgloboli) (Quit: ...enter the matrix...)
2024-04-01 15:28:13 +0200redgloboli(~redglobol@user/redgloboli)
2024-04-01 16:08:44 +0200byorgey(~byorgey@155.138.238.211) (Quit: leaving)
2024-04-01 16:24:48 +0200humky(~humky@user/humky) (Read error: Connection reset by peer)
2024-04-01 17:56:05 +0200L29Ah(~L29Ah@wikipedia/L29Ah) ()
2024-04-01 18:16:01 +0200L29Ah(~L29Ah@wikipedia/L29Ah)
2024-04-01 18:47:23 +0200todi(~todi@p57803331.dip0.t-ipconnect.de) (Ping timeout: 264 seconds)
2024-04-01 18:54:54 +0200todi(~todi@p57803331.dip0.t-ipconnect.de)
2024-04-01 19:15:30 +0200L29Ah(~L29Ah@wikipedia/L29Ah) ()
2024-04-01 22:13:47 +0200L29Ah(~L29Ah@wikipedia/L29Ah)
2024-04-01 22:17:17 +0200ircbrowse_tom(~ircbrowse@2a01:4f8:1c1c:9319::1)
2024-04-01 22:17:19 +0200Server+cnt
2024-04-01 22:34:23 +0200humky(~humky@user/humky)
2024-04-01 23:27:30 +0200L29Ah(~L29Ah@wikipedia/L29Ah) ()
2024-04-01 23:54:18 +0200L29Ah(~L29Ah@wikipedia/L29Ah)