PDA

View Full Version : [other] Window handlig - fluxobx



kortelainen
November 9th, 2008, 04:44 PM
I'm having a little problem.
I'm running fluxbox and im not a great fan of the toolbar, so my final goal would be not to have it at all. To make this possible I need some things to work without it.

My main problem is the open windows I use. When I minimize them, obviously, they go to the toolbar.What is need is somekind of terminal command/script to make them rise again. With this command I'd want to write wich window I'd like to have back up. Exampel; Typing "rise mozilla" would rise the mozilla window from being minimized.

Is there anyway to do this?

Another thing would be the text colors of the toolbar, somehow they are transparent so when I try to make my toolbar transparent, they disappear with it. How can I change these colors?

Sorry if I posted in the wrong section.
Thx for reading 'n helping

RedSquirrel
November 9th, 2008, 10:22 PM
Another thing would be the text colors of the toolbar, somehow they are transparent so when I try to make my toolbar transparent, they disappear with it. How can I change these colors?

That is controlled by the style's theme file. If you want to modify one of the default styles, copy it from /usr/share/fluxbox/styles to ~/.fluxbox/styles.

You might want to look at the man page for fluxstyle.


man fluxstyle

kerry_s
November 9th, 2008, 11:20 PM
move it to your right click:

[workspaces] (Workspace List)

RedSquirrel
November 10th, 2008, 02:12 AM
removed

spupy
November 10th, 2008, 03:19 AM
winname=`wmctrl -l | grep -o "$1" | tail -n 1 `

winid=`wmctrl -l | grep -m 1 "$1" | awk '{print $1}'`
if [[ $3 = last ]]
then
winid=`wmctrl -l | grep "$1" | tail -n 1 | awk '{print $1}'`
fi

if [[ $winname = "$1" ]]
then
wmctrl -i -a $winid
wmctrl -i -r $winid -b remove,shaded
else
$2 &
fi

This script requires the little program called wmctrl.
Type

scriptname Firefox
to bring up the first window with Firefox in the name. You can also call it like that:

scriptname Firefox firefox
Now if it doesn't find a window with "Firefox" it will execute the command given as the second argument - firefox. Effectively that means that if firefox is not open, the script starts it, but if it is running, it shows you the window.