I am trying to find out how I can move, activate, resize etc windows (managed by KDE on top of X) from the command line and am at a total loss.
I have looked at dcop, kdcop, KWin and wmctrl. None seems to work (the main problem being that they do not see all of the open windows – even Firefox is not reported – and won’t act on what they can’t see). I can find the window IDs well enough (xwininfo etc) but can’t find any way to either send them signals, or have X push them around – and Goggle (what’s that STFI, STFW or GTFW?) has not helped me. Surely there is some mechanism in X to send these sort of signals to windows?
Thoughts?
Get a real window manager! ☺
cat ~/bin/focus_fvwm
# This program finds a specific
# program to focus — it focusses a
# window that contain the string
# contained in $1
if [ -n "$*" ] ; then
search=\*”$*”\*
echo “$search” > $HOME/.nextfocus
else
search=`cat $HOME/.nextfocus`
fi
echo “`date`: $search” >> /tmp/fvwm_focus.log
#FvwmCommand “Next (\”$search\”) Function \”flipFlopFocus\”"
FvwmCommand “WindowList (\”$search\”) c c CurrentDesk, NoGeometry, CurrentAtEnd, IconifiedAtEnd”
You then bind cms-tab to focus_fvwm, to keep on cycling through the last windows you searched for:
> grep -i focus ~/.fvwm/.fvwmrc
Key Tab A CMS Exec exec fvwm_focus
Hmmmm….
[choose fvwm as wm on login]
shell:> FvwmCommand “WindowList”
[wait for 5 seconds]
No such file or directory FvwmCommand error in opening message fifo
Hmmm… note to self:
Apparently to get commands working from the console in fvwm involves a bit [a lot???] of configuration – in particular loading at least one module (FvwmCommandS)
blocker – FVWM doesn’t always automatically place windows – no obvious google to sort this out.