diff options
author | David Morgan <djm_uk@protonmail.com> | 2024-09-17 12:22:55 +0100 |
---|---|---|
committer | David Morgan <djm_uk@protonmail.com> | 2024-09-17 12:22:55 +0100 |
commit | 4758ed2e758fcf06a28478b844c50bcc383c7d36 (patch) | |
tree | 5e5c7fe0c222a9da9b7bfbf3000afc4b3b32593e | |
parent | 04165dcb334d7dac3a06545b212d213fcdfd549d (diff) | |
download | dotfiles-4758ed2e758fcf06a28478b844c50bcc383c7d36.tar.gz |
Add skhd config/script
-rw-r--r-- | nix-conf/home/otm.nix | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/nix-conf/home/otm.nix b/nix-conf/home/otm.nix index 56e1f68..67dab1e 100644 --- a/nix-conf/home/otm.nix +++ b/nix-conf/home/otm.nix @@ -113,6 +113,10 @@ let }); zscaler-lein = pkgs.leiningen.override { jdk = zscaler-jdk; }; + + toggle = pkgs.writeShellScriptBin "remote-toggle" '' + ssh -nT pi "playerctl play-pause" 2>/dev/null + ''; in { imports = [ ./includes/darwin.nix ]; @@ -146,7 +150,10 @@ in yarn_build = "aws codeartifact login --tool npm --repository otm-js --domain otm --domain-owner 103567893073 --region eu-west-1 --profile aws_otm_dev_developers && yarn && yarn build && notify"; }; - home.packages = with pkgs; [ zscaler-lein ]; + home.packages = with pkgs; [ + zscaler-lein + toggle + ]; home.file = { "certs/zscaler-cert.pem".source = zscaler-cert-file; @@ -154,6 +161,8 @@ in "certs/full-cert.pem".source = full-cert-file; "certs/internal-ca.pem".text = internal-cert; "certs/staging-internal-ca.pem".text = internal-staging-cert; + + ".skhdrc".text = "play : remote-toggle"; }; sops.secrets = { |