mirror of
https://github.com/srid/nixos-config.git
synced 2026-02-04 03:53:35 +08:00
disable quit keey
This commit is contained in:
parent
a9ceb4daef
commit
cea4bada69
2 changed files with 9 additions and 6 deletions
|
|
@ -23,8 +23,6 @@
|
||||||
mpv
|
mpv
|
||||||
pulsemixer
|
pulsemixer
|
||||||
xorg.xmessage
|
xorg.xmessage
|
||||||
maim
|
|
||||||
xclip
|
|
||||||
];
|
];
|
||||||
|
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
|
|
|
||||||
|
|
@ -23,8 +23,7 @@ main = do
|
||||||
terminal = "alacritty", -- "myst",
|
terminal = "alacritty", -- "myst",
|
||||||
layoutHook =
|
layoutHook =
|
||||||
borderSpacingBetweenWindows $
|
borderSpacingBetweenWindows $
|
||||||
avoidStruts $
|
avoidStruts $ myThreeCol ||| layoutHook def,
|
||||||
ThreeColMid 1 (3 / 100) (1 / 2) ||| layoutHook def,
|
|
||||||
logHook =
|
logHook =
|
||||||
pointerFollowsFocus,
|
pointerFollowsFocus,
|
||||||
keys = myKeys,
|
keys = myKeys,
|
||||||
|
|
@ -32,6 +31,11 @@ main = do
|
||||||
focusedBorderColor = "#50CBE8"
|
focusedBorderColor = "#50CBE8"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
myThreeCol =
|
||||||
|
ThreeColMid
|
||||||
|
1 -- Master window count
|
||||||
|
(3 / 100) -- Resize delta
|
||||||
|
(1 / 2) -- Initial column size
|
||||||
pointerFollowsFocus =
|
pointerFollowsFocus =
|
||||||
let centerOfWindow = ((0.5, 0.5), (0, 0))
|
let centerOfWindow = ((0.5, 0.5), (0, 0))
|
||||||
in uncurry updatePointer centerOfWindow
|
in uncurry updatePointer centerOfWindow
|
||||||
|
|
@ -39,7 +43,8 @@ main = do
|
||||||
myKeys baseConfig@XConfig {modMask = modKey} =
|
myKeys baseConfig@XConfig {modMask = modKey} =
|
||||||
keys def baseConfig
|
keys def baseConfig
|
||||||
<> M.fromList
|
<> M.fromList
|
||||||
[ ((modKey, xK_q), restart "/run/current-system/sw/bin/xmonad" True),
|
[ -- Disable it, to prevent accidental press.
|
||||||
|
-- ((modKey, xK_q), restart "/run/current-system/sw/bin/xmonad" True),
|
||||||
((modKey, xK_f), spawn "screenshot"),
|
((modKey, xK_f), spawn "screenshot"),
|
||||||
((modKey, xK_b), sendMessage ToggleStruts)
|
((modKey, xK_b), sendMessage ToggleStruts)
|
||||||
-- ...
|
-- ...
|
||||||
|
|
@ -57,4 +62,4 @@ main = do
|
||||||
-- Window borders
|
-- Window borders
|
||||||
(Border 10 10 10 10)
|
(Border 10 10 10 10)
|
||||||
-- Enable window border?
|
-- Enable window border?
|
||||||
True
|
True
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue