Last active
December 16, 2015 19:38
-
-
Save terryoy/5486156 to your computer and use it in GitHub Desktop.
在Openbox里实现像Windows7那样的Window snap功能 (即Win+left或right时,附着在屏幕左边或右边并以半屏大小显示,Win+Up的时候最大化,Win+Down时取消最大化)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Add following content in .config/openbox/rc.xml --> | |
<!-- After saving, execute "openbox --reconfigure" to refresh --> | |
<!-- Ref: https://wiki.archlinux.org/index.php/Openbox#Window_snap_behaviour --> | |
<keybind key="W-Left"> | |
<action name="UnmaximizeFull"/> | |
<action name="MaximizeVert"/> | |
<action name="MoveResizeTo"> | |
<width>50%</width> | |
</action> | |
<action name="MoveToEdge"><direction>west</direction></action> | |
</keybind> | |
<keybind key="W-Right"> | |
<action name="UnmaximizeFull"/> | |
<action name="MaximizeVert"/> | |
<action name="MoveResizeTo"> | |
<width>50%</width> | |
</action> | |
<action name="MoveToEdge"><direction>east</direction></action> | |
</keybind> | |
<keybind key="W-Down"> | |
<action name="Unmaximize"/> | |
</keybind> | |
<keybind key="W-Up"> | |
<action name="Maximize"/> | |
</keybind> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment