Xmonad
在沒有 modkey 的情況下在 xmonad 中拖動和調整浮動視窗的大小
在我的
.xmonad/xmonad.hs
文件中,我有以下幾行,它們控制如何拖動和調整視窗大小。我怎樣才能改變它,這樣我就不需要任何 mod 密鑰?myMouseBindings (XConfig {XMonad.modMask = modm}) = M.fromList $ -- mod-button1, Set the window to floating mode and move by dragging [ ((modm,button1), (\w -> focus w >> mouseMoveWindow w >> windows W.shiftMaster)) -- mod-button2, Raise the window to the top of the stack , ((modm,button2), (\w -> focus w >> windows W.shiftMaster)) -- mod-button3, Set the window to floating mode and resize by dragging , ((modm,button3), (\w -> focus w >> mouseResizeWindow w >> windows W.shiftMaster)) -- you may also bind events to the mouse scroll wheel (button4 and button5) ]
嘗試用 替換
modm
,0
例如, ((0,button2), (\w -> focus w >> windows W.shiftMaster))
(請參閱本文件以獲取範例
modKey
-less 滑鼠綁定)。但請注意,如果您為 設置綁定
(0,button1)
,您的普通滑鼠點擊可能不會再到達 GUI 程序(我從未嘗試過)。也看看
BorderResize
佈局修飾符。(注意它對浮動佈局等的依賴,請參閱連結頁面的第一段。)