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;
background = themeCfg.bar.background;
foreground = themeCfg.bar.mainText;
enable-ipc = true;
};
"module/date" = {

View file

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