NoSignal-OS/os updates/menu-cleanup/install-menu-cleanup.sh
28allday 19fd794b6b NoSignal — fully-offline Arch → Hyprland desktop installer
Single-script builder (nosignal.sh) that turns a stock Arch Linux ISO into a
fully-offline installer for a themed Hyprland + caelestia (Quickshell) desktop:
matching SDDM greeter, Btrfs/Limine bootable snapshots, chwd-style GPU
detection, and a curated "os updates" layer (keybind cheatsheet, settings
panels, system polish, on-box management skill). See README.md.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-21 11:03:10 +01:00

29 lines
794 B
Bash
Executable file

#!/bin/sh
# install-menu-cleanup.sh — hide launcher entries that should not appear.
# Currently: uuctl (uwsm's user-unit
# manager — a dmenu utility, not an app; ships a desktop entry via the uwsm
# package).
#
# Same mechanism as system-polish A1: a user-level override shadows the
# system entry. Safe to re-run (idempotent). No sudo.
set -eu
APPS="$HOME/.local/share/applications"
HIDDEN="uuctl"
mkdir -p "$APPS"
for id in $HIDDEN; do
[ -f "/usr/share/applications/$id.desktop" ] || continue
[ -f "$APPS/$id.desktop" ] && continue
cat > "$APPS/$id.desktop" <<EOF
[Desktop Entry]
Type=Application
Name=Hidden by NoSignal
NoDisplay=true
Hidden=true
EOF
echo ":: hidden $id"
done
update-desktop-database "$APPS" 2>/dev/null || true
echo "Done. Launcher no longer lists: $HIDDEN"