# meobanh22/ricing architecture

> Architecture diagram of the GitHub repository meobanh22/ricing, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/meobanh22/ricing
- Repository: https://github.com/meobanh22/ricing

## Overview

Serena is a Hyprland desktop configuration with custom GTK popups, widgets, background services, and terminal music tools. The user-facing flow is desktop interaction through a popup or widget, which renders controls or status and may invoke system services; the music visualizer is a separate playback-and-display workflow. Shared UI primitives and palette tokens form an internal presentation layer. The README documents the keybinding entry points and wallpaper switching. Some links reflect the SOURCE INDEX rather than inspected implementation excerpts; unsampled subsystems are represented without speculative internal flows.

Main entry points: [`config/hypr/scripts/popups/control_center_pkg/services_mixin.py`](https://github.com/meobanh22/ricing/blob/main/config/hypr/scripts/popups/control_center_pkg/services_mixin.py) (Control services), [`config/hypr/scripts/popups/settings_pkg/services_mixin.py`](https://github.com/meobanh22/ricing/blob/main/config/hypr/scripts/popups/settings_pkg/services_mixin.py) (Settings services), [`config/hypr/scripts/terminal/music.py`](https://github.com/meobanh22/ricing/blob/main/config/hypr/scripts/terminal/music.py) (Music visualizer), [`config/hypr/scripts/system/palette.py`](https://github.com/meobanh22/ricing/blob/main/config/hypr/scripts/system/palette.py) (Color palette)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_desktop["Desktop popups"]
  node_control["Control Center<br/>[control_center.py]"]
  node_control_services["Control services<br/>[services_mixin.py]"]
  node_settings["Settings popup<br/>[settings.py]"]
  node_settings_services["Settings services<br/>[services_mixin.py]"]
  node_shelf["Serena Shelf<br/>[shelf.py]"]
  node_shelf_storage[("Shelf storage<br/>[storage.py]")]
end

subgraph group_widgets["Desktop widgets"]
  node_widgets_entry["Desktop widgets<br/>[desktop_widgets.py]"]
  node_weather_widget["Weather widget<br/>[weather_widget.py]"]
  node_weather_service["Weather service<br/>[weather_service.py]"]
  node_profile["Profile card<br/>[profile_card.py]"]
  node_common["Widget helpers<br/>[common.py]"]
end

subgraph group_services["System services"]
  node_audio["Audio service<br/>[audio.py]"]
  node_bluetooth["Bluetooth service<br/>[bluetooth.py]"]
  node_brightness["Brightness service<br/>[brightness.py]"]
  node_power["Power service<br/>[power.py]"]
  node_wifi["Wi-Fi service<br/>[wifi.py]"]
  node_tracker["App tracker<br/>[daemon.py]"]
end

subgraph group_music["Music experience"]
  node_music["Music visualizer<br/>[music.py]"]
  node_music_focus["Focus monitor<br/>[music_focus.py]"]
  node_music_player["Music controls<br/>[music_player.py]"]
  node_player_engine["Playback engine"]
end

subgraph group_shared["Shared presentation"]
  node_palette["Color palette<br/>[palette.py]"]
  node_ui_core["UI primitives<br/>[base_window.py]"]
  node_wallpaper["Wallpaper switcher"]
end

node_user(("Desktop user"))

node_user -->|"opens"| node_control
node_user -->|"opens"| node_settings
node_user -->|"opens"| node_shelf
node_user -->|"opens"| node_music
node_user -->|"switches"| node_wallpaper
node_control -->|"uses"| node_control_services
node_control_services -->|"calls"| node_wifi
node_settings -.->|"uses"| node_settings_services
node_settings_services -->|"reads status"| node_audio
node_settings_services -->|"reads status"| node_bluetooth
node_settings_services -->|"reads status"| node_brightness
node_settings_services -->|"reads status"| node_power
node_shelf -.->|"uses"| node_shelf_storage
node_widgets_entry -->|"loads"| node_weather_widget
node_widgets_entry -->|"loads"| node_profile
node_weather_widget -->|"requests forecast"| node_weather_service
node_weather_widget -->|"uses helpers"| node_common
node_profile -->|"uses helpers"| node_common
node_common -->|"uses primitives"| node_ui_core
node_control_services -->|"calls"| node_audio
node_control_services -->|"calls"| node_bluetooth
node_control_services -->|"calls"| node_brightness
node_control_services -->|"calls"| node_power
node_music -->|"uses"| node_music_focus
node_music -->|"uses"| node_music_player
node_music_focus -->|"monitors workspace"| node_music
node_music_player -->|"controls playback"| node_player_engine
node_control -->|"loads tokens"| node_palette
node_settings -->|"loads tokens"| node_palette
node_shelf -->|"loads tokens"| node_palette
node_music -->|"uses tokens"| node_palette

click node_control "https://github.com/meobanh22/ricing/blob/main/config/hypr/scripts/popups/control_center.py"
click node_control_services "https://github.com/meobanh22/ricing/blob/main/config/hypr/scripts/popups/control_center_pkg/services_mixin.py"
click node_settings "https://github.com/meobanh22/ricing/blob/main/config/hypr/scripts/popups/settings.py"
click node_settings_services "https://github.com/meobanh22/ricing/blob/main/config/hypr/scripts/popups/settings_pkg/services_mixin.py"
click node_shelf "https://github.com/meobanh22/ricing/blob/main/config/hypr/scripts/popups/shelf.py"
click node_shelf_storage "https://github.com/meobanh22/ricing/blob/main/config/hypr/scripts/popups/shelf_pkg/storage.py"
click node_widgets_entry "https://github.com/meobanh22/ricing/blob/main/config/hypr/scripts/widgets/desktop_widgets.py"
click node_weather_widget "https://github.com/meobanh22/ricing/blob/main/config/hypr/scripts/widgets/panels/weather_widget.py"
click node_weather_service "https://github.com/meobanh22/ricing/blob/main/config/hypr/scripts/widgets/panels/weather_service.py"
click node_profile "https://github.com/meobanh22/ricing/blob/main/config/hypr/scripts/widgets/panels/profile_card.py"
click node_common "https://github.com/meobanh22/ricing/blob/main/config/hypr/scripts/widgets/panels/common.py"
click node_audio "https://github.com/meobanh22/ricing/blob/main/config/hypr/scripts/services/audio.py"
click node_bluetooth "https://github.com/meobanh22/ricing/blob/main/config/hypr/scripts/services/bluetooth.py"
click node_brightness "https://github.com/meobanh22/ricing/blob/main/config/hypr/scripts/services/brightness.py"
click node_power "https://github.com/meobanh22/ricing/blob/main/config/hypr/scripts/services/power.py"
click node_wifi "https://github.com/meobanh22/ricing/blob/main/config/hypr/scripts/services/wifi.py"
click node_tracker "https://github.com/meobanh22/ricing/blob/main/config/hypr/scripts/services/tracker/daemon.py"
click node_palette "https://github.com/meobanh22/ricing/blob/main/config/hypr/scripts/system/palette.py"
click node_ui_core "https://github.com/meobanh22/ricing/blob/main/config/hypr/scripts/ui_core/base_window.py"
click node_music "https://github.com/meobanh22/ricing/blob/main/config/hypr/scripts/terminal/music.py"
click node_music_focus "https://github.com/meobanh22/ricing/blob/main/config/hypr/scripts/terminal/music_focus.py"
click node_music_player "https://github.com/meobanh22/ricing/blob/main/config/hypr/scripts/terminal/music_player.py"
click node_player_engine "https://github.com/meobanh22/ricing/blob/main/config/hypr/scripts/terminal/music_player_engine.py"
click node_wallpaper "https://github.com/meobanh22/ricing/blob/main/config/hypr/scripts/system/wallpaper_switcher.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_control,node_control_services,node_settings,node_settings_services,node_shelf,node_shelf_storage,node_user toneBlue
class node_widgets_entry,node_weather_widget,node_weather_service,node_profile,node_common toneAmber
class node_audio,node_bluetooth,node_brightness,node_power,node_wifi,node_tracker toneMint
class node_music,node_music_focus,node_music_player,node_player_engine toneRose
class node_palette,node_ui_core,node_wallpaper toneIndigo
```

## Components

### Desktop popups

- [Control Center](https://github.com/meobanh22/ricing/blob/main/config/hypr/scripts/popups/control_center.py): `config/hypr/scripts/popups/control_center.py`
- [Control services](https://github.com/meobanh22/ricing/blob/main/config/hypr/scripts/popups/control_center_pkg/services_mixin.py): `config/hypr/scripts/popups/control_center_pkg/services_mixin.py`
- [Settings popup](https://github.com/meobanh22/ricing/blob/main/config/hypr/scripts/popups/settings.py): `config/hypr/scripts/popups/settings.py`
- [Settings services](https://github.com/meobanh22/ricing/blob/main/config/hypr/scripts/popups/settings_pkg/services_mixin.py): `config/hypr/scripts/popups/settings_pkg/services_mixin.py`
- [Serena Shelf](https://github.com/meobanh22/ricing/blob/main/config/hypr/scripts/popups/shelf.py): `config/hypr/scripts/popups/shelf.py`
- [Shelf storage](https://github.com/meobanh22/ricing/blob/main/config/hypr/scripts/popups/shelf_pkg/storage.py): `config/hypr/scripts/popups/shelf_pkg/storage.py`

### Desktop widgets

- [Desktop widgets](https://github.com/meobanh22/ricing/blob/main/config/hypr/scripts/widgets/desktop_widgets.py): `config/hypr/scripts/widgets/desktop_widgets.py`
- [Weather widget](https://github.com/meobanh22/ricing/blob/main/config/hypr/scripts/widgets/panels/weather_widget.py): `config/hypr/scripts/widgets/panels/weather_widget.py`
- [Weather service](https://github.com/meobanh22/ricing/blob/main/config/hypr/scripts/widgets/panels/weather_service.py): `config/hypr/scripts/widgets/panels/weather_service.py`
- [Profile card](https://github.com/meobanh22/ricing/blob/main/config/hypr/scripts/widgets/panels/profile_card.py): `config/hypr/scripts/widgets/panels/profile_card.py`
- [Widget helpers](https://github.com/meobanh22/ricing/blob/main/config/hypr/scripts/widgets/panels/common.py): `config/hypr/scripts/widgets/panels/common.py`

### System services

- [Audio service](https://github.com/meobanh22/ricing/blob/main/config/hypr/scripts/services/audio.py): `config/hypr/scripts/services/audio.py`
- [Bluetooth service](https://github.com/meobanh22/ricing/blob/main/config/hypr/scripts/services/bluetooth.py): `config/hypr/scripts/services/bluetooth.py`
- [Brightness service](https://github.com/meobanh22/ricing/blob/main/config/hypr/scripts/services/brightness.py): `config/hypr/scripts/services/brightness.py`
- [Power service](https://github.com/meobanh22/ricing/blob/main/config/hypr/scripts/services/power.py): `config/hypr/scripts/services/power.py`
- [Wi-Fi service](https://github.com/meobanh22/ricing/blob/main/config/hypr/scripts/services/wifi.py): `config/hypr/scripts/services/wifi.py`
- [App tracker](https://github.com/meobanh22/ricing/blob/main/config/hypr/scripts/services/tracker/daemon.py): `config/hypr/scripts/services/tracker/daemon.py`

### Music experience

- [Music visualizer](https://github.com/meobanh22/ricing/blob/main/config/hypr/scripts/terminal/music.py): `config/hypr/scripts/terminal/music.py`
- [Focus monitor](https://github.com/meobanh22/ricing/blob/main/config/hypr/scripts/terminal/music_focus.py): `config/hypr/scripts/terminal/music_focus.py`
- [Music controls](https://github.com/meobanh22/ricing/blob/main/config/hypr/scripts/terminal/music_player.py): `config/hypr/scripts/terminal/music_player.py`
- [Playback engine](https://github.com/meobanh22/ricing/blob/main/config/hypr/scripts/terminal/music_player_engine.py): `config/hypr/scripts/terminal/music_player_engine.py`

### Shared presentation

- [Color palette](https://github.com/meobanh22/ricing/blob/main/config/hypr/scripts/system/palette.py): `config/hypr/scripts/system/palette.py`
- [UI primitives](https://github.com/meobanh22/ricing/blob/main/config/hypr/scripts/ui_core/base_window.py): `config/hypr/scripts/ui_core/base_window.py`
- [Wallpaper switcher](https://github.com/meobanh22/ricing/blob/main/config/hypr/scripts/system/wallpaper_switcher.py): `config/hypr/scripts/system/wallpaper_switcher.py`

### Other components

- **Desktop user**

## Connections

- Desktop user → Control Center: opens (evidence: `README.md`)
- Desktop user → Settings popup: opens (evidence: `README.md`)
- Desktop user → Serena Shelf: opens (evidence: `README.md`)
- Desktop user → Music visualizer: opens (evidence: `README.md`)
- Desktop user → Wallpaper switcher: switches (evidence: `README.md`)
- Control Center → Control services: uses (evidence: `config/hypr/scripts/popups/control_center_pkg/services_mixin.py`)
- Control services → Wi-Fi service: calls (evidence: `config/hypr/scripts/popups/control_center_pkg/services_mixin.py`)
- Settings popup → Settings services: uses
- Settings services → Audio service: reads status (evidence: `config/hypr/scripts/popups/settings_pkg/services_mixin.py`)
- Settings services → Bluetooth service: reads status (evidence: `config/hypr/scripts/popups/settings_pkg/services_mixin.py`)
- Settings services → Brightness service: reads status (evidence: `config/hypr/scripts/popups/settings_pkg/services_mixin.py`)
- Settings services → Power service: reads status (evidence: `config/hypr/scripts/popups/settings_pkg/services_mixin.py`)
- Serena Shelf → Shelf storage: uses
- Desktop widgets → Weather widget: loads (evidence: `config/hypr/scripts/widgets/desktop_widgets.py`)
- Desktop widgets → Profile card: loads (evidence: `config/hypr/scripts/widgets/desktop_widgets.py`)
- Weather widget → Weather service: requests forecast (evidence: `config/hypr/scripts/widgets/panels/weather_widget.py`)
- Weather widget → Widget helpers: uses helpers (evidence: `config/hypr/scripts/widgets/panels/weather_widget.py`)
- Profile card → Widget helpers: uses helpers (evidence: `config/hypr/scripts/widgets/panels/profile_card.py`)
- Widget helpers → UI primitives: uses primitives (evidence: `config/hypr/scripts/widgets/panels/common.py`)
- Control services → Audio service: calls (evidence: `config/hypr/scripts/popups/control_center_pkg/services_mixin.py`)
- Control services → Bluetooth service: calls (evidence: `config/hypr/scripts/popups/control_center_pkg/services_mixin.py`)
- Control services → Brightness service: calls (evidence: `config/hypr/scripts/popups/control_center_pkg/services_mixin.py`)
- Control services → Power service: calls (evidence: `config/hypr/scripts/popups/control_center_pkg/services_mixin.py`)
- Music visualizer → Focus monitor: uses (evidence: `config/hypr/scripts/terminal/music.py`)
- Music visualizer → Music controls: uses (evidence: `config/hypr/scripts/terminal/music.py`)
- Focus monitor → Music visualizer: monitors workspace (evidence: `config/hypr/scripts/terminal/music_focus.py`)
- Music controls → Playback engine: controls playback (evidence: `config/hypr/scripts/terminal/music_player.py`)
- Control Center → Color palette: loads tokens
- Settings popup → Color palette: loads tokens
- Serena Shelf → Color palette: loads tokens
- Music visualizer → Color palette: uses tokens (evidence: `config/hypr/scripts/terminal/music.py`)
