add openbox + jgmenu

This commit is contained in:
frosty 2024-06-23 07:24:41 -04:00
parent 690d30287d
commit 52ebca482c
3 changed files with 718 additions and 0 deletions

74
.config/jgmenu/jgmenurc Normal file
View file

@ -0,0 +1,74 @@
# verbosity = 0
stay_alive = 0
# persistent = 0
# hide_on_startup = 0
# csv_cmd = apps
# tint2_look = 0
position_mode = pointer
# edge_snap_x = 30
# terminal_exec = x-terminal-emulator
# terminal_args = -e
# monitor = 0
# hover_delay = 100
# hide_back_items = 1
# columns = 1
# tabs = 120
# menu_margin_x = 0
# menu_margin_y = 0
# menu_width = 200
# menu_height_min = 0
# menu_height_max = 0
# menu_height_mode = static
# menu_padding_top = 5
# menu_padding_right = 5
# menu_padding_bottom = 5
# menu_padding_left = 5
# menu_radius = 1
# menu_border = 0
# menu_halign = left
# menu_valign = bottom
# menu_gradient_pos = none
# sub_spacing = 1
# sub_padding_top = auto
# sub_padding_right = auto
# sub_padding_bottom = auto
# sub_padding_left = auto
# sub_hover_action = 1
# item_margin_x = 3
# item_margin_y = 3
# item_height = 25
# item_padding_x = 4
# item_radius = 1
# item_border = 0
# item_halign = left
# sep_height = 5
# sep_halign = left
# sep_markup =
# font =
# font_fallback = xtg
# icon_size = 22
# icon_text_spacing = 10
# icon_norm_alpha = 100
# icon_sel_alpha = 100
# icon_theme =
# icon_theme_fallback = xtg
# arrow_string = ▸
# arrow_width = 15
# color_menu_bg = #000000 100
# color_menu_bg_to = #000000 100
# color_menu_border = #eeeeee 8
# color_norm_bg = #000000 00
# color_norm_fg = #eeeeee 100
# color_sel_bg = #ffffff 20
# color_sel_fg = #eeeeee 100
# color_sel_border = #eeeeee 8
# color_sep_fg = #ffffff 20
# color_scroll_ind = #eeeeee 40
# color_title_fg = #eeeeee 50
# color_title_bg = #000000 0
# color_title_border = #000000 0
# csv_name_format = %n (%g)
# csv_single_window = 0
# csv_no_dirs = 0
# csv_i18n =
# csv_no_duplicates = 0

7
.config/jgmenu/menu.csv Normal file
View file

@ -0,0 +1,7 @@
Terminal,xfce4-terminal
Text Editor,xfce4-terminal -e nvim
Web Browser,firefox
File Manager,thunar
^sep()
Reconfigure,openbox --reconfigure
Log Out,openbox --exit
1 Terminal,xfce4-terminal
2 Text Editor,xfce4-terminal -e nvim
3 Web Browser,firefox
4 File Manager,thunar
5 ^sep()
6 Reconfigure,openbox --reconfigure
7 Log Out,openbox --exit

637
.config/openbox/rc.xml Normal file
View file

