Patch: Quick settings on power menu

Rating: 
4.789475
Your rating: None Average: 4.8 (19 votes)

Finally, SFOS 3 allows you to access quick settings from top menu.

Recommended to remove 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: Chinese (China), Czech, Danish (unfinished), Dutch, Dutch (Belgium), English, Finnish, French, German, Hungarian, 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.2.0-2: Added Chinese (China) translation
2.2.0-1: SFOS compatibility update
2.1.1-8: Updated Hungarian

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

Comments

hardy_magnus's picture

this patch is one of my favorites, but it is not compatible with newer releases. please make it work with newer versions.

matemana1991's picture

latest version works well on my Nexus 5 SFOS 2.0.4.13 but cases eventsview to no longer be on the whole width of my Nexus 4 SFOS 2.0.5.6. I fixed it

changed this line:
        width: (isLandscape && powermenuSettings.wide) ?
               Math.min(7.2*Theme.itemSizeExtraLarge, eventFeedWindow.width) : 4 * Theme.itemSizeExtraLarge

with this:

width: eventFeedWindow.width

alina's picture

Of course you can change anything as you wish, but I did that on purpose: both to make it look as a real pulley menu and to avoid excessive spacing between items.

By the way, there's an option in Settings for "wider on landscape". It would do the same for you.

gowtham's picture

when i tried to uninstall quicksettings on powermenu and it says failed to uninstall patche  ,,and doesn't work anymore , how to re install frsh one

olf's picture

Just curious: What does "A minor bug fix in wallpaper positioning (correcting horizontal offset and making it static)" in above section "This patch features:" exactly mean?
I am unable to see any difference with or without this patch under SFOS 2.0.4.14, although I tried hard, but maybe I did not look for the right things.

Thank you for this really good patch. :)

alina's picture

You will see the difference in landscape if you have the patch for home rotation. Without my patch the background of power menu (lock button) will be misplaced in comparison to home.

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!

Pages