Compare commits

...

2 commits

4 changed files with 6 additions and 63 deletions

View file

@ -17,8 +17,8 @@
]; ];
programs = { programs = {
bash.enable = true; bash.enable = true;
carapace.enable = true;
fastfetch.enable = true; fastfetch.enable = true;
fish.enable = true;
fd.enable = true; fd.enable = true;
jq.enable = true; jq.enable = true;
nix-index.enable = true; nix-index.enable = true;
@ -97,36 +97,5 @@
copy_on_select = true; copy_on_select = true;
}; };
}; };
zsh = {
enable = true;
enableCompletion = true;
autocd = true;
autosuggestion.enable = true;
defaultKeymap = "emacs";
syntaxHighlighting = {
enable = true;
highlighters = [
"brackets"
"cursor"
];
};
historySubstringSearch.enable = true;
history = {
extended = true;
share = true;
ignoreDups = true;
ignoreAllDups = true;
ignoreSpace = true;
expireDuplicatesFirst = true;
};
initExtra = ''
## completion config and styling
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
zstyle ':completion:*' menu 'select=long-list'
## transient prompt
source ${./transient.zsh}
'';
};
}; };
} }

View file

@ -1,31 +0,0 @@
#!/usr/bin/env zsh
zle-line-init() {
emulate -L zsh
[[ $CONTEXT == start ]] || return 0
while true; do
zle .recursive-edit
local -i ret=$?
[[ $ret == 0 && $KEYS == $'\4' ]] || break
[[ -o ignore_eof ]] || exit 0
done
local saved_prompt=$PROMPT
local saved_rprompt=$RPROMPT
PROMPT='󰁔 '
RPROMPT=''
zle .reset-prompt
PROMPT=$saved_prompt
RPROMPT=$saved_rprompt
if ((ret)); then
zle .send-break
else
zle .accept-line
fi
return ret
}
zle -N zle-line-init

View file

@ -11,6 +11,7 @@
ffmpeg ffmpeg
grim grim
slurp slurp
swappy
wl-clipboard wl-clipboard
swayimg swayimg
swaybg swaybg
@ -211,6 +212,9 @@
"${modifier}+bracketright" = "move workspace to output right"; "${modifier}+bracketright" = "move workspace to output right";
# Function keys # Function keys
## Screenshot
"Print" = "exec ${pkgs.grim}/bin/grim -g \"$(${pkgs.slurp}/bin/slurp)\" - | ${pkgs.swappy}/bin/swappy -f -";
## Sound ## Sound
"XF86AudioMute" = "exec ${config.services.avizo.package}/bin/volumectl %"; "XF86AudioMute" = "exec ${config.services.avizo.package}/bin/volumectl %";
"XF86AudioMicMute" = "exec ${config.services.avizo.package}/bin/volumectl -m %"; "XF86AudioMicMute" = "exec ${config.services.avizo.package}/bin/volumectl -m %";

View file

@ -61,6 +61,7 @@
"(alacritty.*)" = " $1"; "(alacritty.*)" = " $1";
"(.*) - mpv" = "󰦟 $1"; "(.*) - mpv" = "󰦟 $1";
"swayimg: (.*)" = "󰋩 $1"; "swayimg: (.*)" = "󰋩 $1";
"swappy" = "󰹑 swappy";
"(btm)" = " Resource Usage [$1]"; "(btm)" = " Resource Usage [$1]";
"(cava)" = "󰝚 Music Visualiser [$1]"; "(cava)" = "󰝚 Music Visualiser [$1]";
"(.*) - Thunar" = "󰝰 $1"; "(.*) - Thunar" = "󰝰 $1";