r/xfce • u/iamSoybi • 8d ago
theme toggle for xfce
everytime I want to switch to dark mode or light mode, I have to open settings - appearance.
so i asked gemini to make a script that will setup a toggle icon in xfce panel for switching theme mode (dark/light) and it works well. if you want to try here's the link
https://github.com/soybi/my-scripts/blob/main/setup-toggle-xfce-theme.sh
check Readme.md for details
Edit: updated the setup script, and made a reversal script. removed the hard coded default theme and made it fallback to adwaita and elementary. thank you guys for the feedback. please let me know if there is any issue. i ran it in my cachy os main machine and it worked for me really well.
UPDATE: i tested in xubuntu (minimal) and peppermint os....together with linux-health.sh.... fixed all the bugs and should work properly now. i also updated the main Readme.md and cleaned up the repo.
5
u/cincuentaanos Xubuntu 8d ago
Here's mine, very straightforward and doesn't do a lot of checks. Just toggles between two themes:
3
u/Headpuncher Xubuntu 8d ago edited 8d ago
First issue I see is I don't have any of your defaults, style theme or icons installed and they're hard-coded into the script. The XFCE settings > Appearance has defaults, so the script should probably look for those and not something system specific.
I think you've confused XFCE with your computer.
1
u/iamSoybi 8d ago
here's a video of how it works. this is my main machine. 🎉
1
u/callusbonus1967 8d ago
Problema tendría que estar usando los mismos temas que tú script o tengo que modificarlo entero para mis temas al uso. Gracias.
1
u/Responsible-Sir-5994 8d ago
Darman
1
u/gregg128gregg128 4d ago
Hi, have a look at my Theme schedule tab for Appearance settings in XFCE https://github.com/gtubolcev/xfce4-settings-theme-schedule
It has been recently accepted by XFCE devs so it should land in the 4.21.4 release: https://gitlab.xfce.org/xfce/xfce4-settings/-/merge_requests/221
Developers were not sure if sunset/sunrize feature is a good idea. Please tell me if you want it.