maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [SFOS] [Discussion] Powermenu 2 - Sailfish (https://talk.maemo.org/showthread.php?t=93587)

coderus 2014-08-18 13:51

[Must Have!] Powermenu 2 - SailfishOS
 
Uninstall old Powermenu package before installing this one.

Powermenu - fancy menu and configuration for power key actions.
Last version: v1.5.0

Tips:
  • Doublepress on Lock icon locking device with code
  • Doublepress on some toggles and applications icons opening settings page
  • Longpress on Lock icon activates Edit mode
  • In Edit mode you can reorder items with long pressing and dragging
  • In Edit mode you can disable unused toggles with single click
  • Longpress on Power icon to restart Homescreen
  • You can add Powermenu2 QuickAction in Eventsview
  • Longpress on some toggles opening extra line with options
Features:
  • Showing menu with shutdown options and shortcuts
  • Changing powerkey actions
  • Launching applications
Do not forget to open Powermenu2 icon in launcher to setup power key actions :)

Download: https://openrepos.net/content/coderus/powermenu-2
Help to translate application: https://www.transifex.com/coderus/powermenu2/
Github repo: https://github.com/CODeRUS/powermenu2
Ambience Powermenu2 patch: https://openrepos.net/content/coderu...ience-switcher

Donations are very welcome =)

https://openrepos.net/sites/default/...1-01-14-17.png

PeterSmurffiPan 2014-08-18 14:42

Re: [Discussion] Powermenu - Sailfish
 
Could please tell me what the default values were?

Didn't take a notice of them unfortunately.

coderus 2014-08-18 15:11

Re: [Discussion] Powermenu - Sailfish
 
poweroff for longtap and lock for short tap, doubletap disabled :)

Boxeri 2014-08-18 16:21

Re: [Discussion] Powermenu - Sailfish
 
Possible to answer and reject call with this?

coderus 2014-08-18 16:23

Re: [Discussion] Powermenu - Sailfish
 
if you create script and desktop file for that you can set it as action for power key.

Boxeri 2014-08-18 16:27

Re: [Discussion] Powermenu - Sailfish
 
Quote:

Originally Posted by coderus (Post 1436152)
if you create script and desktop file for that you can set it as action for power key.

Unfortunately don't have skills for that. Well, maybe some day.

Thanks for this

Morpog 2014-08-18 17:55

Re: [Discussion] Powermenu - Sailfish
 
Flashlight on/off would be be a very cool feature for double tap.

Code that makes it work via gstreamer: https://github.com/sailfishapps/Thro...king/GSTTorch2

coderus 2014-08-18 18:31

Re: [Discussion] Powermenu - Sailfish
 
Update to v0.2.2 MANDATORY!!!
If you already removed application - contact me!

Edit /usr/share/lipstick-jolla-home-qt5/qml/compositor.qml as root and remove PowerMenuDialog {} entry if you already uninstalled application and DO NOT REBOOT

#iamsorry

coderus 2014-08-18 18:34

Re: [Discussion] Powermenu - Sailfish
 
Morpog: i'm not willing to make more features. You can create script and make desktop file to set it as actino for power key, you know :)

Morpog 2014-08-18 18:36

Re: [Discussion] Powermenu - Sailfish
 
It was just an idea coderus. I hoped you could like it that much that you integrate it ;)

late88 2014-08-18 18:39

Re: [Discussion] Powermenu - Sailfish
 
Thanks coderus, great app!

I still have trouble realising the function of the unlocking.
It doesn't seem to activate the screen even though it unlocks the phone.
Am I missing something here?

coderus 2014-08-18 18:40

Re: [Discussion] Powermenu - Sailfish
 
it works how it designed to work :)

late88 2014-08-18 18:47

Re: [Discussion] Powermenu - Sailfish
 
Quote:

Originally Posted by coderus (Post 1436172)
it works how it designed to work :)

Ok I get it :)

I'd like to have the same feature as N9 did, douple tap to unlock&activate the phone.

coderus 2014-08-18 18:52

