From 4467a9048bcf9030fc5957c4e90e5d5fe729fa5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Tue, 25 Apr 2023 05:19:48 +0300 Subject: More color related changes * Updated gtk gsettings * Now chcolors script also changes gtk's preference * Updated mako's colors to match palette changes * Change qutebrowser's color preference to auto (does it even work?) --- dotfiles/.config/mako/config | 6 +++--- dotfiles/.config/qutebrowser/config.py | 2 +- dotfiles/.config/sway/config | 10 ++++++---- dotfiles/.local/bin/chcolors | 2 ++ 4 files changed, 12 insertions(+), 8 deletions(-) diff --git a/dotfiles/.config/mako/config b/dotfiles/.config/mako/config index 9ee0488..d1d5d24 100644 --- a/dotfiles/.config/mako/config +++ b/dotfiles/.config/mako/config @@ -1,7 +1,7 @@ font=monospace 10 -text-color=#faf6e5 -background-color=#232328 -border-color=#000000 +text-color=#fcf8e2 +background-color=#212128 +border-color=#424a4d default-timeout=5000 height=700 max-visible=5 diff --git a/dotfiles/.config/qutebrowser/config.py b/dotfiles/.config/qutebrowser/config.py index 9cae0c8..bcf1139 100644 --- a/dotfiles/.config/qutebrowser/config.py +++ b/dotfiles/.config/qutebrowser/config.py @@ -80,7 +80,7 @@ c.url.start_pages = "https://takeoff.mriya.space/" c.fonts.default_size = "10pt" ## Prefer dark mode in websites that support it -c.colors.webpage.preferred_color_scheme = "dark" +c.colors.webpage.preferred_color_scheme = "auto" ## Background color of the completion widget category headers. ## Type: QssColor diff --git a/dotfiles/.config/sway/config b/dotfiles/.config/sway/config index be3c1ad..0eea7db 100644 --- a/dotfiles/.config/sway/config +++ b/dotfiles/.config/sway/config @@ -44,11 +44,13 @@ titlebar_border_thickness 2 # Use Mouse+$mod to drag floating windows floating_modifier $mod -# GTK theme and icons -set $gnome-schema org.gnome.desktop.interface +# GTK settings +set $gschema org.gnome.desktop.interface exec_always { - gsettings set $gnome-schema gtk-theme 'Adwaita-dark' - gsettings set $gnome-schema icon-theme 'Arc' + gsettings set $gschema gtk-theme 'Adwaita' + gsettings set $gschema icon-theme 'Arc' + gsettings set $gschema font-name 'monospace 10' + gsettings set $gschema color-scheme 'prefer-dark' } ##### Startup scripts and programs ##### diff --git a/dotfiles/.local/bin/chcolors b/dotfiles/.local/bin/chcolors index 9cd4270..30b520a 100755 --- a/dotfiles/.local/bin/chcolors +++ b/dotfiles/.local/bin/chcolors @@ -8,8 +8,10 @@ fi case $COLORSCHEME in dark) + gsettings set org.gnome.desktop.interface color-scheme 'prefer-light' COLORSCHEME="light" ;; *) + gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark' COLORSCHEME="dark" ;; esac -- cgit v1.2.3