diff options
author | lonkaars <loek@pipeframe.xyz> | 2024-02-12 09:58:02 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2024-02-12 09:58:02 +0100 |
commit | 81c0e68b44ac1b994df2459c07f4499c81f0ad23 (patch) | |
tree | 33c13e87f46fc15895fe48ed0e4f28d81ba670d4 /.local/share/bin/mode | |
parent | 71bbe1752e1b22ec177a0634866f0c38022606c0 (diff) |
update dotfiles
Diffstat (limited to '.local/share/bin/mode')
-rwxr-xr-x | .local/share/bin/mode | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/.local/share/bin/mode b/.local/share/bin/mode index 60683b6..703515f 100755 --- a/.local/share/bin/mode +++ b/.local/share/bin/mode @@ -83,10 +83,13 @@ EOF switch_gtk() { GTK_3_SETTINGS_INI="$XDG_CONFIG_HOME/gtk-3.0/settings.ini" + GTK_4_SETTINGS_ENV="$XDG_CONFIG_HOME/gtk-4.0/env" if [ $1 = "light" ]; then + sed 's/^\(export\s\+GTK_THEME=.\+\)-Dark\(.*\)$/\1-Light\2/g' -i "$GTK_4_SETTINGS_ENV" sed "s/-Dark/-Light/" -i "$GTK_3_SETTINGS_INI" sed "s/gtk-application-prefer-dark-theme.*/gtk-application-prefer-dark-theme=false/" -i "$GTK_3_SETTINGS_INI" else + sed 's/^\(export\s\+GTK_THEME=.\+\)-Light\(.*\)$/\1-Dark\2/g' -i "$GTK_4_SETTINGS_ENV" sed "s/-Light/-Dark/" -i "$GTK_3_SETTINGS_INI" sed "s/gtk-application-prefer-dark-theme.*/gtk-application-prefer-dark-theme=true/" -i "$GTK_3_SETTINGS_INI" fi |