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 6 687 07-14-2021, 01:35 PM
Last Post: biketool
  Proximity / ambient light sensor antiX-Dave 7 3,361 11-20-2020, 05:27 AM
Last Post: pinephonenewbee
  After update the green light comes on then the system hangs joz_mak 6 2,269 11-11-2020, 09:23 AM
Last Post: antiX-Dave
  led light jesica 27 12,053 09-11-2020, 11:01 AM
Last Post: ergo owl

Forum Jump:


Users browsing this thread: 1 Guest(s)