From d4a01a654436997b213eb9bb8be67a140bcf147c Mon Sep 17 00:00:00 2001 From: Caroline Larimore Date: Sat, 11 May 2024 19:44:17 -0700 Subject: Add theme switch command --- home.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'home.nix') 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 -- cgit v1.2.3