From 6407620ad29878b28556eec6eb99fd2fcc2b9413 Mon Sep 17 00:00:00 2001 From: Lucas Barbieri Date: Thu, 27 Jun 2024 17:20:07 -0300 Subject: [PATCH] add switch light/dark mode gtk theme script --- laptop/scripts/change-gtk.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 laptop/scripts/change-gtk.sh diff --git a/laptop/scripts/change-gtk.sh b/laptop/scripts/change-gtk.sh new file mode 100755 index 0000000..84ff657 --- /dev/null +++ b/laptop/scripts/change-gtk.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +GTKDARK="Numix-BLACK-Pomegranate" +GTKLIGHT="Orchis-Teal" + + +case "$1" in + light) + gsettings set org.gnome.desktop.interface color-scheme prefer-light + gsettings set org.gnome.desktop.interface gtk-theme "$GTKLIGHT" + ;; + dark) + gsettings set org.gnome.desktop.interface color-scheme prefer-dark + gsettings set org.gnome.desktop.interface gtk-theme "$GTKDARK" + ;; + *) exit 0 + ;; +esac