rename Overview to BackgroundOverlay everywhere
This commit is contained in:
parent
ff005acc60
commit
f6219ce3c2
4 changed files with 10 additions and 5 deletions
|
|
@ -18,7 +18,7 @@ exactly when you should be most suspicious.
|
||||||
- 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
|
- 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
|
||||||
- Audio visualizer on album art via cava — because the robot watched too many r/unixporn posts and couldn't help itself
|
- Audio visualizer on album art via cava — because the robot watched too many r/unixporn posts and couldn't help itself
|
||||||
- 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
|
- 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
|
||||||
- Overview widgets — clock and date rendered on the background layer, visible in the gaps between workspace rows when niri's overview is active. Always there, never in the way
|
- Background overlay — clock and date rendered on the background layer, visible behind windows and in niri overview gaps. Always there, never in the way
|
||||||
- Weather via wttrbar with configurable arguments and rich HTML tooltips
|
- Weather via wttrbar with configurable arguments and rich HTML tooltips
|
||||||
- Power menu with lock, suspend, logout, reboot, shutdown
|
- Power menu with lock, suspend, logout, reboot, shutdown
|
||||||
- Event-driven updates for network, bluetooth, and power profiles via dbus-monitor/nmcli monitor — no more 5-second polling lag
|
- Event-driven updates for network, bluetooth, and power profiles via dbus-monitor/nmcli monitor — no more 5-second polling lag
|
||||||
|
|
@ -83,6 +83,11 @@ programs.nova-shell.modules = {
|
||||||
# modules with extra config
|
# modules with extra config
|
||||||
backlight.step = 2; # brightness adjustment %
|
backlight.step = 2; # brightness adjustment %
|
||||||
weather.args = [ "--nerd" "--location" "Berlin" ]; # wttrbar arguments
|
weather.args = [ "--nerd" "--location" "Berlin" ]; # wttrbar arguments
|
||||||
|
temperature.warm = 55; # °C threshold for warm color
|
||||||
|
temperature.hot = 75; # °C threshold for hot color
|
||||||
|
battery.warning = 30; # % for warning notification
|
||||||
|
battery.critical = 10; # % for critical blink + notification
|
||||||
|
cpu.interval = 2000; # polling interval in ms
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -130,7 +135,7 @@ Full list of theme keys and their defaults:
|
||||||
| `barSpacing` | `12` | Gap between modules (px) |
|
| `barSpacing` | `12` | Gap between modules (px) |
|
||||||
| `moduleSpacing` | `4` | Icon-to-label gap within a module (px) |
|
| `moduleSpacing` | `4` | Icon-to-label gap within a module (px) |
|
||||||
| `radius` | `4` | Corner radius for flyouts and menus (px) |
|
| `radius` | `4` | Corner radius for flyouts and menus (px) |
|
||||||
| `screenRadius` | `20` | Screen corner rounding, 0 to disable (px) |
|
| `screenRadius` | `15` | Screen corner rounding, 0 to disable (px) |
|
||||||
|
|
||||||
### Systemd service
|
### Systemd service
|
||||||
|
|
||||||
|
|
|
||||||
51
modules/BackgroundOverlay.qml
Normal file
51
modules/BackgroundOverlay.qml
Normal file
|
|
@ -0,0 +1,51 @@
|
||||||
|
import QtQuick
|
||||||
|
import Quickshell
|
||||||
|
import Quickshell.Wayland
|
||||||
|
import "." as M
|
||||||
|
|
||||||
|
PanelWindow {
|
||||||
|
id: root
|
||||||
|
|
||||||
|
required property var screen
|
||||||
|
|
||||||
|
color: "transparent"
|
||||||
|
|
||||||
|
WlrLayershell.layer: WlrLayer.Background
|
||||||
|
WlrLayershell.exclusiveZone: -1
|
||||||
|
WlrLayershell.namespace: "nova-background-overlay"
|
||||||
|
mask: Region {}
|
||||||
|
|
||||||
|
anchors.top: true
|
||||||
|
anchors.left: true
|
||||||
|
anchors.right: true
|
||||||
|
anchors.bottom: true
|
||||||
|
|
||||||
|
SystemClock {
|
||||||
|
id: clock
|
||||||
|
precision: SystemClock.Minutes
|
||||||
|
}
|
||||||
|
|
||||||
|
Column {
|
||||||
|
anchors.centerIn: parent
|
||||||
|
spacing: 8
|
||||||
|
|
||||||
|
Text {
|
||||||
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
text: Qt.formatDateTime(clock.date, "HH:mm")
|
||||||
|
color: M.Theme.base05
|
||||||
|
opacity: 0.7
|
||||||
|
font.pixelSize: 72
|
||||||
|
font.family: M.Theme.fontFamily
|
||||||
|
font.bold: true
|
||||||
|
}
|
||||||
|
|
||||||
|
Text {
|
||||||
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
text: Qt.formatDateTime(clock.date, "dddd, dd MMMM yyyy")
|
||||||
|
color: M.Theme.base05
|
||||||
|
opacity: 0.5
|
||||||
|
font.pixelSize: 18
|
||||||
|
font.family: M.Theme.fontFamily
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -33,4 +33,4 @@ IdleInhibitor 1.0 IdleInhibitor.qml
|
||||||
Notifications 1.0 Notifications.qml
|
Notifications 1.0 Notifications.qml
|
||||||
Power 1.0 Power.qml
|
Power 1.0 Power.qml
|
||||||
Privacy 1.0 Privacy.qml
|
Privacy 1.0 Privacy.qml
|
||||||
Overview 1.0 Overview.qml
|
BackgroundOverlay 1.0 BackgroundOverlay.qml
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ ShellRoot {
|
||||||
screen: scope.modelData
|
screen: scope.modelData
|
||||||
}
|
}
|
||||||
|
|
||||||
Overview {
|
BackgroundOverlay {
|
||||||
screen: scope.modelData
|
screen: scope.modelData
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Reference in a new issue