aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--_config/openbox/menu.xml324
-rw-r--r--_config/openbox/rc.xml6
-rwxr-xr-x_config/openbox/scripts/pipemenu-places (renamed from _config/openbox/pipemenus/obpipemenu-places)6
-rwxr-xr-x_config/openbox/scripts/xdg-menu98
4 files changed, 144 insertions, 290 deletions
diff --git a/_config/openbox/menu.xml b/_config/openbox/menu.xml
index c6fd3a7..e13a5a3 100644
--- a/_config/openbox/menu.xml
+++ b/_config/openbox/menu.xml
@@ -1,236 +1,90 @@
-<?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="Debian">
- <!--
- <item label="Install">
- <action name="Execute">
- <execute>
- xterm -T &quot;Install ArchBang&quot; -e &quot;gksudo ab-install&quot;
- </execute>
- </action>
- </item>
- <item label="cp2ram">
- <action name="Execute">
- <execute>
- xterm -T &quot;Copy to ram&quot; -e &quot;gksudo cp2ram&quot;
- </execute>
- </action>
- </item>
- <separator/>
- -->
- <item label="Run Program">
- <action name="Execute">
- <execute>
- dmenu.sh
- </execute>
- </action>
- </item>
- <separator/>
- <item label="Terminal">
- <action name="Execute">
- <execute>
- urxvtc
- </execute>
- </action>
- </item>
- <item label="Web Browser">
- <action name="Execute">
- <execute>
- firefox
- </execute>
- </action>
- </item>
- <item label="File Manager">
- <action name="Execute">
- <execute>
- thunar
- </execute>
- </action>
- </item>
- <item label="Text Editor">
- <action name="Execute">
- <execute>
- leafpad
- </execute>
- </action>
- </item>
- <separator/>
- <menu id="accessories" label="Accessories">
- <item label="Archive Manager">
- <action name="Execute">
- <execute>
- xarchiver
- </execute>
- </action>
- </item>
- <item label="GVim">
- <action name="Execute">
- <execute>
- gvim
- </execute>
- </action>
- </item>
- <item label="Leafpad">
- <action name="Execute">
- <execute>
- leafpad
- </execute>
- </action>
- </item>
- <item label="LXTerminal">
- <action name="Execute">
- <execute>
- lxterminal
- </execute>
- </action>
- </item>
- <menu id="graphicsScreenshots" label="Take Screenshot">
- <item label="Now">
- <action name="Execute">
- <execute>
- scrot 'ly_%Y%m%d_$wx$h.png' -e 'mv $f ~/ &amp; geeqie ~/$f'
- </execute>
- </action>
- </item>
- <item label="In 3 Seconds...">
- <action name="Execute">
- <execute>
- scrot -d 3 'ly_%Y%m%d_$wx$h.png' -e 'mv $f ~/ &amp; geeqie ~/$f'
- </execute>
- </action>
- </item>
- <item label="In 10 Seconds...">
- <action name="Execute">
- <execute>
- scrot -d 10 'ly_%Y%m%d_$wx$h.png' -e 'mv $f ~/ &amp; geeqie ~/$f'
- </execute>
- </action>
- </item>
- <item label="Selected Area... (click &amp; drag mouse)">
- <action name="Execute">
- <execute>
- scrot -s 'ly_%Y%m%d_$wx$h.png' -e 'mv $f ~/ &amp; geeqie ~/$f'
- </execute>
- </action>
- </item>
- <item label="Active Window">
- <action name="Execute">
- <execute>
- scrot -bud 3 'ly_%Y%m%d_$wx$h.png' -e 'mv $f ~/ &amp; geeqie ~/$f'
- </execute>
- </action>
- </item>
- </menu>
- </menu>
- <separator/>
- <menu execute="~/.config/openbox/pipemenus/obpipemenu-places ~/" id="places" label="Places"/>
- <menu execute="python ~/.config/openbox/scripts/xdg-menu" id="apps-menu" label="XDG-Menus"/>
- <separator/>
- <menu id="settings" label="Preferences">
- <menu id="settings-162352" label="Effects">
- <item label="No effects">
- <action name="Execute">
- <execute>
- ~/.config/openbox/scripts/xcompmgr.sh unset
- </execute>
- </action>
- </item>
- <item label="Transparency">
- <action name="Execute">
- <execute>
- ~/.config/openbox/scripts/xcompmgr.sh set
- </execute>
- </action>
- </item>
- <item label="Transparency, fading">
- <action name="Execute">
- <execute>
- ~/.config/openbox/scripts/xcompmgr.sh setshaded
- </execute>
- </action>
- </item>
- <item label="Transparancy, fading shadows">
- <action name="Execute">
- <execute>
- ~/.config/openbox/scripts/xcompmgr.sh setshadowshade
- </execute>
- </action>
- </item>
- </menu>
- <menu id="obConfig" label="Openbox Config">
- <item label="Edit menu.xml">
- <action name="Execute">
- <execute>
- gvim ~/.config/openbox/menu.xml
- </execute>
- </action>
- </item>
- <item label="Edit rc.xml">
- <action name="Execute">
- <execute>
- gvim ~/.config/openbox/rc.xml
- </execute>
- </action>
- </item>
- <item label="Edit autostart.sh">
- <action name="Execute">
- <execute>
- gvim ~/.config/openbox/autostart.sh
- </execute>
- </action>
- </item>
- <!--
- <item label="GUI Menu Editor">
- <action name="Execute">
- <execute>
- obmenu
- </execute>
- </action>
- </item>
- -->
- <item label="GUI Config Tool">
- <action name="Execute">
- <execute>
- obconf
- </execute>
- </action>
- </item>
- </menu>
- <item label="tint2 Panel Config">
- <action name="Execute">
- <execute>
- gvim ~/.config/tint2/tint2rc
- </execute>
- </action>
- </item>
- <item label="GTK Appearance">
- <action name="Execute">
- <execute>
- lxappearance
- </execute>
- </action>
- </item>
- </menu>
- <separator/>
- <menu id="Session" label="Session">
- <item label="Reconfigure">
- <action name="Reconfigure"/>
- </item>
- <item label="Restart">
- <action name="Restart"/>
- </item>
- <item label="Exit">
- <action name="Exit"/>
- </item>
- <!--
- <item label="Logout">
- <action name="Execute">
- <execute>
- oblogout
- </execute>
- </action>
- </item>
- -->
- </menu>
- </menu>
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ ~/.config/openbox/menu.xml
+ openbox menu configuration
+
+ Aaron LI
+ 2015-01-09
+-->
+
+<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">
+ <item label="_Run Program">
+ <action name="Execute">
+ <execute>rofi -show run</execute>
+ </action>
+ </item>
+ <separator />
+ <item label="_Terminal">
+ <action name="Execute">
+ <execute>urxvtc || urxvt || x-terminal-emulator</execute>
+ </action>
+ </item>
+ <item label="_Web browser">
+ <action name="Execute">
+ <execute>x-www-browser</execute>
+ </action>
+ </item>
+ <item label="_File Manager">
+ <action name="Execute">
+ <execute>thunar</execute>
+ </action>
+ </item>
+ <item label="_Editor">
+ <action name="Execute">
+ <execute>gvim || mousepad</execute>
+ </action>
+ </item>
+ <separator />
+ <menu id="screenshots" label="_Screenshot...">
+ <item label="_now">
+ <action name="Execute">
+ <execute>scrot -e 'mv $f ~/pictures'</execute>
+ </action>
+ </item>
+ <item label="in _3 seconds...">
+ <action name="Execute">
+ <execute>scrot -d 3 -e 'mv $f ~/pictures'</execute>
+ </action>
+ </item>
+ <item label="_select window/region">
+ <action name="Execute">
+ <execute>scrot -s -e 'mv $f ~/pictures'</execute>
+ </action>
+ </item>
+ <item label="_active window">
+ <action name="Execute">
+ <execute>scrot -bud 2 -e 'mv $f ~/pictures'</execute>
+ </action>
+ </item>
+ </menu>
+ <separator />
+ <menu id="places" label="_Places" execute="~/.config/openbox/scripts/pipemenu-places ~/" />
+ <separator />
+ <menu id="client-list-menu" />
+ <separator />
+ <item label="_Configure">
+ <action name="Execute"><execute>obconf</execute></action>
+ </item>
+ <menu id="session" label="Session">
+ <item label="Reconfigure">
+ <action name="Reconfigure" />
+ </item>
+ <item label="Restart">
+ <action name="Restart" />
+ </item>
+ <separator />
+ <item label="Exit">
+ <action name="Exit" />
+ </item>
+ </menu>
+</menu>
+
</openbox_menu>
+
+<!-- vim: set ts=8 sw=2 tw=0 fenc=utf-8 ft=xml: -->
diff --git a/_config/openbox/rc.xml b/_config/openbox/rc.xml
index 5b86ed7..d7398d7 100644
--- a/_config/openbox/rc.xml
+++ b/_config/openbox/rc.xml
@@ -53,7 +53,7 @@
</placement>
<theme>
- <name>Clearlooks</name>
+ <name>1977-Black</name>
<titleLayout>DSLIMC</titleLayout>
<!--
available characters are NDSLIMC, each can occur at most once.
@@ -416,13 +416,13 @@
<!-- Display -->
<keybind key="W-p">
<action name="Execute">
- <command>xrandr --output VGA1 --auto --right-of LVDS1</command>
+ <command>arandr</command>
</action>
</keybind>
<!-- Blank screen -->
<keybind key="W-b">
<action name="Execute">
- <command>( sleep 0.5 &amp;&amp; xset dpms force off )</command>
+ <command>sh -c "sleep 0.5 &amp;&amp; xset dpms force off"</command>
</action>
</keybind>
<!-- Screen lock/saver -->
diff --git a/_config/openbox/pipemenus/obpipemenu-places b/_config/openbox/scripts/pipemenu-places
index 3b73618..812eb27 100755
--- a/_config/openbox/pipemenus/obpipemenu-places
+++ b/_config/openbox/scripts/pipemenu-places
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Recursively browse filesystem through openbox3 pipe menus
#### Usage: add
# <menu id="browse" label="Browse" execute="obpipemenu-places ~" />
@@ -8,7 +8,7 @@
# 4 and 5 in the morning. Quality may have suffered.
####
# Script by dircha from ob list on 05/17/04
-# suggested improvements by John Russell on 05/17/04 implemented
+# suggested improvements by John Russell on 05/17/04 implemented
# a year later by Kacper Wysocki.
# 05/30/05 - Kacper Wysocki
# - opens files with 'rox', which launches appropriate file handler
@@ -34,7 +34,7 @@ sub mk_menu_element {
my ($path, @files) = @_;
print "<openbox_pipe_menu>\n";
-
+
# "Browse here..." lauches this dir
print "<item label=\"Browse here..\">".
"\n\t<action name=\"Execute\">".
diff --git a/_config/openbox/scripts/xdg-menu b/_config/openbox/scripts/xdg-menu
index 05d6cec..0a8c1bc 100755
--- a/_config/openbox/scripts/xdg-menu
+++ b/_config/openbox/scripts/xdg-menu
@@ -1,49 +1,49 @@
-#!/usr/bin/env python
-#
-# Copyright (C) 2008 Red Hat, Inc.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-#
-# Author(s): Luke Macken <lmacken@redhat.com>
-# Miroslav Lichvar <mlichvar@redhat.com>
-
-
-import gmenu, re, sys
-from xml.sax.saxutils import escape
-
-def walk_menu(entry):
- if entry.get_type() == gmenu.TYPE_DIRECTORY:
- print '<menu id="%s" label="%s">' \
- % (escape(entry.menu_id), escape(entry.get_name()))
- map(walk_menu, entry.get_contents())
- print '</menu>'
- elif entry.get_type() == gmenu.TYPE_ENTRY and not entry.is_excluded:
- print ' <item label="%s">' % escape(entry.get_name())
- command = re.sub(' [^ ]*%[fFuUdDnNickvm]', '', entry.get_exec())
- if entry.launch_in_terminal:
- command = 'xterm -title "%s" -e %s' % \
- (entry.get_name(), command)
- print ' <action name="Execute">' + \
- '<command>%s</command></action>' % escape(command)
- print ' </item>'
-
-if len(sys.argv) > 1:
- menu = sys.argv[1] + '.menu'
-else:
- menu = 'applications.menu'
-
-print '<?xml version="1.0" encoding="UTF-8"?>'
-print '<openbox_pipe_menu>'
-map(walk_menu, gmenu.lookup_tree(menu).root.get_contents())
-print '</openbox_pipe_menu>'
+#!/usr/bin/env python
+#
+# Copyright (C) 2008 Red Hat, Inc.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+# Author(s): Luke Macken <lmacken@redhat.com>
+# Miroslav Lichvar <mlichvar@redhat.com>
+
+
+import gmenu, re, sys
+from xml.sax.saxutils import escape
+
+def walk_menu(entry):
+ if entry.get_type() == gmenu.TYPE_DIRECTORY:
+ print '<menu id="%s" label="%s">' \
+ % (escape(entry.menu_id), escape(entry.get_name()))
+ map(walk_menu, entry.get_contents())
+ print '</menu>'
+ elif entry.get_type() == gmenu.TYPE_ENTRY and not entry.is_excluded:
+ print ' <item label="%s">' % escape(entry.get_name())
+ command = re.sub(' [^ ]*%[fFuUdDnNickvm]', '', entry.get_exec())
+ if entry.launch_in_terminal:
+ command = 'xterm -title "%s" -e %s' % \
+ (entry.get_name(), command)
+ print ' <action name="Execute">' + \
+ '<command>%s</command></action>' % escape(command)
+ print ' </item>'
+
+if len(sys.argv) > 1:
+ menu = sys.argv[1] + '.menu'
+else:
+ menu = 'applications.menu'
+
+print '<?xml version="1.0" encoding="UTF-8"?>'
+print '<openbox_pipe_menu>'
+map(walk_menu, gmenu.lookup_tree(menu).root.get_contents())
+print '</openbox_pipe_menu>'