Disable battery module on polaris

This commit is contained in:
2025-11-30 21:39:12 +01:00
parent f2f044eebe
commit 43e161db0e
3 changed files with 9 additions and 5 deletions

View File

@@ -6,6 +6,8 @@ in
config.var = {
hostname = "altair";
has_battery = true;
hyprsunset.temperature = 2000;
hyprland = {

View File

@@ -7,6 +7,8 @@ in
config.var = {
hostname = "polaris";
has_battery = false;
hyprsunset.temperature = 3500;
hyprland = {

View File

@@ -1,6 +1,6 @@
# Hyprpanel is the bar on top of the screen
# Display information like workspaces, battery, wifi, ...
{ config, ... }:
{ config, lib, ... }:
let
transparentButtons = config.theme.bar.transparentButtons;
@@ -46,11 +46,11 @@ in
middle = [
"media"
];
right = [
right = lib.flatten [
"systray"
"volume"
"bluetooth"
"battery"
(lib.optional config.var.has_battery "battery")
"network"
"clock"
"notifications"