summaryrefslogtreecommitdiff
path: root/flatdark.sh
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2022-10-09 01:10:41 -0500
committerzachir <zachir@librem.one>2022-10-09 01:10:41 -0500
commit91cdbd9be0d677c8a832e85de9d55aecf2c236fd (patch)
tree9d43e1514d70f8cdd7ac82c6adc92e2583456780 /flatdark.sh
initialize repo
Diffstat (limited to 'flatdark.sh')
-rwxr-xr-xflatdark.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/flatdark.sh b/flatdark.sh
new file mode 100755
index 0000000..ad2a2c7
--- /dev/null
+++ b/flatdark.sh
@@ -0,0 +1,19 @@
+#!/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