diff options
author | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-06-07 08:14:06 +0530 |
---|---|---|
committer | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-06-07 08:14:06 +0530 |
commit | d4b7e2982a32117bd515394c52eeae7a174d5f29 (patch) | |
tree | 193824aade2a044b14555e15d9a870d4ed83219e | |
parent | eb1d7ff92c9e07fc08fcb7e513ae0666c37e0d51 (diff) |
tweaked openbox keybindings for movement similar to xmonad
-rw-r--r-- | .config/openbox/rc.xml | 119 |
1 files changed, 72 insertions, 47 deletions
diff --git a/.config/openbox/rc.xml b/.config/openbox/rc.xml index 4ab32b0..6d09985 100644 --- a/.config/openbox/rc.xml +++ b/.config/openbox/rc.xml @@ -1,6 +1,4 @@ <?xml version="1.0" encoding="UTF-8"?> -<!-- Do not edit this file, it will be overwritten on install. - Copy the file to $HOME/.config/openbox/ instead. --> <openbox_config xmlns="http://openbox.org/3.4/rc" xmlns:xi="http://www.w3.org/2001/XInclude"> <resistance> <strength>10</strength> @@ -42,7 +40,7 @@ 'Active' - where the active window is --> </placement> <theme> - <name>Clearlooks</name> + <name>Dracula-withoutBorder</name> <!--titleLayout>NLIMC</titleLayout--> <titleLayout>CMILSD</titleLayout> <!-- @@ -182,19 +180,19 @@ <keyboard> <chainQuitKey>C-g</chainQuitKey> <!-- Keybindings for desktop switching --> - <keybind key="C-A-Left"> + <keybind key="A-h"> <action name="GoToDesktop"> <to>left</to> - <wrap>no</wrap> + <wrap>yes</wrap> </action> </keybind> - <keybind key="C-A-Right"> + <keybind key="A-l"> <action name="GoToDesktop"> <to>right</to> - <wrap>no</wrap> + <wrap>yes</wrap> </action> </keybind> - <keybind key="C-A-Up"> + <!--keybind key="C-A-Up"> <action name="GoToDesktop"> <to>up</to> <wrap>no</wrap> @@ -205,20 +203,20 @@ <to>down</to> <wrap>no</wrap> </action> - </keybind> - <keybind key="S-A-Left"> + </keybind--> + <keybind key="S-A-h"> <action name="SendToDesktop"> <to>left</to> <wrap>no</wrap> </action> </keybind> - <keybind key="S-A-Right"> + <keybind key="S-A-l"> <action name="SendToDesktop"> <to>right</to> <wrap>no</wrap> </action> </keybind> - <keybind key="S-A-Up"> + <!--keybind key="S-A-Up"> <action name="SendToDesktop"> <to>up</to> <wrap>no</wrap> @@ -229,27 +227,38 @@ <to>down</to> <wrap>no</wrap> </action> - </keybind> - <keybind key="W-F1"> + </keybind--> + <keybind key="W-1"> <action name="GoToDesktop"> <to>1</to> </action> </keybind> - <keybind key="W-F2"> + <keybind key="W-2"> <action name="GoToDesktop"> <to>2</to> </action> </keybind> - <keybind key="W-F3"> + <keybind key="W-3"> <action name="GoToDesktop"> <to>3</to> </action> </keybind> - <keybind key="W-F4"> + <keybind key="W-4"> <action name="GoToDesktop"> <to>4</to> </action> </keybind> + <keybind key="W-5"> + <action name="GoToDesktop"> + <to>5</to> + </action> + </keybind> + <keybind key="W-6"> + <action name="GoToDesktop"> + <to>6</to> + </action> + </keybind> + <!-- rethink --> <keybind key="W-d"> <action name="ToggleShowDesktop"/> </keybind> @@ -257,18 +266,21 @@ <keybind key="A-F4"> <action name="Close"/> </keybind> - <keybind key="A-Escape"> + <keybind key="A-w"> + <action name="Close"/> + </keybind> + <!--keybind key="A-j"> <action name="Lower"/> <action name="FocusToBottom"/> <action name="Unfocus"/> - </keybind> + </keybind--> <keybind key="A-space"> <action name="ShowMenu"> <menu>client-menu</menu> </action> </keybind> <!-- Keybindings for window switching --> - <keybind key="A-Tab"> + <keybind key="A-j"> <action name="NextWindow"> <finalactions> <action name="Focus"/> @@ -277,7 +289,7 @@ </finalactions> </action> </keybind> - <keybind key="A-S-Tab"> + <keybind key="A-k"> <action name="PreviousWindow"> <finalactions> <action name="Focus"/> @@ -286,7 +298,8 @@ </finalactions> </action> </keybind> - <keybind key="C-A-Tab"> + <!-- figure out what this is --> + <!--keybind key="C-A-Tab"> <action name="NextWindow"> <panels>yes</panels> <desktop>yes</desktop> @@ -296,30 +309,30 @@ <action name="Unshade"/> </finalactions> </action> - </keybind> + </keybind--> <!-- Keybindings for window switching with the arrow keys --> - <keybind key="W-S-Right"> + <keybind key="W-l"> <action name="DirectionalCycleWindows"> <direction>right</direction> </action> </keybind> - <keybind key="W-S-Left"> + <keybind key="W-h"> <action name="DirectionalCycleWindows"> <direction>left</direction> </action> </keybind> - <keybind key="W-S-Up"> + <keybind key="W-k"> <action name="DirectionalCycleWindows"> <direction>up</direction> </action> </keybind> - <keybind key="W-S-Down"> + <keybind key="W-j"> <action name="DirectionalCycleWindows"> <direction>down</direction> </action> </keybind> <!-- Keybindings for running applications --> - <keybind key="W-e"> + <!--keybind key="W-e"> <action name="Execute"> <startupnotify> <enabled>true</enabled> @@ -327,7 +340,7 @@ </startupnotify> <command>kfmclient openProfile filemanagement</command> </action> - </keybind> + </keybind--> </keyboard> <mouse> <dragThreshold>1</dragThreshold> @@ -342,40 +355,40 @@ <!-- Set this to TRUE to move the mouse pointer across the desktop when switching due to hitting the edge of the screen --> <context name="Frame"> - <mousebind button="A-Left" action="Press"> + <!--mousebind button="A-Left" action="Press"> <action name="Focus"/> <action name="Raise"/> - </mousebind> - <mousebind button="A-Left" action="Click"> + </mousebind--> + <!--mousebind button="A-Left" action="Click"> <action name="Unshade"/> - </mousebind> - <mousebind button="A-Left" action="Drag"> + </mousebind--> + <mousebind button="W-Left" action="Drag"> <action name="Move"/> </mousebind> - <mousebind button="A-Right" action="Press"> + <!--mousebind button="A-Right" action="Press"> <action name="Focus"/> <action name="Raise"/> <action name="Unshade"/> - </mousebind> - <mousebind button="A-Right" action="Drag"> + </mousebind--> + <mousebind button="W-Right" action="Drag"> <action name="Resize"/> </mousebind> - <mousebind button="A-Middle" action="Press"> + <!--mousebind button="A-Middle" action="Press"> <action name="Lower"/> <action name="FocusToBottom"/> <action name="Unfocus"/> - </mousebind> - <mousebind button="A-Up" action="Click"> + </mousebind--> + <mousebind button="W-Up" action="Click"> <action name="GoToDesktop"> <to>previous</to> </action> </mousebind> - <mousebind button="A-Down" action="Click"> + <mousebind button="W-Down" action="Click"> <action name="GoToDesktop"> <to>next</to> </action> </mousebind> - <mousebind button="C-A-Up" action="Click"> + <!--mousebind button="C-A-Up" action="Click"> <action name="GoToDesktop"> <to>previous</to> </action> @@ -384,17 +397,19 @@ <action name="GoToDesktop"> <to>next</to> </action> - </mousebind> - <mousebind button="A-S-Up" action="Click"> + </mousebind--> + <!-- no need to hold shift for this --> + <!-- just go over titlebar --> + <!--mousebind button="W-S-Up" action="Click"> <action name="SendToDesktop"> <to>previous</to> </action> </mousebind> - <mousebind button="A-S-Down" action="Click"> + <mousebind button="W-S-Down" action="Click"> <action name="SendToDesktop"> <to>next</to> </action> - </mousebind> + </mousebind--> </context> <context name="Titlebar"> <mousebind button="Left" action="Drag"> @@ -403,7 +418,7 @@ <mousebind button="Left" action="DoubleClick"> <action name="ToggleMaximize"/> </mousebind> - <mousebind button="Up" action="Click"> + <!--mousebind button="Up" action="Click"> <action name="if"> <shaded>no</shaded> <then> @@ -422,6 +437,16 @@ <action name="Raise"/> </then> </action> + </mousebind--> + <mousebind button="Up" action="Click"> + <action name="SendToDesktop"> + <to>previous</to> + </action> + </mousebind> + <mousebind button="Down" action="Click"> + <action name="SendToDesktop"> + <to>next</to> + </action> </mousebind> </context> <context name="Titlebar Top Right Bottom Left TLCorner TRCorner BRCorner BLCorner"> |