r/xfce • u/iamSoybi • 2d 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.
5
u/cincuentaanos Xubuntu 2d ago
Here's mine, very straightforward and doesn't do a lot of checks. Just toggles between two themes:
3
u/Headpuncher Xubuntu 2d ago edited 2d 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 2d ago
here's a video of how it works. this is my main machine. 🎉
1
u/callusbonus1967 2d 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 2d ago
Darman