more work on neovim config, added keyboard sound thing for kitty
This commit is contained in:
24
modules/home/environment/shed/autocmd.nix
Normal file
24
modules/home/environment/shed/autocmd.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ self, pkgs, ... }:
|
||||
let
|
||||
shellsound = "${pkgs.myScripts.playshellsound}/bin/playshellsound";
|
||||
color-commit = "${pkgs.myScripts.color-commit}/bin/color-commit";
|
||||
sndpath = "${self}/assets/sound";
|
||||
in
|
||||
{
|
||||
programs.shed = {
|
||||
autocmds = [
|
||||
{
|
||||
hooks = [ "post-cmd" ];
|
||||
command = "export PROMPT_GIT_LINE=\"$(prompt_git_line)\"";
|
||||
}
|
||||
{
|
||||
hooks = [ "on-history-open" ];
|
||||
command = ''[ -n "$_NUM_MATCHES" ] && [ "$_NUM_MATCHES" -gt 0 ] && ${shellsound} "${sndpath}/nvim.wav"; fi'';
|
||||
}
|
||||
{
|
||||
hooks = [ "on-completion-start" ];
|
||||
command = ''[ -n "$_NUM_MATCHES" ] && [ "$_NUM_MATCHES" -gt 1 ] && ${shellsound} "${sndpath}/nvim.wav"; fi'';
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user