diff options
author | Ben Sima <ben@bsima.me> | 2022-07-21 13:38:10 -0400 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2022-07-21 13:38:10 -0400 |
commit | 1787fe1e13e76b3ca15f487d3ad69406fceae751 (patch) | |
tree | afc5759d9f63d62a94959100c7c1b0457121f485 /lib | |
parent | b26477ec71d5a0630db407faeb7c38ca67dde169 (diff) |
Add workspaces to my status bar
Diffstat (limited to 'lib')
-rw-r--r-- | lib/linux.nix | 6 | ||||
-rw-r--r-- | 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 = |