Fix fswatch trigger event for services in systemctl. Add guards to subscripts in colorsync service
This commit is contained in:
parent
a1969ce04e
commit
e20321245c
2 changed files with 11 additions and 9 deletions
|
|
@ -12,10 +12,15 @@ let
|
|||
name = "colorsync-scriptrunner";
|
||||
colorsyncScriptWrapper = pkgs.writeShellScriptBin "${name}-wrapper" ''
|
||||
set -euo pipefail
|
||||
|
||||
echo colorsync-scriptrunner is executing
|
||||
"$HOME/.config/tmux/tmux-statusbar-color.sh"
|
||||
"$HOME/.config/ghostty/ghostty-change-theme.sh"
|
||||
|
||||
if tmux has-session 2>/dev/null; then
|
||||
"$HOME/.config/tmux/tmux-statusbar-color.sh" || true
|
||||
fi
|
||||
|
||||
if command -v ghostty >/dev/null 2>&1; then
|
||||
"$HOME/.config/ghostty/ghostty-change-theme.sh" || true
|
||||
fi
|
||||
'';
|
||||
root = "$HOME/.local/state/colorsync/current";
|
||||
in
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue