#!/bin/sh while true; 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