[CentOS] Antwort: Re: Difference in gnome between centos <> fedora

Thu Nov 17 10:06:30 UTC 2011
Andreas Reschke <Andreas.Reschke at behrgroup.com>

centos-bounces at centos.org schrieb am 16.11.2011 17:02:50:

> Ljubomir Ljubojevic <office at plnet.rs> 
> Gesendet von: centos-bounces at centos.org
> 
> 16.11.2011 17:03
> 
> Bitte antworten an
> CentOS mailing list <centos at centos.org>
> 
> An
> 
> CentOS mailing list <centos at centos.org>
> 
> Kopie
> 
> Thema
> 
> Re: [CentOS] Difference in gnome between centos <> fedora
> 
> Vreme: 11/16/2011 04:24 PM, Andreas Reschke piše:
> > Hello,
> > I've on my home PC CentOS 6 and Fedora 13 on different disks. When I 
log
> > on the gnome enviroment at Fedora knows exactly which programm was 
started
> > at which desktop (for example: thunderbird on desktop 1, firefox on
> > desktop 2, nautilus on desktop 3, ..). The same procedure on Centos 
takes
> > all programs on the first desktop, so I must arrange the programs on 
the
> > right desktop.
> >
> > Question: why kows the gnome of Fedora al the postions and the gnome 
from
> > CentOS doesn't? Is there a way to automaticly arrange the programs ?
> >
> 
> I have created my own customized script for moving certain apps into 
> certain Workspaces (I use 6 of them), delayed for 60 seconds. Use only 
> part of the Title Name so you avoid having empty space in the 
> $Application variable.
> 
> Here is my script:
> ProcessWindows(){
>     echo "Application= $Application"
> #    Process=$(pgrep -f "$Application")
> #    echo "Process= $Process"
> #    WindowID=`wmctrl -l -p | grep "$Application" | cut -f 1 -d " "`
> #    WindowID=${WindowID#0x}
> #    echo "WindowID= "$WindowID
>     case "$Application" in
>       "Pinger") wmctrl  -r "$Application" -t 5;;
>       "drlove at kancelarija") wmctrl  -r "$Application" -t 2;;
>       "Krusader") wmctrl -r "$Application" -t 1;;
>       "Buddy") wmctrl -r "$Application" -t 4;;
>       "Virtual") wmctrl -r "$Application" -t 4;;
>       "Music") wmctrl -r "$Application" -t 4;;
>       "Firefox") wmctrl -r "$Application" -t 0;;
>       "Skype") wmctrl -r "$Application" -t 4;;
>     esac
> # done
> }
> 
> sleep 60
> Application="Pinger"; ProcessWindows
> Application="drlove at kancelarija"; ProcessWindows
> Application="Krusader"; ProcessWindows
> Application="Buddy"; ProcessWindows
> Application="Virtual"; ProcessWindows
> Application="Music"; ProcessWindows
> Application="Firefox"; ProcessWindows
> Application="Skype"; ProcessWindows
> 
> 
> 
> -- 
> 
> Ljubomir Ljubojevic
> (Love is in the Air)
> PL Computers
> Serbia, Europe
> 
> Google is the Mother, Google is the Father, and traceroute is your
> trusty Spiderman...
> StarOS, Mikrotik and CentOS/RHEL/Linux consultant
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos

Thanks Ljubomir,

thats exactly what I'm looking for. Thats my script:

#!/bin/sh
set -x
ProcessWindows(){
    echo "Application= $Application"
#    Process=$(pgrep -f "$Application")
#    echo "Process= $Process"
#    WindowID=`wmctrl -l -p | grep "$Application" | cut -f 1 -d " "`
#    WindowID=${WindowID#0x}
#    echo "WindowID= "$WindowID
    case "$Application" in
        "Lotus") wmctrl -r "$Application" -t 0;;
        "Firefox") wmctrl -r "$Application" -t 1;;
        "Office") wmctrl  -r "$Application" -t 2;;
        "secpanel") wmctrl  -r "$Application" -t 4;;
        "resch") wmctrl  -r "$Application" -t 5;;
        "File") wmctrl  -r "$Application" -t 6;;
    esac
# done
}

sleep 15
Application="Lotus"; ProcessWindows
Application="Firefox"; ProcessWindows
Application="Office"; ProcessWindows
Application="secpanel"; ProcessWindows
Application="resch"; ProcessWindows
Application="File"; ProcessWindows

 
 
Gruß 
Andreas Reschke
________________________________________________________________

Unix/Linux-Administration
Andreas.Reschke at behrgroup.com