Toggle light & dark themes with a launcher.
#1
A launcher to toggle between the stock light and dark themes in Mobian:

goes in:      ~/.local/share/applications/
name it:      themeswitcher.desktop (or whatever name with .desktop extention)

Code:
[Desktop Entry]
Actions=Light;Dark;
Type=Application
Name=Day-Night
GenericName=Theme Switch
Comment=Theme Switch
Icon=contrast
TryExec=gsettings
Exec=notify-send ThemeSwitcher "Long Press for Theme Color Options"
Terminal=false
Categories=Settings;Theme;Colors;Session
MimeType=
Keywords=Theme,Colors

[Desktop Action Light]
Exec=gsettings set org.gnome.desktop.interface gtk-theme 'Adwaita'
Name=Daytime

[Desktop Action Dark]
Exec=gsettings set org.gnome.desktop.interface gtk-theme 'Adwaita-dark'
Name=Nighttime
Then make it executable:
Code:
sudo chmod +x ~/.local/share/applications/themeswitcher.desktop

Long press on the Icon to use.

Save battery by switching to the light theme in bright conditions.
Save your eyes at night.

Cheers!
  Reply


Messages In This Thread
Toggle light & dark themes with a launcher. - by MtnSk8 - 03-14-2021, 12:20 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Dark theme (on Mobian)? TRS-80 10 7,485 08-10-2022, 07:49 PM
Last Post: jurop88
  Dark Mode biketool 3 2,391 03-17-2022, 06:55 PM
Last Post: jurop88
  Notification light when entering low power Barugon 5 3,453 11-22-2021, 06:20 AM
Last Post: beta-user
  Proximity / ambient light sensor antiX-Dave 7 8,142 11-20-2020, 05:27 AM
Last Post: pinephonenewbee
  After update the green light comes on then the system hangs joz_mak 6 6,507 11-11-2020, 09:23 AM
Last Post: antiX-Dave
  led light jesica 27 29,937 09-11-2020, 11:01 AM
Last Post: ergo owl

Forum Jump:


Users browsing this thread: 1 Guest(s)