summaryrefslogtreecommitdiff
path: root/flatdark.sh
blob: ad2a2c774c1e76ceb4267f35f75202180482d4c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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