@ -0,0 +1,637 @@
<?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>
</focus>
<placement>
<policy>Smart</policy>
<center>yes</center>
<monitor>Active</monitor>
<primaryMonitor>Active</primaryMonitor>
</placement>
<theme>
<name>cool</name>
<titleLayout>CDIML</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>
<popupTime>0</popupTime>
<names>
<name>1</name>
<name>2</name>
<name>3</name>
<name>4</name>
</names>
</desktops>
<resize>
<drawContents>yes</drawContents>
<popupShow>Nonpixel</popupShow>
<popupPosition>Center</popupPosition>
</resize>
<keyboard>
<chainQuitKey>Escape</chainQuitKey>
<!-- Keybindings for desktop switching -->
<keybind key="W-Tab">
<action name="GoToDesktop"><to>right</to></action>
</keybind>
<keybind key="W-S-Tab">
<action name="GoToDesktop"><to>left</to></action>
</keybind>
<keybind key="W-1">
<action name="GoToDesktop"><to>1</to></action>
</keybind>
<keybind key="W-2">
<action name="GoToDesktop"><to>2</to></action>
</keybind>
<keybind key="W-3">
<action name="GoToDesktop"><to>3</to></action>
</keybind>
<keybind key="W-4">
<action name="GoToDesktop"><to>4</to></action>
</keybind>
<keybind key="W-d">
<action name="ToggleShowDesktop"/>
</keybind>
<!-- Keybindings for windows -->
<keybind key="W-S-c">
<action name="Close"/>
</keybind>
<keybind key="W-S-w">
<action name="Iconify"/>
</keybind>
<keybind key="W-S-space">
<action name="ToggleMaximize"/>
</keybind>
<keybind key="W-S-t">
<action name="ToggleAlwaysOnTop"/>
</keybind>
<keybind key="W-S-f">
<action name="ToggleFullscreen"/>
</keybind>
<keybind key="W-S-s">
<action name="ToggleOmnipresent"/>
</keybind>
<keybind key="W-S-q">
<action name="Lower"/>
<action name="FocusToBottom"/>
<action name="Unfocus"/>
</keybind>
<keybind key="A-space">
<action name="ShowMenu"><menu>client-menu</menu></action>
</keybind>
<!-- Keybindings for window desktop sending -->
<keybind key="W-S-1">
<action name="SendToDesktop"><to>1</to><follow>no</follow></action>
</keybind>
<keybind key="W-S-2">
<action name="SendToDesktop"><to>2</to><follow>no</follow></action>
</keybind>
<keybind key="W-S-3">
<action name="SendToDesktop"><to>3</to><follow>no</follow></action>
</keybind>
<keybind key="W-S-4">
<action name="SendToDesktop"><to>4</to><follow>no</follow></action>
</keybind>
<keybind key="W-S-h">
<action name="If">
<query target="focus">
<maximizedvertical>no</maximizedvertical>
</query>
<then>
<action name="Unmaximize"/>
</then>
</action>
<action name="MoveResizeTo">
<x>0</x>
<y>0</y>
<width>50%</width>
<height>100%</height>
</action>
<action name="Maximize"><direction>vertical</direction></action>
</keybind>
<keybind key="W-S-l">
<action name="If">
<query target="focus">
<maximizedvertical>no</maximizedvertical>
</query>
<then>
<action name="Unmaximize"/>
</then>
</action>
<action name="MoveResizeTo">
<x>-0</x>
<y>0</y>
<width>50%</width>
<height>100%</height>
</action>
<action name="Maximize"><direction>vertical</direction></action>
</keybind>
<keybind key="W-S-k">
<action name="If">
<query target="focus">
<maximizedhorizontal>no</maximizedhorizontal>
</query>
<then>
<action name="Unmaximize"/>
</then>
</action>
<action name="MoveResizeTo">
<x>0</x>
<y>0</y>
<width>100%</width>
<height>50%</height>
</action>
<action name="Maximize"><direction>horizontal</direction></action>
</keybind>
<keybind key="W-S-j">
<action name="If">
<query target="focus">
<maximizedhorizontal>no</maximizedhorizontal>
</query>
<then>
<action name="Unmaximize"/>
</then>
</action>
<action name="MoveResizeTo">
<x>0</x>
<y>-0</y>
<width>100%</width>
<height>50%</height>
</action>
<action name="Maximize"><direction>horizontal</direction></action>
</keybind>
<keybind key="W-S-y">
<action name="Unmaximize"/>
<action name="MoveResizeTo">
<x>0</x>
<y>0</y>
<width>50%</width>
<height>50%</height>
</action>
</keybind>
<keybind key="W-S-u">
<action name="Unmaximize"/>
<action name="MoveResizeTo">
<x>0</x>
<y>-0</y>
<width>50%</width>
<height>50%</height>
</action>
</keybind>
<keybind key="W-S-i">
<action name="Unmaximize"/>
<action name="MoveResizeTo">
<x>-0</x>
<y>-0</y>
<width>50%</width>
<height>50%</height>
</action>
</keybind>
<keybind key="W-S-o">
<action name="Unmaximize"/>
<action name="MoveResizeTo">
<x>-0</x>
<y>0</y>
<width>50%</width>
<height>50%</height>
</action>
</keybind>
<!-- Keybindings for window switching -->
<keybind key="A-Tab">
<action name="NextWindow">
<finalactions>
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</finalactions>
</action>
</keybind>
<keybind key="A-S-Tab">
<action name="PreviousWindow">
<finalactions>
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</finalactions>
</action>
</keybind>
<!-- Keybindings for running applications -->
<keybind key="W-Return">
<action name="Execute">
<command>xfce4-terminal</command>
</action>
</keybind>
<keybind key="W-p">
<action name="Execute">
<command>dmenu_run</command>
</action>
</keybind>
<keybind key="W-w">
<action name="Execute">
<command>firefox</command>
</action>
</keybind>
<keybind key="W-f">
<action name="Execute">
<command>thunar</command>
</action>
</keybind>
<keybind key="W-t">
<action name="Execute">
<command>xfce4-terminal -e ncspot</command>
</action>
</keybind>
<keybind key="W-e">
<action name="Execute">
<command>xfce4-terminal -e nvim</command>
</action>
</keybind>
<keybind key="W-m">
<action name="Execute">
<command>thunderbird</command>
</action>
</keybind>
<keybind key="W-C-l">
<action name="Execute">
<command>lockscreen</command>
</action>
</keybind>
<keybind key="W-C-d">
<action name="Execute">
<command>arandr</command>
</action>
</keybind>
<keybind key="W-C-w">
<action name="Execute">
<command>wallpapers-open</command>
</action>
</keybind>
<!-- Screenshot-related binds -->
<keybind key="W-C-g">
<action name="Execute">
<command>epicshot -os select</command>
</action>
</keybind>
<keybind key="W-C-t">
<action name="Execute">
<command>epicshot -cs select</command>
</action>
</keybind>
<keybind key="W-C-f">
<action name="Execute">
<command>epicshot -cs full</command>
</action>
</keybind>
<!-- Keybindings for doing system actions -->
<keybind key="W-C-r">
<action name="Reconfigure"/>
</keybind>
<keybind key="W-C-s">
<action name="Restart"/>
</keybind>
</keyboard>
<mouse>
<dragThreshold>1</dragThreshold>
<doubleClickTime>500</doubleClickTime>
<screenEdgeWarpTime>0</screenEdgeWarpTime>
<context name="Frame">
<mousebind button="W-Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="W-Left" action="Click">
<action name="Unshade"/>
</mousebind>
<mousebind button="W-Left" action="Drag">
<action name="Move"/>
</mousebind>
<mousebind button="W-Right" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind button="W-Right" action="Drag">
<action name="Resize"><edge>bottomright</edge></action>
</mousebind>
<mousebind button="W-Middle" action="Press">
<action name="Lower"/>
<action name="FocusToBottom"/>
<action name="Unfocus"/>
</mousebind>
<mousebind button="W-Up" action="Click">
<action name="GoToDesktop"><to>previous</to></action>
</mousebind>
<mousebind button="W-Down" action="Click">
<action name="GoToDesktop"><to>next</to></action>
</mousebind>
<mousebind button="W-S-Up" action="Click">
<action name="SendToDesktop"><to>previous</to></action>
</mousebind>
<mousebind button="W-S-Down" action="Click">
<action name="SendToDesktop"><to>next</to></action>
</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">
<mousebind button="Up" action="Click">
<action name="GoToDesktop"><to>previous</to></action>
</mousebind>
<mousebind button="Down" action="Click">
<action name="GoToDesktop"><to>next</to></action>
</mousebind>
<mousebind button="W-Up" action="Click">
<action name="GoToDesktop"><to>previous</to></action>
</mousebind>
<mousebind button="W-Down" action="Click">
<action name="GoToDesktop"><to>next</to></action>
</mousebind>
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="Right" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
</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="Execute"><command>menu</command></action>
</mousebind>
</context>
</mouse>
<applications>
<application class="no-decor">
<decor>no</decor>
<layer>above</layer>
<skip_taskbar>yes</skip_taskbar>
<skip_pager>yes</skip_pager>
</application>
</applications>
</openbox_config>