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


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

Forum Jump:


Users browsing this thread: 1 Guest(s)