summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian <[email protected]>2026-05-22 19:48:26 -0500
committerChristian <[email protected]>2026-05-22 19:48:26 -0500
commita13dd5c1992d7804ba28530a13510fe5842596d5 (patch)
treea01747bad45ad4f0fcc8bfaf19029f61143272ea
parentfd43635039bc63e4e56601fc2b74c0e83b11a1bf (diff)
Add workspace indicator to xmobar
-rw-r--r--modules/home/christian.nix5
-rw-r--r--modules/xmonad.hs2
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: <fc=#4eb4fa><bar> <total>%</fc>"] 10
+ [ Run XMonadLog
+ , Run Cpu ["-t", "cpu: <fc=#4eb4fa><bar> <total>%</fc>"] 10
, Run Network "wlan0" ["-S", "True", "-t", "wlan: <fc=#4eb4fa><rx></fc>/<fc=#4eb4fa><tx></fc>"] 10
, Run Memory ["-t","mem: <fc=#4eb4fa><usedbar> <usedratio>%</fc>"] 10
, Run Date "date: <fc=#4eb4fa>%a %d %b %Y %I:%M:%S %p </fc>" "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)