fix(scripts): exa not exist in systemctl

This commit is contained in:
Dmitriy Pleshevskiy 2022-04-22 11:51:29 +03:00
parent 9ef81b6785
commit 478daf4833
2 changed files with 10 additions and 7 deletions

View file

@ -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 = {

View file

@ -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)