fix(scripts): exa not exist in systemctl
This commit is contained in:
parent
9ef81b6785
commit
478daf4833
2 changed files with 10 additions and 7 deletions
15
nix/home.nix
15
nix/home.nix
|
@ -101,9 +101,9 @@ in
|
|||
services.screen-locker = {
|
||||
enable = true;
|
||||
|
||||
lockCmd = "/bin/bash ~/scripts/lock.sh";
|
||||
lockCmd = "/bin/bash -c ${config.home.homeDirectory}/scripts/lock.sh";
|
||||
|
||||
inactiveInterval = 5;
|
||||
inactiveInterval = 1;
|
||||
};
|
||||
|
||||
services.gpg-agent.enable = true;
|
||||
|
@ -150,6 +150,12 @@ in
|
|||
source "$HOME/.ghcup/env"
|
||||
fi
|
||||
'';
|
||||
|
||||
shellAliases = {
|
||||
ls = "${pkgs.exa}/bin/exa -1";
|
||||
ll = "${pkgs.exa}/bin/exa -l";
|
||||
lt = "${pkgs.exa}/bin/exa --tree";
|
||||
};
|
||||
};
|
||||
|
||||
# enable git VCS
|
||||
|
@ -181,10 +187,7 @@ in
|
|||
};
|
||||
|
||||
# replacement for 'ls' written in rust
|
||||
programs.exa = {
|
||||
enable = true;
|
||||
enableAliases = true;
|
||||
};
|
||||
programs.exa.enable = true;
|
||||
|
||||
# a fast cd command that learns your habbits
|
||||
programs.zoxide = {
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#!/bin/bash
|
||||
/usr/bin/i3lock -ei $(exa -1 ~/pictures/wallpapers/*.png | awk '{ print $1 }' | sort -R | head -n 1)
|
||||
/usr/bin/i3lock -ei $(ls $HOME/pictures/wallpapers/*.png | awk '{ print $1 }' | sort -R | head -n 1)
|
||||
|
|
Loading…
Reference in a new issue