All is the title!
[EDIT]: I would like my script to list all current opened ROX windows (if exist), keep this list inside a temporary file, close these windows...
Code: Select all
rox -D /
Thank you for your attention.
Cordialement.
Code: Select all
rox -D /
Code: Select all
rox ~ / /usr;sleep 5;echo;wmctrl -l | awk '$4 ~ /\/|\~/ { print $4 }' > wmctrl.lst;wmctrl -c "usr";wmctrl -c "/ +T";wmctrl -c "~ +T";sleep 5;rox / ~ /usr;echo;echo "That's how it's done. :-)";echo
Code: Select all
ps | grep ROX | grep -v grep
I guess Amigo and Musher0 have done the groundwork for what you wantSorry, I should have say....
Code: Select all
xwininfo -root -tree|
awk -F'"' '(($2 ~ /^[\/\~]/) && ($4 ~ "ROX-Filer") && ($6 ~ "ROX-Filer")){print $2}'|
awk '{sub(/~/,"/root")}; 1'|
awk '{sub(/ \(/,"|")}; 1'|
awk -F'|' '{print $1}' >mywins
]
Code: Select all
rox -D /
while read line; do
rox "$line" #quote if EVER space in pathname
#sleep ?
done<mywins
Code: Select all
IFS=$'\n'
ar=($(<mywins))
rox -D /
IFS=' '
rox ${ar[*]} #no spaces in paths -right?
too fastlikely too snappy
Code: Select all
xwininfo -root -tree|awk -F'"' '(($2 ~ /^[\/\~]/) && ($4 ~ "ROX-Filer")){print $2}'>awkout
$(>mywins)
while read line; do
line=${line/\~/\/root}
echo "${line%' ('*}">>mywins
done<awkout
"acrobatics", perhaps, but working perfectly. I am nevertheless going to try your suggestion above...some1 wrote:The parsing yesterday/above contained some awk-acrobatics -
which blew up the bytecode -and perhaps also contained a speed-penalty.
I made a script called "pattern switcher", which changes windows background. It needs to close all opened ROX windows to let user directly/immediately see the result inside a single ROX window (/root/my-documents) and this is not possible if any other window stays opened. Then, if satisfied of his choice, user closes the application and, if exist, all opened windows are restored (placement on the desktop doesn't matter). I admit this is not essential (as well as the whole script! ) and could easily come across it...amigo wrote:I'm wondering why you want to close and then reopen the windows in the first place? You know they will be refreshed automatically, right?
This script, like many others I am working on, are firstly made for ToOpPy which intends, as you know it , to keep "religiously" and work strictly with JWM and ROX. In any case, it would be to difficult to adapt these scripts for them to work with all the file and window managers.musher wrote:For ex., icewm has it, wmx has it, pekwm has it;
Don't know if the latest JWM release does it?but not jwm, not echinus.
Hello, argolance.Argolance wrote:Hi,This script, like many others I am working on, are firstly made for ToOpPy which intends, as you know it , to keep "religiously" and work strictly with JWM and ROX. In any case, it would be to difficult to adapt these scripts for them to work with all the file and window managers.musher wrote:For ex., icewm has it, wmx has it, pekwm has it;Don't know if the latest JWM release does it?but not jwm, not echinus.
Perhaps!
Cordialement.
... As far as i know, I like a lot but am absolutely not a "specialist" of JWM.musher0 wrote:Well... you're a jwm specialist! If you don't know, who does?
Hi, argolance.Argolance wrote:Hello mate!... As far as i know, I like a lot but am absolutely not a "specialist" of JWM.musher0 wrote:Well... you're a jwm specialist! If you don't know, who does?
But on the other hand, we are both specialists of the digression...
So, please, let me send you a PM soon to go further!
Cordialement.