[kde-linux] Programmed (bash, cron) desktop switch

Kevin Krammer kevin.krammer at gmx.at
Thu Sep 20 21:44:35 UTC 2007


On Thursday 20 September 2007, Andrew Walbran wrote:
> On Fri, 21 Sep 2007 9:27:25 am jim at okgeosurvey1.gov wrote:
> > display desktop 1 xx05 xx60 minutes
> > after every hour, and display
> > desktop 2 from xx00 to xx55,
> > or more complicated pattern.
> >
> > I know how to use cron.
> >
> > What I do not know is the
> > bash command which will change
> > desktops.
> >
> > If it exists, I am looking for
> > a generic bash(?) command which
> > will switch desktop xx to desktop
> > yy.
>
> You should be able to do this with DCOP. e.g. from the shell:
> $ dcop kdesktop KDesktopIface switchDesktops 1

Or using the interface of KWin

% dcop kwin KWinInterface setCurrentDesktop $NUM

dcop either requires to have $DISPLAY set to the one the KDE session uses, or, 
if run as root, using the --all-users --all-sessions switches.

Cheers,
Kevin

-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-linux/attachments/20070920/24b96926/attachment.sig>


More information about the kde-linux mailing list