Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change theme of flatpak apps #15

Open
laguill opened this issue Apr 22, 2024 · 0 comments
Open

Change theme of flatpak apps #15

laguill opened this issue Apr 22, 2024 · 0 comments

Comments

@laguill
Copy link

laguill commented Apr 22, 2024

Hello,

I am on xubuntu 23.10.
The script is working very well to change Yaru from light to dark on native applications.

I would like to know how to change also the theme of flatpak applications.

At the moment I have this script but not really convenient...

[Desktop Entry]
Type=Application
Terminal=false
Name=Flatpak Dark Theme Switcher
Icon=org.gnome.Settings
Exec=gnome-terminal --title "Flatpak Dark Mode Switcher" -- sh -c 'while [ 1 -eq 1 ]; do echo "Press 1 for light theme, 2 for dark theme and hit enter"; read userInput; userInput=$(echo "$userInput" | xargs); if [ "$userInput" -eq "1" ]; then theme="Adwaita"; elif [ "$userInput" -eq "2" ]; then theme="Adwaita-dark"; else clear; echo "Invalid input, try again"; continue; fi; sudo flatpak override --env=GTK_THEME=$theme; sudo flatpak override --env=QT_STYLE_OVERRIDE=$theme; clear; echo "Operation Complete"; done;'

Can the script also handle this ?

Thanks for your help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant