Commit a98239a9 authored by epsi sayidina's avatar epsi sayidina

openbox config

parent a74b23c6
<!-- epsi's custom -->
<!-- Custom Keybindings for running applications -->
<keybind key="W-x">
<action name="Execute">
<startupnotify>
<enabled>true</enabled>
<name>oblogut</name>
</startupnotify>
<command>oblogout</command>
</action>
</keybind>
<keybind key="W-A-d">
<action name="Execute">
<command>dmenu_run</command>
</action>
</keybind>
<keybind key="W-S-d">
<action name="Execute">
<command>rofi -show run -opacity 90</command>
</action>
</keybind>
<keybind key="W-Tab">
<action name="Execute">
<command>rofi -show window -opacity 90</command>
</action>
</keybind>
<!-- Addy's custom -->
<!-- https://github.com/addy-dclxvi/almighty-dotfiles/blob/master/.config/openbox/rc.xml -->
<!-- Keybindings for window switching -->
<keybind key="W-Tab">
<action name="Execute">
<command>skippy-xd</command>
</action>
</keybind>
<!-- Keybindings for music control -->
<keybind key="XF86AudioStop">
<action name="Execute">
<command>mpc stop</command>
</action>
</keybind>
<keybind key="XF86AudioPlay">
<action name="Execute">
<command>mpc toggle</command>
</action>
</keybind>
<keybind key="XF86AudioPrev">
<action name="Execute">
<command>mpc prev</command>
</action>
</keybind>
<keybind key="XF86AudioNext">
<action name="Execute">
<command>mpc next</command>
</action>
</keybind>
<keybind key="XF86AudioRaiseVolume">
<action name="Execute">
<command>amixer -D pulse sset Master '5%+'</command>
</action>
</keybind>
<keybind key="XF86AudioLowerVolume">
<action name="Execute">
<command>amixer -D pulse sset Master '5%-'</command>
</action>
</keybind>
<keybind key="XF86AudioMute">
<action name="Execute">
<command>amixer set Master toggle</command>
</action>
</keybind>
<!-- Arcolinux -->
<!-- https://github.com/arcolinux/arcolinux-openbox-configs/blob/master/rc.xml -->
<keybind key="W-Escape">
<action name="Execute">
<command>xkill</command>
</action>
</keybind>
<!-- Arcolinux: Resize and Positioning -->
<keybind key="W-Right">
<action name="UnmaximizeFull"/>
<action name="MaximizeVert"/>
<action name="MoveResizeTo">
<width>50%</width>
</action>
<action name="MoveToEdgeEast"/>
</keybind>
<keybind key="W-Left">
<action name="UnmaximizeFull"/>
<action name="MaximizeVert"/>
<action name="MoveResizeTo">
<width>50%</width>
</action>
<action name="MoveToEdgeWest"/>
</keybind>
<keybind key="W-Up">
<action name="MaximizeFull"/>
</keybind>
<keybind key="W-Down">
<action name="UnmaximizeFull"/>
<action name="MoveResizeTo">
<width>80%</width>
<height>80%</height>
</action>
<action name="MoveToCenter"/>
</keybind>
<keybind key="W-A-Left">
<action name="UnmaximizeFull"/>
<action name="MaximizeVert"/>
<action name="MoveResizeTo">
<x>0</x>
<y>0</y>
<width>50%</width>
</action>
</keybind>
<keybind key="W-A-Right">
<action name="UnmaximizeFull"/>
<action name="MaximizeVert"/>
<action name="MoveResizeTo">
<x>-0</x>
<y>0</y>
<width>50%</width>
</action>
</keybind>
<!-- Arcolinux: XF86 Keybinding -->
<keybind key="XF86AudioStop">
<action name="Execute">
<command>playerctl pause</command>
</action>
</keybind>
<keybind key="XF86AudioPlay">
<action name="Execute">
<command>playerctl play-pause</command>
</action>
</keybind>
<keybind key="XF86AudioPrev">
<action name="Execute">
<command>playerctl previous</command>
</action>
</keybind>
<keybind key="XF86AudioNext">
<action name="Execute">
<command>playerctl next</command>
</action>
</keybind>
<keybind key="XF86MonBrightnessUp">
<action name="Execute">
<command>xbacklight +10</command>
</action>
</keybind>
<keybind key="XF86MonBrightnessDown">
<action name="Execute">
<command>xbacklight -10</command>
</action>
</keybind>
......@@ -6,6 +6,7 @@
<strength>10</strength>
<screen_edge_strength>20</screen_edge_strength>
</resistance>
<focus>
<focusNew>yes</focusNew>
<!-- always try to focus new windows when they appear. other rules do
......@@ -24,6 +25,7 @@
<!-- when followMouse is enabled, and a window is given focus by moving the
mouse into it, also raise the window -->
</focus>
<placement>
<policy>Smart</policy>
<!-- 'Smart' or 'UnderMouse' -->
......@@ -41,6 +43,7 @@
following: 'Mouse' - where the mouse is, or
'Active' - where the active window is -->
</placement>
<theme>
<name>flatypuss</name>
<titleLayout>NLSDIMC</titleLayout>
......@@ -111,6 +114,7 @@
<!-- 'italic' or 'normal' -->
</font>
</theme>
<desktops>
<!-- this stuff is only used at startup, pagers allow you to change them
during a session
......@@ -136,6 +140,7 @@
<!-- The number of milliseconds to show the popup for when switching
desktops. Set this to 0 to disable the popup. -->
</desktops>
<resize>
<drawContents>yes</drawContents>
<popupShow>Nonpixel</popupShow>
......@@ -152,6 +157,7 @@
distance from bottom edge, or 'Center' -->
</popupFixedPosition>
</resize>
<!-- You can reserve a portion of your screen where windows will not cover when
they are maximized, or when they are initially placed.
Many programs reserve space automatically, but you can use this in other
......@@ -162,6 +168,7 @@
<left>10</left>
<right>10</right>
</margins>
<dock>
<position>TopLeft</position>
<!-- (Top|Bottom)(Left|Right|)|Top|Bottom|Left|Right|Floating -->
......@@ -180,8 +187,10 @@
<moveButton>Middle</moveButton>
<!-- 'Left', 'Middle', 'Right' -->
</dock>
<keyboard>
<chainQuitKey>C-g</chainQuitKey>
<!-- Keybindings for desktop switching -->
<keybind key="C-A-Left">
<action name="GoToDesktop">
......@@ -254,6 +263,7 @@
<keybind key="W-d">
<action name="ToggleShowDesktop"/>
</keybind>
<!-- Custom Keybindings -->
<keybind key="W-A-z">
<action name="Decorate"/>
......@@ -261,6 +271,7 @@
<keybind key="W-A-x">
<action name="Undecorate"/>
</keybind>
<!-- Keybindings for windows -->
<keybind key="A-F4">
<action name="Close"/>
......@@ -275,6 +286,7 @@
<menu>client-menu</menu>
</action>
</keybind>
<!-- Keybindings for window switching -->
<keybind key="A-Tab">
<action name="NextWindow">
......@@ -305,6 +317,7 @@
</finalactions>
</action>
</keybind>
<!-- Keybindings for window switching with the arrow keys -->
<keybind key="W-S-Right">
<action name="DirectionalCycleWindows">
......@@ -326,6 +339,7 @@
<direction>down</direction>
</action>
</keybind>
<!-- Keybindings for running applications -->
<keybind key="W-e">
<action name="Execute">
......@@ -336,6 +350,19 @@
<command>urxvt</command>
</action>
</keybind>
<!-- Custom Keybindings for window switching -->
<keybind key="W-S-Tab">
<action name="Execute">
<command>skippy-xd</command>
</action>
</keybind>
<keybind key="W-Escape">
<action name="Execute">
<command>xkill</command>
</action>
</keybind>
<!-- Custom Keybindings for running applications -->
<keybind key="W-x">
<action name="Execute">
......@@ -361,7 +388,102 @@
<command>rofi -show window -opacity 90</command>
</action>
</keybind>
<!-- Custom Keybindings for music control -->
<keybind key="XF86AudioStop">
<action name="Execute">
<command>mpc stop</command>
</action>
</keybind>
<keybind key="XF86AudioPlay">
<action name="Execute">
<command>mpc toggle</command>
</action>
</keybind>
<keybind key="XF86AudioPrev">
<action name="Execute">
<command>mpc prev</command>
</action>
</keybind>
<keybind key="XF86AudioNext">
<action name="Execute">
<command>mpc next</command>
</action>
</keybind>
<keybind key="XF86AudioRaiseVolume">
<action name="Execute">
<command>amixer -D pulse sset Master '5%+'</command>
</action>
</keybind>
<keybind key="XF86AudioLowerVolume">
<action name="Execute">
<command>amixer -D pulse sset Master '5%-'</command>
</action>
</keybind>
<keybind key="XF86AudioMute">
<action name="Execute">
<command>amixer set Master toggle</command>
</action>
</keybind>
<!-- Custom Keybindings for resize and positioning -->
<keybind key="W-Tab">
<action name="ShowMenu">
<menu>client-list-combined-menu</menu>
</action>
</keybind>
<keybind key="W-space">
<action name="ShowMenu">
<menu>root-menu</menu>
</action>
</keybind>
<keybind key="W-Right">
<action name="UnmaximizeFull"/>
<action name="MaximizeVert"/>
<action name="MoveResizeTo">
<width>50%</width>
</action>
<action name="MoveToEdgeEast"/>
</keybind>
<keybind key="W-Left">
<action name="UnmaximizeFull"/>
<action name="MaximizeVert"/>
<action name="MoveResizeTo">
<width>50%</width>
</action>
<action name="MoveToEdgeWest"/>
</keybind>
<keybind key="W-Up">
<action name="MaximizeFull"/>
</keybind>
<keybind key="W-Down">
<action name="UnmaximizeFull"/>
<action name="MoveResizeTo">
<width>80%</width>
<height>80%</height>
</action>
<action name="MoveToCenter"/>
</keybind>
<keybind key="W-A-Left">
<action name="UnmaximizeFull"/>
<action name="MaximizeVert"/>
<action name="MoveResizeTo">
<x>0</x>
<y>0</y>
<width>50%</width>
</action>
</keybind>
<keybind key="W-A-Right">
<action name="UnmaximizeFull"/>
<action name="MaximizeVert"/>
<action name="MoveResizeTo">
<x>-0</x>
<y>0</y>
<width>50%</width>
</action>
</keybind>
</keyboard>
<mouse>
<dragThreshold>1</dragThreshold>
<!-- number of pixels the mouse must move before a drag begins -->
......@@ -374,6 +496,7 @@
<screenEdgeWarpMouse>false</screenEdgeWarpMouse>
<!-- 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">
<action name="Focus"/>
......@@ -429,6 +552,7 @@
</action>
</mousebind>
</context>
<context name="Titlebar">
<mousebind button="Left" action="Drag">
<action name="Move"/>
......@@ -457,6 +581,7 @@
</action>
</mousebind>
</context>
<context name="Titlebar Top Right Bottom Left TLCorner TRCorner BRCorner BLCorner">
<mousebind button="Left" action="Press">
<action name="Focus"/>
......@@ -476,6 +601,7 @@
</action>
</mousebind>
</context>
<context name="Top">
<mousebind button="Left" action="Drag">
<action name="Resize">
......@@ -535,6 +661,7 @@
<action name="Raise"/>
</mousebind>
</context>
<context name="Icon">
<mousebind button="Left" action="Press">
<action name="Focus"/>
......@@ -660,6 +787,7 @@
<action name="Raise"/>
</mousebind>
</context>
<context name="Root">
<!-- Menus -->
<mousebind button="Middle" action="Press">
......@@ -696,6 +824,7 @@
</mousebind>
</context>
</mouse>
<menu>
<!-- You can specify more than one menu file in here and they are all loaded,
just don't make menu ids clash or, well, it'll be kind of pointless -->
......@@ -721,6 +850,7 @@
<manageDesktops>yes</manageDesktops>
<!-- show the manage desktops section in the client-list-(combined-)menu -->
</menu>
<applications>
<application name="urxvt*">
<desktop>1</desktop>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment