maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Design (https://talk.maemo.org/forumdisplay.php?f=46)
-   -   [Announce] N900 qtedger (N9 Swipe to N900!) (https://talk.maemo.org/showthread.php?t=90724)

elros34 2013-08-31 15:56

Re: [Announce] N900 qtedger (N9 Swipe to N900!)
 
just press twice power button.

bill_klpd 2013-08-31 15:59

Re: [Announce] N900 qtedger (N9 Swipe to N900!)
 
Quote:

Originally Posted by elros34 (Post 1370877)
just press twice power button.

I didn't know this :p

bill_klpd 2013-08-31 22:34

Re: [Announce] N900 qtedger (N9 Swipe to N900!)
 
Here is a something I wrote that I thing that might help on making the app a little faster :)
(There are some names that are not right and some things that won't function but it is a small try :))
Code:

    Connections {
        target: utils
        onSignalEdge: {
            txt.text = edge
            txt2.text = activeWindow

            if (edge == "right1") //top right swipe
                        {
                            if (activeWindow == "Desktop")
                        {
                            utils.runProgram("appMenu")
                        }
                            if (activeWindow == "Menu")
                        {
                            utils.runProgram("dbus-send --type=signal --session /com/nokia/hildon_desktop com.nokia.hildon_desktop.exit_app_view")
                        }
                            if (activeWindow == "Task Manager")
                        {
                            utils.runProgram("desktop")
                        }
                            else
                        {
                            utils.runProgram("dbus-send --type=signal --session /com/nokia/hildon_desktop com.nokia.hildon_desktop.exit_app_view")
                        }       
                        }

            if (edge == "right2") //right swipe
                        {
                            if (activeWindow == "Desktop")
                        {
                            utils.runProgram("appMenu")
                        }
                            if (activeWindow == "Menu")
                        {
                            utils.runProgram("dbus-send --type=signal --session /com/nokia/hildon_desktop com.nokia.hildon_desktop.exit_app_view")
                        }
                            if (activeWindow == "Task Manager")
                        {
                            utils.runProgram("desktop")
                        }
                            else
                        {
                            utils.runProgram("dbus-send --type=signal --session /com/nokia/hildon_desktop com.nokia.hildon_desktop.exit_app_view")
                        }       
                        }

            if (edge == "right3") //bottom right swipe
                        {
                            if (activeWindow == "Desktop")
                        {
                            utils.runProgram("appMenu")
                        }
                            if (activeWindow == "Menu")
                        {
                            utils.runProgram("dbus-send --type=signal --session /com/nokia/hildon_desktop com.nokia.hildon_desktop.exit_app_view")
                        }
                            if (activeWindow == "Task Manager")
                        {
                            utils.runProgram("desktop")
                        }
                            else
                        {
                            utils.runProgram("dbus-send --type=signal --session /com/nokia/hildon_desktop com.nokia.hildon_desktop.exit_app_view")
                        }       
                        }

            if (edge == "left1") //top left swipe
                        {
                            if (activeWindow == "Desktop")
                        {
                            utils.runProgram("dbus-send --type=signal --session /com/nokia/hildon_desktop com.nokia.hildon_desktop.exit_app_view")
                        }
                            if (activeWindow == "Menu")
                        {
                            utils.runProgram("desktop")
                        }
                            if (activeWindow == "Task Manager")
                        {
                            utils.runProgram("appMenu")
                        }
                            else
                        {       
                            utils.runProgram("dbus-send --type=signal --session /com/nokia/hildon_desktop com.nokia.hildon_desktop.exit_app_view")
                        }
                        }

            if (edge == "left2") //left swipe
                        {
                            if (activeWindow == "Desktop")
                        {
                            utils.runProgram("dbus-send --type=signal --session /com/nokia/hildon_desktop com.nokia.hildon_desktop.exit_app_view")
                        }
                            if (activeWindow == "Menu")
                        {
                            utils.runProgram("desktop")
                        }
                            if (activeWindow == "Task Manager")
                        {
                            utils.runProgram("appMenu")
                        }
                            else
                        {       
                            utils.runProgram("dbus-send --type=signal --session /com/nokia/hildon_desktop com.nokia.hildon_desktop.exit_app_view")
                        }
                        }

            if (edge == "left3") //bottom left swipe
                        {
                            if (activeWindow == "Desktop")
                        {
                            utils.runProgram("dbus-send --type=signal --session /com/nokia/hildon_desktop com.nokia.hildon_desktop.exit_app_view")
                        }
                            if (activeWindow == "Menu")
                        {
                            utils.runProgram("desktop")
                        }
                            if (activeWindow == "Task Manager")
                        {
                            utils.runProgram("appMenu")
                        }
                            else
                        {       
                            utils.runProgram("dbus-send --type=signal --session /com/nokia/hildon_desktop com.nokia.hildon_desktop.exit_app_view")
                        }
                        }

            if (edge == "bottom") //bottom swipe
                        {
                            if (activeWindow == "Task Manager")
                        {
                            utils.runProgram("close all running programs")
                        }
                            else
                        {
                            utils.runProgram("wmctrl -c :ACTIVE:")
                        }

                        }

            if (edge == "top") //top swipe

                        {
                            utils.runProgram("Hildon Status Menu")
                        }
        }
    }


enne30 2013-09-22 20:30

Re: (Help) N9 Swipe to N900
 
Quote:

Originally Posted by elros34 (Post 1358752)
Latest and last version.
Now most of the programs may have their own profile.
Close option close all osso-xterm windows and doesn't work on microb instead, better use:
Code:

dbus-send --session --type=method_call --print-reply --dest="com.nokia.osso_browser" /com/nokia/osso_browser/request com.nokia.osso_browser.request string:"close_window"

hi elros34, I tried above command but no success.. maybe I have to use new command 'dbus-signal'? how to do it?

thanx in advance :)

elros34 2013-09-22 21:05

Re: [Announce] N900 qtedger (N9 Swipe to N900!)
 
sorry my bad I corrected second post.

bill_klpd 2013-09-22 21:09

Re: [Announce] N900 qtedger (N9 Swipe to N900!)
 
Quote:

Originally Posted by elros34 (Post 1358752)
Latest and last version.
Now most of the programs may have their own profile.
Close option close all osso-xterm windows and doesn't work on microb instead, better use:
Code:

dbus-send --session --type=method_call --print-reply --dest="com.nokia.osso_browser" /com/nokia/osso_browser/request com.nokia.osso_browser.close_window

Is this the latest version? :D

elros34 2013-09-22 21:11

Re: [Announce] N900 qtedger (N9 Swipe to N900!)
 
There is nothing to improve so..

bill_klpd 2013-09-22 21:34

Re: [Announce] N900 qtedger (N9 Swipe to N900!)
 
I will try it now :D
Thanks for your great work ;)

bill_klpd 2013-09-22 21:42

Re: [Announce] N900 qtedger (N9 Swipe to N900!)
 
One more thing!
How do we edit the profile of each program? :)

By the way what's going on with you qt lockscreen? :D

elros34 2013-09-22 21:52

Re: [Announce] N900 qtedger (N9 Swipe to N900!)
 
Just press "Add new".
Quote:

Originally Posted by bill_klpd (Post 1376146)
By the way what's going on with you qt lockscreen? :D

I don't have much time now. It's usable but buggy
http://www.youtube.com/watch?v=qWJip2AwmI4


All times are GMT. The time now is 16:10.

vBulletin® Version 3.8.8