mirror of
https://github.com/prdlk/dotfiles.git
synced 2026-11-02 11:32:42 +00:00
feat(config): add tool integrations and refine settings
This commit is contained in:
1 parent
2d9120f46f
commit
e876c5c2ee
8 files changed
+32
-13
No files matched your search
@@ -9,7 +9,7 @@ alias e.f 'cd ~/.local/share/chezmoi/dot_config/fish && yazi'
|
|||||||
alias e.h 'cd ~/.local/share/chezmoi/dot_config/hypr && yazi'
|
alias e.h 'cd ~/.local/share/chezmoi/dot_config/hypr && yazi'
|
||||||
alias e.k 'yazi ~/.local/share/chezmoi/dot_config/kitty'
|
alias e.k 'yazi ~/.local/share/chezmoi/dot_config/kitty'
|
||||||
alias e.n 'yazi ~/.local/share/chezmoi/dot_config/niri'
|
alias e.n 'yazi ~/.local/share/chezmoi/dot_config/niri'
|
||||||
alias e.y 'yazi ~/.local/share/chezmoi/dot_config/yazi'
|
alias e.y 'yazi ~/.local/share/chezmoi/yazi'
|
||||||
alias e.t 'nvim ~/.local/share/chezmoi/dot_config/tmux/tmux.conf'
|
alias e.t 'nvim ~/.local/share/chezmoi/dot_config/tmux/tmux.conf'
|
||||||
alias e.v 'yazi ~/.config/nvim/lua'
|
alias e.v 'yazi ~/.config/nvim/lua'
|
||||||
|
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ function gh-wiki --description "Clone a GitHub wiki and build one PDF from its M
|
|||||||
set -q _flag_output; and set out $_flag_output
|
set -q _flag_output; and set out $_flag_output
|
||||||
|
|
||||||
# --- Clone ----------------------------------------------------------
|
# --- Clone ----------------------------------------------------------
|
||||||
gum spin --spinner dot --title "Cloning $url" -- \
|
gum spin --show-error --spinner dot --title "Cloning $url" -- \
|
||||||
git clone --quiet --depth 1 $url $clone_dir
|
git clone --quiet --depth 1 $url $clone_dir
|
||||||
or begin
|
or begin
|
||||||
gum log --level error "Clone failed: $url"
|
gum log --level error "Clone failed: $url"
|
||||||
@@ -94,7 +94,6 @@ function gh-wiki --description "Clone a GitHub wiki and build one PDF from its M
|
|||||||
--shift-heading-level-by=1 \
|
--shift-heading-level-by=1 \
|
||||||
--toc --toc-depth=2 \
|
--toc --toc-depth=2 \
|
||||||
--number-sections \
|
--number-sections \
|
||||||
--syntax-highlighting idiomatic \
|
|
||||||
-M title="$repo Wiki" \
|
-M title="$repo Wiki" \
|
||||||
-M date=(date +%Y-%m-%d) \
|
-M date=(date +%Y-%m-%d) \
|
||||||
-V titlepage=true \
|
-V titlepage=true \
|
||||||
@@ -106,7 +105,7 @@ function gh-wiki --description "Clone a GitHub wiki and build one PDF from its M
|
|||||||
# pandoc/extra ships pandoc, LaTeX and Eisvogel. Mount the clone as
|
# pandoc/extra ships pandoc, LaTeX and Eisvogel. Mount the clone as
|
||||||
# /data, write the PDF there, then move it to the requested path.
|
# /data, write the PDF there, then move it to the requested path.
|
||||||
set -l tmp_pdf _out.pdf
|
set -l tmp_pdf _out.pdf
|
||||||
gum spin --spinner line --title "Rendering $out" -- \
|
gum spin --show-error --spinner line --title "Rendering $out" -- \
|
||||||
docker run --rm \
|
docker run --rm \
|
||||||
--volume "$clone_dir:/data" \
|
--volume "$clone_dir:/data" \
|
||||||
--user (id -u):(id -g) \
|
--user (id -u):(id -g) \
|
||||||
@@ -128,7 +127,7 @@ function gh-wiki --description "Clone a GitHub wiki and build one PDF from its M
|
|||||||
else
|
else
|
||||||
gum log --level warn "Template '$template' not found; using the pandoc default"
|
gum log --level warn "Template '$template' not found; using the pandoc default"
|
||||||
end
|
end
|
||||||
gum spin --spinner line --title "Rendering $out" -- \
|
gum spin --show-error --spinner line --title "Rendering $out" -- \
|
||||||
pandoc $src -o $out \
|
pandoc $src -o $out \
|
||||||
--resource-path $clone_dir \
|
--resource-path $clone_dir \
|
||||||
$pandoc_args \
|
$pandoc_args \
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# Font Configuration
|
# Font Configuration
|
||||||
font-size = 11.5
|
font-size = 11
|
||||||
font-family = IoskeleyMonoTerm Nerd Font Mono
|
font-family = VictorMono Nerd Font
|
||||||
adjust-cell-height = 15%
|
adjust-cell-height = 10%
|
||||||
background-blur = true
|
background-blur = true
|
||||||
|
|
||||||
# Window Configuration
|
# Window Configuration
|
||||||
@@ -42,8 +42,10 @@ keybind = ctrl+shift+period=reload_config
|
|||||||
keybind = shift+enter=text:\x1b[13;2u
|
keybind = shift+enter=text:\x1b[13;2u
|
||||||
|
|
||||||
# command palette: ctrl+space is tmux's root-table C-Space (tmux-palette);
|
# command palette: ctrl+space is tmux's root-table C-Space (tmux-palette);
|
||||||
# sent explicitly as NUL so no keyboard-protocol mode can turn it into a CSI
|
# sent explicitly as NUL so no keyboard-protocol mode can turn it into a CSI.
|
||||||
|
# ctrl+backspace is a second key for the same palette.
|
||||||
keybind = ctrl+space=text:\x00
|
keybind = ctrl+space=text:\x00
|
||||||
|
keybind = ctrl+backspace=text:\x00
|
||||||
# project tasks palette (pj): tmux prefix t
|
# project tasks palette (pj): tmux prefix t
|
||||||
keybind = ctrl+shift+p=text:\x02t
|
keybind = ctrl+shift+p=text:\x02t
|
||||||
keybind = ctrl+shift+space=text:\x02t
|
keybind = ctrl+shift+space=text:\x02t
|
||||||
|
|||||||
@@ -156,6 +156,8 @@ end
|
|||||||
|
|
||||||
hl.unbind("SUPER + O") -- was: pop window out
|
hl.unbind("SUPER + O") -- was: pop window out
|
||||||
hl.unbind("SUPER + SHIFT + O") -- was: Obsidian (moved to SUPER + CTRL + ALT + O)
|
hl.unbind("SUPER + SHIFT + O") -- was: Obsidian (moved to SUPER + CTRL + ALT + O)
|
||||||
|
o.bind("SUPER + O", "Focus next monitor", hl.dsp.focus({ monitor = "+1" }))
|
||||||
|
o.bind("SUPER + SHIFT + O", "Move window to next monitor", hl.dsp.window.move({ monitor = "+1" }))
|
||||||
|
|
||||||
o.bind("ALT + SHIFT + J", "Move window to next monitor", hl.dsp.window.move({ monitor = "+1" }))
|
o.bind("ALT + SHIFT + J", "Move window to next monitor", hl.dsp.window.move({ monitor = "+1" }))
|
||||||
o.bind("ALT + SHIFT + K", "Move window to previous monitor", hl.dsp.window.move({ monitor = "-1" }))
|
o.bind("ALT + SHIFT + K", "Move window to previous monitor", hl.dsp.window.move({ monitor = "-1" }))
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# ── base.conf · shared ──
|
# ── base.conf · shared ──
|
||||||
font_family IoskeleyMono Nerd Font Term
|
font_family VictorMono Nerd Font
|
||||||
font_size 13.0
|
font_size 13.0
|
||||||
bold_italic_font auto
|
bold_italic_font auto
|
||||||
window_padding_width 8
|
window_padding_width 8
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
{{ .chezmoi.sourceDir }}/yazi
|
||||||
@@ -25,6 +25,14 @@
|
|||||||
"aliases": ["top", "htop"],
|
"aliases": ["top", "htop"],
|
||||||
"action": { "popup": "btop" }
|
"action": { "popup": "btop" }
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"icon": "",
|
||||||
|
"title": "Lazydocker",
|
||||||
|
"description": "popup in the pane's directory",
|
||||||
|
"category": "Tools",
|
||||||
|
"aliases": ["dd"],
|
||||||
|
"action": { "tmux": "display-popup -E -w 90% -h 90% -d '#{pane_current_path}' lazydocker" }
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"icon": "",
|
"icon": "",
|
||||||
"title": "mandible",
|
"title": "mandible",
|
||||||
|
|||||||
@@ -1,7 +1,14 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Reinstall yazi plugins from the manifest whenever it changes.
|
# Install the yazi plugins pinned in yazi/package.toml whenever it changes.
|
||||||
# package.toml hash: {{ include "dot_config/yazi/package.toml" | sha256sum }}
|
# ~/.config/yazi links to the source dir, so they land in yazi/plugins/
|
||||||
|
# (gitignored, except the vendored bunny.yazi).
|
||||||
|
# package.toml hash: {{ include "yazi/package.toml" | sha256sum }}
|
||||||
set -eu
|
set -eu
|
||||||
command -v ya >/dev/null 2>&1 || exit 0
|
command -v ya >/dev/null 2>&1 || exit 0
|
||||||
[ -f "${XDG_CONFIG_HOME:-$HOME/.config}/yazi/package.toml" ] || exit 0
|
[ -f "${XDG_CONFIG_HOME:-$HOME/.config}/yazi/package.toml" ] || exit 0
|
||||||
ya pkg install
|
# ya's clone cache is disposable and clones made by an older ya can break a
|
||||||
|
# newer one, so rebuild it once before giving up.
|
||||||
|
ya pkg install || {
|
||||||
|
rm -rf "${XDG_CACHE_HOME:-$HOME/.cache}/yazi/packages"
|
||||||
|
ya pkg install
|
||||||
|
}
|
||||||
Reference in new issue
Block a user