diff options
| author | Caroline Larimore <caroline@larimo.re> | 2024-05-11 19:44:17 -0700 |
|---|---|---|
| committer | Caroline Larimore <caroline@larimo.re> | 2024-05-11 19:44:17 -0700 |
| commit | d4a01a654436997b213eb9bb8be67a140bcf147c (patch) | |
| tree | 9628aefbb8d082202e1408c6f4bc23259a93175e /home.nix | |
| parent | 881d5f86a5ae9d9b4cb0554e8eb7fb161d999068 (diff) | |
Add theme switch command
Diffstat (limited to 'home.nix')
| -rw-r--r-- | home.nix | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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 |