users/xmonad: toggle polybar
This commit is contained in:
parent
55f46d26d9
commit
cc69221421
2 changed files with 6 additions and 3 deletions
|
@ -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" = {
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue