Swap default menu for a static one, piped menu is now menu-pipe.xml

This commit is contained in:
natemaia 2018-06-26 21:59:27 -07:00
parent e148bf9c92
commit 18d3e8ed2e
3 changed files with 213 additions and 41 deletions

View File

@ -2,6 +2,7 @@
al-compositor --start & al-compositor --start &
#$HOME/.config/setup & #$HOME/.config/setup &
# enable numlock, commented out for laptop users # enable numlock, commented out for laptop users
# numlockx & # numlockx &
@ -19,9 +20,9 @@ ksuperkey -e 'Super_R=Alt_L|F1' &
nitrogen --restore & nitrogen --restore &
# start panel # start panel
sleep 1; polybar --config=/home/liveuser/.config/polybar/config openbox-bar & sleep 1; al-polybar-session &
# Openbox autostart # openbox autostart
ob-autostart -d & ob-autostart -d &
# Required for xfce settings to work # Required for xfce settings to work

View File

@ -0,0 +1,112 @@
<?xml version="1.0" encoding="UTF-8"?>
<openbox_menu xmlns="http://openbox.org/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://openbox.org/ file:///usr/share/openbox/menu.xsd">
<menu id="root-menu" label="Openbox 3">
<separator label="ArchLabs"/>
<menu execute="al-terminal-pipemenu" id="TerminalPipeMenu" label="Terminal"/>
<menu execute="al-files-pipemenu" id="FilePipeMenu" label="File Manager"/>
<menu execute="al-browsers-pipemenu" id="BrowserPipeMenu" label="Web Browser"/>
<menu execute="al-editors-pipemenu" id="EditorPipeMenu" label="Text Editor"/>
<separator/>
<menu execute="al-office-pipemenu" id="OfficePipeMenu" label="Office"/>
<menu execute="al-media-pipemenu" id="MediaPipeMenu" label="Multimedia"/>
<menu execute="al-graphics-pipemenu" id="GraphicPipeMenu" label="Graphics"/>
<menu id="AccessoriesMenu" label="Accessories">
<menu execute="al-mail-pipemenu" id="MailPipeMenu" label="Mail"/>
<menu execute="al-messaging-pipemenu" id="MessagingPipeMenu" label="Messaging"/>
<menu execute="al-filesharing-pipemenu" id="FilesharingPipeMenu" label="File Sharing"/>
<menu id="screenshot" label="Screenshot">
<item label="Screenshot Now">
<action name="Execute">
<command>scrot 'ArchLabs_%Y-%m-%d-%S_$wx$h.png' -e 'mv $f $$(xdg-user-dir PICTURES) ; gpicview $$(xdg-user-dir PICTURES)/$f'</command>
</action>
</item>
<item label="Screenshot in 5">
<action name="Execute">
<command>scrot -d 5 'ArchLabs_%Y-%m-%d-%S_$wx$h.png' -e 'mv $f $$(xdg-user-dir PICTURES) ; gpicview $$(xdg-user-dir PICTURES)/$f'</command>
</action>
</item>
<item label="Screenshot in 10">
<action name="Execute">
<command>scrot -d 10 'ArchLabs_%Y-%m-%d-%S_$wx$h.png' -e 'mv $f $$(xdg-user-dir PICTURES) ; gpicview $$(xdg-user-dir PICTURES)/$f'</command>
</action>
</item>
<item label="Screenshot With Selection">
<action name="Execute">
<command>scrot -s 'ArchLabs_%Y-%m-%d-%S_$wx$h.png' -e 'mv $f $$(xdg-user-dir PICTURES) ; gpicview $$(xdg-user-dir PICTURES)/$f'</command>
</action>
</item>
</menu>
</menu>
<separator/>
<menu execute="al-places-pipemenu --recent ~/" id="pipe-placesmenu" label="Places"/>
<separator/>
<menu id="preferences" label="Preferences">
<menu id="obConfig" label="Openbox">
<item label="Openbox Settings">
<action name="Execute">
<command>obconf</command>
</action>
</item>
<item label="Menu GUI">
<action name="Execute">
<command>kickshaw</command>
</action>
</item>
<item label="Keybind GUI">
<action name="Execute">
<command>obkey</command>
</action>
</item>
<item label="Autostart GUI">
<action name="Execute">
<command>ob-autostart</command>
</action>
</item>
<separator/>
<item label="Edit menu.xml">
<action name="Execute">
<command>exo-open ~/.config/openbox/menu.xml</command>
</action>
</item>
<item label="Edit rc.xml">
<action name="Execute">
<command>exo-open ~/.config/openbox/rc.xml</command>
</action>
</item>
<item label="Edit autostart">
<action name="Execute">
<command>exo-open ~/.config/openbox/autostart</command>
</action>
</item>
<separator/>
<item label="Openbox Reconfigure">
<action name="Reconfigure"/>
</item>
<item label="Openbox Restart">
<action name="Restart"/>
</item>
</menu>
<menu execute="al-compositor" id="CompositingPipeMenu" label="Compositor"/>
<menu execute="al-polybar-pipemenu" id="PolybarPipeMenu" label="Polybar"/>
<menu execute="al-conky-pipemenu" id="ConkyPipeMenu" label="Conky"/>
<menu execute="al-tint2-pipemenu" id="TintPipeMenu" label="Tint2"/>
<menu execute="al-settings-pipemenu" id="SettingsPipeMenu" label="Settings"/>
<menu execute="al-system-pipemenu" id="SystemPipeMenu" label="System"/>
</menu>
<menu execute="al-help-pipemenu" id="help" label="Help and Info"/>
<menu execute="al-kb-pipemenu" id="keybinds" label="Keybinds"/>
<separator/>
<item label="Lock Screen">
<action name="Execute">
<command>i3lock-fancy -p</command>
</action>
</item>
<item label="Exit Openbox">
<action name="Execute">
<command>rofr.sh -l</command>
</action>
</item>
</menu>
</openbox_menu>
<!-- vim:sw=2
-->

