From 6831a7bb2c73dddf6c0f62bb07c05071aa0403c9 Mon Sep 17 00:00:00 2001 From: Tyler Kelley Date: Tue, 6 Feb 2024 19:08:34 -0600 Subject: [PATCH] fix themechange script and more --- config/scripts/themechange.nix | 7 +++++-- options.nix | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/config/scripts/themechange.nix b/config/scripts/themechange.nix index 92d6005..80ac339 100644 --- a/config/scripts/themechange.nix +++ b/config/scripts/themechange.nix @@ -1,11 +1,14 @@ -{ pkgs, flakeDir, }: +{ pkgs, ... }: +let + inherit (import ../../options.nix) flakeDir; +in pkgs.writeShellScriptBin "themechange" '' if [[ ! $@ ]];then echo "No Theme Given" else replacement="$1" - sed -i "/^\s*theme[[:space:]]*=[[:space:]]*\"/s/\"\(.*\)\"/\"$replacement\"/" ${flakeDir}/flake.nix + sed -i "/^\s*theme[[:space:]]*=[[:space:]]*\"/s/\"\(.*\)\"/\"$replacement\"/" ${flakeDir}/options.nix pkexec nixos-rebuild switch --flake ${flakeDir} hyprctl dispatch -- exec swaync-client -R hyprctl dispatch -- exec swaync-client -rs diff --git a/options.nix b/options.nix index bf40414..fd7a987 100644 --- a/options.nix +++ b/options.nix @@ -6,7 +6,7 @@ # User Variables gitUsername = "Tyler Kelley"; gitEmail = "tylerzanekelley@gmail.com"; - theme = "rose-pine"; + theme = "gigavolt"; waybarStyle = "style2"; # can be style1-2 borderAnim = true; # anything other than on disables anim borders in Hyprland browser = "firefox";