From oneself at gmail.com Mon Aug 22 22:09:02 2016 From: oneself at gmail.com (Eyal Erez) Date: Mon, 22 Aug 2016 18:09:02 -0400 Subject: [xmonad] Prevent swapping workspaces on multi-monitor setup Message-ID: Hi, I use xmonad with two monitors. I love that I can switch workspaces in each monitor independently. I don't believe any other WM supports this feature. However, if a workspace is visible on one monitor and I hit its number on another monitor, xmonad will swap the two workspaces. For example: *focus mon A B SW [1] [2]* If I hit M-1, I get *focus mon A B ws [2] [1]* I was hoping that there's a way to change this behavior. I would like xmonad to either not do anything in this case or better yet, switch the focus on the other monitor without swapping workspaces. Thank you, -- There are 10 types of people, those who know binary and those who don't. -------------- next part -------------- An HTML attachment was scrubbed... URL: From nzeh at cs.dal.ca Mon Aug 22 22:59:29 2016 From: nzeh at cs.dal.ca (Norbert Zeh) Date: Mon, 22 Aug 2016 19:59:29 -0300 Subject: [xmonad] Prevent swapping workspaces on multi-monitor setup In-Reply-To: References: Message-ID: For cycling through workspaces (in my setup with Win-PgUp/PgDown, you can achieve what you want using moveTo Prev HiddenWS and moveTo Next HiddenWS (defined in X.A.CycleWS). For switching to workspaces, say 1..10, directly without messing with their assignment to monitors, XMonad has XMonad.StackSet.view. With the behaviour you describe, I suspect that your workspace switching keys are bound to XMonad.StackSet.greedyView. XMonad.StackSet.view simply focuses the requested workspace if it is already visible on some monitor and otherwise behaves the same as greedyView. Cheers, Norbert On Mon, Aug 22, 2016 at 7:09 PM, Eyal Erez wrote: > Hi, > > I use xmonad with two monitors. I love that I can switch workspaces > in each monitor independently. I don't believe any other WM supports > this feature. However, if a workspace is visible on one monitor and I > hit its number on another monitor, xmonad will swap the two > workspaces. > > For example: > > *focus > mon A B > SW [1] [2]* > > If I hit M-1, I get > > *focus > mon A B > ws [2] [1]* > > I was hoping that there's a way to change this behavior. I would like > xmonad to either not do anything in this case or better yet, switch > the focus on the other monitor without swapping workspaces. > > Thank you, > > -- > There are 10 types of people, those who know binary and those who don't. > > > > > > > > > _______________________________________________ > xmonad mailing list > xmonad at haskell.org > http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad > > -- Norbert Zeh Professor and Canada Research Chair Faculty of Computer Science, Dalhousie University E: nzeh at cs.dal.ca - T: +1-902-494-3154 - F: +1-902-492-1517 -------------- next part -------------- An HTML attachment was scrubbed... URL: From allbery.b at gmail.com Mon Aug 22 23:34:26 2016 From: allbery.b at gmail.com (Brandon Allbery) Date: Mon, 22 Aug 2016 19:34:26 -0400 Subject: [xmonad] Prevent swapping workspaces on multi-monitor setup In-Reply-To: References: Message-ID: On Mon, Aug 22, 2016 at 6:09 PM, Eyal Erez wrote: > I was hoping that there's a way to change this behavior. I would like > xmonad to either not do anything in this case or better yet, switch the > focus on the other monitor without swapping workspaces https://wiki.haskell.org/Xmonad/Frequently_asked_questions#Replacing_greedyView_with_view -- brandon s allbery kf8nh sine nomine associates allbery.b at gmail.com ballbery at sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From oneself at gmail.com Wed Aug 31 19:54:20 2016 From: oneself at gmail.com (Eyal Erez) Date: Wed, 31 Aug 2016 15:54:20 -0400 Subject: [xmonad] Prevent swapping workspaces on multi-monitor setup In-Reply-To: References: Message-ID: Thank you Brandon, that was _exactly_ what I was looking for. On Mon, Aug 22, 2016 at 7:34 PM, Brandon Allbery wrote: > > On Mon, Aug 22, 2016 at 6:09 PM, Eyal Erez wrote: > >> I was hoping that there's a way to change this behavior. I would like >> xmonad to either not do anything in this case or better yet, switch the >> focus on the other monitor without swapping workspaces > > > https://wiki.haskell.org/Xmonad/Frequently_asked_questions#Replacing_ > greedyView_with_view > > > -- > brandon s allbery kf8nh sine nomine > associates > allbery.b at gmail.com > ballbery at sinenomine.net > unix, openafs, kerberos, infrastructure, xmonad > http://sinenomine.net > -- *Eyal Erez <**oneself at gmail.com* *>* There are 10 types of people, those who know binary and those who don't. -------------- next part -------------- An HTML attachment was scrubbed... URL: