Add dark-mode and light-mode scripts for darkman

This commit is contained in:
Alan Orth 2024-07-04 22:22:04 +03:00
parent 418c44e47d
commit ad43053789
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
3 changed files with 20 additions and 0 deletions

View File

@ -79,6 +79,14 @@ dotfiles:
src: local/bin/convert-libaom.sh src: local/bin/convert-libaom.sh
dst: ~/.local/bin/convert-libaom.sh dst: ~/.local/bin/convert-libaom.sh
chmod: '755' 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: profiles:
everywhere: everywhere:
dotfiles: dotfiles:
@ -110,6 +118,8 @@ profiles:
- f_fuzzel.ini - f_fuzzel.ini
- f_wezterm.lua - f_wezterm.lua
- f_convert-libaom.sh - f_convert-libaom.sh
- f_dark-mode-theme.sh
- f_light-mode-theme.sh
knafeh: knafeh:
dotfiles: dotfiles:
- d_vim - d_vim
@ -135,3 +145,5 @@ profiles:
- f_fuzzel.ini - f_fuzzel.ini
- f_wezterm.lua - f_wezterm.lua
- f_convert-libaom.sh - f_convert-libaom.sh
- f_dark-mode-theme.sh
- f_light-mode-theme.sh

View File

@ -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"

View File

@ -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"