↑日記で日々積み重ねた情報をトップの「わんこのページ」にまとめています。

わんこ日記 [RDF] YouTubeも始めました→


2017-03-05(Sun) LXDEのOpenboxでもWindowsスナップ [長年日記]

なんかWindows Aaroの右半分にスナップとか便利につかっていたらLinuxでも使いたくなったので

$ diff -u lxde-rc.xml.org lxde-rc.xml

--- lxde-rc.xml.org 2017-03-05 01:10:49.299382235 +0900

+++ lxde-rc.xml 2017-03-05 01:18:57.028669866 +0900

@@ -264,6 +264,12 @@

<menu>client-menu</menu>

</action>

</keybind>

+ <!-- Take a screenshot of the current window with scrot when

+ Alt+Print are pressed -->

+ <!-- copy from /etc/xdg/openbox/rc.xml -->

+ <keybind key="A-Print">

+ <action name="Execute"><command>scrot -s</command></action>

+ </keybind>

<!-- Keybindings for window switching -->

<keybind key="A-Tab">

<action name="NextWindow"/>

@@ -277,6 +283,29 @@

<desktop>yes</desktop>

</action>

</keybind>

+ <!-- copy from /etc/xdg/openbox/rc.xml -->

+ <!-- Keybindings for window switching with the arrow keys -->

+ <keybind key="W-S-Right">

+ <action name="DirectionalCycleWindows">

+ <direction>right</direction>

+ </action>

+ </keybind>

+ <keybind key="W-S-Left">

+ <action name="DirectionalCycleWindows">

+ <direction>left</direction>

+ </action>

+ </keybind>

+ <keybind key="W-S-Up">

+ <action name="DirectionalCycleWindows">

+ <direction>up</direction>

+ </action>

+ </keybind>

+ <keybind key="W-S-Down">

+ <action name="DirectionalCycleWindows">

+ <direction>down</direction>

+ </action>

+ </keybind>

+

<!-- Keybindings for running applications -->

<keybind key="W-e">

<action name="Execute">

@@ -335,6 +364,38 @@

<command>lxrandr</command>

</action>

</keybind>

+ <!-- copy from https://wiki.archlinuxjp.org/index.php/Openbox

+ Windows Aero Snap

+ -->

+ <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>

+ <!-- open teminal -->

+ <keybind key="W-t">

+ <action name="Execute">

+ <command>lxterminal</command>

+ </action>

+ </keybind>

+

</keyboard>

<mouse>

<dragThreshold>8</dragThreshold>

上下のスナップは、再現できなかったので最大化で許してね。

本日のPingbacks(全0件)

Google Web検索 on-o.com内を検索