diff --git a/.dotter/global.toml b/.dotter/global.toml index 42caea7..3ea2fed 100644 --- a/.dotter/global.toml +++ b/.dotter/global.toml @@ -9,6 +9,9 @@ header = ".dotter/handlebars_helpers/header.rhai" [cli] depends = ["nvim", "zsh"] +[cli.variables] +nerd_font = "JetBrainsMono" + [cli.files] "config/bat" = "~/.config/bat" "config/sesh" = "~/.config/sesh" diff --git a/.dotter/pre_deploy.sh b/.dotter/pre_deploy.sh index 2cddc64..f767eb5 100644 --- a/.dotter/pre_deploy.sh +++ b/.dotter/pre_deploy.sh @@ -7,6 +7,15 @@ {{ header "Running pre deploy script for distro" (to_title_case distro) }} +{{ #if (and dotter.packages.cli (is_executable "sudo")) }} +{{ header "Configuring sudo" }} + +echo "Defaults pwfeedback" | sudo -B tee /etc/sudoers.d/01-user +echo "Defaults timestamp_timeout=10" | sudo -B tee -a /etc/sudoers.d/01-user +echo "Defaults timestamp_type=global" | sudo -B tee -a /etc/sudoers.d/01-user + +{{ /if }} + {{#if (eq distro "fedora") ~}} {{! extract the copr repositories variable }} @@ -40,4 +49,19 @@ cargo install --locked {{# each cargo.packages }} "{{ this }}" {{ /each }} {{ /if }} +{{ #if dotter.packages.cli }} + +{{ header "Configuring Nerd Fonts" }} + +FONT_DIR="$HOME/.local/share/fonts" +mkdir -p "$FONT_DIR" +tmp_dir=$(mktemp -d) + +curl -L https://github.com/ryanoasis/nerd-fonts/releases/latest/download/{{ nerd_font }}.zip -o "$tmp_dir/{{ nerd_font}}.zip" +unzip -o "$tmp_dir/{{nerd_font}}.zip" -d ${FONT_DIR}/{{ nerd_font }} + +rm -rf "$tmp_dir" + +{{ /if }} + {{ header "Done :3" }} diff --git a/config/yazi/yazi.toml b/config/yazi/yazi.toml index 9c93301..e80d3fe 100644 --- a/config/yazi/yazi.toml +++ b/config/yazi/yazi.toml @@ -139,7 +139,7 @@ cd_origin = "top-center" cd_offset = [ 0, 2, 50, 3 ] # create -create_title = ["Create:", "Create (dir):"] +create_title = "Create:" create_origin = "hovered" create_offset = [ 0, 1, 50, 3 ]