Patch: Quick settings on power menu

Rating: 
4.75
Your rating: None Average: 4.8 (16 votes)

It's recommended to uninstall pre-1.3 versions before installing the newer ones.

Adds Quick Settings to power menu without removing ambience switcher.

2.0.0+

This patch features:

  • All your shortcuts, quick actions, and ambiences just a swipe away, everywhere from top edge
  • Settings for shortcuts and quick actions under "Power menu" settings
  • Options for additional buttons on power key menu and top menu separatedly: close, silent, device lock, reboot, home restart
  • Option for number of columns of shortcuts (3~8) – will affect both powermenu and events pulley
  • Events pulley the same as power menu in width
  • Option to remove quick settings from events pulley
  • Remove obsolete button for shortcut settings
  • A minor bug fix in wallpaper positioning (correcting horizontal offset and making it static)
  • Translation support: Czech, Danish (unfinished), Dutch, Dutch (Belgium), English, Finnish, French, German, Hungarian (unfinished), Italian, Polish, Russian, Spanish, Slovenian (unfinished), Swedish.

Help translate into your language!
Huge thanks to the translation team!

Be careful! Will conflict with other power menu and events patches, but not with Tablet UI (Quick Settings Sidebar).
Want to use other events patches? Install the version 0.3.
Requires patchmanager

Known issues:

  • Device Lock button won't work on 2.0.4
  • Close button has problems with Browser and potentially some other apps
  • Changing order of favorite settings in Power menu won't affect Events pulley and vice versa; unless you disable and re-enable the main settings.
  • With no favorite ambiences and a scrollable power menu, it will be opened from its last position.

0.7+ the only versions compatible with patch Voice call quick action 0.2+

Great thanks to @equiem for the super idea in this patch.
Thanks Coderus for Close button and BillyHalley for Profile and Restart home buttons! I used their source codes.

Source on GitHub. Donations are welcome ;)

PayPal - The safer, easier way to pay online!

Screenshots: 
Changelog: 

2.1.1-6

  • Solved icon issue with high-resolution displays (thanks to @carmenfdezb)
  • Re-added close button (thanks to @Ingvix) - (yet won't work with Browser)
  • Update version numbers based on SFOS version
  • Added Dutch (Belgium) and unfinished translations

1.6 - Quick update for SFOS 2.1.1:

  • temporarily disabled device lock and close buttons
  • removed the option "wider on landscape"

1.5 - Quick update for SFOS 2.0.4 - device lock button won't work

1.4

  • Update for SailfishOS 2.0.2
  • Updated translations: French, Polish

1.3

  • Update for SailfishOS 2.0.1
  • Added remorse popup for home restart from top menu
  • Removed that obsolete wheel button completely
  • Minor bug fixes

1.0

  • Added home restart and profile buttons
  • Close button only on top menu
  • Edit buttons separately for power-key and top menus
  • Security bug fix: edit mode disabled when device is locked
  • Security bug fix: edit mode canceled on closing menu or display blanking
  • Bug fix: successfully switch to Settings window when selecting favorite Settings pages or Quick actions, even from lock screen or device lock
  • Bug fix: now displayed correctly with no favorite ambiences
  • Updated translations: Finnish, Swedish, Spanish, Dutch, French, German, Italian, Czech

0.9

  • Bug fix: The wallpaper is static now and won't move with the content
  • Power menu settings won't be displayed before applying the patch
  • Added Dutch translation
  • Fixed Finnish translation

0.8

  • Added close button
  • Now Events pulley will have the same width as Power menu (even on landscape) – option for "wider" view is still available
  • Updated translations

0.7

  • Fix compatibility issue with patch "Voice call quick action"
  • Add translations: Spanish, Swedish, French, Finnish

0.6 - Add option to have a wider menu on landscape
0.5

  • Add option to edit number of columns for Settings Shortcuts. This will affect both powermenu and events (if enabled)
  • The option for columns will get hidden when Shortcuts are disabled

0.4

  • Move settings for shortcuts and quick actions to Power menu
  • Add option to remove quick settings from events
  • A minor bug in 0.4-3 fixed

0.3 - Add options to add reboot and device lock buttons
0.2 - dropped because of unresolved bugs

Comments

olf's picture

Thank you.

Ingvix's picture

I noticed that when app is open the close button is visible even in lock screen and if you press it there, the app is removed from switcher but is not actually closed. You can't open the app again from launcher because there's still an intance alive. Got to kill it from terminal to open it again.

EDIT: Fixed a typo.

Also the close button does not work on sailfish browser.

alina's picture

Oh, it's getting worse with each update. I'm sorry. I should add a condition to hide close button from the lock screen, but the problem with the browser needs more struggles.

Thank you for reporting by the way!

Ingvix's picture

I added !lipstickSettings.lockscreenVisible to conditions on closeButton visibility and it shows on lockscreen no more.

AA1AA's picture

Hello,

Is there a way to avoid the conflict with Powermenu ?

alina's picture

Hi,

No way, but I think if you use Powermenu, no need to use this patch.

Ingvix's picture

Device lock button doesn't work on 2.0.4. I hope you update your patch.

alina's picture

Device lock module has changed and I can't figure out how it can be used for manual locking. I'm still trying to find a solution.

fravaccaro's picture

Hi! Could you offer the option to remove even the lock screen button (and put the toggles right on top of the ambience menu)?

Furthermore, it'd be cool to have an half-swipe (like in other patches) to lock the screen or, alternatively, close the current app.

Jordi's picture

I forgot to uninstall the previous version of this patch (plus other patches) when updating to the new Sailfish OS version and now I cannot install it anymore. I tried what Coderus sais about removing the patches to install them again :

devel-su
pkcon remove ausmt
rm -rf /var/lib/patchmanager
pkcon install lipstick-jolla-home-qt5
pkcon install jolla-settings-system
pkcon install jolla-settings-networking
pkcon install jolla-settings-bluetooth

But there were some errors during the process and after installing Patchmanager again, your patch fail to install.

Any idea?

naytsyrhc's picture

I also have problems applying this patch. How to get more information on it? Are there any logs? Currently I just get the message, that the patch failed to install.

Thx.

AnttiT's picture

Did you get through this somehow? I may have the same issue, as my Patchmanager fails to unapply the patch.

How can I get rid of this patch? Although I've removed the package of this patch and done the steps above, I still have Power menu under my settings. Somehow it's got partially removed, as the menu item doesn't have an icon in settings. Also the items in Power menu settings have weird names like sailfish-patch-quicksettings-powermenu-la-profile_button instead of Profile button like in the screenshots of the patch.

Jordi's picture

Yes, alina helped me to fix this, you should contact him.

subeditor's picture

I have strange issue. If there are no favorite ambiences I can't pull quick setting out more than shown on the screenshot.

alina's picture

Which version do you use? The bug fixed in version 1.0.

subeditor's picture

Oh, thank you. Since there is no automatic notification about available update I missed it.

eson's picture

Can't apply this on SFOS 2.0.1.17 Taalojärvi.

alina's picture

Just released.

eson's picture

Sorry, I still can't apply this one.

Edit:

Same here, I got the 1.0-4 from Warehous (and still do). Latest update is working fine. Thanks!  :)

