![]() |
|
Toggle light & dark themes with a launcher. - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120) +--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121) +---- Forum: Mobian on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=139) +---- Thread: Toggle light & dark themes with a launcher. (/showthread.php?tid=13383) |
Toggle light & dark themes with a launcher. - MtnSk8 - 03-14-2021 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=NighttimeCode: sudo chmod +x ~/.local/share/applications/themeswitcher.desktopLong press on the Icon to use. Save battery by switching to the light theme in bright conditions. Save your eyes at night. Cheers! |