Compare commits
3 commits
29a24b4205
...
5b901478c7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5b901478c7 | ||
|
|
889bea3688 | ||
|
|
29f14a72f0 |
4 changed files with 258 additions and 229 deletions
34
README.md
34
README.md
|
|
@ -11,21 +11,20 @@ architectural decision, which is exactly when you should be most suspicious.
|
||||||
|
|
||||||
## "Features"
|
## "Features"
|
||||||
|
|
||||||
- Bar with workspaces, window title, clock, tray, and a regrettable number of widgets grouped into color-coded sections with glowing borders, because subtlety is dead
|
You didn't ask for most of these. Neither did anyone else.
|
||||||
- Niri IPC integration — workspace indicator, focused window title with app icon, power menu with `niri msg action quit`. All event-driven, no polling
|
|
||||||
- Interactive hover panels — volume (with per-app mixer and output device switcher), brightness (with slider), media (with album art, transport controls, progress bar). Hover to peek, click to expand, leave to dismiss. The OSD and tooltip in one, because having three separate UI patterns for the same information was too reasonable
|
- Status bar with too many widgets, grouped into glowing color-coded sections
|
||||||
- Context menus for tray icons with submenu support, network chooser (known available WiFi/ethernet), bluetooth device manager (connect/disconnect, battery levels)
|
- Notification center that replaces swaync (whether you wanted that or not)
|
||||||
- Privacy indicators — screenshare and microphone icons pulse red/green when PipeWire detects active video/audio capture streams. Finally, you'll know when your webcam is on, which is more than can be said for most laptop manufacturers
|
- Hover panels for volume, brightness, and media — the robot merged the OSD, tooltip, and mixer into one thing because it couldn't be stopped
|
||||||
- Per-module accent colors that change based on state, with animated transitions. Battery blinks when critical and sends desktop notifications, because the robot cares about your hardware more than you do
|
- Network/bluetooth/tray context menus, power menu, idle inhibitor
|
||||||
- Audio visualizer on album art via cava — because the robot watched too many r/unixporn posts and couldn't help itself
|
- Privacy indicators for when your webcam is silently recording you
|
||||||
- Screen corner rounding — tiny overlay windows with quarter-circle masks, click-transparent, configurable via `screenRadius`. The gradient top border curves to match, because the robot has opinions about pixel alignment
|
- GPU-rendered hexagonal backdrop for niri overview, complete with wave animations and rainbow shimmer, because the robot thinks your desktop should look like a cyberpunk hacker terminal
|
||||||
- Background overlay — clock and date rendered on the background layer, visible behind windows and in niri overview gaps. Always there, never in the way
|
- Neon clock on the background layer with a color-cycling colon. You read that correctly
|
||||||
- Weather via wttrbar with configurable arguments and rich HTML tooltips
|
- Audio visualizer on album art via cava
|
||||||
- Power menu with lock, suspend, logout, reboot, shutdown
|
- Screen corner rounding that the bar's edge modules actually follow
|
||||||
- Event-driven updates for network, bluetooth, and power profiles via dbus-monitor/nmcli monitor — no more 5-second polling lag
|
- Everything is animated. Everything. The robot does not know restraint
|
||||||
- Animated everything: flyout tooltips slide in/out, modules fade on visibility change, icons crossfade on state change, notification count pops. The bar is basically a screensaver at this point
|
- Home Manager module with stylix, per-module config, hot-reload — the only part that arguably works as intended
|
||||||
- Home Manager module with stylix integration, per-module config objects (enable/disable + module-specific settings like polling intervals, thresholds, brightness step), and a theme system that hot-reloads
|
- No documentation beyond this README. Good luck
|
||||||
- treefmt + nixfmt for formatting, because even AI slop deserves consistent indentation
|
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
|
|
@ -89,6 +88,9 @@ programs.nova-shell.modules = {
|
||||||
battery.warning = 30; # % for warning notification
|
battery.warning = 30; # % for warning notification
|
||||||
battery.critical = 10; # % for critical blink + notification
|
battery.critical = 10; # % for critical blink + notification
|
||||||
cpu.interval = 2000; # polling interval in ms
|
cpu.interval = 2000; # polling interval in ms
|
||||||
|
notifications.timeout = 3000; # popup auto-dismiss in ms
|
||||||
|
notifications.maxPopups = 4; # max simultaneous popups (0 to disable)
|
||||||
|
notifications.maxVisible = 10; # scrollable history limit in center
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -96,7 +98,7 @@ Each module is an object with `enable` (default `true`) and optional extra
|
||||||
settings. Full list: `workspaces`, `tray`, `windowTitle`, `clock`,
|
settings. Full list: `workspaces`, `tray`, `windowTitle`, `clock`,
|
||||||
`notifications`, `mpris`, `volume`, `bluetooth`, `backlight`, `network`,
|
`notifications`, `mpris`, `volume`, `bluetooth`, `backlight`, `network`,
|
||||||
`powerProfile`, `idleInhibitor`, `weather`, `temperature`, `cpu`, `memory`,
|
`powerProfile`, `idleInhibitor`, `weather`, `temperature`, `cpu`, `memory`,
|
||||||
`disk`, `battery`, `power`.
|
`disk`, `battery`, `power`, `backgroundOverlay`, `overviewBackdrop`.
|
||||||
|
|
||||||
### Theme
|
### Theme
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,8 @@ QtObject {
|
||||||
property var notifications: ({
|
property var notifications: ({
|
||||||
enable: true,
|
enable: true,
|
||||||
timeout: 3000,
|
timeout: 3000,
|
||||||
maxPopups: 4
|
maxPopups: 4,
|
||||||
|
maxVisible: 10
|
||||||
})
|
})
|
||||||
property var mpris: ({
|
property var mpris: ({
|
||||||
enable: true
|
enable: true
|
||||||
|
|
|
||||||
|
|
@ -131,9 +131,27 @@ M.PopupPanel {
|
||||||
color: M.Theme.base03
|
color: M.Theme.base03
|
||||||
}
|
}
|
||||||
|
|
||||||
// Notification list
|
// Notification list (scrollable)
|
||||||
|
Item {
|
||||||
|
width: menuWindow.panelWidth
|
||||||
|
height: Math.min(notifFlick.contentHeight, _maxHeight)
|
||||||
|
readonly property real _itemHeight: 60
|
||||||
|
readonly property real _maxHeight: _itemHeight * (M.Modules.notifications.maxVisible || 10)
|
||||||
|
|
||||||
|
Flickable {
|
||||||
|
id: notifFlick
|
||||||
|
anchors.fill: parent
|
||||||
|
contentWidth: width
|
||||||
|
contentHeight: notifCol.implicitHeight
|
||||||
|
clip: true
|
||||||
|
boundsBehavior: Flickable.StopAtBounds
|
||||||
|
|
||||||
|
Column {
|
||||||
|
id: notifCol
|
||||||
|
width: parent.width
|
||||||
|
|
||||||
Repeater {
|
Repeater {
|
||||||
model: M.NotifService.list.slice(0, 20)
|
model: M.NotifService.list
|
||||||
|
|
||||||
delegate: Item {
|
delegate: Item {
|
||||||
id: notifItem
|
id: notifItem
|
||||||
|
|
@ -364,7 +382,10 @@ M.PopupPanel {
|
||||||
onClicked: _dismissAnim.start()
|
onClicked: _dismissAnim.start()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
} // Repeater
|
||||||
|
} // Column
|
||||||
|
} // Flickable
|
||||||
|
} // Item
|
||||||
|
|
||||||
// Empty state
|
// Empty state
|
||||||
Text {
|
Text {
|
||||||
|
|
|
||||||
|
|
@ -103,6 +103,11 @@ in
|
||||||
default = 4;
|
default = 4;
|
||||||
description = "Maximum number of notification popups shown simultaneously.";
|
description = "Maximum number of notification popups shown simultaneously.";
|
||||||
};
|
};
|
||||||
|
maxVisible = lib.mkOption {
|
||||||
|
type = lib.types.int;
|
||||||
|
default = 10;
|
||||||
|
description = "Maximum visible notifications in the notification center before scrolling.";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
bluetooth = moduleOpt "bluetooth" (intervalOpt 5000);
|
bluetooth = moduleOpt "bluetooth" (intervalOpt 5000);
|
||||||
network = moduleOpt "network" (intervalOpt 5000);
|
network = moduleOpt "network" (intervalOpt 5000);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue