Compare commits

...
4 Commits
Author SHA1 Message Date
bgrolleman 865a1923f5 Adding claude config 2026-07-04 14:47:22 +02:00
bgrolleman 279ca4a247 Merge branch 'main' of github.com:bgrolleman/dotfiles 2026-07-04 09:19:37 +02:00
bgrolleman 726ad9df73 Add workspaces to niri 2026-06-02 21:09:34 +02:00
bgrolleman 09b08492ba Add claude notifications 2026-05-28 09:49:25 +02:00
5 changed files with 148 additions and 0 deletions
+68
View File
@@ -0,0 +1,68 @@
{
"permissions": {
"defaultMode": "auto"
},
"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"
}
]
}
]
},
"statusLine": {
"type": "command",
"command": "bash \"/home/bgrolleman/.claude/statusline-command.sh\""
},
"enabledPlugins": {
"frontend-design@claude-plugins-official": true,
"lua-lsp@claude-plugins-official": true,
"ponytail@ponytail": true
},
"extraKnownMarketplaces": {
"ponytail": {
"source": {
"source": "github",
"repo": "DietrichGebert/ponytail"
}
},
"caveman": {
"source": {
"source": "github",
"repo": "juliusbrussee/caveman"
}
}
},
"effortLevel": "high",
"advisorModel": "opus",
"voice": {
"enabled": true,
"mode": "hold"
},
"theme": "dark",
"agentPushNotifEnabled": true,
"skipAutoPermissionPrompt": true,
"voiceEnabled": true,
"mcpServers": {
"comfyui-image-gen": {
"command": "/home/bgrolleman/Project/ComfyUI/.venv/bin/python",
"args": [
"/home/bgrolleman/Project/ComfyUI/mcp_server.py"
]
}
}
}
+74
View File
@@ -0,0 +1,74 @@
#!/bin/bash
# Claude Code status line
# Shows: model display name, a progress bar for context-window tokens
# remaining in this session, current git branch, active subagent (if any),
# and enabled plugins (read from ~/.claude/settings.json).
input=$(cat)
model=$(echo "$input" | jq -r '.model.display_name // "unknown"')
cwd=$(echo "$input" | jq -r '.workspace.current_dir // empty')
remaining=$(echo "$input" | jq -r '.context_window.remaining_percentage // empty')
agent_name=$(echo "$input" | jq -r '.agent.name // empty')
# --- Colors (kept modest; Claude Code renders the status line dimmed) ---
c_model='\033[36m' # cyan
c_bar='\033[32m' # green
c_branch='\033[33m' # yellow
c_agent='\033[35m' # magenta
c_plugin='\033[34m' # blue
c_reset='\033[0m'
# --- Git branch (skip optional locks; silent if not a repo) ---
branch=""
if [ -n "$cwd" ]; then
branch=$(git --no-optional-locks -C "$cwd" branch --show-current 2>/dev/null)
fi
# --- Enabled plugins, read from settings.json (not present on stdin) ---
settings_file="$HOME/.claude/settings.json"
plugins=""
if [ -f "$settings_file" ]; then
plugins=$(jq -r '.enabledPlugins // {} | to_entries[] | select(.value == true) | .key | split("@")[0]' "$settings_file" 2>/dev/null | paste -sd, -)
fi
# --- Context-window remaining-tokens progress bar ---
bar=""
if [ -n "$remaining" ]; then
pct=${remaining%.*}
[ -z "$pct" ] && pct=0
[ "$pct" -lt 0 ] 2>/dev/null && pct=0
[ "$pct" -gt 100 ] 2>/dev/null && pct=100
total_blocks=10
filled=$(( pct * total_blocks / 100 ))
[ "$filled" -gt "$total_blocks" ] && filled=$total_blocks
[ "$filled" -lt 0 ] && filled=0
empty=$(( total_blocks - filled ))
bar="["
i=0
while [ "$i" -lt "$filled" ]; do bar="${bar}"; i=$((i + 1)); done
i=0
while [ "$i" -lt "$empty" ]; do bar="${bar}"; i=$((i + 1)); done
bar="${bar}] ${pct}% left"
fi
# --- Assemble the status line ---
printf "${c_model}%s${c_reset}" "$model"
if [ -n "$bar" ]; then
printf " ${c_bar}%s${c_reset}" "$bar"
fi
if [ -n "$branch" ]; then
printf " ${c_branch}git:%s${c_reset}" "$branch"
fi
if [ -n "$agent_name" ]; then
printf " ${c_agent}agent:%s${c_reset}" "$agent_name"
fi
if [ -n "$plugins" ]; then
printf " ${c_plugin}plugins:%s${c_reset}" "$plugins"
fi
printf '\n'
+2
View File
@@ -0,0 +1,2 @@
workspace "browser"
workspace "chat"
+1
View File
@@ -6,3 +6,4 @@ include "./cfg/display.kdl"
include "./cfg/layout.kdl" include "./cfg/layout.kdl"
include "./cfg/rules.kdl" include "./cfg/rules.kdl"
include "./cfg/misc.kdl" include "./cfg/misc.kdl"
include "./cfg/workspaces.kdl"
+3
View File
@@ -29,3 +29,6 @@ configlink polybar
configlink picom.conf configlink picom.conf
configlink niri configlink niri
configlink noctalia configlink noctalia
checkdir ~/.claude
link ~/.claude/settings.json ~/.dotfiles/claude/settings.json