View File

@ -2,47 +2,74 @@
<openbox_menu xmlns="http://openbox.org/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://openbox.org/ file:///usr/share/openbox/menu.xsd"> <openbox_menu xmlns="http://openbox.org/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://openbox.org/ file:///usr/share/openbox/menu.xsd">
<menu id="root-menu" label="Openbox 3"> <menu id="root-menu" label="Openbox 3">
<separator label="ArchLabs"/> <separator label="ArchLabs"/>
<menu execute="al-terminal-pipemenu" id="TerminalPipeMenu" label="Terminal"/> <item label="Terminal">
<menu execute="al-files-pipemenu" id="FilePipeMenu" label="File Manager"/> <action name="Execute">
<menu execute="al-browsers-pipemenu" id="BrowserPipeMenu" label="Web Browser"/> <command>exo-open --launch TerminalEmulator</command>
<menu execute="al-editors-pipemenu" id="EditorPipeMenu" label="Text Editor"/> </action>
</item>
<item label="Web Browser">
<action name="Execute">
<command>exo-open --launch WebBrowser</command>
</action>
</item>
<item label="File Manager">
<action name="Execute">
<command>exo-open --launch FileManager</command>
</action>
</item>
<item label="Text Editor">
<action name="Execute">
<command>geany</command>
</action>
</item>
<separator/> <separator/>
<menu execute="al-office-pipemenu" id="OfficePipeMenu" label="Office"/> <menu id="accessories" label="Accessories">
<menu execute="al-media-pipemenu" id="MediaPipeMenu" label="Multimedia"/> <item label="Archive Manager">
<menu execute="al-graphics-pipemenu" id="GraphicPipeMenu" label="Graphics"/> <action name="Execute">
<menu id="AccessoriesMenu" label="Accessories"> <command>file-roller</command>
<menu execute="al-mail-pipemenu" id="MailPipeMenu" label="Mail"/> </action>
<menu execute="al-messaging-pipemenu" id="MessagingPipeMenu" label="Messaging"/> </item>
<menu execute="al-filesharing-pipemenu" id="FilesharingPipeMenu" label="File Sharing"/> <item label="Picture Viewer">
<menu id="screenshot" label="Screenshot"> <action name="Execute">
<item label="Screenshot Now"> <command>gpicview</command>
<action name="Execute"> </action>
<command>scrot 'ArchLabs_%Y-%m-%d-%S_$wx$h.png' -e 'mv $f $$(xdg-user-dir PICTURES) ; gpicview $$(xdg-user-dir PICTURES)/$f'</command> </item>
</action> </menu>
</item> <menu id="screenshot" label="Screenshot">
<item label="Screenshot in 5"> <item label="Screenshot Now">
<action name="Execute"> <action name="Execute">
<command>scrot -d 5 'ArchLabs_%Y-%m-%d-%S_$wx$h.png' -e 'mv $f $$(xdg-user-dir PICTURES) ; gpicview $$(xdg-user-dir PICTURES)/$f'</command> <command>scrot 'ArchLabs_%Y-%m-%d-%S_$wx$h.png' -e 'mv $f $$(xdg-user-dir PICTURES) ; gpicview $$(xdg-user-dir PICTURES)/$f'</command>
</action> </action>
</item> </item>
<item label="Screenshot in 10"> <item label="Screenshot in 5">
<action name="Execute"> <action name="Execute">
<command>scrot -d 10 'ArchLabs_%Y-%m-%d-%S_$wx$h.png' -e 'mv $f $$(xdg-user-dir PICTURES) ; gpicview $$(xdg-user-dir PICTURES)/$f'</command> <command>scrot -d 5 'ArchLabs_%Y-%m-%d-%S_$wx$h.png' -e 'mv $f $$(xdg-user-dir PICTURES) ; gpicview $$(xdg-user-dir PICTURES)/$f'</command>
</action> </action>
</item> </item>
<item label="Screenshot With Selection"> <item label="Screenshot With Selection">
<action name="Execute"> <action name="Execute">
<command>scrot -s 'ArchLabs_%Y-%m-%d-%S_$wx$h.png' -e 'mv $f $$(xdg-user-dir PICTURES) ; gpicview $$(xdg-user-dir PICTURES)/$f'</command> <command>scrot -s 'ArchLabs_%Y-%m-%d-%S_$wx$h.png' -e 'mv $f $$(xdg-user-dir PICTURES) ; gpicview $$(xdg-user-dir PICTURES)/$f'</command>
</action> </action>
</item> </item>
</menu> </menu>
<menu id="multimedia" label="Multimedia">
<item label="Music Player">
<action name="Execute">
<command>audacious</command>
</action>
</item>
<item label="Video Player">
<action name="Execute">
<command>mpv --player-operation-mode=pseudo-gui</command>
</action>
</item>
</menu> </menu>
<separator/> <separator/>
<menu execute="al-places-pipemenu --recent ~/" id="pipe-placesmenu" label="Places"/> <menu execute="al-places-pipemenu --recent ~/" id="pipe-placesmenu" label="Places"/>
<separator/> <separator/>
<menu id="preferences" label="Preferences"> <menu id="preferences" label="Preferences">
<menu id="obConfig" label="Openbox"> <menu id="obConfig" label="Openbox">
<item label="Openbox Settings"> <item label="Settings GUI">
<action name="Execute"> <action name="Execute">
<command>obconf</command> <command>obconf</command>
</action> </action>
@ -83,15 +110,47 @@
<action name="Reconfigure"/> <action name="Reconfigure"/>
</item> </item>
<item label="Openbox Restart"> <item label="Openbox Restart">
<action name="Restart"/> <action name="Restart"/>
</item> </item>
</menu> </menu>
<menu execute="al-compositor" id="CompositingPipeMenu" label="Compositor"/> <menu execute="al-compositor" id="CompositingPipeMenu" label="Compton"/>
<menu execute="al-polybar-pipemenu" id="PolybarPipeMenu" label="Polybar"/>
<menu execute="al-conky-pipemenu" id="ConkyPipeMenu" label="Conky"/> <menu execute="al-conky-pipemenu" id="ConkyPipeMenu" label="Conky"/>
<menu execute="al-polybar-pipemenu" id="PolybarPipeMenu" label="Polybar"/>
<menu execute="al-tint2-pipemenu" id="TintPipeMenu" label="Tint2"/> <menu execute="al-tint2-pipemenu" id="TintPipeMenu" label="Tint2"/>
<menu execute="al-settings-pipemenu" id="SettingsPipeMenu" label="Settings"/> <item label="Change Panel/Dock">
<menu execute="al-system-pipemenu" id="SystemPipeMenu" label="System"/> <action name="Execute">
<command>al-panel-chooser</command>
</action>
</item>
<separator/>
<item label="Appearance">
<action name="Execute">
<command>xfce4-appearance-settings</command>
</action>
</item>
<item label="Wallpaper">
<action name="Execute">
<command>nitrogen</command>
</action>
</item>
<separator/>
<item label="Settings Manager">
<action name="Execute">
<command>xfce4-settings-manager</command>
</action>
</item>
<item label="Audio Settings">
<action name="Execute">
<command>pavucontrol</command>
</action>
</item>
</menu>
<menu id="system-settings" label="System">
<item label="GParted">
<action name="Execute">
<command>gparted</command>
</action>
</item>
</menu> </menu>
<menu execute="al-help-pipemenu" id="help" label="Help and Info"/> <menu execute="al-help-pipemenu" id="help" label="Help and Info"/>
<menu execute="al-kb-pipemenu" id="keybinds" label="Keybinds"/> <menu execute="al-kb-pipemenu" id="keybinds" label="Keybinds"/>