From 533fb7aa502e25c52f224cea30011f7692948acb Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Thu, 30 Jan 2025 16:18:23 +0900 Subject: NixOS fix for applying GTK themes and cursors on initial boot --- config/hypr/initial-boot.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'config/hypr/initial-boot.sh') diff --git a/config/hypr/initial-boot.sh b/config/hypr/initial-boot.sh index 4d2d6aaa..474a37a7 100755 --- a/config/hypr/initial-boot.sh +++ b/config/hypr/initial-boot.sh @@ -36,7 +36,16 @@ if [ ! -f ~/.config/hypr/.initial_startup_done ]; then gsettings set org.gnome.desktop.interface icon-theme $icon_theme > /dev/null 2>&1 & gsettings set org.gnome.desktop.interface cursor-theme $cursor_theme > /dev/null 2>&1 & gsettings set org.gnome.desktop.interface cursor-size 24 > /dev/null 2>&1 & - + + # NIXOS initiate GTK dark mode and apply icon and cursor theme + if [ -n "$(grep -i nixos < /etc/os-release)" ]; then + gsettings set org.gnome.desktop.interface color-scheme "'$color_scheme'" > /dev/null 2>&1 & + dconf write /org/gnome/desktop/interface/gtk-theme "'$gtk_theme'" > /dev/null 2>&1 & + dconf write /org/gnome/desktop/interface/icon-theme "'$icon_theme'" > /dev/null 2>&1 & + dconf write /org/gnome/desktop/interface/cursor-theme "'$cursor_theme'" > /dev/null 2>&1 & + dconf write /org/gnome/desktop/interface/cursor-size "24" > /dev/null 2>&1 & + fi + # initiate kvantum theme kvantummanager --set "$kvantum_theme" > /dev/null 2>&1 & -- cgit v1.2.3