fixed chscheme to properly exit when user hits escape in the fzf window

This commit is contained in:
pagedmov
2024-10-26 00:20:25 -04:00
parent cd70754f9f
commit 71a31fd44c
2 changed files with 4 additions and 4 deletions

View File

@@ -13,8 +13,8 @@ pkgs.writeShellScriptBin "chscheme" ''
b=$((16#''${clean_value:4:2})); \
printf "\033[48;2;%d;%d;%dm %-20s %s \033[0m\n" $r $g $b $key $clean_value; \
fi; \
done' | xargs -I {} sed -i '/base16scheme \=/s/\".*\"/\"{}\"/' "$HOME"/.sysflake/flake.nix && \
[[ $? -ne 0 ]] && echo "Aborting color scheme change." && exit 0
done' | xargs -I {} sed -i '/base16scheme \=/s/\".*\"/\"{}\"/' "$HOME"/.sysflake/flake.nix \
[ $? -ne 0 ] && echo "Aborting color scheme change." && exit 0
echo "Successfully changed system color scheme. Rebuild now?" && \
select choice in "Yes" "No"; do
case $choice in