Add Clipboard History as a launcher mode backed by cliphist

The launcher gains a clipboard mode with the same bar, position and size:
the latest five entries show at once and the rest scroll, search filters
in recency order, Enter copies, Shift+Delete removes an entry. >clipboard
switches in place without closing or animating; glassmxrph clipboard
toggles it directly. History stays with the user's cliphist watcher.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
mxandClaude Opus 5.5 committed 2026-10-15 15:16:14 +02:00
1 parent 44a5aedbb2
commit 5a10469efe
15 files changed
+392 -24

No files matched your search

+4 -1
View File
@@ -31,6 +31,9 @@ case "${1:-run}" in
launcher)
exec quickshell ipc --path "$project_dir/quickshell" call launcher toggle
;;
clipboard)
exec quickshell ipc --path "$project_dir/quickshell" call launcher clipboard
;;
plugin)
# glassmxrph plugin [list|install SOURCE|remove ID|enable ID|disable ID|summon ID|toggle ID]
action=${2:-list}
@@ -67,5 +70,5 @@ case "${1:-run}" in
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|notifications ACTION|settings|close|status|doctor]' >&2; exit 2 ;;
*) echo 'Usage: glassmxrph [run|wallpaper|launcher|clipboard|dashboard [TAB]|plugin ACTION|controlcenter|lock|widgets|osd ACTION|notifications ACTION|settings|close|status|doctor]' >&2; exit 2 ;;
esac
+1
View File
@@ -10,6 +10,7 @@ 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"
python3 "$project_dir/tests/clipboard_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 "$@" {} +