Compare commits
No commits in common. "465bfc101d3e58ee930fb3aa2366a9e16897c3b9" and "24479dcb8efbc6b76fb2b3bef4f0c81a5d17c40c" have entirely different histories.
465bfc101d
...
24479dcb8e
|
@ -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,5 +97,36 @@
|
||||||
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}
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
31
system/home/shell/transient.zsh
Executable file
31
system/home/shell/transient.zsh
Executable file
|
@ -0,0 +1,31 @@
|
||||||
|
#!/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
|
|
@ -11,7 +11,6 @@
|
||||||
ffmpeg
|
ffmpeg
|
||||||
grim
|
grim
|
||||||
slurp
|
slurp
|
||||||
swappy
|
|
||||||
wl-clipboard
|
wl-clipboard
|
||||||
swayimg
|
swayimg
|
||||||
swaybg
|
swaybg
|
||||||
|
@ -212,9 +211,6 @@
|
||||||
"${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 %";
|
||||||
|
|
|
@ -61,7 +61,6 @@
|
||||||
"(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";
|
||||||
|
|
Loading…
Reference in a new issue