I figured out how to do this in python:
https://github.com/qtile/qtile/pull/1704

 - Kovas

On Mon, Apr 20, 2020 at 9:26 AM Kai Stian Olstad <[email protected]>
wrote:

> On Sun, Apr 19, 2020 at 04:14:36PM -0700, Kovas Palunas wrote:
> > Hi All,
> >
> > I'd like to be able to swap the groups displayed on my multi-monitor
> setup
> > with a keybind.  For example, if I have group "a" on monitor/screen 1
> and
> > group "s" on monitor/screen 2, I'd like to press a button and see "a" on
> > screen 2 and "s" on screen 1.  For >2 screens, it'd like this keybind to
> > "rotate" the groups among the screens.  For example, group "a" goes from
> > screen 1 to 2, group "s" goes from 2 to 3, and "d" from 3 to 1.
> >
> > Does this functionality exist anywhere?
>
> I have expeimented with qtile-cmd and almost got it.
>
> This give you the group on screen 0
>   qtile-cmd -o cmd -f screens | grep -m 1 group | cut -f4 -d"'"
>
> But I have problem with the next command, toscreen, I can't find the
> correct syntax
>   qtile-cmd -o group <group_name> -f toscreen -a 1
>
> So together it should be
>   qtile-cmd -o group $(qtile-cmd -o cmd -f screens | grep -m 1 group | cut
> -f4 -d"'") -f toscreen -a 1
>
> But I get the following error:
>   error: Sorry cannot run function 'toscreen' with arguments ['1']
>
> So if we could find the correct syntax on the last one I think this should
> work.
> This is can probably be done better in Python, but I have no clue howto.
>
>
> --
> Kai Stian Olstad
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "qtile-dev" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/qtile-dev/MnyO4rMo_M0/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/qtile-dev/20200420162616.czjofnhdo7z7d6kq%40olstad.com
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"qtile-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qtile-dev/CAPzck%3DchunFQvLQeFF72kbdQ0EcJKxMvmCqPbcrXSZY9044gow%40mail.gmail.com.

Reply via email to