2024/05/04

2024-05-04 00:58:36 +0200 <haskellbridge> <N​exilva> Hi guys
2024-05-04 00:59:00 +0200 <geekosaur> hello
2024-05-04 00:59:03 +0200 <haskellbridge> <N​exilva> How can I send this to monitor #2
2024-05-04 00:59:04 +0200 <haskellbridge> <N​exilva> ```name `oneOf` [ "Diablo II: Resurrected" ] --> (doF . W.view <> doShift) "18:Diablo"
2024-05-04 00:59:05 +0200 <haskellbridge> <N​exilva> ```
2024-05-04 00:59:11 +0200 <haskellbridge> <N​exilva> How can I send this to monitor #2
2024-05-04 00:59:12 +0200 <haskellbridge> <N​exilva> `name `oneOf` \[ "Diablo II: Resurrected" \] --> (doF . W.view \<> doShift) "18:Diablo"`
2024-05-04 00:59:21 +0200 <haskellbridge> <N​exilva> Hope you're doing well today
2024-05-04 00:59:35 +0200 <haskellbridge> <N​exilva> How can I send this to monitor #2
2024-05-04 00:59:35 +0200 <haskellbridge> <N​exilva> `name `oneOf` [ "Diablo II: Resurrected" ] --> (doF . W.view <> doShift) "18:Diablo"`
2024-05-04 00:59:51 +0200 <geekosaur> edits don't work IRC-side
2024-05-04 00:59:57 +0200 <haskellbridge> <N​exilva> Ohhh
2024-05-04 00:59:58 +0200 <haskellbridge> <N​exilva> Sorry
2024-05-04 01:00:38 +0200 <haskellbridge> <N​exilva> `name oneOf [ "Diablo II: Resurrected" ] --> (doF . W.view <> doShift) "18:Diablo" THEN SEND TO MONITOR #2 or SWITCH TO MON 2 AND MAKE 18 Active`
2024-05-04 01:00:43 +0200 <haskellbridge> <N​exilva> How can I do that?
2024-05-04 01:03:55 +0200 <haskellbridge> <N​exilva> --> (doF $ W.greedyView "18:Diablo" <+> W.shift "18:Diablo" <+> W.view "2")
2024-05-04 01:04:24 +0200 <haskellbridge> <N​exilva> No first shift, then greedyview, then view 2
2024-05-04 01:04:49 +0200kaskal-(~kaskal@2001:4bb8:2d2:1257:60b1:1057:17df:5755)
2024-05-04 01:05:28 +0200 <haskellbridge> <N​exilva> I have no idea how to do this, my haskell sucks
2024-05-04 01:05:44 +0200 <geekosaur> poking at it
2024-05-04 01:07:44 +0200kaskal(~kaskal@089144220117.atnat0029.highway.webapn.at) (Quit: ZNC - https://znc.in)
2024-05-04 01:09:17 +0200 <geekosaur> https://paste.tomsmeding.com/fphslrKL there's probably a more optimal way to do it
2024-05-04 01:09:30 +0200 <geekosaur> the Nothing case is for when you only have one monitor for some reason
2024-05-04 01:10:44 +0200 <geekosaur> mm, actually that's a bad idea
2024-05-04 01:19:03 +0200 <geekosaur> https://paste.tomsmeding.com/sObZZjk2
2024-05-04 01:21:25 +0200 <haskellbridge> <N​exilva> 196 | ask >>= \w -> liftX (screenWorkspace 2 >>= \case
2024-05-04 01:21:31 +0200 <haskellbridge> <N​exilva> Suggested fix: Perhaps you intended to use LambdaCase
2024-05-04 01:21:39 +0200 <haskellbridge> <N​exilva> Please check the file for errors.
2024-05-04 01:21:53 +0200 <geekosaur> yes, sorry, I did use LambdaCase (the "\case")
2024-05-04 01:22:23 +0200 <haskellbridge> <N​exilva> I was pasting compile logs it didn't compile
2024-05-04 01:22:25 +0200 <geekosaur> if you prefer not tu enable it, replace with: \x -> case x of
2024-05-04 01:22:44 +0200 <liskin> and there's also https://xmonad.github.io/xmonad-docs/xmonad-contrib-0.18.0.9/XMonad-Actions-PhysicalScreens.html if the xinerama screen ordering isn't good enough
2024-05-04 01:22:48 +0200 <haskellbridge> <N​exilva> I have noidea what you even did ha
2024-05-04 01:23:49 +0200 <geekosaur> the sequence "\case" is not standard Haskell. you can either put "{-# LANGUAGE LambdaCase #-}" at the top of the file, or you can replace "\case" with "\x -> case x of"
2024-05-04 01:25:54 +0200 <haskellbridge> <N​exilva> https://bpa.st/I3YA
2024-05-04 01:26:12 +0200 <haskellbridge> <N​exilva> https://bpa.st/W5LQ
2024-05-04 01:32:31 +0200 <geekosaur> sorry, you need to import Data.Semigroup
2024-05-04 01:33:01 +0200 <geekosaur> or Data.Monoid
2024-05-04 01:33:18 +0200 <geekosaur> (I tested it in my xmonad.hs, where I already have Data.Monoid imported for other reasons)
2024-05-04 01:49:39 +0200catman(~catman@user/catman) (Remote host closed the connection)
2024-05-04 01:57:25 +0200catman(~catman@user/catman)
2024-05-04 01:59:54 +0200 <haskellbridge> <N​exilva> https://bpa.st/XLRQ after import. sorry was eating dinner
2024-05-04 02:00:12 +0200catman(~catman@user/catman) (Client Quit)
2024-05-04 02:01:06 +0200 <geekosaur> hrm
2024-05-04 02:01:23 +0200catman(~catman@user/catman)
2024-05-04 02:01:26 +0200 <geekosaur> I missed that, it's supposed to be using the function instance since those are functions]
2024-05-04 02:01:42 +0200 <geekosaur> wait
2024-05-04 02:03:27 +0200 <geekosaur> used the wrong operator in the wrong place
2024-05-04 02:04:07 +0200 <geekosaur> https://paste.tomsmeding.com/eBOTVin9
2024-05-04 02:05:43 +0200 <geekosaur> :: Eq s => Query (Endo (W.StackSet String l Window s sd))
2024-05-04 02:05:47 +0200 <geekosaur> that looks more sensible
2024-05-04 02:07:20 +0200 <haskellbridge> <N​exilva> Thanks
2024-05-04 02:08:29 +0200 <haskellbridge> <N​exilva> I noticed that it puts the window in the monitor where the mouse cursor is. Can we always send it to monitor #2 regardless of which monitor the mouse is currently in?
2024-05-04 02:09:54 +0200 <haskellbridge> <N​exilva> or wait
2024-05-04 02:10:32 +0200 <haskellbridge> <N​exilva> if I'm on monitor1, launch the game from a window in monitor one, it will switch to WS 18, but game window stays on monitor 1
2024-05-04 02:10:34 +0200 <liskin> N​exilva: do you actually play those games or do you just like to play with making them work in xmonad? :-D
2024-05-04 02:10:37 +0200 <geekosaur> that sounds wrong. it should focus the second monitor, then move your window to the diablo workspace, then show the diablo workspace on the second monitor (unless it's on the first monitor)
2024-05-04 02:10:45 +0200 <haskellbridge> <N​exilva> I play them 🙂
2024-05-04 02:11:01 +0200 <liskin> I mean, I'm not taking the piss, I realised I probably enjoy more the fiddling than the actual playing
2024-05-04 02:11:07 +0200 <geekosaur> the "unless" is somewhat difficult to resolve
2024-05-04 02:11:27 +0200 <liskin> I did play D2 for a bit yesterday, but still spent more time overall making it work
2024-05-04 02:11:45 +0200 <haskellbridge> <N​exilva> https://bpa.st/SBWQ here's my whole file
2024-05-04 02:11:59 +0200 <liskin> anyway, good night all :-)
2024-05-04 02:12:23 +0200 <haskellbridge> <N​exilva> If you ever wanna play my mod
2024-05-04 02:12:26 +0200 <haskellbridge> <N​exilva> That'd be cool
2024-05-04 02:12:31 +0200 <geekosaur> hm, try swapping the first two operations (the first W.view and the W.shiftWin
2024-05-04 02:12:33 +0200 <haskellbridge> <N​exilva> https://im.stoned.io
2024-05-04 02:12:34 +0200 <geekosaur> )
2024-05-04 02:12:42 +0200 <haskellbridge> <N​exilva> Works on linuxu too natively i can give you all the files
2024-05-04 02:12:54 +0200 <haskellbridge> <N​exilva> ok
2024-05-04 02:13:35 +0200 <haskellbridge> <N​exilva> Just ws -> pure . Endo $ W.shiftWin "18:Diablo" . W.view "18:Diablo" w . W.view ws <- this?
2024-05-04 02:14:00 +0200 <geekosaur> no, the w needs to stay with the W.shiftWin
2024-05-04 02:14:12 +0200 <geekosaur> W.shiftWin <ws> <window>
2024-05-04 02:14:31 +0200sajenim(~sajenim@user/sajenim)
2024-05-04 02:15:13 +0200 <haskellbridge> <N​exilva> Just ws -> pure . Endo $ W.shiftWin "18:Diablo" w . W.view "18:Diablo" . W.view ws
2024-05-04 02:15:18 +0200 <liskin> hm, Ironman looks interesting, but I'm still only halfway through a normal game, and I started in 2020 :-/
2024-05-04 02:15:21 +0200 <liskin> maybe 2021
2024-05-04 02:15:34 +0200 <liskin> I have limited time for gaming :-(
2024-05-04 02:15:39 +0200 <haskellbridge> <N​exilva> Same
2024-05-04 02:16:10 +0200 <liskin> (I mean, it's obviously choice, I could choose to spend hours gaming if I dropped exercise and beer and friends and family, but … :-)
2024-05-04 02:16:21 +0200 <haskellbridge> <N​exilva> Still the same behavior geekosaur
2024-05-04 02:16:26 +0200 <liskin> anyway, really gotta go!
2024-05-04 02:16:46 +0200 <haskellbridge> <N​exilva> It switches to workspace 18, but monitor remains to be 1
2024-05-04 02:16:59 +0200 <haskellbridge> <N​exilva> I'm not using Xinerama, just normal nvidia drivers no manual config
2024-05-04 02:17:38 +0200 <haskellbridge> <N​exilva> https://bpa.st/XETQ xrrandr output
2024-05-04 02:18:16 +0200 <haskellbridge> <N​exilva> So it's probably screen 0 and 1? or what maybe that's the problem?
2024-05-04 02:18:44 +0200 <haskellbridge> <N​exilva> if i launch game, move mouse to mon 2, then the game is on mon2. otherwise if the mouse is on mon1, the game is also in mon1, but on worksapce 18
2024-05-04 02:21:19 +0200 <haskellbridge> <N​exilva> That was exactly the problem
2024-05-04 02:21:31 +0200 <haskellbridge> <N​exilva> I changed the xmonad code to use mon 1 insetad o 2 and now it works as expecterd
2024-05-04 02:21:33 +0200 <haskellbridge> <N​exilva> thank you
2024-05-04 02:25:15 +0200 <geekosaur> oh, did I have an off by one?
2024-05-04 02:25:45 +0200 <geekosaur> yep, starts at 0 not 1, so it took the Nothing path. whoops
2024-05-04 02:26:00 +0200 <geekosaur> (which expects to be run if there's only a single monitor)
2024-05-04 02:27:01 +0200 <haskellbridge> <N​exilva> Np thanks you so much
2024-05-04 02:36:08 +0200catman(~catman@user/catman) (Remote host closed the connection)
2024-05-04 02:38:30 +0200 <[Leary]> Nexilva: If you want to clean that up at all: https://paste.tomsmeding.com/bceTW00E
2024-05-04 02:39:07 +0200 <geekosaur> that does look nicer. I'd been wondering how best to make it less ugly
2024-05-04 02:39:26 +0200 <geekosaur> I kinda brute-forced it
2024-05-04 02:40:46 +0200 <[Leary]> Right, refactoring for cleanliness comes after getting something that works. For me it's more like a compulsion, though.
2024-05-04 02:43:17 +0200ectospasm(~ectospasm@user/ectospasm) (Quit: WeeChat 4.2.2)
2024-05-04 02:52:23 +0200catman(~catman@user/catman)
2024-05-04 03:03:56 +0200hightower3(~hightower@141-136-246-63.dsl.iskon.hr)
2024-05-04 03:06:50 +0200hightower2(~hightower@141-136-232-64.dsl.iskon.hr) (Ping timeout: 256 seconds)