diff options
author | Kenny Ballou <kb@devnulllabs.io> | 2021-06-25 08:55:25 -0600 |
---|---|---|
committer | Kenny Ballou <kb@devnulllabs.io> | 2021-07-07 13:29:59 -0600 |
commit | 939ffd9816ded34f688ff467ac74661db4429510 (patch) | |
tree | 31571705553b6bed6090c1b1d4957c75a92909fd /config/openbox | |
parent | 8bec0ec7f225d961c0b9bce1286c2706c413f85d (diff) | |
download | dotfiles-939ffd9816ded34f688ff467ac74661db4429510.tar.gz dotfiles-939ffd9816ded34f688ff467ac74661db4429510.tar.xz |
config: new openbox configuration
Signed-off-by: Kenny Ballou <kb@devnulllabs.io>
Diffstat (limited to 'config/openbox')
-rw-r--r-- | config/openbox/default.nix | 24 | ||||
-rw-r--r-- | config/openbox/rc.xml | 442 |
2 files changed, 466 insertions, 0 deletions
diff --git a/config/openbox/default.nix b/config/openbox/default.nix new file mode 100644 index 00000000..80c037ed --- /dev/null +++ b/config/openbox/default.nix @@ -0,0 +1,24 @@ +{ pkgs, config, ... }: +{ + xdg.configFile.openbox-rc = { + source = ./rc.xml; + target = "openbox/rc.xml"; + }; + + xdg.configFile.openbox-autostart = { + text = '' + #!/usr/bin/env bash + ${pkgs.procps}/bin/pkill stalonetray + ${pkgs.procps}/bin/pkill lemon + ${pkgs.lemonbar-sh}/bin/lemon.sh & + ${pkgs.stalonetray}/bin/stalonetray & + ''; + target = "openbox/autostart"; + executable = true; + }; + + # xdg.configFile.openbox-menu = { + # source = ./menu.xml; + # target = "openbox/menu.xml"; + # }; +} diff --git a/config/openbox/rc.xml b/config/openbox/rc.xml new file mode 100644 index 00000000..f6657dc4 --- /dev/null +++ b/config/openbox/rc.xml @@ -0,0 +1,442 @@ +<?xml version="1.0" encoding="UTF-8"?> +<openbox_config xmlns="http://openbox.org/3.4/rc" xmlns:xi="http://www.w3.org/2001/XInclude"> + <resistance> + <strength>10</strength> + <screen_edge_strength>20</screen_edge_strength> + </resistance> + <focus> + <focusNew>yes</focusNew> + <followMouse>no</followMouse> + <focusLast>yes</focusLast> + <underMouse>no</underMouse> + <focusDelay>200</focusDelay> + <raiseOnFocus>no</raiseOnFocus> + </focus> + <placement> + <policy>Smart</policy> + <center>yes</center> + <monitor>Mouse</monitor> + <primaryMonitor>Active</primaryMonitor> + </placement> + <theme> + <name>Turquoise Nights Ob</name> + <titleLayout>NLIMC</titleLayout> + <keepBorder>yes</keepBorder> + <animateIconify>yes</animateIconify> + <font place="ActiveWindow"> + <name>sans</name> + <size>8</size> + <weight>bold</weight> + <slant>normal</slant> + </font> + <font place="InactiveWindow"> + <name>sans</name> + <size>8</size> + <weight>bold</weight> + <slant>normal</slant> + </font> + <font place="MenuHeader"> + <name>sans</name> + <size>9</size> + <weight>normal</weight> + <slant>normal</slant> + </font> + <font place="MenuItem"> + <name>sans</name> + <size>9</size> + <weight>normal</weight> + <slant>normal</slant> + </font> + <font place="ActiveOnScreenDisplay"> + <name>sans</name> + <size>9</size> + <weight>bold</weight> + <slant>normal</slant> + </font> + <font place="InactiveOnScreenDisplay"> + <name>sans</name> + <size>9</size> + <weight>bold</weight> + <slant>normal</slant> + </font> + </theme> + <desktops> + <number>4</number> + <firstdesk>1</firstdesk> + <names/> + <popupTime>875</popupTime> + </desktops> + <resize> + <drawContents>yes</drawContents> + <popupShow>Always</popupShow> + <popupPosition>Center</popupPosition> + <popupFixedPosition> + <x>10</x> + <y>10</y> + </popupFixedPosition> + </resize> + <margins> + <top>0</top> + <bottom>0</bottom> + <left>0</left> + <right>0</right> + </margins> + <dock> + <position>BottomRight</position> + <floatingX>0</floatingX> + <floatingY>0</floatingY> + <noStrut>no</noStrut> + <stacking>Above</stacking> + <direction>Vertical</direction> + <autoHide>yes</autoHide> + <hideDelay>300</hideDelay> + <showDelay>300</showDelay> + <moveButton>Middle</moveButton> + </dock> + <keyboard> + <chainQuitKey>C-g</chainQuitKey> + <keybind key="C-W-Left"> + <action name="GoToDesktop"> + <to>left</to> + <wrap>yes</wrap> + </action> + </keybind> + <keybind key="C-W-Right"> + <action name="GoToDesktop"> + <to>right</to> + <wrap>yes</wrap> + </action> + </keybind> + <keybind key="C-S-W-Left"> + <action name="SendToDesktop"> + <to>left</to> + <wrap>yes</wrap> + </action> + </keybind> + <keybind key="C-S-W-Right"> + <action name="SendToDesktop"> + <to>right</to> + <wrap>yes</wrap> + </action> + </keybind> + <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-PageUp"> + <action name="UnmaximizeFull"/> + <action name="MaximizeVert"/> + <action name="MoveResizeTo"> + <height>50%</height> + </action> + </keybind> + <keybind key="W-Up"> + <action name="ToggleMaximize"/> + </keybind> + <keybind key="A-Return"> + <action name="Execute"> + <command>alacritty</command> + </action> + </keybind> + <keybind key="A-space"> + <action name="Execute"> + <command>rofi -show run</command> + </action> + </keybind> + <keybind key="C-A-l"> + <action name="Execute"> + <command>dm-tool lock</command> + </action> + </keybind> + <keybind key="W-d"> + <action name="ToggleShowDesktop"/> + </keybind> + <keybind key="A-F4"> + <action name="Close"/> + </keybind> + <keybind key="A-Escape"> + <action name="Lower"/> + <action name="FocusToBottom"/> + <action name="Unfocus"/> + </keybind> + <keybind key="A-Tab"> + <action name="Execute"> + <command>rofi -show windowcd</command> + </action> + </keybind> + <keybind key="W-Tab"> + <action name="Execute"> + <command>rofi -show window</command> + </action> + </keybind> + <keybind key="W-p"> + <action name="Execute"> + <command>autorandr --change --default default</command> + </action> + </keybind> + </keyboard> + <mouse> + <dragThreshold>1</dragThreshold> + <doubleClickTime>200</doubleClickTime> + <screenEdgeWarpTime>400</screenEdgeWarpTime> + <screenEdgeWarpMouse>false</screenEdgeWarpMouse> + <context name="Frame"> + <mousebind button="A-Left" action="Drag"> + <action name="Move"/> + </mousebind> + <mousebind button="A-Right" action="Press"> + <action name="Focus"/> + <action name="Raise"/> + <action name="Unshade"/> + </mousebind> + <mousebind button="A-Right" action="Drag"> + <action name="Resize"/> + </mousebind> + </context> + <context name="Titlebar"> + <mousebind button="Left" action="Drag"> + <action name="Move"/> + </mousebind> + <mousebind button="Left" action="DoubleClick"> + <action name="ToggleMaximize"/> + </mousebind> + <mousebind button="Up" action="Click"> + <action name="if"> + <shaded>no</shaded> + <then> + <action name="Shade"/> + <action name="FocusToBottom"/> + <action name="Unfocus"/> + <action name="Lower"/> + </then> + </action> + </mousebind> + <mousebind button="Down" action="Click"> + <action name="if"> + <shaded>yes</shaded> + <then> + <action name="Unshade"/> + <action name="Raise"/> + </then> + </action> + </mousebind> + </context> + <context name="Titlebar Top Right Bottom Left TLCorner TRCorner BRCorner BLCorner"> + <mousebind button="Left" action="Press"> + <action name="Focus"/> + <action name="Raise"/> + <action name="Unshade"/> + </mousebind> + <mousebind button="Middle" action="Press"> + <action name="Lower"/> + <action name="FocusToBottom"/> + <action name="Unfocus"/> + </mousebind> + <mousebind button="Right" action="Press"> + <action name="Focus"/> + <action name="Raise"/> + <action name="ShowMenu"> + <menu>client-menu</menu> + </action> + </mousebind> + </context> + <context name="Top"> + <mousebind button="Left" action="Drag"> + <action name="Resize"> + <edge>top</edge> + </action> + </mousebind> + </context> + <context name="Left"> + <mousebind button="Left" action="Drag"> + <action name="Resize"> + <edge>left</edge> + </action> + </mousebind> + </context> + <context name="Right"> + <mousebind button="Left" action="Drag"> + <action name="Resize"> + <edge>right</edge> + </action> + </mousebind> + </context> + <context name="Bottom"> + <mousebind button="Left" action="Drag"> + <action name="Resize"> + <edge>bottom</edge> + </action> + </mousebind> + <mousebind button="Right" action="Press"> + <action name="Focus"/> + <action name="Raise"/> + <action name="ShowMenu"> + <menu>client-menu</menu> + </action> + </mousebind> + </context> + <context name="TRCorner BRCorner TLCorner BLCorner"> + <mousebind button="Left" action="Press"> + <action name="Focus"/> + <action name="Raise"/> + <action name="Unshade"/> + </mousebind> + <mousebind button="Left" action="Drag"> + <action name="Resize"/> + </mousebind> + </context> + <context name="Client"> + <mousebind button="Left" action="Press"> + <action name="Focus"/> + <action name="Raise"/> + </mousebind> + <mousebind button="Middle" action="Press"> + <action name="Focus"/> + <action name="Raise"/> + </mousebind> + <mousebind button="Right" action="Press"> + <action name="Focus"/> + <action name="Raise"/> + </mousebind> + </context> + <context name="Icon"> + <mousebind button="Left" action="Press"> + <action name="Focus"/> + <action name="Raise"/> + <action name="Unshade"/> + <action name="ShowMenu"> + <menu>client-menu</menu> + </action> + </mousebind> + <mousebind button="Right" action="Press"> + <action name="Focus"/> + <action name="Raise"/> + <action name="ShowMenu"> + <menu>client-menu</menu> + </action> + </mousebind> + </context> + <context name="AllDesktops"> + <mousebind button="Left" action="Press"> + <action name="Focus"/> + <action name="Raise"/> + <action name="Unshade"/> + </mousebind> + <mousebind button="Left" action="Click"> + <action name="ToggleOmnipresent"/> + </mousebind> + </context> + <context name="Shade"> + <mousebind button="Left" action="Press"> + <action name="Focus"/> + <action name="Raise"/> + </mousebind> + <mousebind button="Left" action="Click"> + <action name="ToggleShade"/> + </mousebind> + </context> + <context name="Iconify"> + <mousebind button="Left" action="Press"> + <action name="Focus"/> + <action name="Raise"/> + </mousebind> + <mousebind button="Left" action="Click"> + <action name="Iconify"/> + </mousebind> + </context> + <context name="Maximize"> + <mousebind button="Left" action="Press"> + <action name="Focus"/> + <action name="Raise"/> + <action name="Unshade"/> + </mousebind> + <mousebind button="Middle" action="Press"> + <action name="Focus"/> + <action name="Raise"/> + <action name="Unshade"/> + </mousebind> + <mousebind button="Right" action="Press"> + <action name="Focus"/> + <action name="Raise"/> + <action name="Unshade"/> + </mousebind> + <mousebind button="Left" action="Click"> + <action name="ToggleMaximize"/> + </mousebind> + <mousebind button="Middle" action="Click"> + <action name="ToggleMaximize"> + <direction>vertical</direction> + </action> + </mousebind> + <mousebind button="Right" action="Click"> + <action name="ToggleMaximize"> + <direction>horizontal</direction> + </action> + </mousebind> + </context> + <context name="Close"> + <mousebind button="Left" action="Press"> + <action name="Focus"/> + <action name="Raise"/> + <action name="Unshade"/> + </mousebind> + <mousebind button="Left" action="Click"> + <action name="Close"/> + </mousebind> + </context> + <context name="Desktop"> + </context> + <context name="Root"> + <mousebind button="Middle" action="Press"> + <action name="ShowMenu"> + <menu>client-list-combined-menu</menu> + </action> + </mousebind> + <mousebind button="Right" action="Press"> + <action name="ShowMenu"> + <menu>root-menu</menu> + </action> + </mousebind> + </context> + <context name="MoveResize"> + </context> + </mouse> + <menu> + <file>menu.xml</file> + <hideDelay>200</hideDelay> + <middle>no</middle> + <submenuShowDelay>100</submenuShowDelay> + <applicationIcons>yes</applicationIcons> + <manageDesktops>yes</manageDesktops> + </menu> + <applications> + <application name="urxvt-bg"> + <decor>no</decor> + <focus>yes</focus> + <position> + <x>center</x> + <y>20</y> + <monitor>2</monitor> + </position> + <layer>below</layer> + <desktop>all</desktop> + <maximized>true</maximized> + </application> + </applications> +</openbox_config> |