Initial commit: Omeron modular Hyprland setup framework
- Modular installer with gum-based TUI - Fresh-install detection with auto GPU driver selection - Preflight module for system detection (Intel/AMD/NVIDIA) - Core modules: packages, dotfiles, services, SDDM - Optional software installer (Obsidian, Neovim, VS Code, etc.) - Homelab config module with dynamic AGS integration - Two complete themes: Forest Neon and Rose Night - 19 Hyprland control scripts + 4 AGS widgets - Idempotent dotfile deployment with automatic backup - YAML-based configuration, extensible module system - Full logging to ~/.local/share/omeron/
This commit is contained in:
26
dotfiles/hypr/Scripts/widget-panel.sh
Executable file
26
dotfiles/hypr/Scripts/widget-panel.sh
Executable file
@@ -0,0 +1,26 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
|
||||
HYPR_DIR="$(cd -- "$SCRIPT_DIR/.." && pwd)"
|
||||
export HYPR_DIR
|
||||
|
||||
notify() {
|
||||
notify-send "Widgetbereich" "$1" >/dev/null 2>&1 || true
|
||||
}
|
||||
|
||||
if ! command -v ags >/dev/null 2>&1; then
|
||||
notify "ags ist nicht installiert."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mapfile -t AGS_INSTANCES < <(ags list 2>/dev/null || true)
|
||||
for INSTANCE in "${AGS_INSTANCES[@]}"; do
|
||||
if [[ "$INSTANCE" == "widget-panel" ]]; then
|
||||
ags toggle widget-panel --instance widget-panel >/dev/null 2>&1 || true
|
||||
exit 0
|
||||
fi
|
||||
done
|
||||
|
||||
cd "$HYPR_DIR"
|
||||
nohup ags run "$HYPR_DIR/ags/widget-panel.tsx" >/dev/null 2>&1 &
|
||||
Reference in New Issue
Block a user