From c810bf040993754fc7b4a6f46df1ca484e4bc5e5 Mon Sep 17 00:00:00 2001 From: "Thomas G. Lopes" Date: Thu, 19 Feb 2026 23:15:15 +0000 Subject: [PATCH] fuck yes :) --- alacritty/files/alacritty.toml | 16 ++++++++++++++++ fish/files/conf.d/uv.env.fish | 2 +- fish/files/config.fish | 7 ++++++- matugen/files/config.toml | 2 +- matugen/files/scripts/sync-nvim-mac.sh | 16 ++++++++++++++++ zellij/files/config.kdl | 4 ++-- 6 files changed, 42 insertions(+), 5 deletions(-) create mode 100644 alacritty/files/alacritty.toml create mode 100755 matugen/files/scripts/sync-nvim-mac.sh diff --git a/alacritty/files/alacritty.toml b/alacritty/files/alacritty.toml new file mode 100644 index 0000000..1bf4afe --- /dev/null +++ b/alacritty/files/alacritty.toml @@ -0,0 +1,16 @@ + +[font] +size = 12.0 + +[font.normal] +family = "IosevkaTermSlab Nerd Font" +style = "Regular" + +[general] +import = ["~/.config/alacritty/dank-theme.toml"] + +[terminal.shell] +program = "zellij" + +[window] +opacity = 0.9 diff --git a/fish/files/conf.d/uv.env.fish b/fish/files/conf.d/uv.env.fish index c5be13c..b6c5a21 100644 --- a/fish/files/conf.d/uv.env.fish +++ b/fish/files/conf.d/uv.env.fish @@ -1,2 +1,2 @@ -source "$HOME/.local/bin/env.fish" +test -f "$HOME/.local/bin/env.fish"; and source "$HOME/.local/bin/env.fish" diff --git a/fish/files/config.fish b/fish/files/config.fish index 1d717a5..147d599 100644 --- a/fish/files/config.fish +++ b/fish/files/config.fish @@ -80,6 +80,11 @@ status is-interactive; and begin end +# Add user local bin to PATH +if test -d "$HOME/.local/bin" + fish_add_path "$HOME/.local/bin" +end + # pnpm switch (uname) case Linux @@ -149,4 +154,4 @@ set --export PATH $BUN_INSTALL/bin $PATH # opencode fish_add_path /home/thomasgl/.opencode/bin -source ~/.safe-chain/scripts/init-fish.fish # Safe-chain Fish initialization script +test -f ~/.safe-chain/scripts/init-fish.fish; and source ~/.safe-chain/scripts/init-fish.fish # Safe-chain Fish initialization script diff --git a/matugen/files/config.toml b/matugen/files/config.toml index 5f4f57a..ad5335e 100644 --- a/matugen/files/config.toml +++ b/matugen/files/config.toml @@ -45,4 +45,4 @@ output_path = '~/.config/jjui/themes/matugen.toml' [templates.nvim] input_path = '~/.config/matugen/templates/neovim.lua' output_path = '~/.config/nvim/lua/plugins/dankcolors.lua' -post_hook = '(scp -i ~/.ssh/mac-attio ~/.config/nvim/lua/plugins/dankcolors.lua thomasglopes@192.168.1.205:~/.config/nvim/lua/plugins/ >/dev/null 2>&1 &)' +post_hook = 'nohup ~/.config/matugen/scripts/sync-nvim-mac.sh >/dev/null 2>&1 &' diff --git a/matugen/files/scripts/sync-nvim-mac.sh b/matugen/files/scripts/sync-nvim-mac.sh new file mode 100755 index 0000000..9a8e5b5 --- /dev/null +++ b/matugen/files/scripts/sync-nvim-mac.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env sh +set -eu + +lock_dir="$HOME/.cache/matugen-sync-nvim.lock" +log_file="$HOME/.cache/matugen-sync-nvim.log" + +mkdir -p "$HOME/.cache" + +if mkdir "$lock_dir" 2>/dev/null; then + { + ssh -i "$HOME/.ssh/mac-attio" thomasglopes@192.168.1.205 "mkdir -p ~/.config/nvim/lua/plugins" + scp -i "$HOME/.ssh/mac-attio" "$HOME/.config/nvim/lua/plugins/dankcolors.lua" \ + thomasglopes@192.168.1.205:~/.config/nvim/lua/plugins/ + } >>"$log_file" 2>&1 + rmdir "$lock_dir" +fi diff --git a/zellij/files/config.kdl b/zellij/files/config.kdl index b8dedcb..221f615 100644 --- a/zellij/files/config.kdl +++ b/zellij/files/config.kdl @@ -110,7 +110,7 @@ keybinds clear-defaults=true { } SwitchToMode "normal" } - bind "Ctrl o" { SwitchToMode "normal"; } + bind "Ctrl e" { SwitchToMode "normal"; } bind "p" { LaunchOrFocusPlugin "plugin-manager" { floating true @@ -160,7 +160,7 @@ keybinds clear-defaults=true { bind "Ctrl h" { SwitchToMode "move"; } } shared_except "locked" "session" { - bind "Ctrl o" { SwitchToMode "session"; } + bind "Ctrl e" { SwitchToMode "session"; } } shared_except "locked" "scroll" "search" "tmux" { bind "Ctrl b" { SwitchToMode "tmux"; }