From 1787fe1e13e76b3ca15f487d3ad69406fceae751 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Thu, 21 Jul 2022 13:38:10 -0400 Subject: Add workspaces to my status bar --- lib/linux.nix | 6 +++++- lib/xmonad.hs | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/linux.nix b/lib/linux.nix index 7ad0c89..96c14f8 100644 --- a/lib/linux.nix +++ b/lib/linux.nix @@ -215,7 +215,7 @@ in height = "30"; module-margin = 1; modules-center = "date"; - modules-left = "volume-bar"; + modules-left = ["ewmh" "volume-bar"]; modules-right = [ "battery" "cpu" "mem" "temp" ]; monitor = "\${env:MONITOR:HDMI-2}"; monitor-fallback = "\${env:MONITOR:eDP-1}"; @@ -231,6 +231,10 @@ in tray-scale = 1; width = "100%"; }; + "module/ewmh" = { + type = "internal/xworkspaces"; + label-active-foreground = "#fff"; + }; "module/date" = { type = "internal/date"; internal = 5; diff --git a/lib/xmonad.hs b/lib/xmonad.hs index 9972bf0..c933be9 100644 --- a/lib/xmonad.hs +++ b/lib/xmonad.hs @@ -118,7 +118,7 @@ goldenSpiral :: SpiralWithDir a goldenSpiral = spiral (6 / 7) myWorkspaces :: [String] -myWorkspaces = ["1[work]", "2[chat]", "3[lithium]", "4", "5[mon]", "6"] ++ map show [7 .. 9] +myWorkspaces = ["1[org]", "2[dev]", "3[chat]", "4[lithium]", "5[mon]", "6"] ++ map show [7 .. 9] addSpace :: l a -> ModifiedLayout Spacing l a addSpace = -- cgit v1.2.3