From a13dd5c1992d7804ba28530a13510fe5842596d5 Mon Sep 17 00:00:00 2001 From: Christian Date: Fri, 22 May 2026 19:48:26 -0500 Subject: Add workspace indicator to xmobar --- modules/home/christian.nix | 5 +++-- modules/xmonad.hs | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/home/christian.nix b/modules/home/christian.nix index bcbb9c2..7d436fc 100644 --- a/modules/home/christian.nix +++ b/modules/home/christian.nix @@ -102,7 +102,8 @@ , fgColor = "grey" , position = TopH 30 , commands = - [ Run Cpu ["-t", "cpu: %"] 10 + [ Run XMonadLog + , Run Cpu ["-t", "cpu: %"] 10 , Run Network "wlan0" ["-S", "True", "-t", "wlan: /"] 10 , Run Memory ["-t","mem: %"] 10 , Run Date "date: %a %d %b %Y %I:%M:%S %p " "date" 10 @@ -119,7 +120,7 @@ ] , sepChar = "%" , alignSep = "}{" - , template = " ${lib.optionalString config.custom.xmobarBattery "%battery% | "}%cpu% | %memory% | %wlan0% }{%date% " + , template = " %XMonadLog% | ${lib.optionalString config.custom.xmobarBattery "%battery% | "}%cpu% | %memory% | %wlan0% }{%date% " } ''; }; diff --git a/modules/xmonad.hs b/modules/xmonad.hs index 79dbbba..6f88748 100644 --- a/modules/xmonad.hs +++ b/modules/xmonad.hs @@ -26,7 +26,7 @@ myConfig = defaultConfig [ ( (mod1Mask, xK_q), restart "xmonad" True ) , ( (mod1Mask, xK_f), sendMessage ToggleStruts ) ] -mySB = statusBarProp "xmobar" (pure xmobarPP) +mySB = statusBarProp "xmobar" (pure xmobarPP { ppTitle = const "" }) -- main = xmonad $ withEasySB mySB defToggleStrutsKey def main = getDirectories >>= launch (docks $ withSB mySB myConfig) -- cgit v1.2.3