diff options
| author | AlexanderCurl <alexc@alexc.hu> | 2026-04-18 17:46:06 +0100 |
|---|---|---|
| committer | AlexanderCurl <alexc@alexc.hu> | 2026-04-18 17:46:06 +0100 |
| commit | 70ca3fef77ee8bdc6e3ac28589a6fa08c024cc69 (patch) | |
| tree | ab1123d4067c1b086dd6faa7ee4ea643236b565a /raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/scripts | |
| parent | 5d94c0a7d44a2255b81815a52a7056a94a39842d (diff) | |
| download | RaveOS-PKGBUILD-70ca3fef77ee8bdc6e3ac28589a6fa08c024cc69.tar.gz RaveOS-PKGBUILD-70ca3fef77ee8bdc6e3ac28589a6fa08c024cc69.zip | |
Replaced file structures for themes in the correct format
Diffstat (limited to 'raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/scripts')
6 files changed, 0 insertions, 923 deletions
diff --git a/raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/scripts/gtk.sh b/raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/scripts/gtk.sh deleted file mode 100755 index 454b0f2..0000000 --- a/raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/scripts/gtk.sh +++ /dev/null @@ -1,66 +0,0 @@ -#!/usr/bin/env bash - -CONFIG_DIR="$1" - -if [ -z "$CONFIG_DIR" ]; then - echo "Usage: $0 <config_dir>" >&2 - exit 1 -fi - -apply_gtk3_colors() { - local config_dir="$1" - - local gtk3_dir="$config_dir/gtk-3.0" - local dank_colors="$gtk3_dir/dank-colors.css" - local gtk_css="$gtk3_dir/gtk.css" - - if [ ! -f "$dank_colors" ]; then - echo "Error: dank-colors.css not found at $dank_colors" >&2 - echo "Run matugen first to generate theme files" >&2 - exit 1 - fi - - if [ -L "$gtk_css" ]; then - rm "$gtk_css" - elif [ -f "$gtk_css" ]; then - mv "$gtk_css" "$gtk_css.backup.$(date +%s)" - echo "Backed up existing gtk.css" - fi - - ln -s "dank-colors.css" "$gtk_css" - echo "Created symlink: $gtk_css -> dank-colors.css" -} - -apply_gtk4_colors() { - local config_dir="$1" - - local gtk4_dir="$config_dir/gtk-4.0" - local dank_colors="$gtk4_dir/dank-colors.css" - local gtk_css="$gtk4_dir/gtk.css" - local gtk4_import="@import url(\"dank-colors.css\");" - - if [ ! -f "$dank_colors" ]; then - echo "Error: GTK4 dank-colors.css not found at $dank_colors" >&2 - echo "Run matugen first to generate theme files" >&2 - exit 1 - fi - - if [ -f "$gtk_css" ] && grep -q '^@import url.*dank-colors\.css.*);$' "$gtk_css"; then - echo "GTK4 import already exists" - return - fi - - if [ -f "$gtk_css" ] && [ -s "$gtk_css" ]; then - sed -i "1i\\$gtk4_import" "$gtk_css" - else - echo "$gtk4_import" >"$gtk_css" - fi - echo "Updated GTK4 CSS import" -} - -mkdir -p "$CONFIG_DIR/gtk-3.0" "$CONFIG_DIR/gtk-4.0" - -apply_gtk3_colors "$CONFIG_DIR" -apply_gtk4_colors "$CONFIG_DIR" - -echo "GTK colors applied successfully" diff --git a/raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/scripts/i18nsync.py b/raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/scripts/i18nsync.py deleted file mode 100755 index 42cc7a5..0000000 --- a/raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/scripts/i18nsync.py +++ /dev/null @@ -1,361 +0,0 @@ -#!/usr/bin/env python3 - -import sys -import json -import os -import subprocess -from pathlib import Path -from urllib import request, parse - -REPO_ROOT = Path(__file__).parent.parent -EN_JSON = REPO_ROOT / "translations" / "en.json" -TEMPLATE_JSON = REPO_ROOT / "translations" / "template.json" -POEXPORTS_DIR = REPO_ROOT / "translations" / "poexports" -SYNC_STATE = REPO_ROOT / ".git" / "i18n_sync_state.json" - -LANGUAGES = { - "ja": "ja.json", - "zh-Hans": "zh_CN.json", - "zh-Hant": "zh_TW.json", - "pt-br": "pt.json", - "tr": "tr.json", - "it": "it.json", - "pl": "pl.json", - "es": "es.json", - "he": "he.json", - "hu": "hu.json", - "fa": "fa.json", - "fr": "fr.json", - "nl": "nl.json", - "ru": "ru.json", - "de": "de.json", - "sv": "sv.json" -} - -def error(msg): - print(f"\033[91mError: {msg}\033[0m", file=sys.stderr) - sys.exit(1) - -def warn(msg): - print(f"\033[93mWarning: {msg}\033[0m", file=sys.stderr) - -def info(msg): - print(f"\033[94m{msg}\033[0m") - -def success(msg): - print(f"\033[92m{msg}\033[0m") - -def get_env_or_error(var): - value = os.environ.get(var) - if not value: - error(f"{var} environment variable not set") - return value - -def poeditor_request(endpoint, data): - url = f"https://api.poeditor.com/v2/{endpoint}" - data_bytes = parse.urlencode(data).encode() - req = request.Request(url, data=data_bytes, method="POST") - - try: - with request.urlopen(req) as response: - return json.loads(response.read().decode()) - except Exception as e: - error(f"POEditor API request failed: {e}") - -def extract_strings(): - info("Extracting strings from QML files...") - extract_script = REPO_ROOT / "translations" / "extract_translations.py" - - if not extract_script.exists(): - error(f"Extract script not found: {extract_script}") - - result = subprocess.run([sys.executable, str(extract_script)], cwd=REPO_ROOT) - if result.returncode != 0: - error("String extraction failed") - - if not EN_JSON.exists(): - error(f"Extraction did not produce {EN_JSON}") - -def normalize_json(file_path): - if not file_path.exists(): - return {} - with open(file_path) as f: - return json.load(f) - -def json_changed(file_path, new_data): - old_data = normalize_json(file_path) - return json.dumps(old_data, sort_keys=True) != json.dumps(new_data, sort_keys=True) - -def upload_source_strings(api_token, project_id): - if not EN_JSON.exists(): - warn("No en.json to upload") - return False - - info("Uploading source strings to POEditor...") - - with open(EN_JSON, 'rb') as f: - boundary = '----WebKitFormBoundary7MA4YWxkTrZu0gW' - body = ( - f'--{boundary}\r\n' - f'Content-Disposition: form-data; name="api_token"\r\n\r\n' - f'{api_token}\r\n' - f'--{boundary}\r\n' - f'Content-Disposition: form-data; name="id"\r\n\r\n' - f'{project_id}\r\n' - f'--{boundary}\r\n' - f'Content-Disposition: form-data; name="updating"\r\n\r\n' - f'terms\r\n' - f'--{boundary}\r\n' - f'Content-Disposition: form-data; name="file"; filename="en.json"\r\n' - f'Content-Type: application/json\r\n\r\n' - ).encode() + f.read() + f'\r\n--{boundary}--\r\n'.encode() - - req = request.Request( - 'https://api.poeditor.com/v2/projects/upload', - data=body, - headers={'Content-Type': f'multipart/form-data; boundary={boundary}'} - ) - - try: - with request.urlopen(req) as response: - result = json.loads(response.read().decode()) - except Exception as e: - error(f"Upload failed: {e}") - - if result.get('response', {}).get('status') != 'success': - error(f"POEditor upload failed: {result}") - - terms = result.get('result', {}).get('terms', {}) - added = terms.get('added', 0) - updated = terms.get('updated', 0) - deleted = terms.get('deleted', 0) - - if added or updated or deleted: - success(f"POEditor updated: {added} added, {updated} updated, {deleted} deleted") - return True - else: - info("No changes uploaded to POEditor") - return False - -def download_translations(api_token, project_id): - info("Downloading translations from POEditor...") - - POEXPORTS_DIR.mkdir(parents=True, exist_ok=True) - any_changed = False - - for po_lang, filename in LANGUAGES.items(): - repo_file = POEXPORTS_DIR / filename - - info(f"Fetching {po_lang}...") - - export_resp = poeditor_request('projects/export', { - 'api_token': api_token, - 'id': project_id, - 'language': po_lang, - 'type': 'key_value_json' - }) - - if export_resp.get('response', {}).get('status') != 'success': - warn(f"Export request failed for {po_lang}") - continue - - url = export_resp.get('result', {}).get('url') - if not url: - warn(f"No export URL for {po_lang}") - continue - - try: - with request.urlopen(url) as response: - new_data = json.loads(response.read().decode()) - except Exception as e: - warn(f"Failed to download {po_lang}: {e}") - continue - - if json_changed(repo_file, new_data): - with open(repo_file, 'w') as f: - json.dump(new_data, f, ensure_ascii=False, indent=2, sort_keys=True) - f.write('\n') - success(f"Updated {filename}") - any_changed = True - else: - info(f"No changes for {filename}") - - return any_changed - -def check_sync_status(): - api_token = get_env_or_error('POEDITOR_API_TOKEN') - project_id = get_env_or_error('POEDITOR_PROJECT_ID') - - extract_strings() - - current_en = normalize_json(EN_JSON) - - if not SYNC_STATE.exists(): - return True - - with open(SYNC_STATE) as f: - state = json.load(f) - - last_en = state.get('en_json', {}) - last_translations = state.get('translations', {}) - - if json.dumps(current_en, sort_keys=True) != json.dumps(last_en, sort_keys=True): - return True - - for po_lang, filename in LANGUAGES.items(): - repo_file = POEXPORTS_DIR / filename - current_trans = normalize_json(repo_file) - last_trans = last_translations.get(filename, {}) - - if json.dumps(current_trans, sort_keys=True) != json.dumps(last_trans, sort_keys=True): - return True - - export_resp = poeditor_request('projects/export', { - 'api_token': api_token, - 'id': project_id, - 'language': list(LANGUAGES.keys())[0], - 'type': 'key_value_json' - }) - - if export_resp.get('response', {}).get('status') == 'success': - url = export_resp.get('result', {}).get('url') - if url: - try: - with request.urlopen(url) as response: - remote_data = json.loads(response.read().decode()) - first_file = POEXPORTS_DIR / list(LANGUAGES.values())[0] - local_data = normalize_json(first_file) - - if json.dumps(remote_data, sort_keys=True) != json.dumps(local_data, sort_keys=True): - return True - except: - pass - - return False - -def save_sync_state(): - state = { - 'en_json': normalize_json(EN_JSON), - 'translations': {} - } - - for filename in LANGUAGES.values(): - repo_file = POEXPORTS_DIR / filename - state['translations'][filename] = normalize_json(repo_file) - - SYNC_STATE.parent.mkdir(parents=True, exist_ok=True) - with open(SYNC_STATE, 'w') as f: - json.dump(state, f, indent=2) - -def main(): - if len(sys.argv) < 2: - error("Usage: i18nsync.py [check|sync|test|local]") - - command = sys.argv[1] - - if command == "test": - info("Running in test mode (no POEditor upload/download)") - extract_strings() - - current_en = normalize_json(EN_JSON) - current_template = normalize_json(TEMPLATE_JSON) - - success(f"✓ Extracted {len(current_en)} terms") - - terms_with_context = sum(1 for entry in current_en if entry.get('context') and entry['context'] != entry['term']) - if terms_with_context > 0: - success(f"✓ Found {terms_with_context} terms with custom contexts") - - info("\nFiles generated:") - info(f" - {EN_JSON}") - info(f" - {TEMPLATE_JSON}") - - sys.exit(0) - elif command == "check": - try: - if check_sync_status(): - error("i18n out of sync - run 'python3 scripts/i18nsync.py sync' first") - else: - success("i18n in sync") - sys.exit(0) - except SystemExit: - raise - except Exception as e: - error(f"Check failed: {e}") - - elif command == "sync": - api_token = get_env_or_error('POEDITOR_API_TOKEN') - project_id = get_env_or_error('POEDITOR_PROJECT_ID') - - extract_strings() - - current_en = normalize_json(EN_JSON) - staged_en = {} - - try: - result = subprocess.run( - ['git', 'show', f':{EN_JSON.relative_to(REPO_ROOT)}'], - capture_output=True, - text=True, - cwd=REPO_ROOT - ) - if result.returncode == 0: - staged_en = json.loads(result.stdout) - except: - pass - - strings_changed = json.dumps(current_en, sort_keys=True) != json.dumps(staged_en, sort_keys=True) - - if strings_changed: - upload_source_strings(api_token, project_id) - else: - info("No changes in source strings") - - translations_changed = download_translations(api_token, project_id) - - if strings_changed or translations_changed: - subprocess.run(['git', 'add', 'translations/'], cwd=REPO_ROOT) - save_sync_state() - success("Sync complete - changes staged for commit") - else: - save_sync_state() - info("Already in sync") - - elif command == "local": - info("Updating en.json locally (no POEditor sync)") - - old_en = normalize_json(EN_JSON) - old_terms = {entry['term']: entry for entry in old_en} if isinstance(old_en, list) else {} - - extract_strings() - - new_en = normalize_json(EN_JSON) - new_terms = {entry['term']: entry for entry in new_en} if isinstance(new_en, list) else {} - - added = set(new_terms.keys()) - set(old_terms.keys()) - removed = set(old_terms.keys()) - set(new_terms.keys()) - - if added: - info(f"\n+{len(added)} new terms:") - for term in sorted(added)[:20]: - print(f" + {term[:60]}...") - if len(added) > 20: - print(f" ... and {len(added) - 20} more") - - if removed: - info(f"\n-{len(removed)} removed terms:") - for term in sorted(removed)[:20]: - print(f" - {term[:60]}...") - if len(removed) > 20: - print(f" ... and {len(removed) - 20} more") - - success(f"\n✓ {len(new_en)} total terms") - - if not added and not removed: - info("No changes detected") - - else: - error(f"Unknown command: {command}") - -if __name__ == '__main__': - main() diff --git a/raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/scripts/qmllint-entrypoints.sh b/raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/scripts/qmllint-entrypoints.sh deleted file mode 100755 index 41c5a74..0000000 --- a/raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/scripts/qmllint-entrypoints.sh +++ /dev/null @@ -1,129 +0,0 @@ -#!/usr/bin/env bash -set -euo pipefail - -script_dir="$( - CDPATH='' - cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -)" -repo_root="$( - CDPATH='' - cd -- "${script_dir}/../.." && pwd -)" -quickshell_dir="${repo_root}/quickshell" -qmlls_config="${quickshell_dir}/.qmlls.ini" - -# Resolve qmllint: honour QMLLINT, then try common Qt 6 binary names and -# install paths, and finally bare qmllint. We need the Qt 6 build (>= 6.x) -# because older Qt 5 qmllint doesn't understand --ignore-settings / -W. -resolve_qmllint() { - if [[ -n "${QMLLINT:-}" ]]; then - printf '%s\n' "${QMLLINT}" - return - fi - local candidate - for candidate in qmllint6 qmllint-qt6 /usr/lib/qt6/bin/qmllint qmllint; do - if command -v -- "${candidate}" >/dev/null 2>&1; then - printf '%s\n' "${candidate}" - return - fi - done - return 1 -} - -if ! qmllint_bin="$(resolve_qmllint)"; then - printf 'error: qmllint (Qt 6) not found in PATH (override with QMLLINT=/path/to/qmllint)\n' >&2 - exit 127 -fi - -print_broken_qmlls_link() { - local target="" - target="$(readlink -- "${qmlls_config}" 2>/dev/null || true)" - printf 'error: %s is a broken symlink. lint-qml requires a live Quickshell tooling VFS.\n' "${qmlls_config}" >&2 - if [[ -n "${target}" ]]; then - printf 'Broken target: %s\n' "${target}" >&2 - fi - print_vfs_recovery -} - -trim_ini_value() { - local value="$1" - value="${value#\"}" - value="${value%\"}" - printf '%s\n' "${value}" -} - -read_ini_value() { - local key="$1" - local file="$2" - local raw - - raw="$(sed -n "s/^${key}=//p" "${file}" | head -n 1)" - if [[ -z "${raw}" ]]; then - return 1 - fi - - trim_ini_value "${raw}" -} - -print_vfs_recovery() { - printf 'Generate it by starting the local shell config once, for example:\n' >&2 - printf ' dms -c %q run\n' "${quickshell_dir}" >&2 - printf ' qs -p %q\n' "${quickshell_dir}" >&2 -} - -if [[ -L "${qmlls_config}" && ! -e "${qmlls_config}" ]]; then - print_broken_qmlls_link - exit 1 -fi - -if [[ ! -e "${qmlls_config}" ]]; then - printf 'error: %s is missing. lint-qml requires the Quickshell tooling VFS.\n' "${qmlls_config}" >&2 - print_vfs_recovery - exit 1 -fi - -if ! build_dir="$(read_ini_value "buildDir" "${qmlls_config}")"; then - printf 'error: %s does not contain a buildDir entry.\n' "${qmlls_config}" >&2 - print_vfs_recovery - exit 1 -fi - -if ! import_paths_raw="$(read_ini_value "importPaths" "${qmlls_config}")"; then - printf 'error: %s does not contain an importPaths entry.\n' "${qmlls_config}" >&2 - print_vfs_recovery - exit 1 -fi - -if [[ ! -d "${build_dir}" || ! -f "${build_dir}/qs/qmldir" ]]; then - printf 'error: Quickshell tooling VFS is missing or stale: %s\n' "${build_dir}" >&2 - print_vfs_recovery - exit 1 -fi - -targets=( - "${quickshell_dir}/shell.qml" - "${quickshell_dir}/DMSShell.qml" - "${quickshell_dir}/DMSGreeter.qml" -) - -qmllint_args=( - --ignore-settings - -W 0 - -I "${build_dir}" -) - -IFS=':' read -r -a import_paths <<< "${import_paths_raw}" -for path in "${import_paths[@]}"; do - if [[ -n "${path}" ]]; then - qmllint_args+=(-I "${path}") - fi -done - -if ! output="$("${qmllint_bin}" "${qmllint_args[@]}" "${targets[@]}" 2>&1)"; then - printf '%s\n' "${output}" >&2 - exit 1 -fi - -if [[ -n "${output}" ]]; then - printf '%s\n' "${output}" -fi diff --git a/raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/scripts/qt.sh b/raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/scripts/qt.sh deleted file mode 100755 index 3da2167..0000000 --- a/raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/scripts/qt.sh +++ /dev/null @@ -1,76 +0,0 @@ -#!/usr/bin/env bash - -CONFIG_DIR="$1" - -if [ -z "$CONFIG_DIR" ]; then - echo "Usage: $0 <config_dir>" >&2 - exit 1 -fi - -apply_qt_colors() { - local config_dir="$1" - local color_scheme_path - color_scheme_path="$(dirname "$config_dir")/.local/share/color-schemes/DankMatugen.colors" - - if [ ! -f "$color_scheme_path" ]; then - echo "Error: Qt color scheme not found at $color_scheme_path" >&2 - echo "Run matugen first to generate theme files" >&2 - exit 1 - fi - - update_qt_config() { - local config_file="$1" - - if [ -f "$config_file" ]; then - if grep -q '^\[Appearance\]' "$config_file"; then - if grep -q '^custom_palette=' "$config_file"; then - sed -i 's/^custom_palette=.*/custom_palette=true/' "$config_file" - else - sed -i '/^\[Appearance\]/a custom_palette=true' "$config_file" - fi - - if grep -q '^color_scheme_path=' "$config_file"; then - sed -i "s|^color_scheme_path=.*|color_scheme_path=$color_scheme_path|" "$config_file" - else - sed -i "/^\\[Appearance\\]/a color_scheme_path=$color_scheme_path" "$config_file" - fi - else - { - echo "" - echo "[Appearance]" - echo "custom_palette=true" - echo "color_scheme_path=$color_scheme_path" - } >>"$config_file" - fi - else - printf '[Appearance]\\ncustom_palette=true\\ncolor_scheme_path=%s\\n' "$color_scheme_path" >"$config_file" - fi - } - - qt5_applied=false - qt6_applied=false - - if command -v qt5ct >/dev/null 2>&1; then - mkdir -p "$config_dir/qt5ct" - update_qt_config "$config_dir/qt5ct/qt5ct.conf" - echo "Applied Qt5ct configuration" - qt5_applied=true - fi - - if command -v qt6ct >/dev/null 2>&1; then - mkdir -p "$config_dir/qt6ct" - update_qt_config "$config_dir/qt6ct/qt6ct.conf" - echo "Applied Qt6ct configuration" - qt6_applied=true - fi - - if [ "$qt5_applied" = false ] && [ "$qt6_applied" = false ]; then - echo "Warning: Neither qt5ct nor qt6ct found" >&2 - echo "Install qt5ct or qt6ct for Qt application theming" >&2 - exit 1 - fi -} - -apply_qt_colors "$CONFIG_DIR" - -echo "Qt colors applied successfully" diff --git a/raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/scripts/spam-notifications.sh b/raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/scripts/spam-notifications.sh deleted file mode 100755 index 4a70c36..0000000 --- a/raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/scripts/spam-notifications.sh +++ /dev/null @@ -1,207 +0,0 @@ -#!/usr/bin/env bash - -# Notification Spam Test Script - Sends 100 rapid notifications from fake apps - -echo "NOTIFICATION SPAM TEST - 100 RAPID NOTIFICATIONS" -echo "=============================================================" -echo "WARNING: This will send 100 notifications very quickly!" -echo "Press Ctrl+C to cancel, or wait 3 seconds to continue..." -sleep 3 - -# Arrays of fake app names and icons -APPS=( - "slack:mail-message-new" - "discord:internet-chat" - "teams:call-start" - "zoom:camera-video" - "spotify:audio-x-generic" - "chrome:web-browser" - "firefox:web-browser" - "vscode:text-editor" - "terminal:utilities-terminal" - "steam:applications-games" - "telegram:internet-chat" - "whatsapp:phone" - "signal:security-high" - "thunderbird:mail-client" - "calendar:office-calendar" - "notes:text-editor" - "todo:emblem-default" - "weather:weather-few-clouds" - "news:rss" - "reddit:web-browser" - "twitter:internet-web-browser" - "instagram:camera-photo" - "youtube:video-x-generic" - "netflix:media-playback-start" - "github:folder-development" - "gitlab:folder-development" - "jira:applications-office" - "notion:text-editor" - "obsidian:accessories-text-editor" - "dropbox:folder-remote" - "gdrive:folder-google-drive" - "onedrive:folder-cloud" - "backup:drive-harddisk" - "antivirus:security-high" - "vpn:network-vpn" - "torrent:network-server" - "docker:application-x-executable" - "kubernetes:applications-system" - "postgres:database" - "mongodb:database" - "redis:database" - "nginx:network-server" - "apache:network-server" - "jenkins:applications-development" - "gradle:applications-development" - "maven:applications-development" - "npm:package-x-generic" - "yarn:package-x-generic" - "pip:package-x-generic" - "apt:system-software-install" -) - -# Arrays of message types -TITLES=( - "New message" - "Update available" - "Download complete" - "Task finished" - "Build successful" - "Deployment complete" - "Sync complete" - "Backup finished" - "Security alert" - "New notification" - "Process complete" - "Upload finished" - "Connection established" - "Meeting starting" - "Reminder" - "Warning" - "Error occurred" - "Success" - "Failed" - "Pending" - "In progress" - "Scheduled" - "New activity" - "Status update" - "Alert" - "Information" - "Breaking news" - "Hot update" - "Trending" - "New release" -) - -MESSAGES=( - "Your request has been processed successfully" - "New content is available for download" - "Operation completed without errors" - "Check your inbox for updates" - "3 new items require your attention" - "Background task finished executing" - "All systems operational" - "Performance metrics updated" - "Configuration saved successfully" - "Database connection established" - "Cache cleared and rebuilt" - "Service restarted automatically" - "Logs have been rotated" - "Memory usage optimized" - "Network latency improved" - "Security scan completed - no threats" - "Automatic backup created" - "Files synchronized across devices" - "Updates installed successfully" - "New features are now available" - "Your subscription has been renewed" - "Report generated and ready" - "Analysis complete - view results" - "Queue processed: 42 items" - "Rate limit will reset in 5 minutes" - "API call successful (200 OK)" - "Webhook delivered successfully" - "Container started on port 8080" - "Build artifact uploaded" - "Test suite passed: 100/100" - "Coverage report: 95%" - "Dependencies updated to latest" - "Migration completed successfully" - "Index rebuilt for faster queries" - "SSL certificate renewed" - "Firewall rules updated" - "DNS propagation complete" - "CDN cache purged globally" - "Load balancer health check: OK" - "Cluster scaled to 5 nodes" -) - -# Urgency levels -URGENCY=("low" "normal") - -# Counter -COUNT=0 -TOTAL=100 - -echo "" -echo "Starting notification spam..." -echo "------------------------------" - -# Send notifications rapidly -for _ in $(seq 1 $TOTAL); do - # Pick random app, title, message, and urgency - APP=${APPS[$RANDOM % ${#APPS[@]}]} - APP_NAME=${APP%%:*} - APP_ICON=${APP#*:} - TITLE=${TITLES[$RANDOM % ${#TITLES[@]}]} - MESSAGE=${MESSAGES[$RANDOM % ${#MESSAGES[@]}]} - URG=${URGENCY[$RANDOM % ${#URGENCY[@]}]} - - # Add some variety with random numbers and timestamps - RAND_NUM=$((RANDOM % 1000)) - TIMESTAMP=$(date +"%H:%M:%S") - - # Randomly add extra details to some messages - if [ $((RANDOM % 3)) -eq 0 ]; then - MESSAGE="[$TIMESTAMP] $MESSAGE (#$RAND_NUM)" - fi - - # Send notification with very short delay - notify-send \ - -h "string:desktop-entry:$APP_NAME" \ - -i "$APP_ICON" \ - -u "$URG" \ - "$APP_NAME: $TITLE" \ - "$MESSAGE" & - - # Increment counter - COUNT=$((COUNT + 1)) - - # Show progress every 10 notifications - if [ $((COUNT % 10)) -eq 0 ]; then - echo " Sent $COUNT/$TOTAL notifications..." - fi - - # Tiny delay to prevent complete system freeze - # Adjust this value: smaller = faster spam, larger = slower spam - sleep 0.01 -done - -# Wait for all background notifications to complete -wait - -echo "" -echo "Spam test complete!" -echo "=============================================================" -echo "Statistics:" -echo " Total notifications sent: $TOTAL" -echo " Apps simulated: ${#APPS[@]}" -echo " Message variations: ${#MESSAGES[@]}" -echo " Time taken: ~$((TOTAL / 100)) seconds" -echo "" -echo "Check your notification center - it should be FULL!" -echo "Tip: You may want to clear all notifications after this test" -echo "" diff --git a/raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/scripts/verify-notifications.sh b/raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/scripts/verify-notifications.sh deleted file mode 100755 index 750dd99..0000000 --- a/raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/scripts/verify-notifications.sh +++ /dev/null @@ -1,84 +0,0 @@ -#!/usr/bin/env bash - -# Enhanced Notification System Test Script with Common Icons -# Uses icons that are more likely to be available on most systems - -echo "🔔 Testing Enhanced Notification System Features" -echo "=============================================================" - -# Check what icons are available -echo "Checking available icons..." -if [ -d "$HOME/.local/share/icons/Papirus" ]; then - echo "✓ Icon theme found" -else - echo "! Using fallback icons" -fi - -# Test 1: Basic notifications with markdown -echo "📱 Test 1: Basic notifications with markdown" -notify-send -h string:desktop-entry:org.gnome.Settings -i preferences-desktop "Settings" "**Bold text** and *italic text* with [links](https://example.com) and \`code blocks\`" -sleep 2 - -# Test 2: Media notifications with rich formatting (grouping) -echo "🎵 Test 2: Media notifications with rich formatting (grouping)" -notify-send -h string:desktop-entry:spotify -i audio-x-generic "Spotify" "**Now Playing:** *Song 1* by **Artist A**\n\nAlbum: ~Greatest Hits~\nDuration: \`3:45\`" -sleep 1 -notify-send -h string:desktop-entry:spotify -i audio-x-generic "Spotify" "**Now Playing:** *Song 2* by **Artist B**\n\n> From the album: \"New Releases\"\n- Track #4\n- \`4:12\`" -sleep 1 -notify-send -h string:desktop-entry:spotify -i audio-x-generic "Spotify" "**Now Playing:** *Song 3* by **Artist C**\n\n### Recently Added\n- [View on Spotify](https://spotify.com)\n- Duration: \`2:58\`" -sleep 2 - -# Test 3: System notifications with markdown (separate groups) -echo "🔋 Test 3: System notifications with markdown (separate apps)" -notify-send -h string:desktop-entry:org.gnome.PowerStats -i battery "Power Manager" "⚠️ **Battery Low:** \`15%\` remaining\n\n### Power Saving Tips:\n- Reduce screen brightness\n- *Close unnecessary apps*\n- [Power settings](settings://power)" -sleep 1 -notify-send -h string:desktop-entry:org.gnome.NetworkDisplays -i network-wired "Network Manager" "✅ **WiFi Connected:** *HomeNetwork*\n\n**Signal Strength:** Strong (85%)\n**IP Address:** \`192.168.1.100\`\n\n> Connection established successfully" -sleep 1 -notify-send -h string:desktop-entry:org.gnome.Software -i system-software-update "Software" "📦 **Updates Available**\n\n### Pending Updates:\n- **Firefox** (v119.0)\n- *System libraries* (security)\n- \`python-requests\` (dependency)\n\n[Install All](software://updates) | [View Details](software://details)" -sleep 2 - -# Test 4: Chat notifications with complex markdown (grouping) -echo "💬 Test 4: Chat notifications with complex markdown (grouping)" -notify-send -h string:desktop-entry:discord -i internet-chat "Discord" "**#general** - User1\n\nHello everyone! 👋\n\n> Just wanted to share this cool project I'm working on:\n- Built with **React** and *TypeScript*\n- Using \`styled-components\` for styling\n- [Check it out](https://github.com/user1/project)" -sleep 1 -notify-send -h string:desktop-entry:discord -i internet-chat "Discord" "**#general** - User2\n\nHey there! That looks awesome! 🚀\n\n### Quick question:\nDo you have any tips for:\n1. **State management** patterns?\n2. *Performance optimization*?\n3. Testing with \`jest\`?\n\n> I'm still learning React" -sleep 1 -notify-send -h string:desktop-entry:discord -i internet-chat "Discord" "**Direct Message** - john_doe\n\n*Private message from John* 💬\n\n**Subject:** Weekend plans\n\nHey! Want to grab coffee this weekend?\n\n### Suggestions:\n- ☕ Local café on Main St\n- 🥐 That new bakery downtown\n- 🏠 My place (I got a new espresso machine!)\n\n[Reply](discord://dm/john_doe) | [Call](discord://call/john_doe)" -sleep 2 - -# Test 5: Urgent notifications with markdown -echo "🚨 Test 5: Urgent notifications with markdown" -notify-send -u critical -i dialog-warning "Critical Alert" "🔥 **SYSTEM OVERHEATING** 🔥\n\n### Current Status:\n- **Temperature:** \`85°C\` (Critical)\n- **CPU Usage:** \`95%\`\n- *Thermal throttling active*\n\n> **Immediate Actions Required:**\n1. Close resource-intensive applications\n2. Check cooling system\n3. Reduce workload\n\n[System Monitor](gnome-system-monitor) | [Power Options](gnome-power-statistics)" -sleep 2 - -# Test 6: Notifications with actions and markdown -echo "⚡ Test 6: Action buttons with markdown" -notify-send -h string:desktop-entry:org.gnome.Software -i system-upgrade "Software" "📦 **System Updates Available**\n\n### Ready to Install:\n- **Security patches** (High priority)\n- *Feature updates* for 3 applications\n- \`kernel\` update (5.15.0 → 5.16.2)\n\n> **Recommended:** Install now for optimal security\n\n**Estimated time:** ~15 minutes\n**Restart required:** Yes\n\n[Install Now](software://install) | [Schedule Later](software://schedule)" -sleep 2 - -# Test 7: Multiple different apps with rich markdown -echo "📊 Test 7: Multiple different apps with rich markdown" -notify-send -h string:desktop-entry:thunderbird -i mail-message-new "Thunderbird" "📧 **New Messages** (3)\n\n### Recent Emails:\n1. **Sarah Johnson** - *Project Update*\n > \"The quarterly report is ready for review...\"\n \n2. **GitHub** - \`[user/repo]\` *Pull Request*\n > New PR: Fix memory leak in parser\n \n3. **Newsletter** - *Weekly Tech Digest*\n > This week: AI advancements, new frameworks...\n\n[Open Inbox](thunderbird://inbox) | [Mark All Read](thunderbird://markread)" -sleep 0.5 -notify-send -h string:desktop-entry:org.gnome.Calendar -i office-calendar "Calendar" "📅 **Upcoming Meeting**\n\n### Daily Standup\n- **Time:** 5 minutes\n- **Location:** *Conference Room A*\n- **Attendees:** Team Alpha (8 people)\n\n#### Agenda:\n1. Yesterday's progress\n2. Today's goals \n3. Blockers discussion\n\n> **Reminder:** Prepare your status update\n\n[Join Video Call](meet://standup) | [Reschedule](calendar://reschedule)" -sleep 0.5 -notify-send -h string:desktop-entry:org.gnome.Nautilus -i folder-downloads "Files" "📁 **Download Complete**\n\n### File Details:\n- **Name:** \`document.pdf\`\n- **Size:** *2.4 MB*\n- **Location:** ~/Downloads/\n- **Type:** PDF Document\n\n> **Security:** Scanned ✅ (No threats detected)\n\n**Recent Downloads:**\n- presentation.pptx (1 hour ago)\n- backup.zip (yesterday)\n\n[Open File](file://document.pdf) | [Show in Folder](nautilus://downloads)" -sleep 2 - -# notify-send --hint=boolean:resident:true "Resident Test" "Click an action - I should stay visible!" --action="Test Action" --action="Close Me" - -echo "" -echo "✅ Notification tests completed!" -echo "" -echo "📋 Enhanced Features Tested:" -echo " • Media notification replacement" -echo " • System notification grouping" -echo " • Conversation grouping and auto-expansion" -echo " • Urgency level handling" -echo " • Action button support" -echo " • Multi-app notification handling" -echo "" -echo "🎯 Check your notification popup and notification center to see the results!" -echo "" -echo "Note: Some icons may show as fallback (checkerboard) if icon themes aren't installed." -echo "To install more icons: sudo pacman -S papirus-icon-theme adwaita-icon-theme" |