maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   [ANN] Cyclotron - CLI tools to cycle between app windows (https://talk.maemo.org/showthread.php?t=88203)

qwazix 2012-12-11 16:00

Re: [ANN] Cyclotron - CLI tools to cycle between app windows
 
you can run it with nohup in front, it should stay running after you close the terminal.

Edit: Silly idea, activate it when the proximity sensor is closed and the phone tilts, so that closing the proximity sensor and tilting left cycles left etc...

mousse04 2012-12-11 16:29

Re: [ANN] Cyclotron - CLI tools to cycle between app windows
 
Quote:

Originally Posted by ThraxZzz (Post 1303533)
OMG! it works ! Thanks thedead1440! :) really glad to have you in this forum,also,thanks thp for this :)

Cheers!

thedead is the best ;)

thedead1440 2012-12-12 08:38

Re: [ANN] Cyclotron - CLI tools to cycle between app windows
 
I deleted my earlier post as thanks to brkn i've managed to add the Dbus calls!

Also he has helped me to make the script cleaner.

As before Exec=/bin/sh /home/user/cyclotron.sh allows 1 icon to toggle between killing/starting the switcher as well as printing in banner whether it is started/stopped

Contents of /home/user/cyclotron.sh (note icon take from project page; if you don't want the icon just replace the "path/to/icon/" string with '') :
Code:

#!/bin/sh

SERVICE="/opt/cyclotron/bin/switcher"

if ps -ae | grep -v grep | grep "$SERVICE" > /dev/null
then
        kill `pgrep -f "$SERVICE"`
        dbus-send --print-reply --dest=com.meego.core.MNotificationManager /notificationmanager com.meego.core.MNotificationManager.addNotification uint32:0 uint32:0 string:'device' string:'' string:"Cyclotron stopped" string:'' string:"/usr/share/icons/hicolor/80x80/apps/cyclotron.png" uint32:0
else
        "$SERVICE" &
        dbus-send --print-reply --dest=com.meego.core.MNotificationManager /notificationmanager com.meego.core.MNotificationManager.addNotification uint32:0 uint32:0 string:'device' string:'' string:"Cyclotron started" string:'' string:"/usr/share/icons/hicolor/80x80/apps/cyclotron.png" uint32:0

fi


The last optional stage if needed would be to make it a toggle like Piratebox which shows the status although I'm not very sure about implementing a toggled icon like Piratebox due to speed issues...


I understand the above may be very basic for most so please ignore it; I'm just sharing what I managed for my set-up ;)


N.B. The above has been edited to point everything to cyclotron instead of generic names like switcher or cycle as well as an icon has been added which can be gotten from the project page. Screenshots for the above can be viewed here and here...

Kabouik 2012-12-12 09:29

Re: [ANN] Cyclotron - CLI tools to cycle between app windows
 
Quote:

Originally Posted by thedead1440 (Post 1303707)
I understand the above may be very basic for most so please ignore it; I'm just sharing what I managed for my set-up ;)

I wouldn't be that sure. There are many people here who don't post often because they're just users and not devs, but they like when "basic" stuff like that is provided. Some of them talk often though they don't know anything, like me. :o

Thanks.

zaidk9 2012-12-13 04:25

Re: [ANN] Cyclotron - CLI tools to cycle between app windows
 
how to use it
installed but nothing happened

bibek 2012-12-13 07:19

Re: [ANN] Cyclotron - CLI tools to cycle between app windows
 
For the lazy guys like me, I created few desktop files and a png icon.
After you install the cyclotron deb file, copy the .desktop files to /usr/share/applications

and copy the icon to usr/share/icons/hicolor/80x80 (optional)

you'll have four icons for starting, killing swutcher, previous window, and next window.
you can link these to myMoves to have a swipey ui switching running :)

http://dl.dropbox.com/u/30937627/Cyclotron.rar

qwazix 2012-12-13 20:46

Re: [ANN] Cyclotron - CLI tools to cycle between app windows
 
Systemui is still opensource so it is possible (if somebody wants to hack it) to implement swipe on the statusbar (a bit hard to hit though) to switch between windows.

coderus 2012-12-13 21:05

Re: [ANN] Cyclotron - CLI tools to cycle between app windows
 
then it will be only next window switch...

bnwg 2012-12-14 13:36

Re: [ANN] Cyclotron - CLI tools to cycle between app windows
 
Thxk. This is awesome.
I use this by ProfileMatic with custom action. Now I can switch between apps when the device is awake and disable it when it's idle.

veeall 2012-12-14 15:50

Re: [ANN] Cyclotron - CLI tools to cycle between app windows
 
Does the new version of this program only flips one app per keypress or continously (when clicking and holding volume button down) like the first version did? I'd prefer the second behaviour to be disabled, no use for it at all, it just gets in the way too often. Please share an info if it can be disabled.


All times are GMT. The time now is 23:02.

vBulletin® Version 3.8.8