diff options
| author | JaKooLit <ejhay.games@gmail.com> | 2025-01-30 16:18:23 +0900 |
|---|---|---|
| committer | JaKooLit <ejhay.games@gmail.com> | 2025-01-30 16:18:23 +0900 |
| commit | 533fb7aa502e25c52f224cea30011f7692948acb (patch) | |
| tree | d309aa191ed2b99cccfc9ff18f6a1212c9628d0a | |
| parent | 6c8bba4f3cdcaec0e2a978c47252b63dbcf4af38 (diff) | |
NixOS fix for applying GTK themes and cursors on initial boot
| -rwxr-xr-x | config/hypr/initial-boot.sh | 11 |
1 files changed, 10 insertions, 1 deletions
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 & |
