From a4fb9a83d671a4c7f3ed44df77cdee36604b5411 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> Date: Tue, 15 Oct 2024 04:21:26 +0530 Subject: Refactoring code. Stopped using picom. Disabled unused packages and configurations. --- modules/desktop/status-bar/polybar/bar/main.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'modules/desktop/status-bar/polybar/bar/main.nix') diff --git a/modules/desktop/status-bar/polybar/bar/main.nix b/modules/desktop/status-bar/polybar/bar/main.nix index 660c444..25cce91 100644 --- a/modules/desktop/status-bar/polybar/bar/main.nix +++ b/modules/desktop/status-bar/polybar/bar/main.nix @@ -1,4 +1,4 @@ -{ config }: +{ config, lib }: with config.scheme.withHashtag; let @@ -36,9 +36,9 @@ in { font-2 = "${config.fonts.normal}:style=Light:pixelsize=${largerFontSize};2"; modules-left = - if config.desktop.window-manager.bspwm.enable then - "bspwm separator" - else null; + lib.mkIf + config.desktop.window-manager.bspwm.enable + "bspwm separator"; modules-center = "xwindow"; modules-right = "separator memory cpu battery time date kernel-version"; } -- cgit v1.2.3