2025/01/01

2025-01-01 00:30:30 +0100 <haskellbridge> <rascasse> Hi, is there a trick to have a secondary monitor always stick to a dedicated workspace?
2025-01-01 00:31:42 +0100 <haskellbridge> <rascasse> or at least some config code executed at startup to move to workspace X for that specific monitor?
2025-01-01 00:33:15 +0100 <haskellbridge> <rascasse> Hi, is there a trick to have a secondary monitor always "stick" to a dedicated workspace?
2025-01-01 00:39:29 +0100 <geekosaur> not currently
2025-01-01 01:00:42 +0100 <geekosaur> https://hackage.haskell.org/package/xmonad-contrib-0.18.1/docs/XMonad-Actions-OnScreen.html may be of interest; you also want to do https://wiki.haskell.org/Xmonad/Frequently_asked_questions#Replacing_greedyView_with_view so xmonad doesn't swap the workspaces on you
2025-01-01 01:18:47 +0100 <haskellbridge> <rascasse> thx I will check
2025-01-01 01:49:05 +0100L29Ah(~L29Ah@wikipedia/L29Ah) ()
2025-01-01 04:44:20 +0100L29Ah(~L29Ah@wikipedia/L29Ah) L29Ah
2025-01-01 08:40:15 +0100yaslam_(~yaslam@user/yaslam) (Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in)
2025-01-01 09:40:56 +0100Leary(~Leary@user/Leary/x-0910699) (Remote host closed the connection)
2025-01-01 09:54:03 +0100Leary(~Leary@user/Leary/x-0910699) Leary
2025-01-01 10:31:56 +0100Leary(~Leary@user/Leary/x-0910699) (Remote host closed the connection)
2025-01-01 10:39:46 +0100L29Ah(~L29Ah@wikipedia/L29Ah) (Read error: Connection timed out)
2025-01-01 10:41:37 +0100Leary(~Leary@user/Leary/x-0910699) Leary
2025-01-01 12:08:31 +0100ml|(~ml|@user/ml/x-5298235) (Ping timeout: 264 seconds)
2025-01-01 12:22:48 +0100ml|(~ml|@user/ml/x-5298235) ml|
2025-01-01 14:10:06 +0100yaslam(~yaslam@user/yaslam) yaslam
2025-01-01 14:20:25 +0100L29Ah(~L29Ah@wikipedia/L29Ah) L29Ah
2025-01-01 14:32:17 +0100ft(~ft@p3e9bc1f8.dip0.t-ipconnect.de) (Ping timeout: 265 seconds)
2025-01-01 14:33:46 +0100ft(~ft@p3e9bc545.dip0.t-ipconnect.de) ft
2025-01-01 16:56:29 +0100 <haskellbridge> <rascasse> So Im trying to use the "Actions-OnScreen" but I fail adapt the provided example from the doc to my config
2025-01-01 16:58:08 +0100 <haskellbridge> <rascasse> This is my workspaces keybind (EZConfig)
2025-01-01 16:58:08 +0100 <haskellbridge> ... long message truncated: https://kf8nh.com/_heisenbridge/media/kf8nh.com/RSwYgecbmPjjoRjEcIZkDkAa/Dhk7a0uA8oI (6 lines)
2025-01-01 16:59:48 +0100 <haskellbridge> <rascasse> The purpose is I only want this keybinding to be effective on the main screen so screen "0"
2025-01-01 16:59:48 +0100 <haskellbridge> On the secondary screen, I don't want to be able to switch to another workspace, I want it to be stick to a specific ws
2025-01-01 17:01:04 +0100 <haskellbridge> <rascasse> Reading https://hackage.haskell.org/package/xmonad-contrib-0.18.1/docs/XMonad-Actions-OnScreen.html#g:1 I need to use "viewOnScreen 0"
2025-01-01 17:01:05 +0100 <haskellbridge> But because I dont understnad Askell IU can't figure out how to apply it to my binding function above
2025-01-01 17:01:22 +0100 <haskellbridge> <rascasse> * understand
2025-01-01 17:01:28 +0100 <haskellbridge> <rascasse> * I
2025-01-01 17:10:37 +0100 <geekosaur> first off, you have to use W.view instead of W.greedyView or switching to the workspace on the other screen will move it to where you are (there's no ready way to tell which screen/workspace is focused if it's empty, so the default keeps screen focus on the primary monitor)
2025-01-01 17:11:03 +0100 <haskellbridge> <rascasse> So Im trying to use the "Actions-OnScreen" but I fail to adapt the provided example from the doc to my config
2025-01-01 17:12:10 +0100 <geekosaur> `viewOnScreen 0` would go in place of `W.view` or `W.greedyView`, but I think you don't actually want that in your keybinds as I understand it: you want to do `windows (viewOnScreen whatever "wsName")` in your startupHook
2025-01-01 17:12:55 +0100 <geekosaur> and use the standard keybinds except using W.view instead of W.greedyView so xmonad doesn't swap workspaces when you select the "pasted" one
2025-01-01 17:13:46 +0100 <geekosaur> the keybinds in OnScreen are an example of having a set of keybinds for changing the workspace on a different monitor, which I think you don't want because you said you wanted a specific workspace to stay on that monitor
2025-01-01 17:21:11 +0100 <haskellbridge> <rascasse> yes I confirm
2025-01-01 17:21:11 +0100 <haskellbridge> ... long message truncated: https://kf8nh.com/_heisenbridge/media/kf8nh.com/ebnFzZragAoPKlXKHdTvqNZh/fRL9YK48jNE (11 lines)
2025-01-01 17:21:21 +0100 <haskellbridge> <rascasse> * "\"additionalKeysP"
2025-01-01 17:21:39 +0100 <haskellbridge> <rascasse> * " \"additionalKeysP` keybinds`
2025-01-01 17:22:13 +0100 <haskellbridge> <rascasse> * "additionalKeys"
2025-01-01 17:26:02 +0100 <geekosaur> if the target workspace is visible on another screen, W.view switches to the screen in question, W.greedyView swaps the workspace on the focused screen with the one on the other screen so screen focus remains in the same place
2025-01-01 17:27:11 +0100 <geekosaur> there is no way to prevent workspace switching once you've focused the other workspace; xmonad's workspace/screen model doesn't actually permit the kind of "pinning" you want
2025-01-01 17:27:35 +0100 <geekosaur> which is why I told you initially you can't _really_ do what you want
2025-01-01 17:28:54 +0100 <geekosaur> there might be a way to conditionalize the keybinds to force you onto the other screen before a workspace switch (in fact I'm pretty sure it can be done) but it'd be very complex and not beginner level at all
2025-01-01 17:29:13 +0100 <geekosaur> and it would take me a while to work out how to do it inside a keybind
2025-01-01 17:30:16 +0100 <geekosaur> (and, uh, I was goimng to do an upgrade on my laptop today because I thought everyone else would be senisbl;e and take new years off, apparently I was wrong)
2025-01-01 17:35:32 +0100 <geekosaur> (uh, to be clear, that's not aimed specifically at you, I woke up to find lots of chatter on the bridge bot and at least one person doing things involving the cabal github bot, both of which run on my laptop, so now I have no idea when I can take it down to upgrade it…)
2025-01-01 17:35:35 +0100 <haskellbridge> <rascasse> arf it's kinda a shame such a simple behavior (user facing at least) is not doable in XMonad :/
2025-01-01 17:35:35 +0100 <haskellbridge> ... long message truncated: https://kf8nh.com/_heisenbridge/media/kf8nh.com/hEuSFKGKtyEaJTHDRLWSoAef/oQJLzxPRZXk (3 lines)
2025-01-01 17:36:52 +0100 <geekosaur> every window manager has its own model, some tnhings just don't fit those models. this particular behavior doesn't fit the dwm/xmonad model very well
2025-01-01 17:37:45 +0100 <haskellbridge> <rascasse> geekosaur: xD it's fine Im dont want to be a blocker for your laptop upgrade, go for it!
2025-01-01 17:37:53 +0100 <haskellbridge> <rascasse> * I
2025-01-01 17:38:06 +0100 <geekosaur> no, I just said it's not just you
2025-01-01 17:38:21 +0100 <geekosaur> everyone seems to have decide it's hacking day 😕
2025-01-01 17:44:47 +0100 <haskellbridge> <rascasse> all opportunities are good for hacking time ;p
2025-01-01 17:47:22 +0100 <haskellbridge> <rascasse> what about https://xmonad.github.io/xmonad-docs/xmonad-contrib/XMonad-Layout-IndependentScreens.html
2025-01-01 17:47:22 +0100 <haskellbridge> ... long message truncated: https://kf8nh.com/_heisenbridge/media/kf8nh.com/pGLzSeIZFmkRoMlgcgPvgXip/NeVJc0AAjU4 (3 lines)
2025-01-01 17:48:43 +0100Digitteknohippie(~user@user/digit) Digit
2025-01-01 17:49:13 +0100 <haskellbridge> <rascasse> using like
2025-01-01 17:49:13 +0100 <haskellbridge> ... long message truncated: https://kf8nh.com/_heisenbridge/media/kf8nh.com/QsZcTYrlnDEKBzCtnuxeINQc/wgIt7b9lKvY (3 lines)
2025-01-01 17:50:14 +0100 <haskellbridge> <rascasse> what about https://xmonad.github.io/xmonad-docs/xmonad-contrib/XMonad-Layout-IndependentScreens.html
2025-01-01 17:50:14 +0100 <haskellbridge> ... long message truncated: https://kf8nh.com/_heisenbridge/media/kf8nh.com/AALbTVDBLtyjdNkcbcLOvxgI/f22-7nh8Pr0 (3 lines)
2025-01-01 17:50:15 +0100Digit(~user@user/digit) (Ping timeout: 260 seconds)
2025-01-01 18:05:33 +0100 <geekosaur> it's a way to do it, but it's very complex to set up and breaks very easily
2025-01-01 18:18:29 +0100DigitteknohippieDigit
2025-01-01 18:19:32 +0100haskellbridge(~hackager@syn-024-093-192-219.res.spectrum.com) (Remote host closed the connection)