Ferdi: Scheduled dark mode.

Created on 9 Jun 2020  路  9Comments  路  Source: getferdi/ferdi

Is your feature request related to a problem? Please describe.
I have my system set up to switch between light and dark themes depending on time, it'd be nice if Ferdi could comply with that.

Describe the solution you'd like
There could be an option, in addition to enabling dark mode, to schedule dark mode; i.e. dark mode from 20:00 to 06:00. The functionality is already there for scheduled do-not-disturb, so I'd imagine this is simple to implement.

[Status] Stale enhancement wontfix but contributions are welcome

Most helpful comment

Issue-Label Bot is automatically applying the label enhancement to this issue, with a confidence of 0.97. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

All 9 comments

Issue-Label Bot is automatically applying the label enhancement to this issue, with a confidence of 0.97. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

This is a good idea, but having the scheduled do-not-disturb doesn't really help here as it uses a method for checking the time that can't really be used with this.

You should however already be able to automatically switch modes if you have "Synchronize dark mode with my OS's settings" enabled and have your system switch automatically.

Now that I've read my initial comment again I don't think I was very clear. What I meant is that it'd be nice to have both options, one based on time, and one based on OS theme.

Yes, I already understood that. I just wanted you to know that this would be an alternative way you can already achieve this with as this probably won't be implemented in the near future.

Synchronize dark mode with my OS's settings

@vantezzen where is the "Synchronize dark mode with my OS's settings" you're talking about? Is this the same as what I'm suggesting here? https://github.com/getferdi/ferdi/issues/833

Thanks!

ok, just realized it's already available in win and mac, this is amazing, opened thread for linux here: #833

Synchronize dark mode with my OS's settings

@vantezzen where is the "Synchronize dark mode with my OS's settings" you're talking about? Is this the same as what I'm suggesting here? https://github.com/getferdi/ferdi/issues/833

Thanks!

Yes and no. I'm suggesting that and the ability to schedule it through Ferdi. So you'd have two possibilities:

  1. Ferdi follows the OS schedule to switch between light and dark.
  2. Ferdi follows its own schedule to switch between light and dark. In this option Ferdi could make use of the code already written for the scheduled do-not-disturb feature. So this option would be as simple putting se preexisting code together, and adding an entry to the setting page.

+1 for this. I'm using Ferdi on macOS High Sierra which does not sync "dark appearance" with Ferdi. So it would be good to be able to schedule dark mode in Ferdi directly.

On other apps like Things and PDF Expert, I can script the appropriate menu bar commands to switch dark mode via Applescript, but unfortunately Ferdi names the the menu bar item "Toggle Dark Mode" so this isn't possible because there is no way to know what mode Ferdi is currently in. If the menu bar item was instead named "Switch to dark mode" and "Switch to light mode" then this would work.

For clarity: this is how I do this for Things using Applescript:

tell application "System Events"
    if dark mode of appearance preferences is false then
        tell process "Things"
            set frontmost to true
            click menu item "Light" of menu of menu item "Appearance" of menu "View" of menu bar 1
        end tell
    else
        tell process "Things"
            set frontmost to true
            click menu item "Dark" of menu of menu item "Appearance" of menu "View" of menu bar 1
        end tell
    end if
end tell

This issue has been automatically marked as stale because it has not had recent activity. Please check if this issue is still relevant and please close it if it's not. This will make sure that our open issues are actually of use and reduce the list of obsolete issues. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AP-Hunt picture AP-Hunt  路  3Comments

dzg picture dzg  路  3Comments

ammarmalhas picture ammarmalhas  路  3Comments

alegiglio picture alegiglio  路  3Comments

probablykasper picture probablykasper  路  4Comments