naytsyrhc's picture

Really nice patch. Thanks. Do you know, if it conflicts with "restore swipe to lock"? I uninstalled it before trying your patch but I really miss that feature. Is it possible to integrate?

alina's picture

Removing just one line, it will be compatible with mine. I'll ask the developer.

naytsyrhc's picture

Thanks for telling and cooperation with eugenio. I had the idea, if his patch could even be integrated with your powermenu such that I get 2 threshholds. One closes active app up to say 20% and up to 40% locks device. If no app is open, first threshold also locks device. What do you think?

alina's picture

It's a good idea, however complex for simple users. But to be honest this is eugenio's work, I have no idea in this. The close command is available in coderus's patch Powermenu 2, I think this should be simple for him.

humble's picture

Nice patch, work really great.

There is just one thing I am missing. If I disable swipe-from-top to close the current app, closing apps via clicking the x on the homescreen becomes tedious. There was this idea floating around in the forum (https://together.jolla.com/question/124899/close-current-app-from-ambien...). Coderus implemented this in his patch powermenu2-ambience-switcher. Would you conside adding an option for this?

I think it would also be interesting to have something like swipe-to-close when an app is open and swipe-to-lock when on homescreen oder eventview.

Thanks for all your patches and keep up the good work!

alina's picture

Thanks for your feedback!

I used Coderus's lines under his permission and it's already implemented. I'm just waiting for translations.

mano's picture

I like this very much! Almost exactly what I wish was built-in from factory :-)

coderus has  the very nice powermenu2, but it's more than I need - including a background daemon.

Is it possible to simply 'patch' the behaviour of the power button?

I'd like to change it to lock the device, not only activate the lock-screen.

Also, a "Flashlight" switcher was wonderful ;-)

Thanks,

-Mano

alina's picture

Thanks for your feedback, Mano!

Device lock with power key is possible with no patches needed. A double press will do it as you may know. If you want a single press to lock the device you can enter in Terminal:

mcetool --set-display-on-single-powerkey-press-actions=blank,devlock

You need to have mce-tools package installed. If you don't, install it by:

devel-su pkcon install mce-tools
mano's picture

Thanks a lot for your reply!

I'm aware of mcetool, but haven't had a closer look yet. Thanks so much for your hint.
I want to keep my setup as close as possible to the factory setup, that's why I will accumulate "patches", which actually are »settings lacking an UI« and deploy them via recovery-console before the first setup-wizard.

Your published "patches" are exactly things I'm missing. And I guess others too. So jolla should take them as reference and extend their UIs incorporating these settings!

Technically nothing's new to me regarding SfOS, but itself is along with all the terms and nuts and bolts like Silica etc.

Is there also a "flashlight" control via mcetool? I mean the front LED, acting as "flash" for the camera.

Thanks,

-Mano

 

alina's picture

No, mcetool doesn't have flashlight. But it has a complete documentation accessible by "mcetool --help" or "mcetool --long-help" explaining everything.

Having mcetool options in GUI is a long run wish for me. Some day I will continue GUI for mcetool to include everything. I hope!

malibu's picture

Good patch. Hope to see a swipe to lock function !

Pages