Add glassMxrph shell sources

Initial commit of the Quickshell desktop suite: bar, dock, launcher,
settings, Control Center, dashboard, OSD, lock screen, desktop widgets,
plugin host with the vendored Noctalia/Omarchy compatibility layer,
helpers, packaging, tests and phase documentation.

Includes the optimization work so far: usage widgets and dashboard
gauges no longer animate continuously, desktop widgets pause while
covered, system controls stop flickering on background polls, dock app
matching uses an indexed catalog, and workspace ghosts are created only
for occupied slots.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
mxandClaude Opus 5.5 committed 2026-10-07 22:36:17 +02:00
commit 99e64a7713
433 files changed
+57792

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
#!/bin/sh
# Rebuild Qt shader packs (.qsb) from GLSL sources. Requires qsb from Qt Shader
# Tools matching the runtime Qt major version; with Nix:
# nix shell nixpkgs#qt6.qtshadertools -c ./scripts/build-shaders
set -eu
project_dir=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
for source in "$project_dir"/quickshell/lock/shaders/*.frag; do
qsb --glsl "100 es,120,150" --hlsl 50 --msl 12 -o "$source.qsb" "$source"
done
+28
View File
@@ -0,0 +1,28 @@
#!/usr/bin/env python3
"""Read-only environment diagnostics. Never starts a shell or changes the session."""
import json
import os
import shutil
import subprocess
import sys
def query(args):
try:
p=subprocess.run(args,capture_output=True,text=True,timeout=4)
return (p.stdout or p.stderr).strip()[:1600] if p.returncode==0 else 'Unavailable'
except (OSError,subprocess.TimeoutExpired):return 'Unavailable'
def report():
required={name:bool(shutil.which(name)) for name in ['quickshell','python3','hyprctl']}
return dict(required=required,
session=dict(wayland=bool(os.environ.get('WAYLAND_DISPLAY')),hyprland=bool(os.environ.get('HYPRLAND_INSTANCE_SIGNATURE')),dbus=bool(os.environ.get('DBUS_SESSION_BUS_ADDRESS'))),
versions=dict(quickshell=query(['quickshell','--version']),hyprland=query(['hyprctl','version']).splitlines()[0]),
hyprglass=dict(plugins=query(['hyprctl','plugin','list']),layers=query(['hyprctl','getoption','plugin:hyprglass:layers:enabled'])),
optional={name:bool(shutil.which(name)) for name in ['matugen','cava','nvidia-smi','brightnessctl','busctl','nm-connection-editor','blueman-manager']},
note='Command discovery only: QML module availability, service capabilities and compositor rules still require runtime validation. No changes made.')
if __name__=='__main__':
result=report();print(json.dumps(result,indent=2))
sys.exit(0 if all(result['required'].values()) and all(result['session'].values()) else 1)
+65
View File
@@ -0,0 +1,65 @@
#!/bin/sh
set -eu
project_dir=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
case "${1:-run}" in
doctor)
exec python3 "$project_dir/scripts/doctor.py"
;;
run)
for glassmxrph_dependency in quickshell python3; do
command -v "$glassmxrph_dependency" >/dev/null 2>&1 || { echo "glassMxrph requires $glassmxrph_dependency on PATH" >&2; exit 127; }
done
# Qt may need the database root when /etc/localtime points outside /usr/share.
# Honor an explicit TZDIR and derive only from an existing zoneinfo symlink.
if [ -z "${TZDIR:-}" ]; then
glassmxrph_timezone_path=$(readlink -f /etc/localtime 2>/dev/null || true)
case "$glassmxrph_timezone_path" in
*/zoneinfo/*) TZDIR="${glassmxrph_timezone_path%/zoneinfo/*}/zoneinfo"; export TZDIR ;;
esac
fi
mkdir -p "${XDG_CONFIG_HOME:-$HOME/.config}/glassMxrph" "${XDG_STATE_HOME:-$HOME/.local/state}/glassMxrph"
# Portable Omarchy helper commands that shell plugins call.
export PATH="$project_dir/quickshell/compat/omarchy/bin:$PATH"
exec quickshell --no-duplicate --path "$project_dir/quickshell"
;;
wallpaper)
exec quickshell ipc --path "$project_dir/quickshell" call wallpaper picker
;;
controlcenter)
exec quickshell ipc --path "$project_dir/quickshell" call controlcenter toggle
;;
launcher)
exec quickshell ipc --path "$project_dir/quickshell" call launcher toggle
;;
plugin)
# glassmxrph plugin [list|install SOURCE|remove ID|enable ID|disable ID|summon ID|toggle ID]
action=${2:-list}
case "$action" in
summon|toggle) exec quickshell ipc --path "$project_dir/quickshell" call plugins "$action" "${3:?plugin id}" "${4:-}" ;;
list|status) exec quickshell ipc --path "$project_dir/quickshell" call plugins "$action" ;;
*) exec quickshell ipc --path "$project_dir/quickshell" call plugins "$action" "${3:?argument required}" ;;
esac
;;
dashboard)
# glassmxrph dashboard [dashboard|media|performance|power]
exec quickshell ipc --path "$project_dir/quickshell" call dashboard toggle "${2:-}"
;;
lock)
exec quickshell ipc --path "$project_dir/quickshell" call lock lock
;;
widgets)
exec quickshell ipc --path "$project_dir/quickshell" call widgets toggle
;;
osd)
# glassmxrph osd [volumeUp|volumeDown|mute|micMute|brightnessUp|brightnessDown|open KIND]
action=${2:-open}
if [ "$action" = open ] || [ "$action" = show ]; then
exec quickshell ipc --path "$project_dir/quickshell" call osd open "${3:-volume}"
fi
exec quickshell ipc --path "$project_dir/quickshell" call osd "$action"
;;
settings|close|status)
exec quickshell ipc --path "$project_dir/quickshell" call shell "$1"
;;
*) echo 'Usage: glassmxrph [run|wallpaper|launcher|dashboard [TAB]|plugin ACTION|controlcenter|lock|widgets|osd ACTION|settings|close|status|doctor]' >&2; exit 2 ;;
esac
+15
View File
@@ -0,0 +1,15 @@
#!/bin/sh
set -eu
project_dir=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
node "$project_dir/tests/config.test.cjs"
node "$project_dir/tests/polish.test.cjs"
node "$project_dir/tests/dock.test.cjs"
node "$project_dir/tests/launcher.test.cjs"
node "$project_dir/tests/widgets.test.cjs"
python3 "$project_dir/tests/providers_test.py"
python3 "$project_dir/tests/system_providers_test.py"
python3 "$project_dir/tests/metrics_test.py"
python3 "$project_dir/tests/glass_test.py"
# compat/ holds vendored third-party UI kits (qs.compat.* imports qmllint cannot
# resolve); they are exercised by the plugin runtime test instead.
find "$project_dir/quickshell" -name '*.qml' -not -path '*/compat/*' -exec qmllint -E "$@" {} +