forked from extern/zaneyos
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" ''
|
pkgs.writeShellScriptBin "themechange" ''
|
||||||
if [[ ! $@ ]];then
|
if [[ ! $@ ]];then
|
||||||
echo "No Theme Given"
|
echo "No Theme Given"
|
||||||
else
|
else
|
||||||
replacement="$1"
|
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}
|
pkexec nixos-rebuild switch --flake ${flakeDir}
|
||||||
hyprctl dispatch -- exec swaync-client -R
|
hyprctl dispatch -- exec swaync-client -R
|
||||||
hyprctl dispatch -- exec swaync-client -rs
|
hyprctl dispatch -- exec swaync-client -rs
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
# User Variables
|
# User Variables
|
||||||
gitUsername = "Tyler Kelley";
|
gitUsername = "Tyler Kelley";
|
||||||
gitEmail = "tylerzanekelley@gmail.com";
|
gitEmail = "tylerzanekelley@gmail.com";
|
||||||
theme = "rose-pine";
|
theme = "gigavolt";
|
||||||
waybarStyle = "style2"; # can be style1-2
|
waybarStyle = "style2"; # can be style1-2
|
||||||
borderAnim = true; # anything other than on disables anim borders in Hyprland
|
borderAnim = true; # anything other than on disables anim borders in Hyprland
|
||||||
browser = "firefox";
|
browser = "firefox";
|
||||||
|
Loading…
Reference in New Issue
Block a user