users/xmonad: toggle polybar

This commit is contained in:
Dmitriy Pleshevskiy 2022-10-28 23:46:40 +03:00
parent 55f46d26d9
commit cc69221421
Signed by: pleshevskiy
GPG key ID: 1B59187B161C0215
2 changed files with 6 additions and 3 deletions

View file

@ -74,6 +74,7 @@ in
radius = 6.0; radius = 6.0;
background = themeCfg.bar.background; background = themeCfg.bar.background;
foreground = themeCfg.bar.mainText; foreground = themeCfg.bar.mainText;
enable-ipc = true;
}; };
"module/date" = { "module/date" = {

View file

@ -322,13 +322,15 @@ myKeys conf =
-- Increment the number of windows in the master area -- Increment the number of windows in the master area
("M-,", sendMessage $ IncMasterN 1), ("M-,", sendMessage $ IncMasterN 1),
-- Deincrement the number of windows in the master area -- Deincrement the number of windows in the master area
("M-.", sendMessage $ IncMasterN (-1)) ("M-.", sendMessage $ IncMasterN (-1)),
-- Toggle the status bar gap -- Toggle the status bar gap
-- Use this binding with avoidStruts from Hooks.ManageDocks. -- Use this binding with avoidStruts from Hooks.ManageDocks.
-- See also the statusBar function from Hooks.DynamicLog. -- See also the statusBar function from Hooks.DynamicLog.
-- ("M-b", toggleStruts)
-- , ("M-b", sendMessage ToggleStruts)
] ]
where
togglePolybar = spawn "polybar-msg cmd toggle &"
toggleStruts = togglePolybar >> sendMessage ToggleStruts
system_kb = system_kb =
[ -- Lock screen [ -- Lock screen