aboutsummaryrefslogtreecommitdiff
path: root/.local/share/bin
diff options
context:
space:
mode:
Diffstat (limited to '.local/share/bin')
-rwxr-xr-x.local/share/bin/java4
-rwxr-xr-x.local/share/bin/mode3
2 files changed, 3 insertions, 4 deletions
diff --git a/.local/share/bin/java b/.local/share/bin/java
deleted file mode 100755
index a189d14..0000000
--- a/.local/share/bin/java
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-# this is a stupid fix because java has no option to silence the
-# "Picked up _JAVA_OPTIONS:" message
-exec /usr/bin/java $_SILENT_JAVA_OPTIONS "$@"
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