New script to easily add icons to all folders in a location and some android paths
parent
5548acb3f0
commit
d9a9c33ae8
|
@ -53,12 +53,6 @@ return {
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- HTMX
|
|
||||||
lspconfig.htmx.setup({
|
|
||||||
capabilities = capabilities,
|
|
||||||
filetypes = { "html", "templ", "htmldjango" },
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Lua
|
-- Lua
|
||||||
local lua_rtp = vim.split(package.path, ";")
|
local lua_rtp = vim.split(package.path, ";")
|
||||||
table.insert(lua_rtp, "lua/?.lua")
|
table.insert(lua_rtp, "lua/?.lua")
|
||||||
|
@ -106,6 +100,12 @@ return {
|
||||||
filetypes = { "html", "templ", "htmldjango", "handlebars" },
|
filetypes = { "html", "templ", "htmldjango", "handlebars" },
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- HTMX
|
||||||
|
lspconfig.htmx.setup({
|
||||||
|
capabilities = capabilities,
|
||||||
|
filetypes = { "html", "templ", "htmldjango" },
|
||||||
|
})
|
||||||
|
|
||||||
-- CSS
|
-- CSS
|
||||||
lspconfig.cssls.setup({
|
lspconfig.cssls.setup({
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
|
|
|
@ -45,4 +45,4 @@ if [ $OPTIND -eq 1 ]; then
|
||||||
fi
|
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
|
||||||
|
|
|
@ -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
5
.zshrc
|
@ -49,6 +49,11 @@ source ~/antigen.zsh
|
||||||
|
|
||||||
source $HOME/.cargo/env
|
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
|
# Ruby setup & setting ~/.gems as default path for gems
|
||||||
export GEMS_HOME="$HOME/.gems"
|
export GEMS_HOME="$HOME/.gems"
|
||||||
export PATH="$GEMS_HOME/bin:$PATH"
|
export PATH="$GEMS_HOME/bin:$PATH"
|
||||||
|
|
|
@ -174,7 +174,7 @@ done
|
||||||
# and tells you a package failed to install, yet another reason why rust is superior
|
# and tells you a package failed to install, yet another reason why rust is superior
|
||||||
curl https://sh.rustup.rs -sSf | sh
|
curl https://sh.rustup.rs -sSf | sh
|
||||||
cargo install -q onefetch eza fd-find tokei alacritty stylua git-delta du-dust \
|
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
|
cargo install --features lsp taplo-cli
|
||||||
rustup component add rust-src rust-analyzer
|
rustup component add rust-src rust-analyzer
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue