Add lock command

This commit is contained in:
Elnu 2022-10-10 17:47:19 -07:00
parent 7c8ff79a11
commit 5153b5581b
3 changed files with 12 additions and 2 deletions

9
lock/default.nix Normal file
View file

@ -0,0 +1,9 @@
{ substituteAll, pkgs }:
substituteAll {
name = "lock";
src = ./lock.sh;
dir = "bin";
isExecutable = true;
inherit (pkgs) i3lock;
}

1
lock/lock.sh Normal file
View file

@ -0,0 +1 @@
i3lock -i `readlink -f ~/.background-image`