Re: [Discussion] Powermenu - Sailfish
 
Morpog: create script with echo 1 > /sys/kernel/debug/flash_adp1650/mode and add it to desktop file.

akira.pwr 2014-08-18 20:27

Re: [Discussion] Powermenu - Sailfish
 
Quote:

Originally Posted by coderus (Post 1436168)
Update to v0.2.2 MANDATORY!!!
If you already removed application - contact me!

Edit /usr/share/lipstick-jolla-home-qt5/qml/compositor.qml as root and remove PowerMenuDialog {} entry if you already uninstalled application and DO NOT REBOOT

#iamsorry

Sorry, I didn't understand, I've uninstalled and reinstalled the app, have I to run anyway that command?

revo 2014-08-18 21:02

Re: [Discussion] Powermenu - Sailfish
 
Thanks for the app, it's really useful! :)

Maybe it's possible to use this app to skip songs of Media Player and QuasarMX via Hardware Keys. That's one of the features I still miss on Sailfish.

Morpog 2014-08-18 21:03

Re: [Discussion] Powermenu - Sailfish
 
Double tap to control flash works now. If someone is interested in it I can post a small how to in here.

coderus 2014-08-18 22:44

Re: [Discussion] Powermenu - Sailfish
 
Morpog: post everything
revo: this app only launching desktop files. if you write script and associate it with desktop file you can use it with powermenu
akira.pwr: no, after update 0.2.2 you dont need to do it manually

TMavica 2014-08-19 01:53

Re: [Discussion] Powermenu - Sailfish
 
seem shutdown and reboot button still is wrongly
anyone confirm?

coderus 2014-08-19 06:39

Re: [Discussion] Powermenu - Sailfish
 
no, works fine for me :)

TMavica 2014-08-19 07:06

Re: [Discussion] Powermenu - Sailfish
 
any way to have a clean install? any config can del?

coderus 2014-08-19 07:12

Re: [Discussion] Powermenu - Sailfish
 
no, there are no configs for that. these actions hardcoded and can't work wrong initially :)

Morpog 2014-08-19 07:17

Re: [Discussion] Powermenu - Sailfish
 
Instruction for Flash script:

Create a flash.sh file in /home/nemo/ with content:

Code:

#!/bin/bash
# Toggle Flash
STATUS=$(cat /home/nemo/flash.txt)
if [ $STATUS == "0" ]
        then
        echo 1 > /home/nemo/flash.txt;echo 1 > /sys/kernel/debug/flash_adp1650/mode
        else
        echo 0 > /home/nemo/flash.txt;echo 0 > /sys/kernel/debug/flash_adp1650/mode
fi

Make the script executable:
chmod +x /home/nemo/flash.sh

Create a flash.desktop file in /home/nemo/.local/share/applications/ with content:

Code:

[Desktop Entry]
Type=Application
X-Nemo-Application-Type=no-invoker
Name=Flash
Icon=icon-launcher-default
Exec=/home/nemo/flash.sh

Open powermenu --> configuration --> choose prefered action and set it to "Application" and select Flash app. Works in locked and unlocked state.

Edit: fixed typo in desktop file code
Edit2: changed desktop file code with suggestion from coderus
Edit3: more fixes by coderus

coderus 2014-08-19 07:26

Re: [Discussion] Powermenu - Sailfish
 
here you go:
Code:

[Desktop Entry]
Type=Application
X-Nemo-Application-Type=no-invoker
Name=Flash
Icon=icon-launcher-default
Exec=/home/nemo/flash.sh

no need to use sh, set chmod +x to script file
and #!/bin/bash, not sh
and desktop file can be created under /home/nemo/.local/share/applications

Morpog 2014-08-19 07:38

Re: [Discussion] Powermenu - Sailfish
 
Changed my post with all your suggestions! Thx coderus works perfect now.

coderus 2014-08-19 07:49

Re: [Discussion] Powermenu - Sailfish
 
Morpog: can you make an icon like this, but better? http://i.imgur.com/YMsJNiY.jpg

Morpog 2014-08-19 07:54

