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 = { services.screen-locker = {
enable = true; 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; services.gpg-agent.enable = true;
@ -150,6 +150,12 @@ in
source "$HOME/.ghcup/env" source "$HOME/.ghcup/env"
fi fi
''; '';
shellAliases = {
ls = "${pkgs.exa}/bin/exa -1";
ll = "${pkgs.exa}/bin/exa -l";
lt = "${pkgs.exa}/bin/exa --tree";
};
}; };
# enable git VCS # enable git VCS
@ -181,10 +187,7 @@ in
}; };
# replacement for 'ls' written in rust # replacement for 'ls' written in rust
programs.exa = { programs.exa.enable = true;
enable = true;
enableAliases = true;
};
# a fast cd command that learns your habbits # a fast cd command that learns your habbits
programs.zoxide = { programs.zoxide = {

View file

@ -1,2 +1,2 @@
#!/bin/bash #!/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)