From ad4305378983c96319711661f3a29cc9774aa55a Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Thu, 4 Jul 2024 22:22:04 +0300 Subject: [PATCH] Add dark-mode and light-mode scripts for darkman --- config.yaml | 12 ++++++++++++ dotfiles/local/share/dark-mode.d/01-gtk-theme.sh | 4 ++++ dotfiles/local/share/light-mode.d/01-gtk-theme.sh | 4 ++++ 3 files changed, 20 insertions(+) create mode 100755 dotfiles/local/share/dark-mode.d/01-gtk-theme.sh create mode 100755 dotfiles/local/share/light-mode.d/01-gtk-theme.sh diff --git a/config.yaml b/config.yaml index 6dd3d31..2032cac 100644 --- a/config.yaml +++ b/config.yaml @@ -79,6 +79,14 @@ dotfiles: src: local/bin/convert-libaom.sh dst: ~/.local/bin/convert-libaom.sh chmod: '755' + f_dark-mode-theme.sh: + src: local/share/dark-mode.d/01-gtk-theme.sh + dst: ~/.local/share/dark-mode.d/01-gtk-theme.sh + chmod: '755' + f_light-mode-theme.sh: + src: local/share/light-mode.d/01-gtk-theme.sh + dst: ~/.local/share/light-mode.d/01-gtk-theme.sh + chmod: '755' profiles: everywhere: dotfiles: @@ -110,6 +118,8 @@ profiles: - f_fuzzel.ini - f_wezterm.lua - f_convert-libaom.sh + - f_dark-mode-theme.sh + - f_light-mode-theme.sh knafeh: dotfiles: - d_vim @@ -135,3 +145,5 @@ profiles: - f_fuzzel.ini - f_wezterm.lua - f_convert-libaom.sh + - f_dark-mode-theme.sh + - f_light-mode-theme.sh diff --git a/dotfiles/local/share/dark-mode.d/01-gtk-theme.sh b/dotfiles/local/share/dark-mode.d/01-gtk-theme.sh new file mode 100755 index 0000000..42c2e95 --- /dev/null +++ b/dotfiles/local/share/dark-mode.d/01-gtk-theme.sh @@ -0,0 +1,4 @@ +#!/usr/bin/bash + +gsettings set org.gnome.desktop.interface gtk-theme "Adwaita-dark" +gsettings set org.gnome.desktop.interface color-scheme "prefer-dark" diff --git a/dotfiles/local/share/light-mode.d/01-gtk-theme.sh b/dotfiles/local/share/light-mode.d/01-gtk-theme.sh new file mode 100755 index 0000000..41d1846 --- /dev/null +++ b/dotfiles/local/share/light-mode.d/01-gtk-theme.sh @@ -0,0 +1,4 @@ +#!/usr/bin/bash + +gsettings set org.gnome.desktop.interface gtk-theme "Adwaita" +gsettings set org.gnome.desktop.interface color-scheme "prefer-light"