fix themechange script and more

This commit is contained in:
Tyler Kelley 2024-02-06 19:08:34 -06:00
parent 92fc9ac086
commit 6831a7bb2c
2 changed files with 6 additions and 3 deletions

View File

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

View File

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