diff --git a/.chezmoiscripts/run_onchange_after_40-post.sh.tmpl b/.chezmoiscripts/run_onchange_after_40-post.sh.tmpl index 1842acb..b675130 100644 --- a/.chezmoiscripts/run_onchange_after_40-post.sh.tmpl +++ b/.chezmoiscripts/run_onchange_after_40-post.sh.tmpl @@ -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 -}} diff --git a/dot_local/bin/executable_omarchy-toggle-scratch b/dot_local/bin/executable_omarchy-toggle-scratch index 479cb11..518c3b5 100755 --- a/dot_local/bin/executable_omarchy-toggle-scratch +++ b/dot_local/bin/executable_omarchy-toggle-scratch @@ -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