Remember 'Always on visible workspace'

killermoehre killermoehre at gmx.net
Wed Jul 25 08:42:11 CEST 2012


Am 24.07.2012 16:31, schrieb Trayan Denev:
> Hmmm, I have a problem.
> I create a script that will set chat clients to workspace 2. The code of
> the script is this:
>
>         --Skype set to workspace 2
>
>         if (string.find(get_application_name(), " - Skype") ~= nil) then
>
>                  debug_print("Skype detected. Set it to workspace 2.");
>
>                  set_window_workspace(2);
>
>         end
>
>
>         --Pidgin set to workspace 2
>
>         if (get_application_name() == "Buddy List") then
>
>                  debug_print("Pidgin detected. Set it to workspace 2.");
>
>                  set_window_workspace(2);
>
>         end
>
>
> If I start menually  `devilspie2 --debug` everything is OK - terminal is
> visible on every workspace and Skype and Pidgin go to workspace 2.
>
> I put `/usr/local/bin/devilspie2 --debug > /tmp/devilspie2.log &` in
> Settings Manager->Session and Startup->Application Autostart. After xfce
> restart terminal is visible on every workspace but skype and pidgin are
> not set to workspace 2. I check the log file /tmp/devilspie2.log but it
> is empty.
>
> Can you tell me what is wrong here?

First, install devilspie from the distribution repository. Second, 
remove the "&" after the command in autostart (really, you don't need 
job control from bash there). Third, use gdevilspie as frontend for 
devilspie. Make some things a lot easier.

Regards


More information about the Xfce mailing list