Re: [Discussion] Powermenu - Sailfish
 
Yes I can, nice idea

Leinad 2014-08-19 09:17

Re: [Discussion] Powermenu - Sailfish
 
Is there a way to go to last used app? by double-tap for example

edit: i just noticed, it doesn't work from the lockscreen, so my question is pointless and brings up another one:

is it possible to activate it on the lockscreen?

Morpog 2014-08-19 10:00

Re: [Discussion] Powermenu - Sailfish
 
It's the gear from official settings icon.

http://abload.de/img/powermenuh1ui5.png

coderus 2014-08-19 16:45

Re: [Discussion] Powermenu - Sailfish
 
Leinad: activating menu on lockscreen is not possible. if you write script for switching app you can set it as doubletap action

btw, guiletta working on quickbar integration into powermenu, so, one day you can get recent applications list here too

Morpog: i like icon, but can you also show different colors? i'm not sure about red.

Morpog 2014-08-20 08:53

Re: [Discussion] Powermenu - Sailfish
 
More colors.

http://abload.de/thumb/powermenu-blueqwkbp.png http://abload.de/thumb/powermenu-blueishj0ja0.png http://abload.de/thumb/powermenu-greenrvjby.png http://abload.de/thumb/powermenu-greenishe5jv1.png http://abload.de/thumb/powermenu-redish6lk8o.png http://abload.de/thumb/powermenu-yellows9jcc.png http://abload.de/thumb/powermenu-yellowisht4jkr.png

coderus 2014-08-20 10:08

Re: [Discussion] Powermenu - Sailfish
 
i like blue, blue-cyan, blue-green. can you make with orange color?

Morpog 2014-08-20 11:01

Re: [Discussion] Powermenu - Sailfish
 
sure

http://abload.de/thumb/powermenu-orangex4sya.png http://abload.de/thumb/powermenu-orangeish3asy5.png http://abload.de/thumb/powermenu-orange-cyandfsqz.png http://abload.de/thumb/powermenu-orange-greevnscf.png http://abload.de/thumb/powermenu-orange-purp31sdd.png http://abload.de/thumb/powermenu-orange-redazsh4.png

lorenzo 2014-08-20 11:09

Re: [Discussion] Powermenu - Sailfish
 
plain orange is great

anssi 2014-08-20 11:36

Re: [Discussion] Powermenu - Sailfish
 
Hi!

Just registered to ask some guidance. :) I'm trying to use this app to bind my power button to skip a song in the jolla-mediaplayer, but unfortunately I have no idea how to accomplish this... If the jolla-mediaplayer could be controlled by command line (for example like "ncmpcpp next" on linux) then this woud be very easy.

So to make it clear, I'm able to use the app to launch a script by pressing a button, but I have no idea what to put in the script to skip a song.. If someone could help me with this I would be very happy, even for some tips and what should I learn to accomplish this. I'm very tired of pulling my phone out of my pocket everytime i want to change songs...

Hope this isn't a wrong place to ask this...

Cheers,
Anssi

coderus 2014-08-20 12:05

Re: [Discussion] Powermenu - Sailfish
 
unfortunately jolla mediaplayer doesnt support controlling it. use quasarmx instead, you can control it with dbus commands. and it's better than jolla one ;)

yaliang 2014-08-20 14:08

Re: [Discussion] Powermenu - Sailfish
 
it would be better if it can work when locking

coderus 2014-08-20 14:23

Re: [Discussion] Powermenu - Sailfish
 
it can't work when locking.

HtheB 2014-08-20 16:53

Re: [Discussion] Powermenu - Sailfish
 
Quote:

Originally Posted by coderus (Post 1436388)
it can't work when locking.

You can control the Jolla music player on the lockscreen with this.
So technically: Yes, you can.

coderus 2014-08-20 17:38

Re: [Discussion] Powermenu - Sailfish
 
wrong quote HtheB :)
of course we can make perfect patch for jolla-mediaplayer, but quasarmx is 1000x better imho ;)


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

vBulletin® Version 3.8.8