matugen: replace script process with borders instead of exiting

This commit is contained in:
Nico 2025-12-19 00:13:37 +11:00
parent f76c0ecad8
commit ea9c6783cc
Signed by: nico
SSH key fingerprint: SHA256:XuacYOrGqRxC3jVFjfLROn1CSvLz85Dec6N7O9Gwu/0
2 changed files with 3 additions and 5 deletions

View file

@ -63,7 +63,7 @@ post_hook = 'sketchybar --reload'
[templates.jankyborders]
input_path = './templates/jankyborders.sh'
output_path = '~/.cache/matugen-jankyborders.sh'
post_hook = 'sh ~/.cache/matugen-jankyborders.sh'
post_hook = 'sh ~/.cache/matugen-jankyborders.sh & disown'
[templates.zsh]
input_path = './templates/zsh.sh'

View file

@ -3,9 +3,7 @@
killall borders
if [ "{{ rounding }}" = 0 ]; then
nohup borders active_color=0xFF{{colors.primary.default.hex_stripped}} inactive_color=0xFF{{colors.background.default.hex_stripped}} width=6.0 style=square > /dev/null &
exec borders active_color=0xFF{{colors.primary.default.hex_stripped}} inactive_color=0xFF{{colors.background.default.hex_stripped}} width=6.0 style=square
else
nohup borders active_color=0xFF{{colors.primary.default.hex_stripped}} inactive_color=0xFF{{colors.background.default.hex_stripped}} width=6.0 style=round > /dev/null &
exec borders active_color=0xFF{{colors.primary.default.hex_stripped}} inactive_color=0xFF{{colors.background.default.hex_stripped}} width=6.0 style=round
fi
exit