New script to easily add icons to all folders in a location and some android paths

master
Wynd 2025-06-01 15:02:32 +03:00
parent 5548acb3f0
commit d9a9c33ae8
5 changed files with 29 additions and 8 deletions

View File

@ -53,12 +53,6 @@ return {
capabilities = capabilities,
})
-- HTMX
lspconfig.htmx.setup({
capabilities = capabilities,
filetypes = { "html", "templ", "htmldjango" },
})
-- Lua
local lua_rtp = vim.split(package.path, ";")
table.insert(lua_rtp, "lua/?.lua")
@ -106,6 +100,12 @@ return {
filetypes = { "html", "templ", "htmldjango", "handlebars" },
})
-- HTMX
lspconfig.htmx.setup({
capabilities = capabilities,
filetypes = { "html", "templ", "htmldjango" },
})
-- CSS
lspconfig.cssls.setup({
capabilities = capabilities,

View File

@ -45,4 +45,4 @@ if [ $OPTIND -eq 1 ]; then
fi
ffmpeg -i $file_name.mp4 -vf "${fps},${scale},split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" $file_name.gif
ffmpeg -i $file_name -vf "${fps},${scale},split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" $file_name.gif

View File

@ -0,0 +1,16 @@
#!/bin/bash
(
for FOLDER in ./*/; do
# gio set "$FOLDER" -t unset metadata::custom-icon
for img in ./"$FOLDER"/*; do
if [[ ${img##*.} == "jpg" ]] || [[ ${img##*.} == "png" ]] || [[ ${img##*.} == "webp" ]]; then
IMAGENAME="$(basename "$img")"
break
fi
done
if [[ -n $IMAGENAME ]]; then
gio set "$FOLDER" -t string metadata::custom-icon "$IMAGENAME"
unset IMAGENAME
fi
done
)

5
.zshrc
View File

@ -49,6 +49,11 @@ source ~/antigen.zsh
source $HOME/.cargo/env
# android stuff
export ANDROID_HOME=/games/AndroidSdk
export NDK_HOME=$ANDROID_HOME/ndk/28.0.12674087
export PATH="$PATH:$ANDROID_HOME/emulator:$ANDROID_HOME/cmdline-tools/latest/bin:$ANDROID_HOME/platform-tools:$ANDROID_HOME/build-tools:/opt/gradle/gradle-8.12.1/bin"
# Ruby setup & setting ~/.gems as default path for gems
export GEMS_HOME="$HOME/.gems"
export PATH="$GEMS_HOME/bin:$PATH"

View File

@ -174,7 +174,7 @@ done
# and tells you a package failed to install, yet another reason why rust is superior
curl https://sh.rustup.rs -sSf | sh
cargo install -q onefetch eza fd-find tokei alacritty stylua git-delta du-dust \
mdbook mdbook-admonish mdbook-tera stylua dprint
mdbook mdbook-admonish mdbook-tera dprint
cargo install --features lsp taplo-cli
rustup component add rust-src rust-analyzer