aboutsummaryrefslogtreecommitdiff
path: root/.local/share/dark-mode.d
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2023-01-29 14:11:09 +0800
committerGuangxiong Lin <[email protected]>2023-01-29 14:11:09 +0800
commitce6a9829d9b79fe584c8c391dd550e6637a3bfc6 (patch)
tree017b7ed4583d9ffd61e75b98a19b579dff70c4f6 /.local/share/dark-mode.d
parente206b98b90641bda6e14bbed087af1a58c2dc925 (diff)
downloaddotfiles-ce6a9829d9b79fe584c8c391dd550e6637a3bfc6.tar.gz
dotfiles-ce6a9829d9b79fe584c8c391dd550e6637a3bfc6.tar.bz2
dotfiles-ce6a9829d9b79fe584c8c391dd550e6637a3bfc6.zip
Add dark mode switch
Diffstat (limited to '.local/share/dark-mode.d')
-rwxr-xr-x.local/share/dark-mode.d/gtk-theme.sh8
-rwxr-xr-x.local/share/dark-mode.d/qt-theme.sh3
2 files changed, 11 insertions, 0 deletions
diff --git a/.local/share/dark-mode.d/gtk-theme.sh b/.local/share/dark-mode.d/gtk-theme.sh
new file mode 100755
index 0000000..8fd9485
--- /dev/null
+++ b/.local/share/dark-mode.d/gtk-theme.sh
@@ -0,0 +1,8 @@
+#!/usr/bin/env bash
+
+gnome_schema='org.gnome.desktop.interface'
+gtk_theme='Adwaita-dark'
+
+gsettings set $gnome_schema gtk-theme $gtk_theme
+gsettings set $gnome_schema icon-theme $gtk_theme
+gsettings set $gnome_schema cursor-theme $gtk_theme
diff --git a/.local/share/dark-mode.d/qt-theme.sh b/.local/share/dark-mode.d/qt-theme.sh
new file mode 100755
index 0000000..e87c685
--- /dev/null
+++ b/.local/share/dark-mode.d/qt-theme.sh
@@ -0,0 +1,3 @@
+#!/usr/bin/env bash
+
+sed -i 's/^style=Adwaita$/style=Adwaita-Dark/' $HOME/.config/qt5ct/qt5ct.conf