feat(scripts): configure client title bars and add Hermes scratch workspace

This commit is contained in:
root committed 2026-11-10 15:23:41 -05:00
1 parent 7f177ea041
commit e1e6d281c8
2 files changed
+17 -3

No files matched your search

@@ -7,3 +7,12 @@ if command -v bat >/dev/null 2>&1; then bat cache --build >/dev/null || true; fi
{{ if eq .chezmoi.os "linux" -}}
if command -v fc-cache >/dev/null 2>&1; then fc-cache -f >/dev/null || true; fi
{{ end -}}
{{ if and (eq .chezmoi.os "linux") (or (eq .role "desktop") (eq .role "laptop")) -}}
# No minimize/maximize/close buttons in client-side title bars: GTK and
# libadwaita header bars, Chromium/Brave, and Electron 43+ window-controls
# overlays all read this layout. Windows close with SUPER + Q.
if command -v gsettings >/dev/null 2>&1; then
gsettings set org.gnome.desktop.wm.preferences button-layout ':' || true
fi
{{ end -}}
@@ -1,10 +1,10 @@
#!/bin/bash
# omarchy:summary=Toggle a scratch workspace (scratchpad, home, lmstudio), starting its resident apps when any is missing.
# omarchy:summary=Toggle a scratch workspace (scratchpad, home, lmstudio, hermes), starting its resident apps when any is missing.
set -uo pipefail
# Usage: omarchy-toggle-scratch [scratchpad|home|lmstudio]
# Usage: omarchy-toggle-scratch [scratchpad|home|lmstudio|hermes]
#
# Each profile is a special workspace, the monitor it opens on, and its
# resident apps (class pattern -> launch command; the pattern is an anchored
@@ -37,8 +37,13 @@ lmstudio)
NAME="lmstudio"
MEMBERS=("ai\.elementlabs\.lmstudio|gtk-launch ai.elementlabs.lmstudio")
;;
hermes)
NAME="hermes"
# No | in the pattern: it separates pattern from launch command.
MEMBERS=("(com\.nousresearch\.)?[Hh]ermes|gtk-launch hermes-desktop")
;;
*)
echo "usage: ${0##*/} [scratchpad|home|lmstudio]" >&2
echo "usage: ${0##*/} [scratchpad|home|lmstudio|hermes]" >&2
exit 2
;;
esac