Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/smoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
lib/grok.sh
lib/x11.sh
scripts/install_v9_grok_models.sh
scripts/desktop-skin.sh
bin/grokhunter
bin/grokhunter-doctor
)
Expand Down
13 changes: 11 additions & 2 deletions bin/grokhunter
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ Usage:
grokhunter scout [prompt] Launch scout agent
grokhunter review [prompt] Launch review agent
grokhunter fix [prompt] Launch fix agent
grokhunter desktop [prompt] Launch desktop (X11) agent
grokhunter desktop [prompt|apply|status|revert|self-test] X11 agent or XFCE skin
grokhunter overlay [prompt] Launch overlay/install agent
grokhunter ship [prompt] Launch release/ship agent
grokhunter docs [prompt] Launch docs agent
Expand Down Expand Up @@ -927,6 +927,15 @@ main() {
shift || true
cmd_setup "$@"
;;
desktop)
case "${2:-}" in
apply|status|revert|self-test)
[[ -f "${GROKHUNTER_HOME}/lib/x11.sh" ]] || { echo "lib/x11.sh missing" >&2; exit 1; }
# shellcheck source=lib/x11.sh
source "${GROKHUNTER_HOME}/lib/x11.sh"
shift; run_desktop_skin "$@"; exit $? ;;
esac
shift || true; cmd_agent_launch desktop "$@"; ;;
menu|kali-menu|desktop-menu)
shift || true
cmd_menu "${1:-install}"
Expand All @@ -951,7 +960,7 @@ main() {
shift || true
cmd_agent_launch coding-team "$@"
;;
scout|benjamin|lucas|harper|review|fix|desktop|overlay|ship|docs|ci|aider|session|host|mcp|plugin|flow|storage|editor|hook|shell|github|secrets|toolchain|tls|net|tookie)
scout|benjamin|lucas|harper|review|fix|overlay|ship|docs|ci|aider|session|host|mcp|plugin|flow|storage|editor|hook|shell|github|secrets|toolchain|tls|net|tookie)
shift || true
cmd_agent_launch "${sub}" "$@"
;;
Expand Down
4 changes: 4 additions & 0 deletions docs/X11-PERFORMANCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ nh-x11

Related: [PROOT.md](PROOT.md), [INSTALL.md](INSTALL.md).

## GrokHunter XFCE skin

Brand-matched reversible skin (user xfconf only): `DISPLAY=:0 bash scripts/desktop-skin.sh apply --plate og --dpi 120 --panel-slim` — see `scripts/desktop-skin.sh`. Revert with `bash scripts/desktop-skin.sh revert`.

## Kali application menu

After desktop install (or anytime inside Kali):
Expand Down
19 changes: 19 additions & 0 deletions lib/x11.sh
Original file line number Diff line number Diff line change
Expand Up @@ -603,3 +603,22 @@ EOF
;;
esac
}


# ---------- GrokHunter XFCE desktop skin (issue #26) ----------
# Thin wrapper around scripts/desktop-skin.sh — user xfconf only.
run_desktop_skin() {
local root="${GROKHUNTER_HOME:-}"
local script=""
if [[ -n "${root}" && -f "${root}/scripts/desktop-skin.sh" ]]; then
script="${root}/scripts/desktop-skin.sh"
elif [[ -f "${BASH_SOURCE[0]%/*}/../scripts/desktop-skin.sh" ]]; then
script="$(cd "${BASH_SOURCE[0]%/*}/.." && pwd)/scripts/desktop-skin.sh"
else
echo "scripts/desktop-skin.sh not found (set GROKHUNTER_HOME)" >&2
return 1
fi
# shellcheck disable=SC2086
bash "${script}" "$@"
}

6 changes: 6 additions & 0 deletions scripts/ci-unit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ mapfile -t files < <(
extra=(
install.sh
uninstall.sh
scripts/desktop-skin.sh
lib/cli.sh
lib/actions.sh
lib/grok.sh
Expand Down Expand Up @@ -1391,4 +1392,9 @@ EOF
'
info "install_grok_statusline OK"

# ---------- desktop-skin self-test (no DISPLAY) ----------
[[ -f scripts/desktop-skin.sh ]] || die "missing scripts/desktop-skin.sh"
bash scripts/desktop-skin.sh self-test || die "desktop-skin self-test failed"
info "desktop-skin self-test OK"

info "ALL OK"
Loading
Loading