Ambience for Omarchy π§οΈπ§
Offline ambient soundscapes, procedural noise generator, and focus sound player for Omarchy.
<p align="center"> <img src="preview.png" alt="Ambience Preview" width="700"> </p>β¨ Features
- β‘ 100% Offline & Ultra-Lightweight: Generates soundscapes in real-time via mathematical DSP synthesis (~0.2% CPU), with zero internet connection required and zero trackers.
- π§ 8 Built-in Soundscapes:
- π§οΈ Rain Shower: Soothing rainfall with stochastic droplet impacts.
- π Ocean Waves: Deep oceanic surf with 11-second natural wave cycles.
- π₯ Campfire: Cozy wood fire with warm pops and crackles.
- π« Brown Noise: Deep Brownian rumble (ideal for deep focus, office masking, and ADHD).
- πΈ Pink Noise: Balanced 1/f soothing natural spectrum.
- βͺ White Noise: Crisp static noise for total frequency masking.
- π§ Binaural Beats (Alpha 10Hz): Stereo-separated frequencies (200Hz left / 210Hz right) to induce focus.
- β CafΓ© Ambience: Warm coffee shop acoustic resonance.
- π Custom Audio Loops: Drop your own
.ogg,.mp3, or.wavfiles intosounds/to play personal tracks seamlessly. - π₯οΈ Centered Modal Window:
- Large centered card (760px) with backdrop scrim.
- 4-column Soundscape selection cards with active playing badges.
- Fluid volume slider (0% - 100%) + quick presets (Mute, 30%, 60%, 80%, 100%).
- Sleep Timer: Auto-off countdown (Off, 15m, 30m, 45m, 60m, 90m).
- Quick access to open local sounds folder and Freesound CC0 catalog.
- Press
Escto close immediately.
- πͺ Smart Auto-Hide Top Bar Widget:
- Automatically hidden from the top bar when stopped/inactive.
- Dynamically appears on the top bar when audio is playing, showing the active sound name, volume, and timer countdown.
- π±οΈ Bar Controls (When Playing):
- Left-Click: Play / Pause toggle.
- Mouse Wheel: Smooth volume adjustment up / down (+/- 5%).
- Middle-Click: Quick-cycle to the next sound preset.
- Right-Click: Opens the Ambience modal.
- π¨ Omarchy Theme Integration: Seamlessly follows system colors (
bar.urgent,bar.foreground,bar.fontFamily).
β¨οΈ Shortcuts & Controls
| Shortcut / Action | Function | Description |
|---|---|---|
| <kbd>Super</kbd> + <kbd>Ctrl</kbd> + <kbd>Alt</kbd> + <kbd>A</kbd> | Open Ambience | Opens the centered Ambience modal |
| <kbd>Super</kbd> + <kbd>Alt</kbd> + <kbd>A</kbd> | Play / Pause | Toggles ambient sound playback instantly |
| <kbd>Esc</kbd> | Close Modal | Dismisses the centered modal |
| Scroll Wheel on Bar | Volume +/- | Adjusts volume by 5% when active |
| Middle-Click on Bar | Next Sound | Advances to the next soundscape preset |
π Open Source Sound Resources & Custom Loops
You can add your own soundscapes to Ambience simply by dropping .ogg, .mp3, .wav, or .flac files into:
~/.config/omarchy/plugins/dorneles.ambience/sounds/
The plugin will automatically detect them and add them as selectable cards in the Ambience window!
Recommended Free & Open Source Audio Repositories:
- Freesound.org (CC0 Sounds): Thousands of public domain nature loops, rain, wind, and city soundscapes.
- Wikimedia Commons Audio: High-quality public domain field recordings.
- Internet Archive Audio Archive: Extensive library of free ambient recordings.
π Requirements & Dependencies
- PipeWire / ALSA:
aplayorpw-play(pre-installed on Omarchy/Arch). - Python 3: (pre-installed) for real-time DSP mathematical audio synthesis.
- mpv: (optional) used for playing custom
.ogg/.mp3files if placed insounds/. - Nerd Fonts: (pre-installed) for status bar icons.
π¦ Installation
Automated Installation (Recommended)
Clone and run the included installer:
git clone https://github.com/jvlianodorneles/ambience.git ~/.config/omarchy/plugins/dorneles.ambience
cd ~/.config/omarchy/plugins/dorneles.ambience
./install.sh
The installer automatically configures shell.json, Hyprland keybindings, and Omarchy menu entries.
ποΈ Removal / Uninstallation
To remove the plugin from Omarchy:
omarchy plugin disable dorneles.ambience 2>/dev/null || true
rm -rf ~/.config/omarchy/plugins/dorneles.ambience
omarchy-shell shell rescanPlugins
βοΈ Configuration (~/.config/omarchy/shell.json)
{
"id": "dorneles.ambience",
"mode": "active-only",
"defaultPreset": "rain",
"defaultVolume": 60,
"showLabel": true
}
π License
This project is licensed under the MIT License.