ssh changees and sync with mac

This commit is contained in:
2026-02-20 09:53:18 +00:00
parent f7deb87360
commit c607122cc4
6 changed files with 38 additions and 5 deletions

View File

@@ -36,7 +36,7 @@ output_path = '~/.config/niri/colors.kdl'
[templates.zellij]
input_path = '~/.config/matugen/templates/zellij-colors.kdl'
output_path = '~/.config/zellij/themes/matugen.kdl'
post_hook = 'touch ~/.config/zellij/config.kdl'
post_hook = 'touch ~/.config/zellij/config.kdl && nohup ~/.config/matugen/scripts/sync-zellij-mac.sh >/dev/null 2>&1 &'
[templates.jjui]
input_path = '~/.config/matugen/templates/jjui-theme.toml'
@@ -50,4 +50,4 @@ post_hook = 'nohup ~/.config/matugen/scripts/sync-nvim-mac.sh >/dev/null 2>&1 &'
[templates.pi]
input_path = '~/.config/matugen/templates/pi-theme.json'
output_path = '~/.pi/agent/themes/matugen.json.tmp'
post_hook = 'cat ~/.pi/agent/themes/matugen.json.tmp > ~/.pi/agent/themes/matugen.json'
post_hook = 'cat ~/.pi/agent/themes/matugen.json.tmp > ~/.pi/agent/themes/matugen.json && nohup ~/.config/matugen/scripts/sync-pi-mac.sh >/dev/null 2>&1 &'

View File

@@ -8,9 +8,9 @@ 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/
ssh mac-attio "mkdir -p ~/.config/nvim/lua/plugins"
scp "$HOME/.config/nvim/lua/plugins/dankcolors.lua" \
mac-attio:~/.config/nvim/lua/plugins/
} >>"$log_file" 2>&1
rmdir "$lock_dir"
fi

View File

@@ -0,0 +1,16 @@
#!/usr/bin/env sh
set -eu
lock_dir="$HOME/.cache/matugen-sync-pi.lock"
log_file="$HOME/.cache/matugen-sync-pi.log"
mkdir -p "$HOME/.cache"
if mkdir "$lock_dir" 2>/dev/null; then
{
ssh mac-attio "mkdir -p ~/.pi/agent/themes"
scp "$HOME/.pi/agent/themes/matugen.json" \
mac-attio:~/.pi/agent/themes/
} >>"$log_file" 2>&1
rmdir "$lock_dir"
fi

View File

@@ -0,0 +1,16 @@
#!/usr/bin/env sh
set -eu
lock_dir="$HOME/.cache/matugen-sync-zellij.lock"
log_file="$HOME/.cache/matugen-sync-zellij.log"
mkdir -p "$HOME/.cache"
if mkdir "$lock_dir" 2>/dev/null; then
{
ssh mac-attio "mkdir -p ~/.config/zellij/themes"
scp "$HOME/.config/zellij/themes/matugen.kdl" \
mac-attio:~/.config/zellij/themes/
} >>"$log_file" 2>&1
rmdir "$lock_dir"
fi