Skip to content

Commit

Permalink
docs: add nix and archlinux install
Browse files Browse the repository at this point in the history
  • Loading branch information
I-Want-ToBelieve committed Dec 6, 2023
1 parent 95ed753 commit 450337f
Showing 1 changed file with 35 additions and 2 deletions.
37 changes: 35 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,43 @@
100% pure rust implementation that can automatically hide terminals or other applications managed by tdrop when they lose focus

## Installation

Cargo
```zsh
cargo install autohide-tdrop
```
Or ArchLinux

```zsh
paru -S autohide-tdrop-git
```

Or Nix

flake.nix
```flake.nix
{
inputs = {
autohide-tdrop = {
url = "github:I-Want-ToBelieve/autohide-tdrop";
inputs.nixpkgs.follows = "nixpkgs";
};
};
}
```

home.nix
```nix
{
inputs,
pkgs,
...
}: {
home.packages = with inputs;
[
autohide-tdrop.packages.${pkgs.system}.default
];
}
```

## Usage

Expand All @@ -17,7 +50,7 @@ ctrl + t
tdrop -n tdrop_kitty --post-create-hook "autohide-tdrop &" -ma -h 60% -w 70% -x 15% -y 0 kitty --class=tdrop_kitty
```

### wayland
### wayland
~/.config/swhkd/swhkdrc
```zsh
ctrl + t
Expand Down

0 comments on commit 450337f

Please sign in to comment.