Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
General
cancel
Showing results for 
Search instead for 
Did you mean: 

any utility for silde show of open tabs(windows) in Linux

SOLVED
Go to solution
sethunava
Regular Advisor

any utility for silde show of open tabs(windows) in Linux

Hi,
we have Linux machines on which we have
to display the open tabs like a slide show
based on periodicall rotation

Is there any utility to do this

thanks
8 REPLIES
Matti_Kurkela
Honored Contributor

Re: any utility for silde show of open tabs(windows) in Linux

Open tabs _of what program_?

MK
MK
sethunava
Regular Advisor

Re: any utility for silde show of open tabs(windows) in Linux

Hi matti,
thanks for your response
Actually we keep NNM map console open & ALarm browser window open we need to display these windows alternatively

or consider we have firexfox is open &
kedit is open we are looking for a tool
that displays both this windows on a periodic interval
say first 10 secs firefox window
next 10 secs kedit window

this is possible in windows using tab slide show 3.1 which displays all the open tabs(window) as a slide show

we are looking for a equivalent tool in linux


thanks
Matti_Kurkela
Honored Contributor

Re: any utility for silde show of open tabs(windows) in Linux

For tabs of Firefox, there is a "Tab Slideshow" add-on available in the standard location: select "Add-ons" from the Tools menu, then click on "Get extensions" at the bottom right corner of the dialog, then search for "Tab Slideshow" on Mozilla's extension list webpage.

To switch between two or more independent programs, it would probably be necessary to use virtual desktops. Are you using KDE, Gnome or some other desktop environment/window manager? Some desktop environments might offer a way to switch virtual desktops in a scriptable manner; others won't.

If your desktop environment does not allow scripted switching between virtual desktops, you may have to start up multiple X servers on different virtual consoles, and use a "chvt" command to switch between them. This should work in just about all Linux distributions, but switching from one virtual console to another is more complicated than just switching virtual desktops, and might cause your display to blink or lose sync for a moment, which just looks ugly.

MK
MK
sethunava
Regular Advisor

Re: any utility for silde show of open tabs(windows) in Linux

Hi mutti,
thanks again for your response
we are kde 3.5.1
If possible pls tell us how to
to do what you have said

thanks
dirk dierickx
Honored Contributor

Re: any utility for silde show of open tabs(windows) in Linux

don't know of any such program. there are 2 solutions i think:

write something yourself, simply in python using the xlib module.

http://python-xlib.sourceforge.net/

you could try to use compiz or the likes for this and then use the 'expose' like feature (from apple) to display all open windows. compiz updates the windows realtime even though they are not 'active'.
Matti_Kurkela
Honored Contributor
Solution

Re: any utility for silde show of open tabs(windows) in Linux

KDE's desktop event scripting tool is named "dcop", and switching between the virtual desktops is actually one of the examples on the dcop man page.

To switch to the next virtual desktop, rolling back to the first after the last one:

dcop kwin KWinInterface nextDesktop

So the rotation utility could be as simple as this script:

----------------
#!/bin/sh

# number of seconds each virtual desktop is displayed
PERIOD=30

while true
do
# endless loop
# wait $PERIOD seconds, then switch desktops
sleep $PERIOD
dcop kwin KWinInterface nextDesktop
done
----------------

That's it!

To programmatically start your programs on different virtual desktops, use "kstart --desktop ", e.g.:

kstart --desktop 3 firefox

would start the program "firefox" on virtual desktop 3.

To set the number of virtual desktops to match the number of programs you wish to display, see KDE Control Center -> Desktop -> Multiple Desktops.

MK
MK
sethunava
Regular Advisor

Re: any utility for silde show of open tabs(windows) in Linux

Hi Friends!

Thanks for all your reply

we are able to do that with
#!/bin/bash

VIEW_1=0 #First desktop
VIEW_2=1 #Second desktop

while true; do
CURRENT_DESKTOP=$(wmctrl -d | awk '/\*/{print $1}')
case $CURRENT_DESKTOP in
$VIEW_1) wmctrl -s $VIEW_2; sleep 30 ;;
$VIEW_2) wmctrl -s $VIEW_1; sleep 30 ;;
*) wmctrl -s $VIEW_1; sleep 30 ;;
esac
done



for 2 desktops
thanks for all your ideas


thnak you
Matti_Kurkela
Honored Contributor

Re: any utility for silde show of open tabs(windows) in Linux

Great, I learned something new from this too!

Apparently wmctrl is a window-manager-independent script tool for operations like this. It supports any EWMH/NetWM compatible X Window Managers, including Enlightenment, icewm, kwin, metacity and sawfish. That means both KDE and Gnome are supported.

I knew that WM/desktop-specific tools like dcop existed, but wmctrl is better, as it should be usable on most modern Linux systems, no matter what desktop environment is used.

Thanks,
MK
MK