diff options
author | OPNA2608 <opna2608@protonmail.com> | 2024-04-18 18:33:57 +0200 |
---|---|---|
committer | OPNA2608 <opna2608@protonmail.com> | 2024-05-21 00:10:42 +0200 |
commit | 98c84e67e47283304739f8a53bd3b18bc024dc84 (patch) | |
tree | b7e44c082d3bc550e044c556f6fe3a09d264f979 | |
parent | 6539b60f0b289add88d125ec45d748c4241c79b8 (diff) |
nixos/lomiri: Add power indicator
-rw-r--r-- | nixos/modules/services/desktop-managers/lomiri.nix | 1 | ||||
-rw-r--r-- | nixos/tests/lomiri.nix | 8 |
2 files changed, 8 insertions, 1 deletions
diff --git a/nixos/modules/services/desktop-managers/lomiri.nix b/nixos/modules/services/desktop-managers/lomiri.nix index e11867b691071..0a1b86096e765 100644 --- a/nixos/modules/services/desktop-managers/lomiri.nix +++ b/nixos/modules/services/desktop-managers/lomiri.nix @@ -72,6 +72,7 @@ in { packages = (with pkgs; [ ayatana-indicator-datetime ayatana-indicator-messages + ayatana-indicator-power ayatana-indicator-session ]) ++ (with pkgs.lomiri; [ telephony-service diff --git a/nixos/tests/lomiri.nix b/nixos/tests/lomiri.nix index c5889d27133f4..3f20aae441351 100644 --- a/nixos/tests/lomiri.nix +++ b/nixos/tests/lomiri.nix @@ -290,13 +290,14 @@ in { # There's a test app we could use that also displays their contents, but it's abit inconsistent. with subtest("ayatana indicators work"): mouse_click(735, 0) # the cog in the top-right, for the session indicator - machine.wait_for_text(r"(Notifications|Time|Date|System)") + machine.wait_for_text(r"(Notifications|Battery|Time|Date|System)") machine.screenshot("indicators_open") # Indicator order within the menus *should* be fixed based on per-indicator order setting # Session is the one we clicked, but the last we should test (logout). Go as far left as we can test. machine.send_key("left") machine.send_key("left") + machine.send_key("left") # Notifications are usually empty, nothing to check there with subtest("lomiri indicator network works"): @@ -304,6 +305,11 @@ in { machine.wait_for_text(r"(Flight|Wi-Fi)") machine.screenshot("indicators_network") + with subtest("ayatana indicator power works"): + machine.send_key("right") + machine.wait_for_text(r"(Charge|Battery settings)") + machine.screenshot("indicators_power") + with subtest("ayatana indicator datetime works"): machine.send_key("right") machine.wait_for_text("Time and Date Settings") |