From 09b08492ba88efd85ff8b36442d7fb7b063c5ce1 Mon Sep 17 00:00:00 2001 From: Bas Grolleman Date: Thu, 28 May 2026 09:49:25 +0200 Subject: [PATCH] Add claude notifications --- claude/settings.json | 25 +++++++++++++++++++++++++ setup.sh | 3 +++ 2 files changed, 28 insertions(+) create mode 100644 claude/settings.json diff --git a/claude/settings.json b/claude/settings.json new file mode 100644 index 0000000..a8b5a88 --- /dev/null +++ b/claude/settings.json @@ -0,0 +1,25 @@ +{ + "theme": "dark", + "hooks": { + "Stop": [ + { + "hooks": [ + { + "type": "command", + "command": "notify-send 'Claude' 'Task complete' --icon=dialog-information 2>/dev/null || true" + } + ] + } + ], + "Notification": [ + { + "hooks": [ + { + "type": "command", + "command": "msg=$(jq -r '.message // \"Needs your input\"' 2>/dev/null || echo 'Needs your input'); notify-send 'Claude needs input' \"$msg\" --icon=dialog-question 2>/dev/null || true" + } + ] + } + ] + } +} diff --git a/setup.sh b/setup.sh index 81efd7b..c1ce6b2 100755 --- a/setup.sh +++ b/setup.sh @@ -29,3 +29,6 @@ configlink polybar configlink picom.conf configlink niri configlink noctalia + +checkdir ~/.claude +link ~/.claude/settings.json ~/.dotfiles/claude/settings.json