Skip to content

Commit 450337f

Browse files
docs: add nix and archlinux install
1 parent 95ed753 commit 450337f

File tree

1 file changed

+35
-2
lines changed

1 file changed

+35
-2
lines changed

README.md

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,43 @@
33
100% pure rust implementation that can automatically hide terminals or other applications managed by tdrop when they lose focus
44

55
## Installation
6-
6+
Cargo
77
```zsh
88
cargo install autohide-tdrop
99
```
10+
Or ArchLinux
11+
12+
```zsh
13+
paru -S autohide-tdrop-git
14+
```
15+
16+
Or Nix
17+
18+
flake.nix
19+
```flake.nix
20+
{
21+
inputs = {
22+
autohide-tdrop = {
23+
url = "github:I-Want-ToBelieve/autohide-tdrop";
24+
inputs.nixpkgs.follows = "nixpkgs";
25+
};
26+
};
27+
}
28+
```
29+
30+
home.nix
31+
```nix
32+
{
33+
inputs,
34+
pkgs,
35+
...
36+
}: {
37+
home.packages = with inputs;
38+
[
39+
autohide-tdrop.packages.${pkgs.system}.default
40+
];
41+
}
42+
```
1043

1144
## Usage
1245

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

20-
### wayland
53+
### wayland
2154
~/.config/swhkd/swhkdrc
2255
```zsh
2356
ctrl + t

0 commit comments

Comments
 (0)