Add a toggle light/dark theme command

Twice a day, I visit the settings screen to switch from the Charcoal theme to the Red Graphite theme, and back. I’d like to be able to set a default light and an default dark theme in settings, and use a keyboard shortcut as a toggle switch. This saves six clicks a day (at a price of two keystrokes).

Click a theme during dark mode, and click a theme during light mode. Each theme would then have a sun and a moon on the chosen theme. Then you can switch between light and dark mode as you like and the themes would change accordingly.

Thanks, but this doesn’t solve the problem. I do not use system wide dark/light mode alternation, but I do want to manually switch how Bear (and some other applications) look, light or dark, and do so easily.

I use the app called Gray. You can also find alternatives here. My suggestion is to first have it custom set to light and dark, and then have light/dark mode switch on the menu bar via some other app.

Did you know you can create shortcuts to switch themes in Bear? We’ve got an x-callback-url for that:

bear://x-callback-url/change-theme?theme=Dracula

Simply replace the theme name with your desired one.

Here’s a pre-made shortcut to switch to the Toothpaste theme:

Toothpaste Theme.shortcut (21.4 KB)

Thanks. I’d prefer a built-in keystroke, but this does help. How do I refer to “Red Graphite”? The space between the words breaks the script.

You need to encode the space, replace it with %20, also you can add a hotkey to it :slight_smile:

Thanks, I appreciate it.