From ef2fad9e8cb3d268e76d31415944a1518ec0c197 Mon Sep 17 00:00:00 2001 From: Bluemedia Date: Sun, 3 Dec 2023 21:43:28 +0100 Subject: [PATCH] Fix waybar battery module --- main.yml | 2 +- roles/desktop-environment/templates/waybar-config.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main.yml b/main.yml index 233012c..7d3f62e 100644 --- a/main.yml +++ b/main.yml @@ -1,6 +1,6 @@ - hosts: localhost roles: - common - - desktop-environment + - desktop-environment # WM, App Launcher etc. - essential-tools # Thunar File Manager, Firefox, KeePassXC, Nextcloud Desktop #- media-tools # Spotify, VLC \ No newline at end of file diff --git a/roles/desktop-environment/templates/waybar-config.j2 b/roles/desktop-environment/templates/waybar-config.j2 index 89abcc7..458efa7 100644 --- a/roles/desktop-environment/templates/waybar-config.j2 +++ b/roles/desktop-environment/templates/waybar-config.j2 @@ -1,7 +1,7 @@ { "modules-left": ["sway/workspaces", "sway/mode"], "modules-center": ["clock"], - "modules-right": ["cpu", "memory", "network", "pulseaudio", "battery", "custom/power"], + "modules-right": ["cpu", "memory", "network", "pulseaudio", {% if isNotebook | bool %}"battery", {% endif %}"custom/power"], "sway/workspaces": { "disable-scroll": true },