Xfce Forum

Sub domains
 

You are not logged in.

#1 2012-06-19 13:41:21

jeff.sadowski
Member
Registered: 2012-06-19
Posts: 1

Paging through windows from commandline?

Alt+Tab works but is there a way to bring a program to the front via script?

I'm using XFCE-4.8

I was wondering if there are any commandline tools that display the currently selected window?
If there is any commandline tool that can change the currently selected window?

I think I can use a virtual keyboard to switch between windows but I'd have no way of letting my script know when the desired window is on top.

reason:
I have a windows vm running in virtualbox that when it is minimised I'd like it to come to front and go fullscreen when someone clicks on its start icon. I have the start icon pointing to a script that currently can just start it.
I'd like to modify the script to see if it is running and bring it front and center and make it fullscreen.

Offline

#2 2012-06-19 16:14:48

stqn
Member
Registered: 2010-10-11
Posts: 174

Re: Paging through windows from commandline?

Maybe with wmctrl.

Offline

#3 2012-06-19 16:17:06

angstrom
Member
Registered: 2011-08-13
Posts: 267

Re: Paging through windows from commandline?

I don't think xfce have something like that. But there is tools to get windows status and emulate keystroke :
- wmctrl : let you maximize, minimize, etc ... windows
- xdotool : lets you programatically (or manually) simulate keyboard [...]

With those two tool and a little of scripting, you will find your way ;-)


Xfce is NOT Xubuntu. Bugs in Xubuntu don't mean that Xfce is buggy ...

Offline

Board footer

Powered by FluxBB