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)

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.


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

vBulletin® Version 3.8.8