From f3355e083b79abaf12de49d9bc7c175ab91e67b4 Mon Sep 17 00:00:00 2001 From: chodak166 Date: Sun, 7 Jun 2026 14:31:54 +0200 Subject: [PATCH] Updated ubuntu cargo init script --- .bashrc | 1 + .../profiles/chodak_pc/config.d/20-keys-apps-core | 5 ++++- .dotfiles.d/init/ubuntu/init-cargo-tools.sh | 11 +++++++---- .zshenv | 1 + 4 files changed, 13 insertions(+), 5 deletions(-) mode change 100644 => 100755 .dotfiles.d/init/ubuntu/init-cargo-tools.sh diff --git a/.bashrc b/.bashrc index 6a5454b..9d4649d 100755 --- a/.bashrc +++ b/.bashrc @@ -157,3 +157,4 @@ alias bat=batcat [ -f ~/.fzf.bash ] && source ~/.fzf.bash [ -f "$HOME/.local/bin/env" ] && . "$HOME/.local/bin/env" +. "$HOME/.cargo/env" diff --git a/.config/ratflow/profiles/chodak_pc/config.d/20-keys-apps-core b/.config/ratflow/profiles/chodak_pc/config.d/20-keys-apps-core index dad7297..d6a12ac 100644 --- a/.config/ratflow/profiles/chodak_pc/config.d/20-keys-apps-core +++ b/.config/ratflow/profiles/chodak_pc/config.d/20-keys-apps-core @@ -14,9 +14,12 @@ bindsym $mod+Return exec kitty #bindsym Mod1+F2 exec dmenu_run #let's replace dmenu by custom launcher: -bindsym $mod+d exec ulauncher +# bindsym $mod+d exec ulauncher bindsym Mod1+F2 exec ulauncher +bindsym $mod+d exec kitty --title launcher -o cursor_trail=0 -e fsel -r --detach +for_window [title="^launcher$"] floating enable, resize set width 500 height 430, border none + # run app assigned to current workspace bindsym $mod+Shift+a exec $scriptsDir/autoapp diff --git a/.dotfiles.d/init/ubuntu/init-cargo-tools.sh b/.dotfiles.d/init/ubuntu/init-cargo-tools.sh old mode 100644 new mode 100755 index 910ed48..8e61044 --- a/.dotfiles.d/init/ubuntu/init-cargo-tools.sh +++ b/.dotfiles.d/init/ubuntu/init-cargo-tools.sh @@ -5,11 +5,13 @@ echo "[1/4] Updating apt and installing prerequisites (curl, build-essential)... sudo apt update -qq sudo apt install -y curl build-essential imagemagick -sudo ln -s /usr/bin/convert /usr/bin/magick +sudo ln -s /usr/bin/convert /usr/bin/magick || true echo "[2/4] Downloading and installing rustup (latest rustc/cargo)..." curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y +rustup default stable + echo "[3/4] Sourcing cargo environment..." source "$HOME/.cargo/env" @@ -17,9 +19,10 @@ echo " -> Installed: $(rustc --version)" echo " -> Installed: $(cargo --version)" echo "[4/4] Installing tools..." -cargo install fsel -cargo install yazi -cargo install glow +cargo install fsel@3.5.1-kiwicrab +cargo install --force yazi-build cargo install resvg +sudo snap install glow + echo "Done!" diff --git a/.zshenv b/.zshenv index 33cf15f..86ef273 100644 --- a/.zshenv +++ b/.zshenv @@ -1 +1,2 @@ skip_global_compinit=1 +. "$HOME/.cargo/env"