mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2024-11-22 14:43:08 +01:00
fix themechange script and more
This commit is contained in:
parent
92fc9ac086
commit
6831a7bb2c
@ -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
|
||||
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user