On 04/12/2017 10:26 PM, daltong defourne wrote:
> On Wednesday, April 12, 2017 at 10:08:20 PM UTC+3, Hack wrote:
>> On 04/12/2017 08:35 PM, daltong defourne wrote:
>>> On Wednesday, April 12, 2017 at 8:48:30 PM UTC+3, cooloutac wrote:
>>>> On Wednesday, April 12, 2017 at 1:16:36 PM UTC-4, daltong defourne wrote: >>>>> I know this (and similar matters) has been discussed in different places, on and off
>>>>>
>>>>> For example here:
>>>>> https://groups.google.com/forum/#!topic/qubes-users/jtjyq8N6bY0/discussion
>>>>> https://groups.google.com/forum/#!topic/qubes-users/gCklOzk9xYg
>>>>> https://github.com/QubesOS/qubes-issues/issues/2627
>>>>>
>>>>> However, now I am solidly confused and don't know what to do and how.
>>>>>
>>>>> What I want
>>>>>
>>>>> have firefox running in RedAppVM-One start on xfce desktop 1
>>>>>
>>>>> have firefox running in RedAppVM-Two start on xfce desktop 6
>>>>>
>>>>> Ideally, I'd also like to make ~all~ software from RedAppVM-One to start on desktop 1 , but even "solving for firefox" would be an okay start for me.
>>>>
>>>> I think you can do this on KDE, for xfce you probably have to install a 3rd party tool to dom0.
>>>
>>> Devilspie2 does not seem to play nice with qubes (ref: https://github.com/QubesOS/qubes-issues/issues/2627 ) but if there is a "low bloodshed" way to make it work with qubes it would be nice.
>>>
>>> And yes, I'm on xfce...
>>>
>>
>> Where do you read that Devilspie2 does not play nice with Qubes? I am
>> using both of them, and it works nicely, since months! (And I was the
>> one who started this tread…)
> Hi Hack!
>
Hi!

> I have linked to the qubes-issues thread where it seemingly came up.
> The full problem quote is:
>
> "I tried to install devilspie2 for testing purposes on Qubes. Currently, it's not work on Qubes. > Devilspie2 function get_window_name() return Windows names without AppVM labels. Therefore, it's not possible to sort windows on desktops by AppVM name."
>
> I reckon it is not actually correct and the lua scripts you provided work in Qubes 3.2 "as is"?
>

Yes, because those who failed to make it works used get_window_name() instead of get_class_instance_name()!!!

> If so, if I may ask a few questions:
> 1) do the lua provided "stick" the window to a given desktop (as in, I won't be able to send a window to a different virtual desktop even if I try) ?

Well, every time you launch a program, it will be automatically send to the chosen virtual desktop. But you can then send this program where you want.

With the script I provided, every program from "RedAppVM-One" will be send to workspace 1. But after that, if you want to send this program to workspace 6, you can.

You can customize it easily:
Change only these values:
    dom = 'RedAppVM-One';
    workspace = 1


> 2) if no, does devilspie2 provide a way to do that ?

See above.

> 3) if yes, is there a way to avoid sticking (as in, always start in desktop 1, but can be sent to any other desktop) ?

See 1)

But I repeat, once you have launched a program, you can then move it where you want.

> 4) could you please write up a quick primer on using devilspie2 with qubes (any caveats, etc?)
>

It works like a charm!

Devilspie2 is even quite flexible, but be careful, because if you write something like "RedAppVM" in dom variable, and 1 for workspace, without adding "-One", and so one to the name "RedAppVM", every new windows starting with 'RedAppVM*' will be send to the same workspace, here 1.


> Thank you very much
>

You are welcome.

--
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/ocn56k%24pk7%241%40blaine.gmane.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to