2024-05-04 00:58:36 +0200 | <haskellbridge> | <Nexilva> Hi guys |
2024-05-04 00:59:00 +0200 | <geekosaur> | hello |
2024-05-04 00:59:03 +0200 | <haskellbridge> | <Nexilva> How can I send this to monitor #2 |
2024-05-04 00:59:04 +0200 | <haskellbridge> | <Nexilva> ```name `oneOf` [ "Diablo II: Resurrected" ] --> (doF . W.view <> doShift) "18:Diablo" |
2024-05-04 00:59:05 +0200 | <haskellbridge> | <Nexilva> ``` |
2024-05-04 00:59:11 +0200 | <haskellbridge> | <Nexilva> How can I send this to monitor #2 |
2024-05-04 00:59:12 +0200 | <haskellbridge> | <Nexilva> `name `oneOf` \[ "Diablo II: Resurrected" \] --> (doF . W.view \<> doShift) "18:Diablo"` |
2024-05-04 00:59:21 +0200 | <haskellbridge> | <Nexilva> Hope you're doing well today |
2024-05-04 00:59:35 +0200 | <haskellbridge> | <Nexilva> How can I send this to monitor #2 |
2024-05-04 00:59:35 +0200 | <haskellbridge> | <Nexilva> `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> | <Nexilva> Ohhh |
2024-05-04 00:59:58 +0200 | <haskellbridge> | <Nexilva> Sorry |
2024-05-04 01:00:38 +0200 | <haskellbridge> | <Nexilva> `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> | <Nexilva> How can I do that? |
2024-05-04 01:03:55 +0200 | <haskellbridge> | <Nexilva> --> (doF $ W.greedyView "18:Diablo" <+> W.shift "18:Diablo" <+> W.view "2") |
2024-05-04 01:04:24 +0200 | <haskellbridge> | <Nexilva> No first shift, then greedyview, then view 2 |
2024-05-04 01:04:49 +0200 | kaskal- | (~kaskal@2001:4bb8:2d2:1257:60b1:1057:17df:5755) |
2024-05-04 01:05:28 +0200 | <haskellbridge> | <Nexilva> 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 +0200 | kaskal | (~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> | <Nexilva> 196 | ask >>= \w -> liftX (screenWorkspace 2 >>= \case |
2024-05-04 01:21:31 +0200 | <haskellbridge> | <Nexilva> Suggested fix: Perhaps you intended to use LambdaCase |
2024-05-04 01:21:39 +0200 | <haskellbridge> | <Nexilva> 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> | <Nexilva> 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> | <Nexilva> 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> | <Nexilva> https://bpa.st/I3YA |
2024-05-04 01:26:12 +0200 | <haskellbridge> | <Nexilva> 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 +0200 | catman | (~catman@user/catman) (Remote host closed the connection) |
2024-05-04 01:57:25 +0200 | catman | (~catman@user/catman) |
2024-05-04 01:59:54 +0200 | <haskellbridge> | <Nexilva> https://bpa.st/XLRQ after import. sorry was eating dinner |
2024-05-04 02:00:12 +0200 | catman | (~catman@user/catman) (Client Quit) |
2024-05-04 02:01:06 +0200 | <geekosaur> | hrm |
2024-05-04 02:01:23 +0200 | catman | (~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> | <Nexilva> Thanks |
2024-05-04 02:08:29 +0200 | <haskellbridge> | <Nexilva> 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> | <Nexilva> or wait |
2024-05-04 02:10:32 +0200 | <haskellbridge> | <Nexilva> 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> | Nexilva: 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> | <Nexilva> 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> | <Nexilva> 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> | <Nexilva> If you ever wanna play my mod |
2024-05-04 02:12:26 +0200 | <haskellbridge> | <Nexilva> 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> | <Nexilva> https://im.stoned.io |
2024-05-04 02:12:34 +0200 | <geekosaur> | ) |
2024-05-04 02:12:42 +0200 | <haskellbridge> | <Nexilva> Works on linuxu too natively i can give you all the files |
2024-05-04 02:12:54 +0200 | <haskellbridge> | <Nexilva> ok |
2024-05-04 02:13:35 +0200 | <haskellbridge> | <Nexilva> Just ws -> pure . Endo $ W.shiftWin "18:Diablo" . W.view "18:Diablo" w . W.view ws <- this? |