![]() |
[ANN] Cyclotron - CLI tools to cycle between app windows
This is in very early stages, and no GUI is provided (only CLI tools). Source code for enumerating and switching between windows is provided (it's just Xlib + EWHM stuff). Hope this can be put to good use:
http://thp.io/2012/cyclotron/ Ideally we'd integrate this into the mcompositor swipeplugin and make it so that swiping left/right would switch between running apps, just like on webOS and BB Playbook OS. But the swipeplugin is closed source, and reimplementing it from scratch just to add this feature is not something I want to do ;) |
Re: [ANN] Cyclotron - CLI tools to cycle between app windows
Just 10 minutes ago I was trying this out and wondering why no Announce thread and its here :D
It works nice and seamlessly with the volume buttons; MyMoves takes that bit longer to register making it not as seamless... Only downside of using volume buttons is not being able to use it to control music player's volume but those buttons are useful mainly when the screen is locked on-the-go during which time switcher can be killed :D |
Re: [ANN] Cyclotron - CLI tools to cycle between app windows
I'm no programmer, thats why i cannot contribute, but i tried the switcher app and while it worked, it is too sensitive and it flips through open apps like mad if i accidentally hold down volume button too long. Can this be done so that key release switches an app?
Also can homescreen be excluded from swither? I realise it is your free time and will to implement this. But maybe you'll want to make an purchasable app later? I personally think it would be nice addition to n9. edit: Or i could add 'next' and 'previous' buttons to quicklaunch running a cycle app, that would be nice too, i'm not using quick launch too often anyway. Just a thought. |
Re: [ANN] Cyclotron - CLI tools to cycle between app windows
Good Job thp! :) Keep it up :) hope to have it more like 'permanent' as in,i can close the terminal and it still works...
|
Re: [ANN] Cyclotron - CLI tools to cycle between app windows
Quote:
The process runs in a not-intrusive manner... |
Re: [ANN] Cyclotron - CLI tools to cycle between app windows
Im no developer :P
|
Re: [ANN] Cyclotron - CLI tools to cycle between app windows
Quote:
For the stop change the Exec= to killall switcher and done ;) Of course once you read sample .desktop files you can see how to change the name, icon etc and you are set :) See, no developer knowledge required ;) Edit: When i mean take any .desktop file, take an application's .desktop and use cp -R to make another copy in the same directory and use your favourite text editor like nano, vi etc to do the changes... Of course you could the above using sed in one-line if you are comfortable with it; its all upto your personal preferences :D |
Re: [ANN] Cyclotron - CLI tools to cycle between app windows
Hmmm,so,i will need two icons? One for kill,one for it to activate? :)
|
Re: [ANN] Cyclotron - CLI tools to cycle between app windows
Quote:
Of course that is if you intend to use Volume Buttons; you can make icons with /opt/cyclotron/bin/cycle which you can link as an application to launch in MyMoves too which won't require killing... As thp says on his page, use your imagination; i tried the volume buttons and MyMoves and prefer to stick to volume buttons...Of course you can use quicklaunch bar for it or think of something else too :) |
Re: [ANN] Cyclotron - CLI tools to cycle between app windows
OMG! it works ! Thanks thedead1440! :) really glad to have you in this forum,also,thanks thp for this :)
Cheers! |
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... |
Re: [ANN] Cyclotron - CLI tools to cycle between app windows
Quote:
|
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 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... |
Re: [ANN] Cyclotron - CLI tools to cycle between app windows
Quote:
Thanks. |
Re: [ANN] Cyclotron - CLI tools to cycle between app windows
how to use it
installed but nothing happened |
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 |
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.
|
Re: [ANN] Cyclotron - CLI tools to cycle between app windows
then it will be only next window switch...
|
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. |
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.
|
Re: [ANN] Cyclotron - CLI tools to cycle between app windows
Quote:
|
Re: [ANN] Cyclotron - CLI tools to cycle between app windows
I thought for now there should already be a new version out. Sorry, i like the app, but i keep accidentally flippin' over multiple appwindows at once. Also, home screen is on the list of running apps but lacks nice animation when switched to, this seems halfly done, and while you can get to homescreen by swiping there's no need for it to appear in apps switcher.
|
Re: [ANN] Cyclotron - CLI tools to cycle between app windows
Quote:
The "nice animation" is something that's totally dependent on the window manager (mcompositor / swipeplugin), I didn't do anything there. As far as excluding the home screen view from the application switching goes, this could be implemented (to exclude it from the list), but I thought it was kind of nice to have it in there. I'll think about maybe removing it in a future version - but first, I think I'll have a look at systemui (thanks qwazix for the great idea!). Swiping left/right on the statusbar seems doable, I'd just need to figure out where the input handling for that is (help here is welcome of course). |
Re: [ANN] Cyclotron - CLI tools to cycle between app windows
WIP status bar interaction: http://www.youtube.com/watch?v=ARs3wABmXZA
Works great so far, but needs openmode (just copy over a replacement libmeegotouchviews) or inception (would also require either rebuilding libmeegotouch packages or re-packaging the existing .deb with a new libmeegotouchviews). Also a little problematic - if you swipe down without hitting the status bar, you would close the app. Swiping left/right and staying on the status bar also works (and avoids accidental closing), but does open the status bar menu sometimes for some reason (still have to investigate). Also QML apps not working right now (probably needs qt-components changes). |
Re: [ANN] Cyclotron - CLI tools to cycle between app windows
Could this be integrated with swipe manager?
|
Re: [ANN] Cyclotron - CLI tools to cycle between app windows
Quote:
|
Re: [ANN] Cyclotron - CLI tools to cycle between app windows
Maybe ditching the swipe plugin altogether and using the one from nemo?
|
Re: [ANN] Cyclotron - CLI tools to cycle between app windows
Status Bar Integration ready for a first round of brave testers.
Patches and build instructions: http://thp.io/2012/cyclotron/ Binaries and installation instructions: http://o.thp.io/tmp/cyclotron-statusbar/ Updated video: http://youtu.be/_Nxdeza6X84 Feedback welcome. Read the instructions carefully. Make backups. Be prepared to reflash. Enjoy! |
Re: [ANN] Cyclotron - CLI tools to cycle between app windows
The latest version works very nicely :)
Thanks thp! Noticed that this version doesn't base itself on cyclotron itself but on the qt-components and libmeegotouchviews patched files so does this mean the ability to enable/disable on-demand is lost permanently? Edit: Just noticed a side-advantage (?) that if the screen is locked and a notification arrives, even after a minute or two unlocking the screen still shows the notification in the status bar... Edit 2: Usually when clicking the status bar to open it, there is no sound but during closing it there is a click sound... This persists but what I wish to request for a consistent experience is that while switching between apps this sound doesn't occur; currently, it alternates i.e. one swipe comes without any sound and the second swipe has the sound... Edit 3: Also is it deliberate that when swiping right, the home-screen is excluded from the carousel but swiping left includes the home-screen too? Didn't find this in the project page but then again I may have been blinded by my excitement to try the new implementation :D |
Re: [ANN] Cyclotron - CLI tools to cycle between app windows
Looks almost flawless, except that windows always slide in from the left. :)
|
Re: [ANN] Cyclotron - CLI tools to cycle between app windows
Works great! Thanks thp :)
|
Re: [ANN] Cyclotron - CLI tools to cycle between app windows
Quote:
Quote:
Quote:
Quote:
|
Re: [ANN] Cyclotron - CLI tools to cycle between app windows
Well, for bragging purposes the volume buttons seem to be better-suited, then. ;)
|
Re: [ANN] Cyclotron - CLI tools to cycle between app windows
Really great to see the project moving forward and achieving new possibilities. Haven't tested the status bar integration yet, maybe a little too lazy to flash if I screw up.
Would like to know if you've something more easy in plan for the *common* users? |
Re: [ANN] Cyclotron - CLI tools to cycle between app windows
Quote:
|
Re: [ANN] Cyclotron - CLI tools to cycle between app windows
seems to work as expected. Thanks for this, it's very useful.
|
Re: [ANN] Cyclotron - CLI tools to cycle between app windows
I have noticed a bug whereby when unlocking the screen, after swiping the lock-screen away, the phone locks to standby screen again...Its very random; at times 1 additional unlock allows you access while today in a meeting the worst I suffered was 5 attempts required...
Edit: Following the two posts below I have uninstalled harmattan-power-menu and will try it today if the bug doesn't re-surface it means its a harmattan-power-menu bug not cyclotron... Edit 2: After several days of testing I confirm this is not a cyclotron bug; it happened only while harmattan-power-menu was installed so maybe its the latter that caused it. |
Re: [ANN] Cyclotron - CLI tools to cycle between app windows
never happened.
|
Re: [ANN] Cyclotron - CLI tools to cycle between app windows
never happen too
|
Re: [ANN] Cyclotron - CLI tools to cycle between app windows
Just in case I want to revert back to my default meegotouch and qt comps after trying it out? What should I do? Which files to backup n how to restore them?
|
All times are GMT. The time now is 23:08. |
vBulletin® Version 3.8.8