From 4df704844e7a8e8f86469d27e9a0602a10079d5b Mon Sep 17 00:00:00 2001 From: Damocles Date: Sun, 12 Apr 2026 15:57:22 +0200 Subject: [PATCH] rename power --- README.md | 6 +++--- modules/Bar.qml | 2 +- modules/Modules.qml | 2 +- modules/{Wlogout.qml => Power.qml} | 0 modules/qmldir | 2 +- nix/hm-module.nix | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) rename modules/{Wlogout.qml => Power.qml} (100%) diff --git a/README.md b/README.md index a70b484..d06c4c0 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ exactly when you should be most suspicious. - OSD overlay for volume and brightness changes — works with niri hotkeys, not just the bar - Screen corner rounding — tiny overlay windows that draw quarter-circle masks, configurable via `screenRadius` (set to 0 if you prefer your corners sharp and your desktop ugly) - Weather via wttrbar with configurable arguments and rich HTML tooltips -- Power menu with lock, suspend, logout, reboot, shutdown — no more `wlogout` dependency +- Power menu with lock, suspend, logout, reboot, shutdown - Flyout tooltips that actually filter by screen on multi-monitor setups, which only took three attempts to get right - Home Manager module with stylix integration, per-module enable/disable, and a theme system that hot-reloads - treefmt + nixfmt for formatting, because even AI slop deserves consistent indentation @@ -75,14 +75,14 @@ programs.nova-shell.modules = { battery = false; # see above, but for power temperature = false; # what you don't measure can't alarm you disk = false; # the number will only make you anxious - wlogout = false; # if you enjoy living dangerously without a logout button + power = false; # if you enjoy living dangerously without a logout button }; ``` Full list of things you can disable: `workspaces`, `tray`, `windowTitle`, `clock`, `notifications`, `mpris`, `volume`, `bluetooth`, `backlight`, `network`, `powerProfile`, `idleInhibitor`, `weather`, `temperature`, `cpu`, -`memory`, `disk`, `battery`, `wlogout`. +`memory`, `disk`, `battery`, `power`. ### Theme diff --git a/modules/Bar.qml b/modules/Bar.qml index 27bf8f2..24e8db1 100644 --- a/modules/Bar.qml +++ b/modules/Bar.qml @@ -107,7 +107,7 @@ PanelWindow { } // Power - M.Wlogout { bar: bar; visible: M.Modules.wlogout } + M.Power { bar: bar; visible: M.Modules.power } } } } diff --git a/modules/Modules.qml b/modules/Modules.qml index c8c6d1d..d8a5d04 100644 --- a/modules/Modules.qml +++ b/modules/Modules.qml @@ -25,7 +25,7 @@ QtObject { property bool memory: true property bool disk: true property bool battery: true - property bool wlogout: true + property bool power: true property var weatherArgs: ["--nerd"] diff --git a/modules/Wlogout.qml b/modules/Power.qml similarity index 100% rename from modules/Wlogout.qml rename to modules/Power.qml diff --git a/modules/qmldir b/modules/qmldir index ccad069..0a84d2e 100644 --- a/modules/qmldir +++ b/modules/qmldir @@ -30,4 +30,4 @@ Weather 1.0 Weather.qml PowerProfile 1.0 PowerProfile.qml IdleInhibitor 1.0 IdleInhibitor.qml Notifications 1.0 Notifications.qml -Wlogout 1.0 Wlogout.qml +Power 1.0 Power.qml diff --git a/nix/hm-module.nix b/nix/hm-module.nix index 0f00a76..91aa91e 100644 --- a/nix/hm-module.nix +++ b/nix/hm-module.nix @@ -76,7 +76,7 @@ in "memory" "disk" "battery" - "wlogout" + "power" ] (name: lib.mkOption { type = lib.types.bool;