aboutsummaryrefslogtreecommitdiff
path: root/home.nix
diff options
context:
space:
mode:
authorCaroline Larimore <caroline@larimo.re>2024-05-11 19:44:17 -0700
committerCaroline Larimore <caroline@larimo.re>2024-05-11 19:44:17 -0700
commitd4a01a654436997b213eb9bb8be67a140bcf147c (patch)
tree9628aefbb8d082202e1408c6f4bc23259a93175e /home.nix
parent881d5f86a5ae9d9b4cb0554e8eb7fb161d999068 (diff)
Add theme switch command
Diffstat (limited to 'home.nix')
-rw-r--r--home.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/home.nix b/home.nix
index 6783f68..9effecd 100644
--- a/home.nix
+++ b/home.nix
@@ -75,6 +75,19 @@
];
home.packages = with pkgs; [
+ (writeShellScriptBin "switch-theme"''
+ #!/usr/bin/env bash
+
+ cd /etc/nixos
+
+ rm theme.nix
+ ln -s ./themes/$1.nix theme.nix
+
+ sudo nixos-rebuild switch --flake /etc/nixos#default
+
+ i3-msg restart
+ '')
+
eww
(writeShellScriptBin "eww-toggle"''
#!/usr/bin/env bash