aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.calendar/calendar33
-rw-r--r--.calendar/nomail0
-rwxr-xr-x.config/openbox/autostart.sh19
-rw-r--r--.config/openbox/lxde-rc.xml779
-rw-r--r--.config/openbox/menu.xml236
-rwxr-xr-x.config/openbox/pipemenus/obpipemenu-places102
-rw-r--r--.config/openbox/rc.xml937
-rwxr-xr-x.config/openbox/scripts/xcompmgr.sh25
-rwxr-xr-x.config/openbox/scripts/xdg-menu49
-rw-r--r--.config/tint2/default.tint2rc137
-rw-r--r--.config/tint2/snap.jpgbin0 -> 7468 bytes
-rw-r--r--.config/tint2/tint2confrc7
-rw-r--r--.config/tint2/tint2rc137
-rw-r--r--.config/transmission-cli/settings.json61
-rw-r--r--.gitignore35
-rw-r--r--.lftp/rc123
-rw-r--r--.rtorrent.rc193
-rw-r--r--.screenrc83
-rw-r--r--.tcsh/ciaoinit.csh21
-rw-r--r--.tcsh/completion/complete.tcsh1241
-rw-r--r--.tcsh/completion/pkgtools_completion.tcsh22
-rw-r--r--.tcsh/completion/zfs_completion.tcsh77
-rw-r--r--.tcsh/heainit.csh15
-rw-r--r--.tcsh/sasinit.csh30
-rw-r--r--.tcshrc279
-rw-r--r--.tcshrc.local41
-rw-r--r--.tmux.conf4
27 files changed, 4665 insertions, 21 deletions
diff --git a/.calendar/calendar b/.calendar/calendar
new file mode 100644
index 0000000..6f7b320
--- /dev/null
+++ b/.calendar/calendar
@@ -0,0 +1,33 @@
+/*
+ * $HOME/.calendar/calendar
+ *
+ * LY4ever
+ * April 8, 2011
+ */
+
+LANG=C
+
+ChineseNewYear=XinNian
+
+#include <calendar.usholiday>
+
+XinNian-1 Chu Xi
+XinNian Xin Nian
+XinNian+14 Yuan Xiao
+
+/* birthday */
+2011/5/27 SanSan's father's birthday
+2011/7/20 *** SanSan's birthday ***
+2011/8/6 Qi Xi
+2011/9/12 Zhong Qiu
+
+/* arrangement */
+5/28 Hostizzle.com
+6/27 Hostizzle.com
+7/26 Hostizzle.com
+8/25 Hostizzle.com
+9/24 Hostizzle.com
+10/23 Hostizzle.com
+11/22 Hostizzle.com
+12/21 Hostizzle.com
+
diff --git a/.calendar/nomail b/.calendar/nomail
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/.calendar/nomail
diff --git a/.config/openbox/autostart.sh b/.config/openbox/autostart.sh
new file mode 100755
index 0000000..ea10b93
--- /dev/null
+++ b/.config/openbox/autostart.sh
@@ -0,0 +1,19 @@
+#!/bin/sh
+feh --bg-fill '/home/ly/pictures/wallpapers/.current' &
+#nitrogen --restore &
+#ibus-daemon -d -x
+pgrep fcitx || fcitx &
+pkill tint2
+tint2 &
+#xcompmgr -CfF &
+pgrep xcompmgr || xcompmgr &
+pgrep xscreensaver || xscreensaver -no-splash &
+#wicd-client &
+#scrolling.sh &
+#xfce4-volumed
+#xmms2-launcher
+#mpd &
+#parcellite &
+pgrep urxvtd || urxvtd -q -f -o &
+#/usr/bin/conky -q &
+#xfce4-power-manager &
diff --git a/.config/openbox/lxde-rc.xml b/.config/openbox/lxde-rc.xml
new file mode 100644
index 0000000..6b52056
--- /dev/null
+++ b/.config/openbox/lxde-rc.xml
@@ -0,0 +1,779 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Do not edit this file, it will be overwritten on install.
+ Copy the file to $HOME/.config/openbox/ instead. -->
+<openbox_config xmlns="http://openbox.org/3.4/rc">
+ <resistance>
+ <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
+ apply -->
+ <followMouse>yes</followMouse>
+ <!-- move focus to a window when you move the mouse into it -->
+ <focusLast>yes</focusLast>
+ <!-- focus the last used window when changing desktops, instead of the one
+ under the mouse pointer. when followMouse is enabled -->
+ <underMouse>no</underMouse>
+ <!-- move focus under the mouse, even when the mouse is not moving -->
+ <focusDelay>200</focusDelay>
+ <!-- when followMouse is enabled, the mouse must be inside the window for
+ this many milliseconds (1000 = 1 sec) before moving focus to it -->
+ <raiseOnFocus>no</raiseOnFocus>
+ <!-- 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' -->
+ <center>yes</center>
+ <!-- whether to place windows in the center of the free area found or
+ the top left corner -->
+ <monitor>Any</monitor>
+ <!-- with Smart placement on a multi-monitor system, try to place new windows
+ on: 'Any' - any monitor, 'Mouse' - where the mouse is, 'Active' - where
+ the active window is -->
+ <primaryMonitor/>
+ </placement>
+ <theme>
+ <name>Litestyle-Mint</name>
+ <titleLayout>NLIMC</titleLayout>
+ <!--
+ available characters are NDSLIMC, each can occur at most once.
+ N: window icon
+ L: window label (AKA title).
+ I: iconify
+ M: maximize
+ C: close
+ S: shade (roll up/down)
+ D: omnipresent (on all desktops).
+ -->
+ <keepBorder>yes</keepBorder>
+ <animateIconify>yes</animateIconify>
+ <font place="ActiveWindow">
+ <name>sans</name>
+ <size>10</size>
+ <!-- font size in points -->
+ <weight>bold</weight>
+ <!-- 'bold' or 'normal' -->
+ <slant>normal</slant>
+ <!-- 'italic' or 'normal' -->
+ </font>
+ <font place="InactiveWindow">
+ <name>sans</name>
+ <size>10</size>
+ <!-- font size in points -->
+ <weight>bold</weight>
+ <!-- 'bold' or 'normal' -->
+ <slant>normal</slant>
+ <!-- 'italic' or 'normal' -->
+ </font>
+ <font place="MenuHeader">
+ <name>sans</name>
+ <size>10</size>
+ <!-- font size in points -->
+ <weight>normal</weight>
+ <!-- 'bold' or 'normal' -->
+ <slant>normal</slant>
+ <!-- 'italic' or 'normal' -->
+ </font>
+ <font place="MenuItem">
+ <name>sans</name>
+ <size>10</size>
+ <!-- font size in points -->
+ <weight>normal</weight>
+ <!-- 'bold' or 'normal' -->
+ <slant>normal</slant>
+ <!-- 'italic' or 'normal' -->
+ </font>
+ <font place="ActiveOnScreenDisplay">
+ <name/>
+ </font>
+ <font place="InactiveOnScreenDisplay">
+ <name>Sans</name>
+ <size>8</size>
+ <weight/>
+ <slant/>
+ </font>
+ </theme>
+ <desktops>
+ <!-- this stuff is only used at startup, pagers allow you to change them
+ during a session
+
+ these are default values to use when other ones are not already set
+ by other applications, or saved in your session
+
+ use obconf if you want to change these without having to log out
+ and back in -->
+ <number>2</number>
+ <firstdesk>1</firstdesk>
+ <names>
+ <!-- set names up here if you want to, like this:
+ <name>desktop 1</name>
+ <name>desktop 2</name>
+ -->
+ </names>
+ <popupTime>875</popupTime>
+ <!-- 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>
+ <!-- 'Always', 'Never', or 'Nonpixel' (xterms and such) -->
+ <popupPosition>Center</popupPosition>
+ <!-- 'Center', 'Top', or 'Fixed' -->
+ <popupFixedPosition>
+ <!-- these are used if popupPosition is set to 'Fixed' -->
+ <x>10</x>
+ <!-- positive number for distance from left edge, negative number for
+ distance from right edge, or 'Center' -->
+ <y>10</y>
+ <!-- positive number for distance from top edge, negative number for
+ 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
+ cases. -->
+ <margins>
+ <top>0</top>
+ <bottom>0</bottom>
+ <left>0</left>
+ <right>0</right>
+ </margins>
+ <dock>
+ <position>TopLeft</position>
+ <!-- (Top|Bottom)(Left|Right|)|Top|Bottom|Left|Right|Floating -->
+ <floatingX>0</floatingX>
+ <floatingY>0</floatingY>
+ <noStrut>no</noStrut>
+ <stacking>Above</stacking>
+ <!-- 'Above', 'Normal', or 'Below' -->
+ <direction>Vertical</direction>
+ <!-- 'Vertical' or 'Horizontal' -->
+ <autoHide>no</autoHide>
+ <hideDelay>300</hideDelay>
+ <!-- in milliseconds (1000 = 1 second) -->
+ <showDelay>300</showDelay>
+ <!-- in milliseconds (1000 = 1 second) -->
+ <moveButton>Middle</moveButton>
+ <!-- 'Left', 'Middle', 'Right' -->
+ </dock>
+ <keyboard>
+ <chainQuitKey>C-g</chainQuitKey>
+ <!-- Keybindings for desktop switching -->
+ <keybind key="C-A-Left">
+ <action name="DesktopLeft">
+ <dialog>no</dialog>
+ <wrap>no</wrap>
+ </action>
+ </keybind>
+ <keybind key="C-A-Right">
+ <action name="DesktopRight">
+ <dialog>no</dialog>
+ <wrap>no</wrap>
+ </action>
+ </keybind>
+ <keybind key="C-A-Up">
+ <action name="DesktopUp">
+ <dialog>no</dialog>
+ <wrap>no</wrap>
+ </action>
+ </keybind>
+ <keybind key="C-A-Down">
+ <action name="DesktopDown">
+ <dialog>no</dialog>
+ <wrap>no</wrap>
+ </action>
+ </keybind>
+ <keybind key="S-A-Left">
+ <action name="SendToDesktopLeft">
+ <dialog>no</dialog>
+ <wrap>no</wrap>
+ </action>
+ </keybind>
+ <keybind key="S-A-Right">
+ <action name="SendToDesktopRight">
+ <dialog>no</dialog>
+ <wrap>no</wrap>
+ </action>
+ </keybind>
+ <keybind key="S-A-Up">
+ <action name="SendToDesktopUp">
+ <dialog>no</dialog>
+ <wrap>no</wrap>
+ </action>
+ </keybind>
+ <keybind key="S-A-Down">
+ <action name="SendToDesktopDown">
+ <dialog>no</dialog>
+ <wrap>no</wrap>
+ </action>
+ </keybind>
+ <keybind key="W-F1">
+ <action name="Desktop">
+ <desktop>1</desktop>
+ </action>
+ </keybind>
+ <keybind key="W-F2">
+ <action name="Desktop">
+ <desktop>2</desktop>
+ </action>
+ </keybind>
+ <keybind key="W-F3">
+ <action name="Desktop">
+ <desktop>3</desktop>
+ </action>
+ </keybind>
+ <keybind key="W-F4">
+ <action name="Desktop">
+ <desktop>4</desktop>
+ </action>
+ </keybind>
+ <keybind key="W-d">
+ <action name="ToggleShowDesktop"/>
+ </keybind>
+ <keybind key="C-A-d">
+ <action name="ToggleShowDesktop"/>
+ </keybind>
+ <!-- Keybindings for windows -->
+ <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-space">
+ <action name="ShowMenu">
+ <menu>client-menu</menu>
+ </action>
+ </keybind>
+ <!-- Keybindings for window switching -->
+ <keybind key="A-Tab">
+ <action name="NextWindow"/>
+ </keybind>
+ <keybind key="A-S-Tab">
+ <action name="PreviousWindow"/>
+ </keybind>
+ <keybind key="C-A-Tab">
+ <action name="NextWindow">
+ <panels>yes</panels>
+ <desktop>yes</desktop>
+ </action>
+ </keybind>
+ <!-- Keybindings for running applications -->
+ <keybind key="W-e">
+ <action name="Execute">
+ <startupnotify>
+ <enabled>true</enabled>
+ <name>PCManFM</name>
+ </startupnotify>
+ <command>pcmanfm</command>
+ </action>
+ </keybind>
+ <!--keybindings for LXPanel -->
+ <keybind key="W-r">
+ <action name="Execute">
+ <command>lxpanelctl run</command>
+ </action>
+ </keybind>
+ <keybind key="A-F2">
+ <action name="Execute">
+ <command>lxpanelctl run</command>
+ </action>
+ </keybind>
+ <keybind key="C-Escape">
+ <action name="Execute">
+ <command>lxpanelctl menu</command>
+ </action>
+ </keybind>
+ <keybind key="F11">
+ <action name="ToggleFullscreen"/>
+ </keybind>
+ <!-- Launch Task Manager with Ctrl+Alt+Del -->
+ <keybind key="A-C-Delete">
+ <action name="Execute">
+ <command>lxsession-logout</command>
+ </action>
+ </keybind>
+ <!-- LY4ever customization -->
+ <keybind key="Print">
+ <action name="Execute">
+ <execute>scrot 'ly_%Y%m%d_$wx$h.png' -e 'mv $f ~/pictures/screenshots'</execute>
+ </action>
+ </keybind>
+ <keybind key="A-Print">
+ <action name="Execute">
+ <execute>scrot -bud 3 'ly_%Y%m%d_$wx$h.png' -e 'mv $f ~/pictures/screenshots'</execute>
+ </action>
+ </keybind>
+ <keybind key="A-F3">
+ <action name="Execute">
+ <command>~/bin/dmenu.sh</command>
+ </action>
+ </keybind>
+ <keybind key="W-t">
+ <action name="Execute">
+ <command>urxvt</command>
+ <startupnotify>
+ <enabled>yes</enabled>
+ <name>URxvt</name>
+ </startupnotify>
+ </action>
+ </keybind>
+ <keybind key="W-w">
+ <action name="Execute">
+ <command>firefox</command>
+ <startupnotify>
+ <enabled>yes</enabled>
+ <name>Firefox Web Browser</name>
+ </startupnotify>
+ </action>
+ </keybind>
+ <!-- Volume Control -->
+ <keybind key="XF86AudioLowerVolume">
+ <action name="Execute">
+ <execute>mixer vol -5:-5</execute>
+ </action>
+ </keybind>
+ <keybind key="XF86AudioRaiseVolume">
+ <action name="Execute">
+ <execute>mixer vol +5:+5</execute>
+ </action>
+ </keybind>
+ <!-- screensaver -->
+ <keybind key="C-A-l">
+ <action name="Execute">
+ <execute>xscreensaver-command -lock</execute>
+ </action>
+ </keybind>
+ </keyboard>
+ <mouse>
+ <dragThreshold>8</dragThreshold>
+ <!-- number of pixels the mouse must move before a drag begins -->
+ <doubleClickTime>200</doubleClickTime>
+ <!-- in milliseconds (1000 = 1 second) -->
+ <screenEdgeWarpTime>400</screenEdgeWarpTime>
+ <!-- Time before changing desktops when the pointer touches the edge of the
+ screen while moving a window, in milliseconds (1000 = 1 second).
+ Set this to 0 to disable warping -->
+ <context name="Frame">
+ <mousebind button="A-Left" action="Press">
+ <action name="Focus"/>
+ <action name="Raise"/>
+ </mousebind>
+ <mousebind button="A-Left" action="Click">
+ <action name="Unshade"/>
+ </mousebind>
+ <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>
+ <mousebind button="A-Middle" action="Press">
+ <action name="Lower"/>
+ <action name="FocusToBottom"/>
+ <action name="Unfocus"/>
+ </mousebind>
+ <mousebind button="A-Up" action="Click">
+ <action name="DesktopPrevious"/>
+ </mousebind>
+ <mousebind button="A-Down" action="Click">
+ <action name="DesktopNext"/>
+ </mousebind>
+ <mousebind button="C-A-Up" action="Click">
+ <action name="DesktopPrevious"/>
+ </mousebind>
+ <mousebind button="C-A-Down" action="Click">
+ <action name="DesktopNext"/>
+ </mousebind>
+ <mousebind button="A-S-Up" action="Click">
+ <action name="SendToDesktopPrevious"/>
+ </mousebind>
+ <mousebind button="A-S-Down" action="Click">
+ <action name="SendToDesktopNext"/>
+ </mousebind>
+ </context>
+ <context name="Titlebar">
+ <mousebind button="Left" action="Press">
+ <action name="Focus"/>
+ <action name="Raise"/>
+ </mousebind>
+ <mousebind button="Left" action="Drag">
+ <action name="Move"/>
+ </mousebind>
+ <mousebind button="Left" action="DoubleClick">
+ <action name="ToggleMaximizeFull"/>
+ </mousebind>
+ <mousebind button="Middle" action="Press">
+ <action name="Lower"/>
+ <action name="FocusToBottom"/>
+ <action name="Unfocus"/>
+ </mousebind>
+ <mousebind button="Up" action="Click">
+ <action name="Shade"/>
+ <action name="FocusToBottom"/>
+ <action name="Unfocus"/>
+ <action name="Lower"/>
+ </mousebind>
+ <mousebind button="Down" action="Click">
+ <action name="Unshade"/>
+ <action name="Raise"/>
+ </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="Press">
+ <action name="Focus"/>
+ <action name="Raise"/>
+ <action name="Unshade"/>
+ </mousebind>
+ <mousebind button="Left" action="Drag">
+ <action name="Resize">
+ <edge>top</edge>
+ </action>
+ </mousebind>
+ </context>
+ <context name="Left">
+ <mousebind button="Left" action="Press">
+ <action name="Focus"/>
+ <action name="Raise"/>
+ </mousebind>
+ <mousebind button="Left" action="Drag">
+ <action name="Resize">
+ <edge>left</edge>
+ </action>
+ </mousebind>
+ </context>
+ <context name="Right">
+ <mousebind button="Left" action="Press">
+ <action name="Focus"/>
+ <action name="Raise"/>
+ </mousebind>
+ <mousebind button="Left" action="Drag">
+ <action name="Resize">
+ <edge>right</edge>
+ </action>
+ </mousebind>
+ </context>
+ <context name="Bottom">
+ <mousebind button="Left" action="Press">
+ <action name="Focus"/>
+ <action name="Raise"/>
+ </mousebind>
+ <mousebind button="Left" action="Drag">
+ <action name="Resize">
+ <edge>bottom</edge>
+ </action>
+ </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="BLCorner">
+ <mousebind button="Left" action="Press">
+ <action name="Focus"/>
+ <action name="Raise"/>
+ </mousebind>
+ <mousebind button="Left" action="Drag">
+ <action name="Resize"/>
+ </mousebind>
+ </context>
+ <context name="BRCorner">
+ <mousebind button="Left" action="Press">
+ <action name="Focus"/>
+ <action name="Raise"/>
+ </mousebind>
+ <mousebind button="Left" action="Drag">
+ <action name="Resize"/>
+ </mousebind>
+ </context>
+ <context name="TLCorner">
+ <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="TRCorner">
+ <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="ToggleMaximizeFull"/>
+ </mousebind>
+ <mousebind button="Middle" action="Click">
+ <action name="ToggleMaximizeVert"/>
+ </mousebind>
+ <mousebind button="Right" action="Click">
+ <action name="ToggleMaximizeHorz"/>
+ </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="DesktopPrevious"/>
+ </mousebind>
+ <mousebind button="Down" action="Click">
+ <action name="DesktopNext"/>
+ </mousebind>
+ <mousebind button="A-Up" action="Click">
+ <action name="DesktopPrevious"/>
+ </mousebind>
+ <mousebind button="A-Down" action="Click">
+ <action name="DesktopNext"/>
+ </mousebind>
+ <mousebind button="C-A-Up" action="Click">
+ <action name="DesktopPrevious"/>
+ </mousebind>
+ <mousebind button="C-A-Down" action="Click">
+ <action name="DesktopNext"/>
+ </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">
+ <!-- Menus -->
+ <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">
+ <mousebind button="Up" action="Click">
+ <action name="DesktopPrevious"/>
+ </mousebind>
+ <mousebind button="Down" action="Click">
+ <action name="DesktopNext"/>
+ </mousebind>
+ <mousebind button="A-Up" action="Click">
+ <action name="DesktopPrevious"/>
+ </mousebind>
+ <mousebind button="A-Down" action="Click">
+ <action name="DesktopNext"/>
+ </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 -->
+ <!-- default menu file (or custom one in $HOME/.config/openbox/) -->
+ <file>/usr/local/share/lxde/openbox/menu.xml</file>
+ <hideDelay>200</hideDelay>
+ <!-- if a press-release lasts longer than this setting (in milliseconds), the
+ menu is hidden again -->
+ <middle>no</middle>
+ <!-- center submenus vertically about the parent entry -->
+ <submenuShowDelay>100</submenuShowDelay>
+ <!-- this one is easy, time to delay before showing a submenu after hovering
+ over the parent entry -->
+ <applicationIcons>yes</applicationIcons>
+ <!-- controls if icons appear in the client-list-(combined-)menu -->
+ <manageDesktops>yes</manageDesktops>
+ <!-- show the manage desktops section in the client-list-(combined-)menu -->
+ </menu>
+ <applications>
+ <!--
+ # this is an example with comments through out. use these to make your
+ # own rules, but without the comments of course.
+
+ <application name="first element of window's WM_CLASS property (see xprop)"
+ class="second element of window's WM_CLASS property (see xprop)"
+ role="the window's WM_WINDOW_ROLE property (see xprop)">
+ # the name or the class can be set, or both. this is used to match
+ # windows when they appear. role can optionally be set as well, to
+ # further restrict your matches.
+
+ # the name, class, and role use simple wildcard matching such as those
+ # used by a shell. you can use * to match any characters and ? to match
+ # any single character.
+
+ # when multiple rules match a window, they will all be applied, in the
+ # order that they appear in this list
+
+
+ # each element can be left out or set to 'default' to specify to not
+ # change that attribute of the window
+
+ <decor>yes</decor>
+ # enable or disable window decorations
+
+ <shade>no</shade>
+ # make the window shaded when it appears, or not
+
+ <position>
+ # the position is only used if both an x and y coordinate are provided
+ # (and not set to 'default')
+ <x>center</x>
+ # a number like 50, or 'center' to center on screen. use a negative number
+ # to start from the right (or bottom for <y>), ie -50 is 50 pixels from the
+ # right edge (or bottom).
+ <y>200</y>
+ <monitor>1</monitor>
+ # specifies the monitor in a xinerama setup.
+ # 1 is the first head, or 'mouse' for wherever the mouse is
+ </position>
+
+ <focus>yes</focus>
+ # if the window should try be given focus when it appears. if this is set
+ # to yes it doesn't guarantee the window will be given focus. some
+ # restrictions may apply, but Openbox will try to
+
+ <desktop>1</desktop>
+ # 1 is the first desktop, 'all' for all desktops
+
+ <layer>normal</layer>
+ # 'above', 'normal', or 'below'
+
+ <iconic>no</iconic>
+ # make the window iconified when it appears, or not
+
+ <skip_pager>no</skip_pager>
+ # asks to not be shown in pagers
+
+ <skip_taskbar>no</skip_taskbar>
+ # asks to not be shown in taskbars. window cycling actions will also
+ # skip past such windows
+
+ <fullscreen>yes</fullscreen>
+ # make the window in fullscreen mode when it appears
+
+ <maximized>true</maximized>
+ # 'Horizontal', 'Vertical' or boolean (yes/no)
+ </application>
+
+ # end of the example
+-->
+ </applications>
+</openbox_config>
diff --git a/.config/openbox/menu.xml b/.config/openbox/menu.xml
new file mode 100644
index 0000000..c6fd3a7
--- /dev/null
+++ b/.config/openbox/menu.xml
@@ -0,0 +1,236 @@
+<?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>
+</openbox_menu>
diff --git a/.config/openbox/pipemenus/obpipemenu-places b/.config/openbox/pipemenus/obpipemenu-places
new file mode 100755
index 0000000..3b73618
--- /dev/null
+++ b/.config/openbox/pipemenus/obpipemenu-places
@@ -0,0 +1,102 @@
+#!/usr/bin/perl
+# Recursively browse filesystem through openbox3 pipe menus
+#### Usage: add
+# <menu id="browse" label="Browse" execute="obpipemenu-places ~" />
+# to your .config/openbox/menu.xml
+#### CAVEAT ####
+# This script was hacked on exclusively in stints between the hours of
+# 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
+# a year later by Kacper Wysocki.
+# 05/30/05 - Kacper Wysocki
+# - opens files with 'rox', which launches appropriate file handler
+# - hidden directories now stay hidden
+# - spaces, ampersands in dir- and filenames are escaped
+# - newlines at each entry to make output a little readable
+# 06/04/05 - Kacper Wysocki
+# - use $0 for scriptname
+# - use $ENV{'HOME'} as default path
+# - now follows symlinks
+
+use strict;
+
+# Command to lauch files with
+my $cmd = "thunar";
+
+my $path = $ARGV[0];
+$path = "$ENV{'HOME'}" if $path eq "";
+my @files = split /\n/, `ls -1p '$path'`;
+mk_menu_element($path, @files);
+
+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\">".
+ "\n\t\t<execute>$cmd '$path'</execute>".
+ "\n\t</action>".
+ "\n</item>\n".
+ "<separator />";
+
+ foreach $_ (@files) {
+ my $length = length $_;
+ my $last_c = substr $_, $length - 1, 1;
+
+ if ($last_c eq "/") {
+ print mk_dir_element($path, substr $_, 0, $length - 1);
+ } elsif ($last_c eq "@") {
+ print mk_sym_element($path, substr $_, 0, $length - 1);
+ } else {
+ print mk_file_element($path, $_);
+ }
+ }
+ print "</openbox_pipe_menu>\n";
+}
+
+sub mk_dir_element {
+ my ($path, $name) = @_;
+ # escape ampersand and space in pathnames
+ $path =~ s/&/&amp;/g;
+ $name =~ s/&/&amp;/g;
+ $path =~ s/ /\\ /g;
+ $name =~ s/ /\\ /g;
+
+ return "<menu id=\"$path/$name\" label=\"$name\" execute=\"$0 $path/$name\" />\n";
+}
+
+sub mk_sym_element {
+ my ($path, $name) = @_;
+ # escape ampersand in pathnames
+ $path =~ s/&/&amp;/g;
+ $name =~ s/&/&amp;/g;
+
+ # Follow symlinks instead of opening links in rox.
+ return "<menu id=\"$path/$name\" label=\"$name\" execute=\"$0 $path/$name\" />\n";
+=cut
+ return "<item label=\"$name\">".
+ "\n\t<action name=\"Execute\">".
+ "\n\t\t<execute>$cmd '$path/$name'</execute>".
+ "\n\t</action>"
+ . "\n</item>\n";
+=cut
+}
+
+sub mk_file_element {
+ my ($path, $name) = @_;
+ my $label = $name;
+ # escape ampersand in pathnames
+ $path =~ s/&/&amp;/g;
+ $name =~ s/&/&amp;/g;
+
+ return "<item label=\"$name\">".
+ "\n\t<action name=\"Execute\">".
+ "\n\t\t<execute>$cmd '$path/$name'</execute>".
+ "\n\t</action>"
+ . "\n</item>\n";
+}
+
diff --git a/.config/openbox/rc.xml b/.config/openbox/rc.xml
new file mode 100644
index 0000000..aad1450
--- /dev/null
+++ b/.config/openbox/rc.xml
@@ -0,0 +1,937 @@
+<?xml version="1.0"?>
+<openbox_config xmlns="http://openbox.org/3.4/rc">
+ <resistance>
+ <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
+ apply -->
+ <followMouse>yes</followMouse>
+ <!-- move focus to a window when you move the mouse into it -->
+ <focusLast>yes</focusLast>
+ <!-- focus the last used window when changing desktops, instead of the one
+ under the mouse pointer. when followMouse is enabled -->
+ <underMouse>no</underMouse>
+ <!-- move focus under the mouse, even when the mouse is not moving -->
+ <focusDelay>200</focusDelay>
+ <!-- when followMouse is enabled, the mouse must be inside the window for
+ this many milliseconds (1000 = 1 sec) before moving focus to it -->
+ <raiseOnFocus>no</raiseOnFocus>
+ <!-- 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' -->
+ <center>yes</center>
+ <!-- whether to place windows in the center of the free area found or
+ the top left corner -->
+ <monitor>Any</monitor>
+ <primaryMonitor></primaryMonitor>
+ </placement>
+ <theme>
+ <name>Litestyle-Mint</name>
+ <titleLayout>DSLIMC</titleLayout>
+ <!--
+ avaible characters are NDSLIMC, each can occur at most once.
+ N: window icon
+ L: window label (AKA title).
+ I: iconify
+ M: maximize
+ C: close
+ S: shade (roll up/down)
+ D: omnipresent (on all desktops).
+ -->
+ <keepBorder>yes</keepBorder>
+ <animateIconify>yes</animateIconify>
+ <font place="ActiveWindow">
+ <name>Sans</name>
+ <size>9</size>
+ <!-- font size in points -->
+ <weight>Bold</weight>
+ <!-- 'bold' or 'normal' -->
+ <slant>Normal</slant>
+ <!-- 'italic' or 'normal' -->
+ </font>
+ <font place="InactiveWindow">
+ <name>Sans</name>
+ <size>9</size>
+ <!-- font size in points -->
+ <weight>Normal</weight>
+ <!-- 'bold' or 'normal' -->
+ <slant>Normal</slant>
+ <!-- 'italic' or 'normal' -->
+ </font>
+ <font place="MenuHeader">
+ <name>Sans</name>
+ <size>9</size>
+ <!-- font size in points -->
+ <weight>Normal</weight>
+ <!-- 'bold' or 'normal' -->
+ <slant>Normal</slant>
+ <!-- 'italic' or 'normal' -->
+ </font>
+ <font place="MenuItem">
+ <name>Sans</name>
+ <size>9</size>
+ <!-- font size in points -->
+ <weight>Normal</weight>
+ <!-- 'bold' or 'normal' -->
+ <slant>Normal</slant>
+ <!-- 'italic' or 'normal' -->
+ </font>
+ <font place="ActiveOnScreenDisplay">
+ <name/>
+ </font>
+ <font place="InactiveOnScreenDisplay">
+ <name>Sans</name>
+ <size>8</size>
+ <weight></weight>
+ <slant></slant>
+ </font>
+ </theme>
+ <desktops>
+ <!-- this stuff is only used at startup, pagers allow you to change them
+ during a session
+
+ these are default values to use when other ones are not already set
+ by other applications, or saved in your session
+
+ use obconf if you want to change these without having to log out
+ and back in -->
+ <number>2</number>
+ <firstdesk>1</firstdesk>
+ <names>
+ <name>MAIN</name>
+ <name>MISC</name>
+ <name>3</name>
+ <name>4</name>
+ </names>
+ <popupTime>150</popupTime>
+ <!-- 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>
+ <!-- 'Always', 'Never', or 'Nonpixel' (xterms and such) -->
+ <popupPosition>Center</popupPosition>
+ <!-- 'Center' or 'Top' -->
+ <popupFixedPosition>
+ <x>0</x>
+ <y>0</y>
+ </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
+ cases. -->
+ <margins>
+ <top>0</top>
+ <bottom>0</bottom>
+ <left>0</left>
+ <right>0</right>
+ </margins>
+ <dock>
+ <position>Top</position>
+ <!-- (Top|Bottom)(Left|Right|)|Top|Bottom|Left|Right|Floating -->
+ <floatingX>0</floatingX>
+ <floatingY>0</floatingY>
+ <noStrut>no</noStrut>
+ <stacking>Above</stacking>
+ <!-- 'Above', 'Normal', or 'Below' -->
+ <direction>Horizontal</direction>
+ <!-- 'Vertical' or 'Horizontal' -->
+ <autoHide>no</autoHide>
+ <hideDelay>300</hideDelay>
+ <!-- in milliseconds (1000 = 1 second) -->
+ <showDelay>300</showDelay>
+ <!-- in milliseconds (1000 = 1 second) -->
+ <moveButton>Middle</moveButton>
+ <!-- 'Left', 'Middle', 'Right' -->
+ </dock>
+ <keyboard>
+ <chainQuitKey>C-g</chainQuitKey>
+ <keybind key="C-A-Left">
+ <action name="DesktopLeft">
+ <wrap>no</wrap>
+ </action>
+ </keybind>
+ <keybind key="C-A-Right">
+ <action name="DesktopRight">
+ <wrap>no</wrap>
+ </action>
+ </keybind>
+ <keybind key="C-A-Up">
+ <action name="DesktopUp">
+ <wrap>no</wrap>
+ </action>
+ </keybind>
+ <keybind key="C-A-Down">
+ <action name="DesktopDown">
+ <wrap>no</wrap>
+ </action>
+ </keybind>
+ <keybind key="S-A-Left">
+ <action name="SendToDesktopLeft">
+ <wrap>no</wrap>
+ </action>
+ </keybind>
+ <keybind key="S-A-Right">
+ <action name="SendToDesktopRight">
+ <wrap>no</wrap>
+ </action>
+ </keybind>
+ <keybind key="S-A-Up">
+ <action name="SendToDesktopUp">
+ <wrap>no</wrap>
+ </action>
+ </keybind>
+ <keybind key="S-A-Down">
+ <action name="SendToDesktopDown">
+ <wrap>no</wrap>
+ </action>
+ </keybind>
+ <keybind key="W-F1">
+ <action name="Desktop"/>
+ </keybind>
+ <keybind key="W-F2">
+ <action name="Desktop">
+ <desktop>2</desktop>
+ </action>
+ </keybind>
+ <keybind key="W-F3">
+ <action name="Desktop">
+ <desktop>3</desktop>
+ </action>
+ </keybind>
+ <keybind key="W-F4">
+ <action name="Desktop">
+ <desktop>4</desktop>
+ </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-space">
+ <action name="ShowMenu">
+ <menu>client-menu</menu>
+ </action>
+ </keybind>
+ <keybind key="A-Tab">
+ <action name="NextWindow"/>
+ </keybind>
+ <keybind key="C-Tab">
+ <action name="PreviousWindow"/>
+ </keybind>
+ <keybind key="C-A-Tab">
+ <action name="NextWindow">
+ <panels>yes</panels>
+ <desktop>yes</desktop>
+ </action>
+ </keybind>
+ <keybind key="Print">
+ <action name="Execute">
+ <execute>scrot 'ly_%Y%m%d_$wx$h.png' -e 'mv $f ~/pictures/screenshots'</execute>
+ </action>
+ </keybind>
+ <keybind key="A-Print">
+ <action name="Execute">
+ <execute>scrot -bud 3 'ly_%Y%m%d_$wx$h.png' -e 'mv $f ~/pictures/screenshots'</execute>
+ </action>
+ </keybind>
+ <keybind key="A-F2">
+ <action name="Execute">
+ <command>gmrun</command>
+ <startupnotify>
+ <enabled>yes</enabled>
+ <name>gmrun</name>
+ </startupnotify>
+ </action>
+ </keybind>
+ <keybind key="A-F3">
+ <action name="Execute">
+ <command>~/bin/dmenu.sh</command>
+ <startupnotify>
+ <enabled>yes</enabled>
+ <name>dmenu</name>
+ </startupnotify>
+ </action>
+ </keybind>
+ <keybind key="W-space">
+ <action name="ShowMenu">
+ <menu>root-menu</menu>
+ </action>
+ </keybind>
+ <keybind key="W-Tab">
+ <action name="ShowMenu">
+ <menu>client-list-combined-menu</menu>
+ </action>
+ </keybind>
+ <keybind key="W-b">
+ <action name="Execute">
+ <command>~/bin/blank-screen.sh</command>
+ </action>
+ </keybind>
+ <keybind key="W-c">
+ <action name="Execute">
+ <command>catfish</command>
+ <startupnotify>
+ <enabled>yes</enabled>
+ <name>Catfish</name>
+ </startupnotify>
+ </action>
+ </keybind>
+ <keybind key="W-e">
+ <action name="Execute">
+ <command>epdfview</command>
+ <startupnotify>
+ <enabled>yes</enabled>
+ <name>PDF</name>
+ </startupnotify>
+ </action>
+ </keybind>
+ <keybind key="W-f">
+ <action name="Execute">
+ <command>thunar</command>
+ <startupnotify>
+ <enabled>yes</enabled>
+ <name>Thunar</name>
+ </startupnotify>
+ </action>
+ </keybind>
+ <keybind key="W-g">
+ <action name="Execute">
+ <command>gimp</command>
+ <startupnotify>
+ <enabled>yes</enabled>
+ <name>GIMP</name>
+ </startupnotify>
+ </action>
+ </keybind>
+ <keybind key="W-k">
+ <action name="Execute">
+ <command>xkill</command>
+ <startupnotify>
+ <enabled>yes</enabled>
+ <name>Xkill</name>
+ </startupnotify>
+ </action>
+ </keybind>
+ <keybind key="W-l">
+ <action name="Execute">
+ <command>leafpad</command>
+ <startupnotify>
+ <enabled>yes</enabled>
+ <name>Editor</name>
+ </startupnotify>
+ </action>
+ </keybind>
+ <keybind key="W-m">
+ <action name="Execute">
+ <command>smplayer</command>
+ <startupnotify>
+ <enabled>yes</enabled>
+ <name>Mediaplayer</name>
+ </startupnotify>
+ </action>
+ </keybind>
+ <keybind key="W-o">
+ <action name="Execute">
+ <command>openfetion</command>
+ <startupnotify>
+ <enabled>yes</enabled>
+ <name>OpenFetion</name>
+ </startupnotify>
+ </action>
+ </keybind>
+ <keybind key="W-p">
+ <action name="Execute">
+ <command>pidgin</command>
+ <startupnotify>
+ <enabled>yes</enabled>
+ <name>Pidgin</name>
+ </startupnotify>
+ </action>
+ </keybind>
+ <keybind key="W-t">
+ <action name="Execute">
+ <command>urxvtc</command>
+ <startupnotify>
+ <enabled>yes</enabled>
+ <name>Terminal</name>
+ </startupnotify>
+ </action>
+ </keybind>
+ <keybind key="W-w">
+ <action name="Execute">
+ <command>firefox</command>
+ <startupnotify>
+ <enabled>yes</enabled>
+ <name>Web Browser</name>
+ </startupnotify>
+ </action>
+ </keybind>
+ <keybind key="C-A-Delete">
+ <action name="Execute">
+ <command>oblogout</command>
+ <startupnotify>
+ <enabled>yes</enabled>
+ <name>Openbox Logout</name>
+ </startupnotify>
+ </action>
+ </keybind>
+ <!-- MPD Settings -->
+ <keybind key="W-Down">
+ <action name="Execute">
+ <command>mpc toggle</command>
+ <startupnotify>
+ <enabled>yes</enabled>
+ <name>MPD</name>
+ </startupnotify>
+ </action>
+ </keybind>
+ <keybind key="W-Left">
+ <action name="Execute">
+ <command>mpc prev</command>
+ <startupnotify>
+ <enabled>yes</enabled>
+ <name>MPD Prev</name>
+ </startupnotify>
+ </action>
+ </keybind>
+ <keybind key="W-Right">
+ <action name="Execute">
+ <command>mpc next</command>
+ <startupnotify>
+ <enabled>yes</enabled>
+ <name>MPD Next</name>
+ </startupnotify>
+ </action>
+ </keybind>
+ <keybind key="W-Up">
+ <action name="Execute">
+ <command>mpc stop</command>
+ <startupnotify>
+ <enabled>yes</enabled>
+ <name>MPD Stopped</name>
+ </startupnotify>
+ </action>
+ </keybind>
+ <keybind key="XF86AudioPlay">
+ <action name="Execute">
+ <execute>mpc toggle</execute>
+ </action>
+ </keybind>
+ <keybind key="XF86AudioPrev">
+ <action name="Execute">
+ <execute>mpc prev</execute>
+ </action>
+ </keybind>
+ <keybind key="XF86AudioNext">
+ <action name="Execute">
+ <execute>mpc next</execute>
+ </action>
+ </keybind>
+ <keybind key="XF86AudioStop">
+ <action name="Execute">
+ <execute>mpc stop</execute>
+ </action>
+ </keybind>
+ <!-- XMMS2 Settings End -->
+ <!-- Volume Control -->
+ <keybind key="XF86AudioLowerVolume">
+ <action name="Execute">
+ <execute>mixer vol -5:-5</execute>
+ </action>
+ </keybind>
+ <keybind key="XF86AudioRaiseVolume">
+ <action name="Execute">
+ <execute>mixer vol +5:+5</execute>
+ </action>
+ </keybind>
+ <!-- screensaver -->
+ <keybind key="XF86Screensaver">
+ <action name="Execute">
+ <execute>xscreensaver-command -lock</execute>
+ </action>
+ </keybind>
+ <keybind key="C-A-l">
+ <action name="Execute">
+ <execute>xscreensaver-command -lock</execute>
+ </action>
+ </keybind>
+ </keyboard>
+ <mouse>
+ <dragThreshold>8</dragThreshold>
+ <!-- number of pixels the mouse must move before a drag begins -->
+ <doubleClickTime>200</doubleClickTime>
+ <!-- in milliseconds (1000 = 1 second) -->
+ <screenEdgeWarpTime>400</screenEdgeWarpTime>
+ <!-- Time before changing desktops when the pointer touches the edge of the
+ screen while moving a window, in milliseconds (1000 = 1 second).
+ Set this to 0 to disable warping -->
+ <context name="Frame">
+ <mousebind action="Press" button="A-Left">
+ <action name="Focus"/>
+ <action name="Raise"/>
+ </mousebind>
+ <mousebind action="Click" button="A-Left">
+ <action name="Unshade"/>
+ </mousebind>
+ <mousebind action="Drag" button="A-Left">
+ <action name="Move"/>
+ </mousebind>
+ <mousebind action="Press" button="A-Right">
+ <action name="Focus"/>
+ <action name="Raise"/>
+ <action name="Unshade"/>
+ </mousebind>
+ <mousebind action="Drag" button="A-Right">
+ <action name="Resize"/>
+ </mousebind>
+ <mousebind action="Press" button="A-Middle">
+ <action name="Lower"/>
+ <action name="FocusToBottom"/>
+ <action name="Unfocus"/>
+ </mousebind>
+ <mousebind action="Click" button="A-Up">
+ <action name="DesktopPrevious"/>
+ </mousebind>
+ <mousebind action="Click" button="A-Down">
+ <action name="DesktopNext"/>
+ </mousebind>
+ <mousebind action="Click" button="C-A-Up">
+ <action name="DesktopPrevious"/>
+ </mousebind>
+ <mousebind action="Click" button="C-A-Down">
+ <action name="DesktopNext"/>
+ </mousebind>
+ <mousebind action="Click" button="A-S-Up">
+ <action name="SendToDesktopPrevious"/>
+ </mousebind>
+ <mousebind action="Click" button="A-S-Down">
+ <action name="SendToDesktopNext"/>
+ </mousebind>
+ </context>
+ <context name="Titlebar">
+ <mousebind action="Press" button="Left">
+ <action name="Focus"/>
+ <action name="Raise"/>
+ </mousebind>
+ <mousebind action="Drag" button="Left">
+ <action name="Move"/>
+ </mousebind>
+ <mousebind action="DoubleClick" button="Left">
+ <action name="ToggleShade"/>
+ </mousebind>
+ <mousebind action="Press" button="Middle">
+ <action name="Lower"/>
+ <action name="FocusToBottom"/>
+ <action name="Unfocus"/>
+ </mousebind>
+ <mousebind action="Click" button="Up">
+ <action name="Shade"/>
+ <action name="FocusToBottom"/>
+ <action name="Unfocus"/>
+ <action name="Lower"/>
+ </mousebind>
+ <mousebind action="Click" button="Down">
+ <action name="Unshade"/>
+ <action name="Raise"/>
+ </mousebind>
+ <mousebind action="Press" button="Right">
+ <action name="Focus"/>
+ <action name="Raise"/>
+ <action name="ShowMenu">
+ <menu>client-menu</menu>
+ </action>
+ </mousebind>
+ <!-- transparency -->
+ <mousebind action="Click" button="C-Up">
+ <action name="Execute">
+ <execute>transset-df -p --inc 0.2 </execute>
+ </action>
+ </mousebind>
+ <mousebind action="Click" button="C-Down">
+ <action name="Execute">
+ <execute>transset-df -p --min 0.2 --dec 0.2 </execute>
+ </action>
+ </mousebind>
+ </context>
+ <context name="Top">
+ <mousebind action="Press" button="Left">
+ <action name="Focus"/>
+ <action name="Raise"/>
+ <action name="Unshade"/>
+ </mousebind>
+ <mousebind action="Drag" button="Left">
+ <action name="Resize">
+ <edge>top</edge>
+ </action>
+ </mousebind>
+ </context>
+ <context name="Left">
+ <mousebind action="Press" button="Left">
+ <action name="Focus"/>
+ <action name="Raise"/>
+ </mousebind>
+ <mousebind action="Drag" button="Left">
+ <action name="Resize">
+ <edge>left</edge>
+ </action>
+ </mousebind>
+ </context>
+ <context name="Right">
+ <mousebind action="Press" button="Left">
+ <action name="Focus"/>
+ <action name="Raise"/>
+ </mousebind>
+ <mousebind action="Drag" button="Left">
+ <action name="Resize">
+ <edge>right</edge>
+ </action>
+ </mousebind>
+ </context>
+ <context name="Bottom">
+ <mousebind action="Press" button="Left">
+ <action name="Focus"/>
+ <action name="Raise"/>
+ </mousebind>
+ <mousebind action="Drag" button="Left">
+ <action name="Resize">
+ <edge>bottom</edge>
+ </action>
+ </mousebind>
+ <mousebind action="Press" button="Middle">
+ <action name="Lower"/>
+ <action name="FocusToBottom"/>
+ <action name="Unfocus"/>
+ </mousebind>
+ <mousebind action="Press" button="Right">
+ <action name="Focus"/>
+ <action name="Raise"/>
+ <action name="ShowMenu">
+ <menu>client-menu</menu>
+ </action>
+ </mousebind>
+ </context>
+ <context name="BLCorner">
+ <mousebind action="Press" button="Left">
+ <action name="Focus"/>
+ <action name="Raise"/>
+ </mousebind>
+ <mousebind action="Drag" button="Left">
+ <action name="Resize"/>
+ </mousebind>
+ </context>
+ <context name="BRCorner">
+ <mousebind action="Press" button="Left">
+ <action name="Focus"/>
+ <action name="Raise"/>
+ </mousebind>
+ <mousebind action="Drag" button="Left">
+ <action name="Resize"/>
+ </mousebind>
+ </context>
+ <context name="TLCorner">
+ <mousebind action="Press" button="Left">
+ <action name="Focus"/>
+ <action name="Raise"/>
+ <action name="Unshade"/>
+ </mousebind>
+ <mousebind action="Drag" button="Left">
+ <action name="Resize"/>
+ </mousebind>
+ </context>
+ <context name="TRCorner">
+ <mousebind action="Press" button="Left">
+ <action name="Focus"/>
+ <action name="Raise"/>
+ <action name="Unshade"/>
+ </mousebind>
+ <mousebind action="Drag" button="Left">
+ <action name="Resize"/>
+ </mousebind>
+ </context>
+ <context name="Client">
+ <mousebind action="Press" button="Left">
+ <action name="Focus"/>
+ <action name="Raise"/>
+ </mousebind>
+ <mousebind action="Press" button="Middle">
+ <action name="Focus"/>
+ <action name="Raise"/>
+ </mousebind>
+ <mousebind action="Press" button="Right">
+ <action name="Focus"/>
+ <action name="Raise"/>
+ </mousebind>
+ </context>
+ <context name="Icon">
+ <mousebind action="Press" button="Left">
+ <action name="Focus"/>
+ <action name="Raise"/>
+ <action name="Unshade"/>
+ <action name="ShowMenu">
+ <menu>client-menu</menu>
+ </action>
+ </mousebind>
+ <mousebind action="Press" button="Right">
+ <action name="Focus"/>
+ <action name="Raise"/>
+ <action name="ShowMenu">
+ <menu>client-menu</menu>
+ </action>
+ </mousebind>
+ </context>
+ <context name="AllDesktops">
+ <mousebind action="Press" button="Left">
+ <action name="Focus"/>
+ <action name="Raise"/>
+ <action name="Unshade"/>
+ </mousebind>
+ <mousebind action="Click" button="Left">
+ <action name="ToggleOmnipresent"/>
+ </mousebind>
+ </context>
+ <context name="Shade">
+ <mousebind action="Press" button="Left">
+ <action name="Focus"/>
+ <action name="Raise"/>
+ </mousebind>
+ <mousebind action="Click" button="Left">
+ <action name="ToggleShade"/>
+ </mousebind>
+ </context>
+ <context name="Iconify">
+ <mousebind action="Press" button="Left">
+ <action name="Focus"/>
+ <action name="Raise"/>
+ </mousebind>
+ <mousebind action="Click" button="Left">
+ <action name="Iconify"/>
+ </mousebind>
+ </context>
+ <context name="Maximize">
+ <mousebind action="Press" button="Left">
+ <action name="Focus"/>
+ <action name="Raise"/>
+ <action name="Unshade"/>
+ </mousebind>
+ <mousebind action="Press" button="Middle">
+ <action name="Focus"/>
+ <action name="Raise"/>
+ <action name="Unshade"/>
+ </mousebind>
+ <mousebind action="Press" button="Right">
+ <action name="Focus"/>
+ <action name="Raise"/>
+ <action name="Unshade"/>
+ </mousebind>
+ <mousebind action="Click" button="Left">
+ <action name="ToggleMaximizeFull"/>
+ </mousebind>
+ <mousebind action="Click" button="Middle">
+ <action name="ToggleMaximizeVert"/>
+ </mousebind>
+ <mousebind action="Click" button="Right">
+ <action name="ToggleMaximizeHorz"/>
+ </mousebind>
+ </context>
+ <context name="Close">
+ <mousebind action="Press" button="Left">
+ <action name="Focus"/>
+ <action name="Raise"/>
+ <action name="Unshade"/>
+ </mousebind>
+ <mousebind action="Click" button="Left">
+ <action name="Close"/>
+ </mousebind>
+ </context>
+ <context name="Desktop">
+ <mousebind action="Click" button="Up">
+ <action name="DesktopPrevious"/>
+ </mousebind>
+ <mousebind action="Click" button="Down">
+ <action name="DesktopNext"/>
+ </mousebind>
+ <mousebind action="Click" button="A-Up">
+ <action name="DesktopPrevious"/>
+ </mousebind>
+ <mousebind action="Click" button="A-Down">
+ <action name="DesktopNext"/>
+ </mousebind>
+ <mousebind action="Click" button="C-A-Up">
+ <action name="DesktopPrevious"/>
+ </mousebind>
+ <mousebind action="Click" button="C-A-Down">
+ <action name="DesktopNext"/>
+ </mousebind>
+ <mousebind action="Press" button="Left">
+ <action name="Focus"/>
+ <action name="Raise"/>
+ </mousebind>
+ </context>
+ <context name="Root">
+ <!-- Menus -->
+ <mousebind action="Press" button="Middle">
+ <action name="ShowMenu">
+ <menu>client-list-combined-menu</menu>
+ </action>
+ </mousebind>
+ <mousebind action="Press" button="Right">
+ <action name="ShowMenu">
+ <menu>root-menu</menu>
+ </action>
+ </mousebind>
+ </context>
+ <context name="MoveResize">
+ <mousebind action="Click" button="Up">
+ <action name="DesktopPrevious"/>
+ </mousebind>
+ <mousebind action="Click" button="Down">
+ <action name="DesktopNext"/>
+ </mousebind>
+ <mousebind action="Click" button="A-Up">
+ <action name="DesktopPrevious"/>
+ </mousebind>
+ <mousebind action="Click" button="A-Down">
+ <action name="DesktopNext"/>
+ </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 -->
+ <!-- default menu file (or custom one in $HOME/.config/openbox/) -->
+ <!-- system menu files on Debian systems
+ <file>/var/lib/openbox/debian-menu.xml</file>
+ <file>debian-menu.xml</file> -->
+ <file>menu.xml</file>
+ <hideDelay>200</hideDelay>
+ <middle>no</middle>
+ <submenuShowDelay>100</submenuShowDelay>
+ <applicationIcons>yes</applicationIcons>
+ </menu>
+ <applications>
+ <!--
+ # this is an example with comments through out. use these to make your
+ # own rules, but without the comments of course.
+
+ <application name="first element of window's WM_CLASS property (see xprop)"
+ class="second element of window's WM_CLASS property (see xprop)"
+ role="the window's WM_WINDOW_ROLE property (see xprop)">
+ # the name or the class can be set, or both. this is used to match
+ # windows when they appear. role can optionally be set as well, to
+ # further restrict your matches.
+
+ # the name, class, and role use simple wildcard matching such as those
+ # used by a shell. you can use * to match any characters and ? to match
+ # any single character.
+
+ # when multiple rules match a window, they will all be applied, in the
+ # order that they appear in this list
+
+
+ # each element can be left out or set to 'default' to specify to not
+ # change that attribute of the window
+
+ <decor>yes</decor>
+ # enable or disable window decorations
+
+ <shade>no</shade>
+ # make the window shaded when it appears, or not
+
+ <position>
+ # the position is only used if both an x and y coordinate are provided
+ # (and not set to 'default')
+ <x>center</x>
+ # a number like 50, or 'center' to center on screen. use a negative number
+ # to start from the right (or bottom for <y>), ie -50 is 50 pixels from the
+ # right edge (or bottom).
+ <y>200</y>
+ <monitor>1</monitor>
+ # specifies the monitor in a xinerama setup.
+ # 1 is the first head, or 'mouse' for wherever the mouse is
+ </position>
+
+ <focus>yes</focus>
+ # if the window should try be given focus when it appears. if this is set
+ # to yes it doesn't guarantee the window will be given focus. some
+ # restrictions may apply, but Openbox will try to
+
+ <desktop>1</desktop>
+ # 1 is the first desktop, 'all' for all desktops
+
+ <layer>normal</layer>
+ # 'above', 'normal', or 'below'
+
+ <iconic>no</iconic>
+ # make the window iconified when it appears, or not
+
+ <skip_pager>no</skip_pager>
+ # asks to not be shown in pagers
+
+ <skip_taskbar>no</skip_taskbar>
+ # asks to not be shown in taskbars. window cycling actions will also
+ # skip past such windows
+
+ <fullscreen>yes</fullscreen>
+ # make the window in fullscreen mode when it appears
+
+ <maximized>true</maximized>
+ # 'Horizontal', 'Vertical' or boolean (yes/no)
+ </application>
+
+ # end of the example
+ -->
+ <application name="gmessage">
+ <decor>no</decor>
+ <shade>no</shade>
+ <skip_pager>yes</skip_pager>
+ <skip_taskbar>yes</skip_taskbar>
+ <fullscreen>no</fullscreen>
+ <maximized>no</maximized>
+ </application>
+ <application name="openbox-logout">
+ <decor>no</decor>
+ <shade>no</shade>
+ <skip_pager>yes</skip_pager>
+ <fullscreen>no</fullscreen>
+ <maximized>no</maximized>
+ <layer>above</layer>
+ </application>
+ <!--
+ <application name="urxvt">
+ <decor>no</decor>
+ <shade>no</shade>
+ <iconic>no</iconic>
+ <focus>yes</focus>
+ <position>
+ <x>0</x>
+ <y>0</y>
+ </position>
+ <layer>below</layer>
+ <desktop>1</desktop>
+ <skip_taskbar>yes</skip_taskbar>
+ <skip_pager>yes</skip_pager>
+ </application>
+ -->
+ <application name="oblogout">
+ <layer>above</layer>
+ <skip_taskbar>yes</skip_taskbar>
+ <skip_pager>yes</skip_pager>
+ </application>
+ </applications>
+</openbox_config>
diff --git a/.config/openbox/scripts/xcompmgr.sh b/.config/openbox/scripts/xcompmgr.sh
new file mode 100755
index 0000000..e59eb6a
--- /dev/null
+++ b/.config/openbox/scripts/xcompmgr.sh
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+case "$1" in
+ set)
+ killall xcompmgr
+ sed -i 's/#xcompmgr.*$/xcompmgr \&/g' ~/.config/openbox/autostart.sh
+ xcompmgr &
+ ;;
+ unset)
+ sed -i 's/^xcompmgr.*$/#xcompmgr \&/g' ~/.config/openbox/autostart.sh
+ killall xcompmgr
+ ;;
+ setshaded)
+ killall xcompmgr
+ sed -i 's/#xcompmgr.*$/xcompmgr -CfF \&/g' ~/.config/openbox/autostart.sh
+ xcompmgr -CfF &
+ ;;
+ setshadowshade)
+ killall xcompmgr
+ sed -i 's/#xcompmgr.*$/xcompmgr -CcfF \&/g' ~/.config/openbox/autostart.sh
+ xcompmgr -CcfF &
+ ;;
+ *)
+ echo "This script accepts the following arguments : set, setshaded, setshadowshade, unset"
+esac
diff --git a/.config/openbox/scripts/xdg-menu b/.config/openbox/scripts/xdg-menu
new file mode 100755
index 0000000..05d6cec
--- /dev/null
+++ b/.config/openbox/scripts/xdg-menu
@@ -0,0 +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>'
diff --git a/.config/tint2/default.tint2rc b/.config/tint2/default.tint2rc
new file mode 100644
index 0000000..3bb4996
--- /dev/null
+++ b/.config/tint2/default.tint2rc
@@ -0,0 +1,137 @@
+# Tint2 config file
+# Generated by tintwizard (http://code.google.com/p/tintwizard/)
+# For information on manually configuring tint2 see http://code.google.com/p/tint2/wiki/Configure
+
+# Background definitions
+# ID 1
+rounded = 5
+border_width = 1
+background_color = #44475D 41
+border_color = #44475D 100
+
+# ID 2
+rounded = 5
+border_width = 1
+background_color = #FFFFFF 20
+border_color = #444444 66
+
+# ID 3
+rounded = 0
+border_width = 1
+background_color = #FFFFFF 20
+border_color = #444444 20
+
+# ID 4
+rounded = 5
+border_width = 1
+background_color = #DBDBDB 49
+border_color = #222222 74
+
+# ID 5
+rounded = 3
+border_width = 0
+background_color = #44475D 20
+border_color = #222222 74
+
+# ID 6
+rounded = 3
+border_width = 0
+background_color = #DE1150 34
+border_color = #222222 74
+
+# Panel
+panel_monitor = all
+panel_position = bottom center horizontal
+panel_size = 96% 36
+panel_margin = 0 0
+panel_padding = 9 3 9
+panel_dock = 0
+wm_menu = 1
+panel_layer = top
+panel_background_id = 1
+
+# Panel Autohide
+autohide = 0
+autohide_show_timeout = 0.3
+autohide_hide_timeout = 1.7
+autohide_height = 2
+strut_policy = follow_size
+
+# Taskbar
+taskbar_mode = multi_desktop
+taskbar_padding = 0 0 0
+taskbar_background_id = 2
+taskbar_active_background_id = 4
+
+# Tasks
+urgent_nb_of_blink = 16
+task_icon = 1
+task_text = 0
+task_centered = 1
+task_maximum_size = 40 20
+task_padding = 0 2
+task_background_id = 0
+task_active_background_id = 5
+task_urgent_background_id = 6
+task_iconified_background_id = 0
+
+# Task Icons
+task_icon_asb = 100 -25 -8
+task_active_icon_asb = 100 0 -5
+task_urgent_icon_asb = 100 0 -5
+task_iconified_icon_asb = 100 -25 -8
+
+# Fonts
+task_font = kiloji 10
+task_font_color = #333333 80
+task_active_font_color = #333333 100
+task_urgent_font_color = #333333 100
+task_iconified_font_color = #333333 80
+font_shadow = 0
+
+# System Tray
+systray = 1
+systray_padding = 7 0 5
+systray_sort = ascending
+systray_background_id = 2
+systray_icon_size = 18
+systray_icon_asb = 100 -20 -5
+
+# Clock
+time1_format = %H:%M
+time1_font = sans 8 bold
+time2_format = %A %d %B
+time2_font = sans 7
+clock_font_color = #FFFFFF 75
+clock_tooltip =
+clock_padding = 2 0
+clock_background_id = 0
+clock_rclick_command = gsimplecal
+
+# Tooltips
+tooltip = 1
+tooltip_padding = 5 3
+tooltip_show_timeout = 0.8
+tooltip_hide_timeout = 0.3
+tooltip_background_id = 1
+tooltip_font = Sans 8
+tooltip_font_color = #FFFFFF 100
+
+# Mouse
+mouse_middle = none
+mouse_right = close
+mouse_scroll_up = toggle
+mouse_scroll_down = iconify
+
+# Battery
+battery = 0
+battery_low_status = 20
+battery_low_cmd = notify-send "battery low"
+battery_hide = 90
+bat1_font = sans 8 bold
+bat2_font = sans 7
+battery_font_color = #FFFFFF 75
+battery_padding = 2 0
+battery_background_id = 0
+
+# End of config
diff --git a/.config/tint2/snap.jpg b/.config/tint2/snap.jpg
new file mode 100644
index 0000000..8e13a1c
--- /dev/null
+++ b/.config/tint2/snap.jpg
Binary files differ
diff --git a/.config/tint2/tint2confrc b/.config/tint2/tint2confrc
new file mode 100644
index 0000000..39b9159
--- /dev/null
+++ b/.config/tint2/tint2confrc
@@ -0,0 +1,7 @@
+#---------------------------------------------
+# TINT2CONF CONFIG FILE
+default_theme = /home/ly/.config/tint2/default.tint2rc
+cmd_property = python /usr/local/bin/tintwizard.py
+width = 500
+height = 350
+
diff --git a/.config/tint2/tint2rc b/.config/tint2/tint2rc
new file mode 100644
index 0000000..3bb4996
--- /dev/null
+++ b/.config/tint2/tint2rc
@@ -0,0 +1,137 @@
+# Tint2 config file
+# Generated by tintwizard (http://code.google.com/p/tintwizard/)
+# For information on manually configuring tint2 see http://code.google.com/p/tint2/wiki/Configure
+
+# Background definitions
+# ID 1
+rounded = 5
+border_width = 1
+background_color = #44475D 41
+border_color = #44475D 100
+
+# ID 2
+rounded = 5
+border_width = 1
+background_color = #FFFFFF 20
+border_color = #444444 66
+
+# ID 3
+rounded = 0
+border_width = 1
+background_color = #FFFFFF 20
+border_color = #444444 20
+
+# ID 4
+rounded = 5
+border_width = 1
+background_color = #DBDBDB 49
+border_color = #222222 74
+
+# ID 5
+rounded = 3
+border_width = 0
+background_color = #44475D 20
+border_color = #222222 74
+
+# ID 6
+rounded = 3
+border_width = 0
+background_color = #DE1150 34
+border_color = #222222 74
+
+# Panel
+panel_monitor = all
+panel_position = bottom center horizontal
+panel_size = 96% 36
+panel_margin = 0 0
+panel_padding = 9 3 9
+panel_dock = 0
+wm_menu = 1
+panel_layer = top
+panel_background_id = 1
+
+# Panel Autohide
+autohide = 0
+autohide_show_timeout = 0.3
+autohide_hide_timeout = 1.7
+autohide_height = 2
+strut_policy = follow_size
+
+# Taskbar
+taskbar_mode = multi_desktop
+taskbar_padding = 0 0 0
+taskbar_background_id = 2
+taskbar_active_background_id = 4
+
+# Tasks
+urgent_nb_of_blink = 16
+task_icon = 1
+task_text = 0
+task_centered = 1
+task_maximum_size = 40 20
+task_padding = 0 2
+task_background_id = 0
+task_active_background_id = 5
+task_urgent_background_id = 6
+task_iconified_background_id = 0
+
+# Task Icons
+task_icon_asb = 100 -25 -8
+task_active_icon_asb = 100 0 -5
+task_urgent_icon_asb = 100 0 -5
+task_iconified_icon_asb = 100 -25 -8
+
+# Fonts
+task_font = kiloji 10
+task_font_color = #333333 80
+task_active_font_color = #333333 100
+task_urgent_font_color = #333333 100
+task_iconified_font_color = #333333 80
+font_shadow = 0
+
+# System Tray
+systray = 1
+systray_padding = 7 0 5
+systray_sort = ascending
+systray_background_id = 2
+systray_icon_size = 18
+systray_icon_asb = 100 -20 -5
+
+# Clock
+time1_format = %H:%M
+time1_font = sans 8 bold
+time2_format = %A %d %B
+time2_font = sans 7
+clock_font_color = #FFFFFF 75
+clock_tooltip =
+clock_padding = 2 0
+clock_background_id = 0
+clock_rclick_command = gsimplecal
+
+# Tooltips
+tooltip = 1
+tooltip_padding = 5 3
+tooltip_show_timeout = 0.8
+tooltip_hide_timeout = 0.3
+tooltip_background_id = 1
+tooltip_font = Sans 8
+tooltip_font_color = #FFFFFF 100
+
+# Mouse
+mouse_middle = none
+mouse_right = close
+mouse_scroll_up = toggle
+mouse_scroll_down = iconify
+
+# Battery
+battery = 0
+battery_low_status = 20
+battery_low_cmd = notify-send "battery low"
+battery_hide = 90
+bat1_font = sans 8 bold
+bat2_font = sans 7
+battery_font_color = #FFFFFF 75
+battery_padding = 2 0
+battery_background_id = 0
+
+# End of config
diff --git a/.config/transmission-cli/settings.json b/.config/transmission-cli/settings.json
new file mode 100644
index 0000000..ac17946
--- /dev/null
+++ b/.config/transmission-cli/settings.json
@@ -0,0 +1,61 @@
+{
+ "alt-speed-down": 50,
+ "alt-speed-enabled": false,
+ "alt-speed-time-begin": 540,
+ "alt-speed-time-day": 127,
+ "alt-speed-time-enabled": false,
+ "alt-speed-time-end": 1020,
+ "alt-speed-up": 50,
+ "bind-address-ipv4": "0.0.0.0",
+ "bind-address-ipv6": "::",
+ "blocklist-enabled": false,
+ "blocklist-url": "http://www.example.com/blocklist",
+ "cache-size-mb": 4,
+ "dht-enabled": true,
+ "download-dir": "/home/ly/downloads/torrents",
+ "encryption": 1,
+ "idle-seeding-limit": 30,
+ "idle-seeding-limit-enabled": false,
+ "incomplete-dir": "/home/ly/downloads/torrents/incomplete",
+ "incomplete-dir-enabled": true,
+ "lazy-bitfield-enabled": true,
+ "lpd-enabled": false,
+ "message-level": 2,
+ "open-file-limit": 32,
+ "peer-congestion-algorithm": "",
+ "peer-limit-global": 240,
+ "peer-limit-per-torrent": 60,
+ "peer-port": 42393,
+ "peer-port-random-high": 42399,
+ "peer-port-random-low": 42390,
+ "peer-port-random-on-start": true,
+ "peer-socket-tos": "default",
+ "pex-enabled": true,
+ "port-forwarding-enabled": true,
+ "preallocation": 1,
+ "prefetch-enabled": 1,
+ "ratio-limit": 4,
+ "ratio-limit-enabled": false,
+ "rename-partial-files": true,
+ "rpc-authentication-required": false,
+ "rpc-bind-address": "0.0.0.0",
+ "rpc-enabled": true,
+ "rpc-password": "{9a24e0b15b44b272d14a1cff2db3a7c94ee4e257awDjWqMO",
+ "rpc-port": 9091,
+ "rpc-url": "/transmission/",
+ "rpc-username": "ly",
+ "rpc-whitelist": "127.0.0.1",
+ "rpc-whitelist-enabled": true,
+ "script-torrent-done-enabled": false,
+ "script-torrent-done-filename": "",
+ "speed-limit-down": 5120,
+ "speed-limit-down-enabled": false,
+ "speed-limit-up": 2048,
+ "speed-limit-up-enabled": false,
+ "start-added-torrents": true,
+ "trash-original-torrent-files": true,
+ "umask": 18,
+ "upload-slots-per-torrent": 14,
+ "watch-dir": "/home/ly/downloads/torrents/watch",
+ "watch-dir-enabled": true
+}
diff --git a/.gitignore b/.gitignore
index 4c4a467..3b651c9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,8 +4,7 @@
*.swp
*.orig
-
-### vifm
+## vifm
.vifm/Trash/
.vifm/vifminfo
@@ -36,7 +35,6 @@
### .config }}}
-
### C {{{
# Object files
*.o
@@ -67,3 +65,34 @@
__pycache__/
*.py[cod]
+### private {{{
+# ssh
+.ssh/
+
+# abook
+.abook/address*
+
+# msmtp
+.msmtp/
+
+# offlineimap
+.offlineimap/Account-*
+.offlineimap/Repository-*
+.offlineimap/*.gpg
+.offlineimap/pid
+.offlineimap/lock
+
+# mutt
+.mutt/aliases
+.mutt/*.muttrc
+.mutt/cache/
+.mutt/tmp/
+
+# todo
+.todo/todo.txt
+.todo/done.txt
+.todo/report.txt
+
+.netrc
+### private }}}
+
diff --git a/.lftp/rc b/.lftp/rc
index f70b0c6..199415d 100644
--- a/.lftp/rc
+++ b/.lftp/rc
@@ -1,21 +1,112 @@
-# ~/.lftp/rc
-# ~/.lftprc
-#
-# lftp configurations
-#
-# Weitian LI <liweitianux@gmail.com>
-# 2014/05/17
-#
+##
+## lftp config file
+## ~/.lftp/rc
+## ~/.lftprc
+##
+## LIweitiaNux <liweitianux@gmail.com>
+## August 16, 2012
+##
+## Ref: http://ihavanna.org/linux/225
+##
+
+
+## debug
+#debug 3
+
+## character settings {{{
+set ftp:charset GBK
+set sftp:charset UTF-8
+set file:charset UTF-8
+## charset }}}
+
+## alias {{{
+alias nocharset "set ftp:charset; set file:charset"
+alias gbk "set ftp:charset GBK; set file:charset UTF-8"
+alias utf8 "set ftp:charset UTF-8; set file:charset UTF-8"
+
+alias reconnect "close; cache flush; cd ."
+alias passive "set ftp:passive-mode"
+## alias }}}
+
+## settings {{{
+# history
+set cmd:csh-history on
+
+# default protocol selection
+set default-protocol/ftp.* ftp
+set default-protocol/www.* http
+set default-protocol/localhost file
+
+# passive mode
+set ftp:passive-mode yes
-### character set {{{
-set file:charset "utf-8"
-set ftp:charset "gbk"
-### charset }}}
+# pget
+set pget:default-n 5
-### ssl {{{
-# fix certificate verification not trusted
+# makes lftp faster but doesn't work with some sites/routers
+# set ftp:sync-mode off
+
+# ssl
+set ftp:ssl-protect-data yes
+#set ftp:ssl-allow no
+#set ftp:ssl-force no
+# for sites use ssl, but NOT purchase a proper SSL
+# NOTE: Middle-man attacks
+# Ref: http://rajaseelan.com/2011/12/18/lftp-fatal-error-certificate-verification-not-trusted/
set ssl:verify-certificate no
-### ssl }}}
+
+## settings }}}
+
+## appearance {{{
+# make prompt look better
+# colors (contributed by Matthew <mwormald@optusnet.com.au>)
+set prompt "\[\e[0;33m\][\[\e[0;34m\]f\[\e[1m\]t\[\e[37m\]p\[\e[0;33m\]] \[\e[1;32m\]\u\[\e[0;33m\]\@\[\e[1;31m\]\h\[\e[0;33m\]:\[\e[1;34m\]\w\[\e[0;33m\] >\[\e[0m\] "
+# Uncomment the following two lines to make switch cls and ls, making
+# cls the default.
+alias ls command cls
+alias hostls command 'ls --color'
+
+# Terminal strings to set titlebars for terminals that don't
+# properly specify tsl and fsl capabilities.
+# Use cmd:set-term-status to enable this.
+set cmd:term-status/*screen* "\e_\T\e\\"
+set cmd:term-status/*xterm* "\e[11;0]\e]2;\T\007\e[11]"
+set cmd:term-status/*rxvt* "\e[11;0]\e]2;\T\007\e[11]"
+set cmd:set-term-status on
+## appearance }}}
+
+## proxy {{{
+# Proxy can help to pass a firewall
+# Environment variables ftp_proxy, http_proxy and no_proxy are used to
+# initialize the below variables automatically. You can set them here too.
+#
+# ftp:proxy must communicate with client over ftp protocol, squid won't do.
+# This can be e.g. TIS-FWTK or rftpd. User and password are optional.
+# set ftp:proxy ftp://[user:pass@]your_ftp_proxy:port
+# ...but squid still can be used to access ftp servers, using hftp protocol:
+# set ftp:proxy http://your.squid.address:port
+# ...if squid allows CONNECT to arbitrary ports, then you can use CONNECT
+# instead of hftp:
+# set ftp:use-hftp no
+
+# no proxy for host
+# set ftp:proxy/local_host ""
+# or domain
+# set ftp:proxy/*.domain.com ...
+
+# http:proxy must communicate with client over http protocol, e.g. squid.
+# Default port is 3128.
+# set http:proxy your_http_proxy[:port]
+# hftp:proxy must also be an http proxy. It is used for FTP over HTTP access.
+# set hftp:proxy your_http_proxy[:port]
+
+# net:no-proxy disables proxy usage for list of domains.
+# set net:no-proxy .domain.com,.otherdom.net
+
+# If you don't have direct ftp access, this setting can be useful to select
+# hftp instead of ftp automatically.
+# set ftp:proxy http://your.http.proxy:port
+## proxy }}}
-# vim: set ts=8 sw=4 tw=0 fenc=utf-8 ft=lftp: #
+# vim: set ts=8 sw=4 tw=0 fenc=utf-8 ft=lftp: #
diff --git a/.rtorrent.rc b/.rtorrent.rc
new file mode 100644
index 0000000..339cbeb
--- /dev/null
+++ b/.rtorrent.rc
@@ -0,0 +1,193 @@
+#
+# rtorrent configure file
+#
+
+### shortcuts ###
+# Ctrl-q: closes rTorrent, done twice makes the program shutdown
+# without waiting to send stopping information to the trackers
+# Left arrow: returns to the previous screen
+# Right arrow: goes to the next screen
+# a|s|d: increase global upload throttle about 1|5|50 KB/s
+# A|S|D: increase global download throttle about 1|5|50 KB/s
+# z|x|c: decrease global upload throttle about 1|5|50 KB/s
+# Z|X|C: decrease global download throttle about 1|5|50 KB/s
+# Ctrl-S: starts download
+# Ctrl-D: stops an active download, removes a stopped download
+# + or -: changes the download priority of selected torrent
+# Backspace: adds the specified .torrent. after pressing this button
+# write fuul path or URL of .torrent file
+
+# This is an example resource file for rTorrent. Copy to
+# ~/.rtorrent.rc and enable/modify the options as needed. Remember to
+# uncomment the options you wish to enable.
+
+# Maximum and minimum number of peers to connect to per torrent.
+#min_peers = 40
+max_peers = 52
+
+# Same as above but for seeding completed torrents (-1 = same as downloading)
+#min_peers_seed = 10
+max_peers_seed = 52
+
+# Maximum number of simultanious uploads per torrent.
+max_uploads = 8
+
+# Global upload and download rate in KiB. "0" for unlimited.
+download_rate = 0
+upload_rate = 0
+
+# Default directory to save the downloaded torrents.
+#directory = /home/[user]/torrents/
+#directory = ~/downloads/torrents
+
+# Default session directory. Make sure you don't run multiple instance
+# of rtorrent using the same session directory. Perhaps using a
+# relative path?
+session = ~/downloads/torrents/.session/
+
+# Watch a directory for new torrents, and stop those that have been detected
+#schedule = watch_directory,5,5,load_start="~/downloads/torrents/*.torrent"
+# stop downloading after the torrent file removed
+schedule = untied_directory,5,5,stop_untied=
+schedule = tied_directory,5,5,start_tied=
+
+# Close torrents when diskspace is low.
+schedule = low_diskspace,5,60,close_low_diskspace=2000M
+
+# Stop torrents when reaching upload ratio in percent,
+# when also reaching total upload in bytes, or when
+# reaching final upload ratio in percent.
+# example: stop at ratio 2.0 with at least 200 MB uploaded, or else ratio 20.0
+### error ###
+#schedule = ratio,60,60,stop_on_ratio=200,200M,2000
+
+# The ip address reported to the tracker.
+#ip = 127.0.0.1
+#ip = rakshasa.no
+
+# The ip address the listening socket and outgoing connections is
+# bound to.
+#bind = 127.0.0.1
+#bind = rakshasa.no
+
+# Port range to use for listening.
+port_range = 42396-43000
+
+# Start opening ports at a random position within the port range.
+port_random = yes
+
+# Encryption options, set to none (default) or any combination of the following:
+# allow_incoming, try_outgoing, require, require_RC4, enable_retry, prefer_plaintext
+#
+# The example value allows incoming encrypted connections, starts unencrypted
+# outgoing connections but retries with encryption if they fail, preferring
+# plaintext to RC4 encryption after the encrypted handshake
+#
+# encryption = allow_incoming,enable_retry,prefer_plaintext
+encryption = allow_incoming,try_outgoing,enable_retry
+
+# Enable DHT support for trackerless torrents or when all trackers are down.
+# May be set to "disable" (completely disable DHT), "off" (do not start DHT),
+# "auto" (start and stop DHT as needed), or "on" (start DHT immediately).
+# The default is "off". For DHT to work, a session directory must be defined.
+dht = auto
+
+# UDP port to use for DHT.
+dht_port = 6881
+
+# Enable peer exchange (for torrents not marked private)
+peer_exchange = yes
+
+# Check hash for finished torrents. Might be usefull until the bug is
+# fixed that causes lack of diskspace not to be properly reported.
+check_hash = yes
+
+use_udp_trackers = yes
+
+# Alternative calls to bind and ip that should handle dynamic ip's.
+#schedule = ip_tick,0,1800,ip=rakshasa
+#schedule = bind_tick,0,1800,bind=rakshasa
+
+# for chinese support
+encoding_list = UTF-8
+
+# press 9 in your rtorrent client to see the changes in action
+schedule = filter_active,30,30,"view_filter = active,\"or={d.get_up_rate=,d.get_down_rate=}\""
+
+# for remote management
+#scgi_port = localhost:5000
+
+
+#### Automatically Move Completed Torrent Data to 'Completed' Folders
+
+# location where new torrent data is placed, and where you should place your
+# 'complete' data before you place your *.torrent file into the watch folder
+directory = ~/downloads/torrents/incomplete
+
+# schedule a timer event named 'watch_directory_1':
+# 1) triggers 10 seconds after rtorrent starts
+# 2) triggers at 10 second intervals thereafter
+# 3) Upon trigger, attempt to load (and start) new *.torrent files found in /home/user/torrents/watch/
+# 4) set a variable named 'custom1' with the value "/home/user/torrents/complete"
+# NOTE: if you don't want it to automatically start the torrent, change 'load_start' to 'load'
+schedule = watch_directory_1,10,10,"load_start=~/downloads/torrents/watch/*.torrent,d.set_custom1=~/downloads/torrents/complete"
+
+# insert a method with the alias 'checkdirs1'
+# 1) returns true if the current path of the torrent data is not equal to the value of custom1
+# 2) otherwise, returns false
+system.method.insert=checkdirs1,simple,"not=\"$equal={d.get_custom1=,d.get_base_path=}\""
+
+# insert a method with the alias 'movecheck1'
+# 1) returns true if all 3 commands return true ('result of checkdirs1' && 'torrent is 100% done', 'custom1 variable is set')
+# 2) otherwise, returns false
+system.method.insert=movecheck1,simple,"and={checkdirs1=,d.get_complete=,d.get_custom1=}"
+
+# insert a method with the alias 'movedir1'
+# (a series of commands, separated by ';')
+# 1) "set path of torrent to equal the value of custom1";
+# 2) "mv -u <current data path> <custom1 path>";
+# 3) "clear custom1", "stop the torrent","resume the torrent"
+# 4) stop the torrent
+# 5) start the torrent (to get the torrent to update the 'base path')
+system.method.insert=movedir1,simple,"d.set_directory=$d.get_custom1=;execute=mv,-u,$d.get_base_path=,$d.get_custom1=;d.set_custom1=;d.stop=;d.start="
+
+# set a key with the name 'move_hashed1' that is triggered by the hash_done event.
+# 1) When hashing of a torrent completes, this custom key will be triggered.
+# 2) when triggered, execute the 'movecheck1' method and check the return value.
+# 3) if the 'movecheck' method returns 'true', execute the 'movedir1' method we inserted above.
+# NOTE: 'branch' is an 'if' conditional statement: if(movecheck1){movedir1}
+system.method.set_key=event.download.hash_done,move_hashed1,"branch={$movecheck1=,movedir1=}"
+
+
+#
+# Do not modify the following parameters unless you know what you're doing.
+#
+# Hash read-ahead controls how many MB to request the kernel to read
+# ahead. If the value is too low the disk may not be fully utilized,
+# while if too high the kernel might not be able to keep the read
+# pages in memory thus end up trashing.
+#hash_read_ahead = 10
+
+# Interval between attempts to check the hash, in milliseconds.
+#hash_interval = 100
+
+# Number of attempts to check the hash while using the mincore status,
+# before forcing. Overworked systems might need lower values to get a
+# decent hash checking rate.
+#hash_max_tries = 10
+
+# Max number of files to keep open simultaniously.
+#max_open_files = 128
+
+# Number of sockets to simultaneously keep open.
+#max_open_sockets = <no default>
+
+
+# Example of scheduling commands: Switch between two ip's every 5
+# seconds.
+#schedule = "ip_tick1,5,10,ip=torretta"
+#schedule = "ip_tick2,10,10,ip=lampedusa"
+
+# Remove a scheduled event.
+#schedule_remove = "ip_tick1"
+
diff --git a/.screenrc b/.screenrc
new file mode 100644
index 0000000..66c8e05
--- /dev/null
+++ b/.screenrc
@@ -0,0 +1,83 @@
+# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= #
+# Use this line if you want instant charset mapping from gbk to
+# unicode. Conflict with mutt's unicode setting.
+#defencoding gbk
+
+# hardstatus line
+hardstatus alwayslastline
+#left aligned
+#hardstatus string "%{= R}[%{y}%l%{r}][ %{=b b}%-w%{=rb db}%>%n %t%{-}%+w%{-b}%< %=%{R}][%{G}%c %{M}%D %m-%d%{R}]"
+#center aligned
+hardstatus string "%{= B}:%{= b}: %{= r}[ %{=b G}%H%{= r} ] %= %{=b b}%-w%{=rb db}%>%n %t%{-}%+w %=%{= r}[ %{G}%c %{M}%D %m-%d %{r}] %{= b}:%{B}:"
+#caption always "%{= mW} %= %H %="
+#caption always "%{= gk}%-Lw%{= rW}%50> %n%f* %t %{-}%+Lw%< %= %{= Gk} %H %{= rW} %l %{= Gk} %0c:%s %d/%m %{-}"
+#new version from vermaden
+#hardstatus string '%{= M} %H%{= G} %l %= %{= w}%-w%{+b r}%n*%t%{-b r}%{w}%+w %= %{c}%d %D %{B}%c '
+# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= #
+## Some general options ##
+
+# Make the xterm scroller work in screen, also works
+# with mouse scrollwheel(does not work...)
+terminfo xterm*|rxvt ti@:te@
+#allow bold
+#attrcolor b ".I"
+## erase background with current bg color
+#defbce "on"
+#fix rxvt-unicode 256 color problem
+terminfo rxvt-unicode 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
+# tell screen how to set colors. AB = background, AF=foreground
+#terminfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
+#dynamic title
+terminfo xterm* 'XT:hs:ts=\E]2;:fs=\007:ds=\E]2;screen\007'
+
+# Automatically detach on hangup, or the screen will keep eating your memory after the terminal emulator has been terminated.
+autodetach on # default: on
+
+# Refresh the display when exiting programs like vim, nano, irssi and etc.
+altscreen on
+
+#define a large scrollback buffer
+defscrollback 1000
+
+# Set messages timeout to 5 second:
+msgwait 4
+msgminwait 1
+pow_detach_msg "Screen session of \$LOGNAME \$:cr:\$:nl:ended."
+#version
+# start message:
+startup_message off # default: on
+
+# use audio bell
+vbell off
+vbell_msg " Wuff ---- Wuff!! "
+
+#nethack style messages
+nethack on
+
+#utf-8 handling
+defutf8 on
+
+attrcolor b ".I"
+
+#use zshell as default shell
+#shell zsh
+shell /bin/zsh
+
+# =-=-=-=-=-=-=-=-=-=-=Key bindings-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= #
+# bind F1 to select 1
+# bind F7 to detach screen session from this terminal
+# bind F8 to kill current screen window.
+# bind F9 to create a new screen
+# bind F10 to rename current screen window
+# bind F11 to move to previous window
+# bind F12 to move to next window
+#bindkey -k k1 select 1
+#bindkey -k k7 detach
+#bindkey -k k8 kill
+#bindkey -k k9 screen
+#bindkey -k k; title
+bindkey -k F1 prev
+bindkey -k F2 next
+# =-=-=-=-=-=-=-=-=-=-=-Sessions=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= #
+screen
+screen
diff --git a/.tcsh/ciaoinit.csh b/.tcsh/ciaoinit.csh
new file mode 100644
index 0000000..3079cdc
--- /dev/null
+++ b/.tcsh/ciaoinit.csh
@@ -0,0 +1,21 @@
+#!/bin/csh -
+#
+# CIAO settings
+#
+unset printexitvalue
+
+set HEA_STATE="`echo $PATH | tr ':' '\n' | grep 'heasoft'`"
+set CIAO_STATE="`echo $PATH | tr ':' '\n' | grep 'ciao'`"
+if ( "x${HEA_STATE}" == "x" ) then
+ heainit
+endif
+if ( "x${CIAO_STATE}" == "x" ) then
+ source $CIAO_PATH/bin/ciao.csh
+else
+ source $CIAO_PATH/bin/ciao.csh -o
+endif
+unset HEA_STATE
+unset CIAO_STATE
+
+exit 0
+
diff --git a/.tcsh/completion/complete.tcsh b/.tcsh/completion/complete.tcsh
new file mode 100644
index 0000000..75b0976
--- /dev/null
+++ b/.tcsh/completion/complete.tcsh
@@ -0,0 +1,1241 @@
+#
+# $tcsh: complete.tcsh,v 1.51 2007/10/01 21:51:59 christos Exp $
+# example file using the new completion code
+#
+# Debian GNU/Linux
+# /usr/share/doc/tcsh/examples/complete.gz
+#
+# This file may be read from user's ~/.cshrc or ~/.tcshrc file by
+# decompressing it into the home directory as ~/.complete and
+# then adding the line "source ~/.complete" and maybe defining
+# some of the shell variables described below.
+#
+# Added two Debian-specific completions: dpkg and dpkg-deb (who
+# wrote them?). Changed completions of several commands. The ones
+# are evaluated if the `traditional_complete' shell variable is
+# defined.
+#
+# Debian enhancements by Vadim Vygonets <vadik@cs.huji.ac.il>.
+# Bugfixes and apt completions by Miklos Quartus <miklos.quartus@nokia.com>.
+# Cleanup by Martin A. Godisch <martin@godisch.de>.
+#
+# LY4ever
+# Last Modified: April 24, 2011
+
+onintr -
+if (! $?prompt) goto end
+
+if ($?tcsh) then
+ if ($tcsh != 1) then
+ set rev=$tcsh:r
+ set rel=$rev:e
+ set pat=$tcsh:e
+ set rev=$rev:r
+ endif
+
+ if ($rev > 5 && $rel > 1) then
+ set _complete=1
+ endif
+
+ unset rev rel pat
+endif
+
+
+if ($?_complete) then
+ set noglob
+
+ if ( ! $?hosts ) set hosts
+ #foreach f ("$HOME/.hosts" /usr/local/etc/csh.hosts "$HOME/.rhosts" /etc/hosts.equiv)
+ # if ( -r "$f" ) then
+ # set hosts = ($hosts `grep -v "+" "$f" | grep -E -v "^#" | tr -s " " "\t" | cut -f 1`)
+ # endif
+ #end
+
+ if ( -r "$HOME/.netrc" ) then
+ set f=`awk '/machine/ { print $2 }' < "$HOME/.netrc"` >& /dev/null
+ set hosts=($hosts $f)
+ endif
+
+ if ( -r "$HOME/.ssh/known_hosts" ) then
+ set f=`cat "$HOME/.ssh/known_hosts" | cut -f 1 -d \ ` >& /dev/null
+ set f=`cat "$HOME/.ssh/known_hosts" | cut -f 1 -d \ | sed -e 's/,/ /g'` >& /dev/null
+ set hosts=($hosts $f)
+ endif
+
+ unset f
+
+ if ( ! $?hosts ) then
+ set hosts=(hyperion.ee.cornell.edu phaeton.ee.cornell.edu \
+ guillemin.ee.cornell.edu vangogh.cs.berkeley.edu \
+ ftp.uu.net prep.ai.mit.edu export.lcs.mit.edu \
+ labrea.stanford.edu sumex-aim.stanford.edu \
+ tut.cis.ohio-state.edu)
+ endif
+
+ complete ywho n/*/\$hosts/ # argument from list in $hosts
+ complete rsh p/1/\$hosts/ c/-/"(l n)"/ n/-l/u/ N/-l/c/ n/-/c/ p/2/c/ p/*/f/
+ complete ssh p/1/\$hosts/ c/-/"(l n)"/ n/-l/u/ N/-l/c/ n/-/c/ p/2/c/ p/*/f/
+ complete xrsh p/1/\$hosts/ c/-/"(l 8 e)"/ n/-l/u/ N/-l/c/ n/-/c/ p/2/c/ p/*/f/
+ complete rlogin p/1/\$hosts/ c/-/"(l 8 e)"/ n/-l/u/
+ complete telnet p/1/\$hosts/ p/2/x:'<port>'/ n/*/n/
+
+ complete cd p/1/d/ # Directories only
+ complete chdir p/1/d/
+ complete pushd p/1/d/
+ complete popd p/1/d/
+ complete pu p/1/d/
+ complete po p/1/d/
+ complete complete p/1/X/ # Completions only
+ complete uncomplete n/*/X/
+ complete exec p/1/c/ # Commands only
+ complete trace p/1/c/
+ complete strace p/1/c/
+ complete which n/*/c/
+ complete where n/*/c/
+ complete skill p/1/c/
+ complete dde p/1/c/
+ complete adb c/-I/d/ n/-/c/ N/-/"(core)"/ p/1/c/ p/2/"(core)"/
+ complete sdb p/1/c/
+ complete dbx c/-I/d/ n/-/c/ N/-/"(core)"/ p/1/c/ p/2/"(core)"/
+ complete xdb p/1/c/
+ complete gdb n/-d/d/ n/*/c/
+ complete ups p/1/c/
+ complete set 'c/*=/f/' 'p/1/s/=' 'n/=/f/'
+ complete unset n/*/s/
+ complete alias p/1/a/ # only aliases are valid
+ complete unalias n/*/a/
+ complete xdvi n/*/f:*.dvi/ # Only files that match *.dvi
+ complete dvips n/*/f:*.dvi/
+ complete dvipdfm n/*/f:*.dvi/
+ complete dvipdfmx n/*/f:*.dvi/
+ complete apvlv n/*/f:*.pdf/
+
+ if ($?traditional_complete) then
+ complete tex n/*/f:*.tex/ # Only files that match *.tex
+ else
+ complete tex n/*/f:*.{tex,texi}/ # Files that match *.tex and *.texi
+ endif
+
+ complete latex n/*/f:*.{tex,ltx}/
+ complete lualatex n/*/f:*.{tex,ltx}/
+ complete su c/--/"(login fast preserve-environment command shell \
+ help version)"/ c/-/"(f l m p c s -)"/ \
+ n/{-c,--command}/c/ \
+ n@{-s,--shell}@'`cat /etc/shells`'@ n/*/u/
+ complete cc c/-[IL]/d/ \
+ c@-l@'`\ls -1 /usr/lib/lib*.a | sed s%^.\*/lib%%\;s%\\.a\$%%`'@ \
+ c/-/"(o l c g L I D U)"/ n/*/f:*.[coasi]/
+ complete acc c/-[IL]/d/ \
+ c@-l@'`\ls -1 /usr/lang/SC1.0/lib*.a | sed s%^.\*/lib%%\;s%\\.a\$%%`'@ \
+ c/-/"(o l c g L I D U)"/ n/*/f:*.[coasi]/
+ complete gcc c/-[IL]/d/ \
+ c/-f/"(caller-saves cse-follow-jumps delayed-branch \
+ elide-constructors expensive-optimizations \
+ float-store force-addr force-mem inline \
+ inline-functions keep-inline-functions \
+ memoize-lookups no-default-inline \
+ no-defer-pop no-function-cse omit-frame-pointer \
+ rerun-cse-after-loop schedule-insns \
+ schedule-insns2 strength-reduce \
+ thread-jumps unroll-all-loops \
+ unroll-loops syntax-only all-virtual \
+ cond-mismatch dollars-in-identifiers \
+ enum-int-equiv no-asm no-builtin \
+ no-strict-prototype signed-bitfields \
+ signed-char this-is-variable unsigned-bitfields \
+ unsigned-char writable-strings call-saved-reg \
+ call-used-reg fixed-reg no-common \
+ no-gnu-binutils nonnull-objects \
+ pcc-struct-return pic PIC shared-data \
+ short-enums short-double volatile)"/ \
+ c/-W/"(all aggregate-return cast-align cast-qual \
+ comment conversion enum-clash error format \
+ id-clash-len implicit missing-prototypes \
+ no-parentheses pointer-arith return-type shadow \
+ strict-prototypes switch uninitialized unused \
+ write-strings)"/ \
+ c/-m/"(68000 68020 68881 bitfield fpa nobitfield rtd \
+ short c68000 c68020 soft-float g gnu unix fpu \
+ no-epilogue)"/ \
+ c/-d/"(D M N)"/ \
+ c/-/"(f W vspec v vpath ansi traditional \
+ traditional-cpp trigraphs pedantic x o l c g L \
+ I D U O O2 C E H B b V M MD MM i dynamic \
+ nodtdlib static nostdinc undef)"/ \
+ c/-l/f:*.a/ \
+ n/*/f:*.{c,C,cc,o,a,s,i}/
+ complete g++ n/*/f:*.{C,cc,o,s,i}/
+ complete CC n/*/f:*.{C,cc,cpp,o,s,i}/
+ complete rm c/--/"(directory force interactive verbose \
+ recursive help version)"/ c/-/"(d f i v r R -)"/ \
+ n/*/f:^*.{c,cc,C,h,in}/ # Protect precious files
+ complete vi n/*/f:^*.[oa]/
+ complete bindkey N/-a/b/ N/-c/c/ n/-[ascr]/'x:<key-sequence>'/ \
+ n/-[svedlr]/n/ c/-[vedl]/n/ c/-/"(a s k c v e d l r)"/\
+ n/-k/"(left right up down)"/ p/2-/b/ \
+ p/1/'x:<key-sequence or option>'/
+
+ complete find n/-fstype/"(nfs 4.2)"/ n/-name/f/ \
+ n/-type/"(c b d f p l s)"/ n/-user/u/ n/-group/g/ \
+ n/-exec/c/ n/-ok/c/ n/-cpio/f/ n/-ncpio/f/ n/-newer/f/ \
+ c/-/"(fstype name perm prune type user nouser \
+ group nogroup size inum atime mtime ctime exec \
+ ok print ls cpio ncpio newer xdev depth \
+ daystart follow maxdepth mindepth noleaf version \
+ anewer cnewer amin cmin mmin true false uid gid \
+ ilname iname ipath iregex links lname empty path \
+ regex used xtype fprint fprint0 fprintf \
+ print0 printf not a and o or)"/ \
+ n/*/d/
+
+ complete -%* c/%/j/ # fill in the jobs builtin
+ complete {fg,bg,stop} c/%/j/ p/1/"(%)"//
+
+ complete limit c/-/"(h)"/ n/*/l/
+ complete unlimit c/-/"(h)"/ n/*/l/
+
+ #complete -co* p/0/"(compress)"/ # make compress completion
+ # not ambiguous
+
+ if ($?traditional_complete) then
+ complete zcat n/*/f:*.Z/
+ else
+ # "zcat" may be linked to "compress" or "gzip"
+ if (-X zcat) then
+ zcat --version >& /dev/null
+ if ($status != 0) then
+ complete zcat n/*/f:*.Z/
+ else
+ complete zcat c/--/"(force help license quiet version)"/ \
+ c/-/"(f h L q V -)"/ n/*/f:*.{gz,Z,z,zip}/
+ endif
+ endif
+ endif
+
+ complete finger c/*@/\$hosts/ n/*/u/@
+ complete ping p/1/\$hosts/
+ complete traceroute p/1/\$hosts/
+
+ complete {talk,ntalk,phone} p/1/'`users | tr " " "\012" | uniq`'/ \
+ n/*/\`who\ \|\ grep\ \$:1\ \|\ awk\ \'\{\ print\ \$2\ \}\'\`/
+
+ complete ftp c/-/"(d i g n v)"/ n/-/\$hosts/ p/1/\$hosts/ n/*/n/
+
+ # this one is simple...
+ #complete rcp c/*:/f/ C@[./\$~]*@f@ n/*/\$hosts/:
+ # From Michael Schroeder <mlschroe@immd4.informatik.uni-erlangen.de>
+ # This one will rsh to the file to fetch the list of files!
+ complete rcp 'c%*@*:%`set q=$:-0;set q="$q:s/@/ /";set q="$q:s/:/ /";set q=($q " ");rsh $q[2] -l $q[1] ls -dp $q[3]\*`%' 'c%*:%`set q=$:-0;set q="$q:s/:/ /";set q=($q " ");rsh $q[1] ls -dp $q[2]\*`%' 'c%*@%$hosts%:' 'C@[./$~]*@f@' 'n/*/$hosts/:'
+
+ complete dd c/--/"(help version)"/ c/[io]f=/f/ \
+ c/conv=*,/"(ascii ebcdic ibm block unblock \
+ lcase notrunc ucase swab noerror sync)"/,\
+ c/conv=/"(ascii ebcdic ibm block unblock \
+ lcase notrunc ucase swab noerror sync)"/,\
+ c/*=/x:'<number>'/ \
+ n/*/"(if of conv ibs obs bs cbs files skip file seek count)"/=
+
+ complete nslookup p/1/x:'<host>'/ p/2/\$hosts/
+
+ complete ar c/[dmpqrtx]/"(c l o u v a b i)"/ p/1/"(d m p q r t x)"// \
+ p/2/f:*.a/ p/*/f:*.o/
+
+ # these should be merged with the MH completion hacks below - jgotts
+ complete {refile,sprev,snext,scan,pick,rmm,inc,folder,show} \
+ "c@+@F:$HOME/Mail/@"
+
+ # these and interrupt handling from Jaap Vermeulen <jaap@sequent.com>
+ complete {rexec,rxexec,rxterm,rmterm} \
+ 'p/1/$hosts/' 'c/-/(l L E)/' 'n/-l/u/' 'n/-L/f/' \
+ 'n/-E/e/' 'n/*/c/'
+ complete kill 'c/-/S/' 'c/%/j/' \
+ 'n/*/`ps -u $LOGNAME | awk '"'"'{print $1}'"'"'`/'
+
+ # these from Marc Horowitz <marc@cam.ov.com>
+ complete attach 'n/-mountpoint/d/' 'n/-m/d/' 'n/-type/(afs nfs rvd ufs)/' \
+ 'n/-t/(afs nfs rvd ufs)/' 'n/-user/u/' 'n/-U/u/' \
+ 'c/-/(verbose quiet force printpath lookup debug map \
+ nomap remap zephyr nozephyr readonly write \
+ mountpoint noexplicit explicit type mountoptions \
+ nosetuid setuid override skipfsck lock user host)/' \
+ 'n/-e/f/' 'n/*/()/'
+ complete hesinfo 'p/1/u/' \
+ 'p/2/(passwd group uid grplist pcap pobox cluster \
+ filsys sloc service)/'
+
+ # these from E. Jay Berkenbilt <ejb@ERA.COM>
+ # = isn't always followed by a filename or a path anymore - jgotts
+ if ($?traditional_complete) then
+ complete ./configure \
+ 'c/--*=/f/' 'c/--{cache-file,prefix,exec-prefix,\
+ bindir,sbindir,libexecdir,datadir,\
+ sysconfdir,sharedstatedir,localstatedir,\
+ libdir,includedir,oldincludedir,infodir,\
+ mandir,srcdir}/(=)//' \
+ 'c/--/(cache-file verbose prefix exec-prefix bindir \
+ sbindir libexecdir datadir sysconfdir \
+ sharedstatedir localstatedir libdir \
+ includedir oldincludedir infodir mandir \
+ srcdir)//'
+ else
+ complete ./configure \
+ 'c@--{prefix,exec-prefix,bindir,sbindir,libexecdir,datadir,sysconfdir,sharedstatedir,localstatedir,infodir,mandir,srcdir,x-includes,x-libraries}=*@x:<directory e.g. /usr/local>'@ \
+ 'c/--cachefile=*/x:<filename>/' \
+ 'c/--{enable,disable,with}-*/x:<feature>//' \
+ 'c/--*=/x:<directory>//' \
+ 'c/--/(prefix= exec-prefix= bindir= \
+ sbindir= libexecdir= datadir= sysconfdir= \
+ sharedstatedir= localstatedir= infodir= \
+ mandir= srcdir= x-includes= x-libraries= cachefile= \
+ enable- disable- with- \
+ help no-create quiet silent version verbose )//'
+ endif
+
+ complete gs 'c/-sDEVICE=/(x11 cdjmono cdj550 epson eps9high epsonc \
+ dfaxhigh dfaxlow laserjet ljet4 sparc pbm \
+ pbmraw pgm pgmraw ppm ppmraw bit)/' \
+ 'c/-sOutputFile=/f/' 'c/-s/(DEVICE OutputFile)/=' \
+ 'c/-d/(NODISPLAY NOPLATFONTS NOPAUSE)/' 'n/*/f/'
+ complete perl 'n/-S/c/'
+ complete printenv 'n/*/e/'
+ complete sccs p/1/"(admin cdc check clean comb deledit delget \
+ delta diffs edit enter fix get help info \
+ print prs prt rmdel sccsdiff tell unedit \
+ unget val what)"/
+ complete setenv 'p/1/e/' 'c/*:/f/'
+
+ # these and method of setting hosts from Kimmo Suominen <kim@tac.nyc.ny.us>
+ if ( -f "$HOME/.mh_profile" && -x "`which folders`" ) then
+ if ( ! $?FOLDERS ) setenv FOLDERS "`folders -fast -recurse`"
+ if ( ! $?MHA ) setenv MHA "`ali | sed -e '/^ /d' -e 's/:.*//'`"
+
+ set folders = ( $FOLDERS )
+ set mha = ( $MHA )
+
+ complete ali \
+ 'c/-/(alias nolist list nonormalize normalize nouser user help)/' \
+ 'n,-alias,f,'
+
+ complete anno \
+ 'c/-/(component noinplace inplace nodate date text help)/' \
+ 'c,+,$folders,' \
+ 'n,*,`(mark | sed "s/:.*//";echo next cur prev first last)|tr " " "\12" | sort -u`,'
+
+ complete burst \
+ 'c/-/(noinplace inplace noquiet quiet noverbose verbose help)/' \
+ 'c,+,$folders,' \
+ 'n,*,`(mark | sed "s/:.*//";echo next cur prev first last)|tr " " "\12" | sort -u`,'
+
+ complete comp \
+ 'c/-/(draftfolder draftmessage nodraftfolder editor noedit file form nouse use whatnowproc nowhatnowproc help)/' \
+ 'c,+,$folders,' \
+ 'n,-whatnowproc,c,' \
+ 'n,-file,f,'\
+ 'n,-form,f,'\
+ 'n,*,`(mark | sed "s/:.*//";echo next cur prev first last)|tr " " "\12" | sort -u`,'
+
+ complete dist \
+ 'c/-/(noannotate annotate draftfolder draftmessage nodraftfolder editor noedit form noinplace inplace whatnowproc nowhatnowproc help)/' \
+ 'c,+,$folders,' \
+ 'n,-whatnowproc,c,' \
+ 'n,-form,f,'\
+ 'n,*,`(mark | sed "s/:.*//";echo next cur prev first last)|tr " " "\12" | sort -u`,'
+
+ complete folder \
+ 'c/-/(all nofast fast noheader header nopack pack noverbose verbose norecurse recurse nototal total noprint print nolist list push pop help)/' \
+ 'c,+,$folders,' \
+ 'n,*,`(mark | sed "s/:.*//";echo next cur prev first last)|tr " " "\12" | sort -u`,'
+
+ complete folders \
+ 'c/-/(all nofast fast noheader header nopack pack noverbose verbose norecurse recurse nototal total noprint print nolist list push pop help)/' \
+ 'c,+,$folders,' \
+ 'n,*,`(mark | sed "s/:.*//";echo next cur prev first last)|tr " " "\12" | sort -u`,'
+
+ complete forw \
+ 'c/-/(noannotate annotate draftfolder draftmessage nodraftfolder editor noedit filter form noformat format noinplace inplace digest issue volume whatnowproc nowhatnowproc help)/' \
+ 'c,+,$folders,' \
+ 'n,-whatnowproc,c,' \
+ 'n,-filter,f,'\
+ 'n,-form,f,'\
+ 'n,*,`(mark | sed "s/:.*//";echo next cur prev first last)|tr " " "\12" | sort -u`,'
+
+ complete inc \
+ 'c/-/(audit file noaudit nochangecur changecur file form format nosilent silent notruncate truncate width help)/' \
+ 'c,+,$folders,' \
+ 'n,-audit,f,'\
+ 'n,-form,f,'
+
+ complete mark \
+ 'c/-/(add delete list sequence nopublic public nozero zero help)/' \
+ 'c,+,$folders,' \
+ 'n,*,`(mark | sed "s/:.*//";echo next cur prev first last)|tr " " "\12" | sort -u`,'
+
+ complete mhmail \
+ 'c/-/(body cc from subject help)/' \
+ 'n,-cc,$mha,' \
+ 'n,-from,$mha,' \
+ 'n/*/$mha/'
+
+ complete mhpath \
+ 'c/-/(help)/' \
+ 'c,+,$folders,' \
+ 'n,*,`(mark | sed "s/:.*//";echo next cur prev first last)|tr " " "\12" | sort -u`,'
+
+ complete msgchk \
+ 'c/-/(nodate date nonotify notify help)/'
+
+ complete msh \
+ 'c/-/(prompt noscan scan notopcur topcur help)/'
+
+ complete next \
+ 'c/-/(draft form moreproc nomoreproc length width showproc noshowproc header noheader help)/' \
+ 'c,+,$folders,' \
+ 'n,-moreproc,c,' \
+ 'n,-showproc,c,' \
+ 'n,-form,f,'
+
+ complete packf \
+ 'c/-/(file help)/' \
+ 'c,+,$folders,' \
+ 'n,*,`(mark | sed "s/:.*//";echo next cur prev first last)|tr " " "\12" | sort -u`,'
+
+ complete pick \
+ 'c/-/(and or not lbrace rbrace cc date from search subject to othercomponent after before datefield sequence nopublic public nozero zero nolist list help)/' \
+ 'c,+,$folders,' \
+ 'n,*,`(mark | sed "s/:.*//";echo next cur prev first last)|tr " " "\12" | sort -u`,'
+
+ complete prev \
+ 'c/-/(draft form moreproc nomoreproc length width showproc noshowproc header noheader help)/' \
+ 'c,+,$folders,' \
+ 'n,-moreproc,c,' \
+ 'n,-showproc,c,' \
+ 'n,-form,f,'
+
+ complete prompter \
+ 'c/-/(erase kill noprepend prepend norapid rapid nodoteof doteof help)/'
+
+ complete refile \
+ 'c/-/(draft nolink link nopreserve preserve src file help)/' \
+ 'c,+,$folders,' \
+ 'n,-file,f,'\
+ 'n,*,`(mark | sed "s/:.*//";echo next cur prev first last)|tr " " "\12" | sort -u`,'
+
+ complete rmf \
+ 'c/-/(nointeractive interactive help)/' \
+ 'c,+,$folders,'
+
+ complete rmm \
+ 'c/-/(help)/' \
+ 'c,+,$folders,' \
+ 'n,*,`(mark | sed "s/:.*//";echo next cur prev first last)|tr " " "\12" | sort -u`,'
+
+ complete scan \
+ 'c/-/(noclear clear form format noheader header width noreverse reverse file help)/' \
+ 'c,+,$folders,' \
+ 'n,-form,f,'\
+ 'n,-file,f,'\
+ 'n,*,`(mark | sed "s/:.*//";echo next cur prev first last)|tr " " "\12" | sort -u`,'
+
+ complete send \
+ 'c/-/(alias draft draftfolder draftmessage nodraftfolder filter nofilter noformat format noforward forward nomsgid msgid nopush push noverbose verbose nowatch watch width help)/' \
+ 'n,-alias,f,'\
+ 'n,-filter,f,'
+
+ complete show \
+ 'c/-/(draft form moreproc nomoreproc length width showproc noshowproc header noheader help)/' \
+ 'c,+,$folders,' \
+ 'n,-moreproc,c,' \
+ 'n,-showproc,c,' \
+ 'n,-form,f,'\
+ 'n,*,`(mark | sed "s/:.*//";echo next cur prev first last)|tr " " "\12" | sort -u`,'
+
+ complete sortm \
+ 'c/-/(datefield textfield notextfield limit nolimit noverbose verbose help)/' \
+ 'c,+,$folders,' \
+ 'n,*,`(mark | sed "s/:.*//";echo next cur prev first last)|tr " " "\12" | sort -u`,'
+
+ complete vmh \
+ 'c/-/(prompt vmhproc novmhproc help)/' \
+ 'n,-vmhproc,c,'
+
+ complete whatnow \
+ 'c/-/(draftfolder draftmessage nodraftfolder editor noedit prompt help)/'
+
+ complete whom \
+ 'c/-/(alias nocheck check draft draftfolder draftmessage nodraftfolder help)/' \
+ 'n,-alias,f,'
+
+ complete plum \
+ 'c/-/()/' \
+ 'c,+,$folders,' \
+ 'n,*,`(mark | sed "s/:.*//";echo next cur prev first last)|tr " " "\12" | sort -u`,'
+
+ complete mail \
+ 'c/-/()/' \
+ 'n/*/$mha/'
+
+ endif
+
+ #from Dan Nicolaescu <dann@ics.uci.edu>
+ if ( $?MODULESHOME ) then
+ alias Compl_module 'find ${MODULEPATH:as/:/ /} -name .version -o -name .modulea\* -prune -o -print | sed `echo "-e s@${MODULEPATH:as%:%/\*@@g -e s@%}/\*@@g"`'
+ complete module 'p%1%(add load unload switch display avail use unuse update purge list clear help initadd initrm initswitch initlist initclear)%' \
+ 'n%{unl*,sw*,inits*}%`echo "$LOADEDMODULES:as/:/ /"`%' \
+ 'n%{lo*,di*,he*,inita*,initr*}%`eval Compl_module`%' \
+ 'N%{sw*,initsw*}%`eval Compl_module`%' 'C%-%(-append)%' 'n%{use,unu*,av*}%d%' 'n%-append%d%' \
+ 'C%[^-]*%`eval Compl_module`%'
+ endif
+
+ # from George Cox
+ complete acroread 'p/*/f:*.{pdf,PDF}/'
+ complete apachectl 'c/*/(start stop restart fullstatus status graceful \
+ configtest help)/'
+ complete appletviewer 'p/*/f:*.class/'
+ complete bison 'c/--/(debug defines file-prefix= fixed-output-files \
+ help name-prefix= no-lines no-parser output= \
+ token-table verbose version yacc)/' \
+ 'c/-/(b d h k l n o p t v y V)/' 'n/-b/f/' 'n/-o/f/' \
+ 'n/-p/f/'
+ complete bzcat c/--/"(help test quiet verbose license version)"/ \
+ c/-/"(h t L V -)"/ n/*/f:*.{bz2,tbz}/
+ complete bunzip2 c/--/"(help keep force test stdout quiet verbose \
+ license version)"/ c/-/"(h k f t c q v L V -)"/ \
+ n/*/f:*.{bz2,tbz}/
+ complete bzip2 c/--/"(help decompress compress keep force test \
+ stdout quiet verbose license version small)"/ \
+ c/-/"(h d z k f t c q v L V s 1 2 3 4 5 6 7 8 9 -)"/ \
+ n/{-d,--decompress}/f:*.{bz2,tbz}/ \
+ N/{-d,--decompress}/f:*.{bz2,tbz}/ n/*/f:^*.{bz2,tbz}/
+ complete c++ 'p/*/f:*.{c++,cxx,c,cc,C,cpp}/'
+ complete co 'p@1@`\ls -1a RCS | sed -e "s/\(.*\),v/\1/"`@'
+ complete crontab 'n/-u/u/'
+ complete camcontrol 'p/1/(cmd debug defects devlist eject inquiry \
+ modepage negotiate periphlist rescan reset start \
+ stop tags tur)/'
+ complete ctlinnd 'p/1/(addhist allow begin cancel changegroup \
+ checkfile drop feedinfo flush flushlogs go hangup \
+ logmode mode name newgroup param pause readers refile \
+ reject reload renumber reserve rmgroup send shutdown \
+ kill throttle trace xabort xexec)/'
+ complete cvs 'c/--/(help help-commands help-synonyms)/' \
+ 'p/1/(add admin annotate checkout commit diff \
+ edit editors export history import init log login \
+ logout rdiff release remove rtag status tag unedit \
+ update watch watchers)/' 'n/-a/(edit unedit commit \
+ all none)/' 'n/watch/(on off add remove)/'
+ complete svn 'C@file:///@`'"${HOME}/etc/tcsh/complete.d/svn"'`@@' \
+ 'n@ls@(file:/// svn+ssh:// svn://)@@' \
+ 'n@help@(add blame cat checkout \
+ cleanup commit copy delete export help \
+ import info list ls lock log merge mkdir \
+ move propdel propedit propget proplist \
+ propset resolved revert status switch unlock \
+ update)@' 'p@1@(add blame cat checkout \
+ cleanup commit copy delete export help \
+ import info list ls lock log merge mkdir \
+ move propdel propedit propget proplist \
+ propset resolved revert status switch unlock \
+ update)@'
+ complete cxx 'p/*/f:*.{c++,cxx,c,cc,C,cpp}/'
+ complete detex 'p/*/f:*.tex/'
+ complete edquota 'n/*/u/'
+ complete exec 'p/1/c/'
+ complete ghostview 'p/*/f:*.ps/'
+ complete gv 'p/*/f:*.ps/'
+ complete ifconfig 'p@1@`ifconfig -l`@' 'n/*/(range phase link netmask \
+ mtu vlandev vlan metric mediaopt down delete \
+ broadcast arp debug)/'
+ complete imake 'c/-I/d/'
+ complete ipfw 'p/1/(flush add delete list show zero)/' \
+ 'n/add/(allow permit accept pass deny drop reject \
+ reset count skipto num divert port tee port)/'
+ complete javac 'p/*/f:*.java/'
+ complete ldif2ldbm 'n/-i/f:*.ldif/'
+ complete libtool 'c/--mode=/(compile execute finish install link \
+ uninstall)/' 'c/--/(config debug dry-run features \
+ finish help quiet silent version mode=)/'
+ complete libtoolize 'c/--/(automake copy debug dry-run force help ltdl \
+ ltdl-tar version)/'
+ complete links 'c/-/(assume-codepage async-dns download-dir \
+ format-cache-size ftp-proxy help http-proxy \
+ max-connections max-connections-to-host \
+ memory-cache-size receive-timeout retries \
+ unrestartable-receive-timeout version)/'
+ complete natd c/-/'(alias_address config deny_incoming dynamic \
+ inport interface log log_denied log_facility \
+ outport outport port pptpalias proxy_only \
+ proxy_rule redirect_address redirect_port \
+ reverse same_ports unregistered_only use_sockets \
+ verbose)'/ 'n@-interface@`ifconfig -l`@'
+ complete netstat 'n@-I@`ifconfig -l`@'
+ complete objdump 'c/--/(adjust-vma= all-headers architecture= \
+ archive-headers debugging demangle disassemble \
+ disassemble-all disassemble-zeroes dynamic-reloc \
+ dynamic-syms endian= file-headers full-contents \
+ headers help info line-numbers no-show-raw-insn \
+ prefix-addresses private-headers reloc section-headers \
+ section=source stabs start-address= stop-address= \
+ syms target= version wide)/' \
+ 'c/-/(a h i f C d D p r R t T x s S l w)/'
+ complete xmodmap 'c/-/(display help grammar verbose quiet n e pm pk \
+ pke pp)/'
+ complete lynx 'c/-/(accept_all_cookies anonymous assume_charset= \
+ assume_local_charset= assume_unrec_charset= auth= base \
+ book buried_news cache= case cfg= child cookie_file= \
+ cookies core crawl debug_partial display= dump editor= \
+ emacskeys enable_scrollback error_file= force_html \
+ force_secure forms_options from ftp get_data head help \
+ hiddenlinks= historical homepage= image_links index= \
+ ismap link= localhost mime_header minimal \
+ newschunksize= newsmaxchunk= nobrowse nocc nocolor \
+ nofilereferer nolist nolog nopause noprint noredir \
+ noreferer nostatus number_links partial partial_thres \
+ pauth= popup post_data preparsed print pseudo_inlines \
+ raw realm reload restrictions= resubmit_posts rlogin \
+ selective show_cursor soft_dquotes source stack_dump \
+ startfile_ok tagsoup telnet term= tlog trace traversal \
+ underscore useragent= validate verbose version vikeys \
+ width=)/' 'c/(http|ftp)/$URLS/'
+ complete gmake 'c/{--directory=,--include-dir=}/d/' \
+ 'c/{--assume-new,--assume-old,--makefile,--new-file,--what-if,--file}/f/' \
+ 'c/--/(assume-new= assume-old= debug directory= \
+ dry-run environment-overrides file= help \
+ ignore-errors include-dir= jobs[=N] just-print \
+ keep-going load-average[=N] makefile= max-load[=N] \
+ new-file= no-builtin-rules no-keep-going \
+ no-print-directory old-file= print-data-base \
+ print-directory question quiet recon silent stop \
+ touch version warn-undefined-variables what-if=)/' \
+ 'n@*@`cat -s GNUMakefile Makefile makefile |& sed -n -e "/No such file/d" -e "s/^\([A-Za-z0-9-]*\):.*/\1/p"`@' \
+ 'n/=/f/' 'n/-f/f/'
+ complete mixer p/1/'(vol bass treble synth pcm speaker mic cd mix \
+ pcm2 rec igain ogain line1 line2 line3)'/ \
+ p@2@'`mixer $:-1 | awk \{\ print\ \$7\ \}`'@
+
+ complete mpg123 'c/--/(2to1 4to1 8bit aggressive au audiodevice \
+ auth buffer cdr check doublespeed equalizer frames \
+ gain halfspeed headphones left lineout list mix mono \
+ proxy quiet random rate reopen resync right scale \
+ shuffle single0 single1 skip speaker stdout stereo \
+ test verbose wav)/'
+ complete mysqladmin 'n/*/(create drop extended-status flush-hosts \
+ flush-logs flush-status flush-tables flush-privileges \
+ kill password ping processlist reload refresh \
+ shutdown status variables version)/'
+ complete mutt "c@-f=@F:${HOME}/Mail/@" \
+ n/-a/f/ \
+ n/-F/f/ n/-H/f/ \
+ n/-s/x:'<subject line>'/ \
+ n/-e/x:'<command>'/ \
+ n@-b@'`cat "${HOME}/.muttrc-alias" | awk '"'"'{print $2 }'"'"\`@ \
+ n@-c@'`cat "${HOME}/.muttrc-alias" | awk '"'"'{print $2 }'"'"\`@ \
+ n@*@'`cat "${HOME}/.muttrc-alias" | awk '"'"'{print $2 }'"'"\`@
+ complete ndc 'n/*/(status dumpdb reload stats trace notrace \
+ querylog start stop restart )/'
+
+ if ($?traditional_complete) then
+ complete nm \
+ 'c/--/(debug-syms defined-only demangle dynamic \
+ extern-only format= help line-numbers no-demangle \
+ no-sort numeric-sort portability print-armap \
+ print-file-name reverse-sort size-sort undefined-only \
+ version)/' 'p/*/f:^*.{h,C,c,cc}/'
+ else
+ complete nm \
+ 'c/--radix=/x:<radix: _o_ctal _d_ecimal he_x_adecimal>/' \
+ 'c/--target=/x:<bfdname>/' \
+ 'c/--format=/(bsd sysv posix)/n/' \
+ 'c/--/(debugsyms extern-only demangle dynamic print-armap \
+ print-file-name numeric-sort no-sort reverse-sort \
+ size-sort undefined-only portability target= radix= \
+ format= defined-only\ line-numbers no-demangle version \
+ help)//' \
+ 'n/*/f:^*.{h,c,cc,s,S}/'
+ endif
+
+ complete nmap 'n@-e@`ifconfig -l`@' 'p/*/$hostnames/'
+ complete perldoc 'n@*@`\ls -1 /usr/libdata/perl/5.*/pod | sed s%\\.pod.\*\$%%`@'
+ complete postfix 'n/*/(start stop reload abort flush check)/'
+ complete postmap 'n/1/(hash: regexp:)' 'c/hash:/f/' 'c/regexp:/f/'
+ complete rcsdiff 'p@1@`\ls -1a RCS | sed -e "s/\(.*\),v/\1/"`@'
+ complete X 'c/-/(I a ac allowMouseOpenFail allowNonLocalModInDev \
+ allowNonLocalXvidtune ar1 ar2 audit auth bestRefresh \
+ bgamma bpp broadcast bs c cc class co core deferglyphs \
+ disableModInDev disableVidMode displayID dpi dpms f fc \
+ flipPixels fn fp gamma ggamma help indirect kb keeptty \
+ ld lf logo ls nolisten string noloadxkb nolock nopn \
+ once p pn port probeonly query quiet r rgamma s \
+ showconfig sp su t terminate to tst v verbose version \
+ weight wm x xkbdb xkbmap)/'
+ complete users 'c/--/(help version)/' 'p/1/x:"<accounting_file>"/'
+ complete vidcontrol 'p/1/(132x25 132x30 132x43 132x50 132x60 40x25 80x25 \
+ 80x30 80x43 80x50 80x60 EGA_80x25 EGA_80x43 \
+ VESA_132x25 VESA_132x30 VESA_132x43 VESA_132x50 \
+ VESA_132x60 VESA_800x600 VGA_320x200 VGA_40x25 \
+ VGA_80x25 VGA_80x30 VGA_80x50 VGA_80x60)/'
+ complete where 'n/*/c/'
+ complete which 'n/*/c/'
+ complete wmsetbg 'c/-/(display D S a b c d e m p s t u w)/' \
+ 'c/--/(back-color center colors dither help match \
+ maxscale parse scale smooth tile update-domain \
+ update-wmaker version workspace)/'
+ complete xdb 'p/1/c/'
+ complete xdvi 'c/-/(allowshell debug display expert gamma hushchars \
+ hushchecksums hushspecials install interpreter keep \
+ margins nogrey noinstall nomakepk noscan paper safer \
+ shrinkbuttonn thorough topmargin underlink version)/' \
+ 'n/-paper/(a4 a4r a5 a5r)/' 'p/*/f:*.dvi/'
+ complete xlock 'c/-/(allowaccess allowroot debug description \
+ echokeys enablesaver grabmouse grabserver hide inroot \
+ install inwindow mono mousemotion nolock remote \
+ resetsaver sound timeelapsed use3d usefirst verbose \
+ wireframe background batchcount bg bitmap both3d \
+ count cycles delay delta3d display dpmsoff \
+ dpmsstandby dpmssuspend endCmd erasedelay erasemode \
+ erasetime fg font foreground geometry help \
+ icongeometry info invalid left3d lockdelay logoutCmd \
+ mailCmd mailIcon message messagefile messagefont \
+ messagesfile mode name ncolors nice nomailIcon none3d \
+ parent password planfont program resources right3d \
+ saturation size startCmd timeout username validate \
+ version visual)/' 'n/-mode/(ant atlantis ball bat \
+ blot bouboule bounce braid bubble bubble3d bug cage \
+ cartoon clock coral crystal daisy dclock decay deco \
+ demon dilemma discrete drift eyes fadeplot flag flame \
+ flow forest galaxy gears goop grav helix hop hyper \
+ ico ifs image invert julia kaleid kumppa lament laser \
+ life life1d life3d lightning lisa lissie loop lyapunov \
+ mandelbrot marquee matrix maze moebius morph3d \
+ mountain munch nose pacman penrose petal pipes puzzle \
+ pyro qix roll rotor rubik shape sierpinski slip sphere \
+ spiral spline sproingies stairs star starfish strange \
+ superquadrics swarm swirl tetris thornbird triangle \
+ tube turtle vines voters wator wire world worm xjack \
+ blank bomb random)/'
+ complete xfig 'c/-/(display)/' 'p/*/f:*.fig/'
+ complete wget c/--/"(accept= append-output= background cache= \
+ continue convert-links cut-dirs= debug \
+ delete-after directory-prefix= domains= \
+ dont-remove-listing dot-style= exclude-directories= \
+ exclude-domains= execute= follow-ftp \
+ force-directories force-html glob= header= help \
+ http-passwd= http-user= ignore-length \
+ include-directories= input-file= level= mirror \
+ no-clobber no-directories no-host-directories \
+ no-host-lookup no-parent non-verbose \
+ output-document= output-file= passive-ftp \
+ proxy-passwd= proxy-user= proxy= quiet quota= \
+ recursive reject= relative retr-symlinks save-headers \
+ server-response span-hosts spider timeout= \
+ timestamping tries= user-agent= verbose version wait=)"/
+
+ # these from Tom Warzeka <tom@waz.cc>
+
+ # this one works but is slow and doesn't descend into subdirectories
+ # complete cd C@[./\$~]*@d@ \
+ # p@1@'`\ls -1F . $cdpath | grep /\$ | sort -u`'@ n@*@n@
+
+ if ( -r /etc/shells ) then
+ complete setenv p@1@e@ n@DISPLAY@\$hosts@: n@SHELL@'`cat /etc/shells`'@
+ else
+ complete setenv p@1@e@ n@DISPLAY@\$hosts@:
+ endif
+
+ complete unsetenv n/*/e/
+
+ set _maildir = /var/mail
+ if (-r "$HOME/.mailrc") then
+ complete mail c/-/"(e i f n s u v)"/ c/*@/\$hosts/ \
+ "c@+@F:$HOME/Mail@" C@[./\$~]@f@ n/-s/x:'<subject>'/ \
+ n@-u@T:$_maildir@ n/-f/f/ \
+ n@*@'`sed -n s/alias//p "$HOME/.mailrc" | \
+ tr -s " " " " | cut -f 2`'@
+ else
+ complete mail c/-/"(e i f n s u v)"/ c/*@/\$hosts/ \
+ "c@+@F:$HOME/Mail@" C@[./\$~]@f@ n/-s/x:'<subject>'/ \
+ n@-u@T:$_maildir@ n/-f/f/ n/*/u/
+ endif
+ unset _maildir
+
+ if ($?traditional_complete) then
+ # use of $MANPATH from Dan Nicolaescu <dann@ics.uci.edu>
+ # use of 'find' adapted from Lubomir Host <host8@kepler.fmph.uniba.sk>
+ complete man \
+ 'n@1@`set q = "$MANPATH:as%:%/man1 %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.1.\*\$%%`@'\
+ 'n@2@`set q = "$MANPATH:as%:%/man2 %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.2.\*\$%%`@'\
+ 'n@3@`set q = "$MANPATH:as%:%/man3 %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.3.\*\$%%`@'\
+ 'n@4@`set q = "$MANPATH:as%:%/man4 %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.4.\*\$%%`@'\
+ 'n@5@`set q = "$MANPATH:as%:%/man5 %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.5.\*\$%%`@'\
+ 'n@6@`set q = "$MANPATH:as%:%/man6 %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.6.\*\$%%`@'\
+ 'n@7@`set q = "$MANPATH:as%:%/man7 %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.7.\*\$%%`@'\
+ 'n@8@`set q = "$MANPATH:as%:%/man8 %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.8.\*\$%%`@'\
+ 'n@9@`set q = "$MANPATH:as%:%/man9 %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.9.\*\$%%`@'\
+ 'n@0@`set q = "$MANPATH:as%:%/man0 %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.0.\*\$%%`@'\
+ 'n@n@`set q = "$MANPATH:as%:%/mann %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.n.\*\$%%`@'\
+ 'n@o@`set q = "$MANPATH:as%:%/mano %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.o.\*\$%%`@'\
+ 'n@l@`set q = "$MANPATH:as%:%/manl %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.l.\*\$%%`@'\
+ 'n@p@`set q = "$MANPATH:as%:%/manp %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.p.\*\$%%`@'\
+ c@-@"(- f k M P s S t)"@ n@-f@c@ n@-k@x:'<keyword>'@ n@-[MP]@d@ \
+ 'N@-[MP]@`\ls -1 $:-1/man? |& sed -n s%\\..\\+\$%%p`@' \
+ 'n@-[sS]@`\ls -1 $MANPATH:as%:% % |& sed -n s%^man%%p | sort -u`@'\
+ 'n@*@`find $MANPATH:as%:% % \( -type f -o -type l \) -printf "%f " |& sed -e "s%find: .*: No such file or directory%%" -e "s%\([^\.]\+\)\.\([^ ]*\) %\1 %g"`@'
+ #n@*@c@ # old way -- commands only
+ else
+ complete man n@1@'`\ls -1 /usr/man/man1 | sed s%\\.1.\*\$%%`'@ \
+ n@2@'`\ls -1 /usr/man/man2 | sed s%\\.2.\*\$%%`'@ \
+ n@3@'`\ls -1 /usr/man/man3 | sed s%\\.3.\*\$%%`'@ \
+ n@4@'`\ls -1 /usr/man/man4 | sed s%\\.4.\*\$%%`'@ \
+ n@5@'`\ls -1 /usr/man/man5 | sed s%\\.5.\*\$%%`'@ \
+ n@6@'`\ls -1 /usr/man/man6 | sed s%\\.6.\*\$%%`'@ \
+ n@7@'`\ls -1 /usr/man/man7 | sed s%\\.7.\*\$%%`'@ \
+ n@8@'`\ls -1 /usr/man/man8 | sed s%\\.8.\*\$%%`'@ \
+ n@9@'`[ -r /usr/man/man9 ] && \ls -1 /usr/man/man9 | sed s%\\.9.\*\$%%`'@ \
+ n@0@'`[ -r /usr/man/man0 ] && \ls -1 /usr/man/man0 | sed s%\\.0.\*\$%%`'@ \
+ n@new@'`[ -r /usr/man/mann ] && \ls -1 /usr/man/mann | sed s%\\.n.\*\$%%`'@ \
+ n@old@'`[ -r /usr/man/mano ] && \ls -1 /usr/man/mano | sed s%\\.o.\*\$%%`'@ \
+n@local@'`[ -r /usr/man/manl ] && \ls -1 /usr/man/manl | sed s%\\.l.\*\$%%`'@ \
+n@public@'`[ -r /usr/man/manp ]&& \ls -1 /usr/man/manp | sed s%\\.p.\*\$%%`'@ \
+ c/-/"(- f k P s t)"/ n/-f/c/ n/-k/x:'<keyword>'/ n/-P/d/ \
+ N@-P@'`\ls -1 $:-1/man? | sed s%\\..\*\$%%`'@ n/*/c/
+ endif
+
+ complete ps c/-t/x:'<tty>'/ c/-/"(a c C e g k l S t u v w x)"/ \
+ n/-k/x:'<kernel>'/ N/-k/x:'<core_file>'/ n/*/x:'<PID>'/
+ complete compress c/-/"(c f v b)"/ n/-b/x:'<max_bits>'/ n/*/f:^*.Z/
+ complete uncompress c/-/"(c f v)"/ n/*/f:*.Z/
+
+ complete uuencode p/1/f/ p/2/x:'<decode_pathname>'/ n/*/n/
+ complete uudecode c/-/"(f)"/ n/-f/f:*.{uu,UU}/ p/1/f:*.{uu,UU}/ n/*/n/
+
+ complete xhost c/[+-]/\$hosts/ n/*/\$hosts/
+ complete xpdf c/-/"(z g remote raise quit cmap rgb papercolor \
+ eucjp t1lib freetype ps paperw paperh level1 \
+ upw fullscreen cmd q v h help)"/ \
+ n/-z/x:'<zoom (-5 .. +5) or "page" or "width">'/ \
+ n/-g/x:'<geometry>'/ n/-remote/x:'<name>'/ \
+ n/-rgb/x:'<number>'/ n/-papercolor/x:'<color>'/ \
+ n/-{t1lib,freetype}/x:'<font_type>'/ \
+ n/-ps/x:'<PS_file>'/ n/-paperw/x:'<width>'/ \
+ n/-paperh/x:'<height>'/ n/-upw/x:'<password>'/ \
+ n/-/f:*.{pdf,PDF}/ \
+ N/-{z,g,remote,rgb,papercolor,t1lib,freetype,ps,paperw,paperh,upw}/f:*.{pdf,PDF}/ \
+ N/-/x:'<page>'/ p/1/f:*.{pdf,PDF}/ p/2/x:'<page>'/
+
+ complete tcsh c/-D*=/'x:<value>'/ c/-D/'x:<name>'/ \
+ c/-/"(b c d D e f F i l m n q s t v V x X -version)"/ \
+ n/-c/c/ n/{-l,--version}/n/ n/*/'f:*.{,t}csh'/
+
+ complete rpm c/--/"(query verify nodeps nofiles nomd5 noscripts \
+ nogpg nopgp install upgrade freshen erase allmatches \
+ notriggers repackage test rebuild recompile initdb \
+ rebuilddb addsign resign querytags showrc setperms \
+ setugids all file group package querybynumber qf \
+ triggeredby whatprovides whatrequires changelog \
+ configfiles docfiles dump filesbypkg info last list \
+ provides queryformat requires scripts state triggers \
+ triggerscripts allfiles badreloc excludepath checksig \
+ excludedocs force hash ignoresize ignorearch ignoreos \
+ includedocs justdb noorder oldpackage percent prefix \
+ relocate replace-files replacepkgs buildroot clean \
+ nobuild rmsource rmspec short-circuit sign target \
+ help version quiet rcfile pipe dbpath root specfile)"/\
+ c/-/"(q V K i U F e ba bb bp bc bi bl bs ta tb tp tc \
+ ti tl ts a f g p c d l R s h ? v vv -)"/ \
+ n/{-f,--file}/f/ n/{-g,--group}/g/ n/--pipe/c/ n/--dbpath/d/ \
+ n/--querybynumber/x:'<number>'/ n/--triggeredby/x:'<package>'/\
+ n/--what{provides,requires}/x:'<capability>'/ n/--root/d/ \
+ n/--{qf,queryformat}/x:'<format>'/ n/--buildroot/d/ \
+ n/--excludepath/x:'<oldpath>'/ n/--prefix/x:'<newpath>'/ \
+ n/--relocate/x:'<oldpath=newpath>'/ n/--target/x:'<platform>'/\
+ n/--rcfile/x:'<filelist>'/ n/--specfile/x:'<specfile>'/ \
+ n/{-[iUFep],--{install,upgrade,freshen,erase,package}}/f:*.rpm/
+
+ # these conform to the latest GNU versions available at press time ...
+ # updates by John Gotts <jgotts@engin.umich.edu>
+ if (-X emacs) then
+ # TW note: if your version of GNU Emacs supports the "--version" option,
+ # uncomment this line and comment the next to automatically
+ # detect the version, else set "_emacs_ver" to your version.
+ #set _emacs_ver=`emacs --version | sed -e 's%GNU Emacs %%' -e q | cut -d . -f1-2`
+ set _emacs_ver=21.3
+ set _emacs_dir=`which emacs | sed s%/bin/emacs%%`
+ complete emacs c/--/"(batch terminal display no-windows no-init-file \
+ user debug-init unibyte multibyte version help \
+ no-site-file funcall load eval insert kill)"/ \
+ c/-/"(t d nw q u f l -)"/ c/+/x:'<line_number>'/ \
+ n/{-t,--terminal}/x:'<terminal>'/ n/{-d,--display}/x:'<display>'/ \
+ n/{-u,--user}/u/ n/{-f,--funcall}/x:'<lisp_function>'/ \
+ n@{-l,--load}@F:$_emacs_dir/share/emacs/$_emacs_ver/lisp@ \
+ n/--eval/x:'<expression>'/ n/--insert/f/ n/*/f:^*[\#~]/
+ unset _emacs_ver _emacs_dir
+ endif
+
+ complete gzcat c/--/"(force help license quiet version)"/ \
+ c/-/"(f h L q V -)"/ n/*/f:*.{gz,Z,z,zip}/
+ complete gzip c/--/"(stdout to-stdout decompress uncompress \
+ force help list license no-name quiet recurse \
+ suffix test verbose version fast best)"/ \
+ c/-/"(c d f h l L n q r S t v V 1 2 3 4 5 6 7 8 9 -)"/\
+ n/{-S,--suffix}/x:'<file_name_suffix>'/ \
+ n/{-d,--{de,un}compress}/f:*.{gz,Z,z,zip,taz,tgz}/ \
+ N/{-d,--{de,un}compress}/f:*.{gz,Z,z,zip,taz,tgz}/ \
+ n/*/f:^*.{gz,Z,z,zip,taz,tgz}/
+ complete {gunzip,ungzip} c/--/"(stdout to-stdout force help list license \
+ no-name quiet recurse suffix test verbose version)"/ \
+ c/-/"(c f h l L n q r S t v V -)"/ \
+ n/{-S,--suffix}/x:'<file_name_suffix>'/ \
+ n/*/f:*.{gz,Z,z,zip,taz,tgz}/
+ complete zgrep c/-*A/x:'<#_lines_after>'/ c/-*B/x:'<#_lines_before>'/\
+ c/-/"(A b B c C e f h i l n s v V w x)"/ \
+ p/1/x:'<limited_regular_expression>'/ N/-*e/f/ \
+ n/-*e/x:'<limited_regular_expression>'/ n/-*f/f/ n/*/f/
+ complete zegrep c/-*A/x:'<#_lines_after>'/ c/-*B/x:'<#_lines_before>'/\
+ c/-/"(A b B c C e f h i l n s v V w x)"/ \
+ p/1/x:'<full_regular_expression>'/ N/-*e/f/ \
+ n/-*e/x:'<full_regular_expression>'/ n/-*f/f/ n/*/f/
+ complete zfgrep c/-*A/x:'<#_lines_after>'/ c/-*B/x:'<#_lines_before>'/\
+ c/-/"(A b B c C e f h i l n s v V w x)"/ \
+ p/1/x:'<fixed_string>'/ N/-*e/f/ \
+ n/-*e/x:'<fixed_string>'/ n/-*f/f/ n/*/f/
+ complete znew c/-/"(f t v 9 P K)"/ n/*/f:*.Z/
+ complete zmore n/*/f:*.{gz,Z,z,zip}/
+ complete zfile n/*/f:*.{gz,Z,z,zip,taz,tgz}/
+ complete ztouch n/*/f:*.{gz,Z,z,zip,taz,tgz}/
+ complete zforce n/*/f:^*.{gz,tgz}/
+
+ complete dcop 'p/1/`$:0`/ /' \
+ 'p/2/`$:0 $:1 | awk \{print\ \$1\}`/ /' \
+ 'p/3/`$:0 $:1 $:2 | sed "s%.* \(.*\)(.*%\1%"`/ /'
+
+ complete grep c/-*A/x:'<#_lines_after>'/ c/-*B/x:'<#_lines_before>'/\
+ c/--/"(extended-regexp fixed-regexp basic-regexp \
+ regexp file ignore-case word-regexp line-regexp \
+ no-messages revert-match version help byte-offset \
+ line-number with-filename no-filename quiet silent \
+ text directories recursive files-without-match \
+ files-with-matches count before-context after-context \
+ context binary unix-byte-offsets)"/ \
+ c/-/"(A a B b C c d E e F f G H h i L l n q r s U u V \
+ v w x)"/ \
+ p/1/x:'<limited_regular_expression>'/ N/-*e/f/ \
+ n/-*e/x:'<limited_regular_expression>'/ n/-*f/f/ n/*/f/
+ complete egrep c/-*A/x:'<#_lines_after>'/ c/-*B/x:'<#_lines_before>'/\
+ c/--/"(extended-regexp fixed-regexp basic-regexp \
+ regexp file ignore-case word-regexp line-regexp \
+ no-messages revert-match version help byte-offset \
+ line-number with-filename no-filename quiet silent \
+ text directories recursive files-without-match \
+ files-with-matches count before-context after-context \
+ context binary unix-byte-offsets)"/ \
+ c/-/"(A a B b C c d E e F f G H h i L l n q r s U u V \
+ v w x)"/ \
+ p/1/x:'<full_regular_expression>'/ N/-*e/f/ \
+ n/-*e/x:'<full_regular_expression>'/ n/-*f/f/ n/*/f/
+ complete fgrep c/-*A/x:'<#_lines_after>'/ c/-*B/x:'<#_lines_before>'/\
+ c/--/"(extended-regexp fixed-regexp basic-regexp \
+ regexp file ignore-case word-regexp line-regexp \
+ no-messages revert-match version help byte-offset \
+ line-number with-filename no-filename quiet silent \
+ text directories recursive files-without-match \
+ files-with-matches count before-context after-context \
+ context binary unix-byte-offsets)"/ \
+ c/-/"(A a B b C c d E e F f G H h i L l n q r s U u V \
+ v w x)"/ \
+ p/1/x:'<fixed_string>'/ N/-*e/f/ \
+ n/-*e/x:'<fixed_string>'/ n/-*f/f/ n/*/f/
+
+ complete sed c/--/"(quiet silent version help expression file)"/ \
+ c/-/"(n V e f -)"/ n/{-e,--expression}/x:'<script>'/ \
+ n/{-f,--file}/f:*.sed/ N/-{e,f,-{file,expression}}/f/ \
+ n/-/x:'<script>'/ N/-/f/ p/1/x:'<script>'/ p/2/f/
+
+ complete users c/--/"(help version)"/ p/1/x:'<accounting_file>'/
+ complete who c/--/"(heading idle count mesg message writable help \
+ version)"/ c/-/"(H i m q s T w u -)"/ \
+ p/1/x:'<accounting_file>'/ n/am/"(i)"/ n/are/"(you)"/
+
+ complete chown c/--/"(changes dereference no-dereference silent \
+ quiet reference recursive verbose help version)"/ \
+ c/-/"(c f h R v -)"/ C@[./\$~]@f@ c/*[.:]/g/ \
+ n/-/u/: p/1/u/: n/*/f/
+ complete chgrp c/--/"(changes no-dereference silent quiet reference \
+ recursive verbose help version)"/ \
+ c/-/"(c f h R v -)"/ n/-/g/ p/1/g/ n/*/f/
+ complete chmod c/--/"(changes silent quiet verbose reference \
+ recursive help version)"/ c/-/"(c f R v)"/
+ complete df c/--/"(all block-size human-readable si inodes \
+ kilobytes local megabytes no-sync portability sync \
+ type print-type exclude-type help version)"/ \
+ c/-/"(a H h i k l m P T t v x)"/
+ complete du c/--/"(all block-size bytes total dereference-args \
+ human-readable si kilobytes count-links dereference \
+ megabytes separate-dirs summarize one-file-system \
+ exclude-from exclude max-depth help version"/ \
+ c/-/"(a b c D H h k L l m S s X x)"/
+
+ complete cat c/--/"(number-nonblank number squeeze-blank show-all \
+ show-nonprinting show-ends show-tabs help version)"/ \
+ c/-/"(A b E e n s T t u v -)"/ n/*/f/
+ complete mv c/--/"(backup force interactive update verbose suffix \
+ version-control help version)"/ \
+ c/-/"(b f i S u V v -)"/ \
+ n/{-S,--suffix}/x:'<suffix>'/ \
+ n/{-V,--version-control}/"(t numbered nil existing \
+ never simple)"/ n/-/f/ N/-/d/ p/1/f/ p/2/d/ n/*/f/
+ complete cp c/--/"(archive backup no-dereference force \
+ interactive link preserve parents sparse recursive \
+ symbolic-link suffix update verbose version-control \
+ one-file-system help version)"/ \
+ c/-/"(a b d f i l P p R r S s u V v x -)"/ \
+ n/-*r/d/ n/{-S,--suffix}/x:'<suffix>'/ \
+ n/{-V,--version-control}/"(t numbered nil existing \
+ never simple)"/ n/-/f/ N/-/d/ p/1/f/ p/2/d/ n/*/f/
+ complete ln c/--/"(backup directory force no-dereference \
+ interactive symbolic suffix verbose version-control \
+ help version)"/ \
+ c/-/"(b d F f i n S s V v -)"/ \
+ n/{-S,--suffix}/x:'<suffix>'/ \
+ n/{-V,--version-control}/"(t numbered nil existing \
+ never simple)"/ n/-/f/ N/-/x:'<link_name>'/ \
+ p/1/f/ p/2/x:'<link_name>'/
+ complete touch c/--/"(date reference time help version)"/ \
+ c/-/"(a c d f m r t -)"/ \
+ n/{-d,--date}/x:'<date_string>'/ \
+ c/--time/"(access atime mtime modify use)"/ \
+ n/{-r,--file}/f/ n/-t/x:'<time_stamp>'/ n/*/f/
+ complete mkdir c/--/"(mode parents verbose help version)"/ \
+ c/-/"(p m -)"/ \
+ n/{-m,--mode}/x:'<mode>'/ n/*/d/
+ complete rmdir c/--/"(ignore-fail-on-non-empty parents verbose help \
+ version)"/ c/-/"(p -)"/ n/*/d/
+ complete env 'c/*=/f/' 'p/1/e/=/' 'p/2/c/'
+ complete tar c/-[Acru]*/"(b B C f F g G h i l L M N o P \
+ R S T v V w W X z Z)"/ \
+ c/-[dtx]*/"( B C f F g G i k K m M O p P \
+ R s S T v w x X z Z)"/ \
+ p/1/"(A c d r t u x -A -c -d -r -t -u -x \
+ --catenate --concatenate --create --diff --compare \
+ --delete --append --list --update --extract --get \
+ --help --version)"/ \
+ c/--/"(catenate concatenate create diff compare \
+ delete append list update extract get atime-preserve \
+ block-size read-full-blocks directory checkpoint file \
+ force-local info-script new-volume-script incremental \
+ listed-incremental dereference ignore-zeros \
+ ignore-failed-read keep-old-files starting-file \
+ one-file-system tape-length modification-time \
+ multi-volume after-date newer old-archive portability \
+ to-stdout same-permissions preserve-permissions \
+ absolute-paths preserve record-number remove-files \
+ same-order preserve-order same-owner sparse \
+ files-from null totals verbose label version \
+ interactive confirmation verify exclude exclude-from \
+ compress uncompress gzip ungzip use-compress-program \
+ block-compress help version)"/ \
+ c/-/"(b B C f F g G h i k K l L m M N o O p P R s S \
+ T v V w W X z Z 0 1 2 3 4 5 6 7 -)"/ \
+ C@/dev@f@ \
+ n/-c*f/x:'<new_tar_file, device_file, or "-">'/ \
+ n/{-[Adrtux]j*f,--file}/f:*.{tar.bz2,tbz}/ \
+ n/{-[Adrtux]z*f,--file}/f:*.{tar.gz,tgz}/ \
+ n/{-[Adrtux]Z*f,--file}/f:*.{tar.Z,taz}/ \
+ n/{-[Adrtux]*f,--file}/f:*.tar/ \
+ N/{-xj*f,--file}/'`tar -tjf $:-1`'/ \
+ N/{-xz*f,--file}/'`tar -tzf $:-1`'/ \
+ N/{-xZ*f,--file}/'`tar -tZf $:-1`'/ \
+ N/{-x*f,--file}/'`tar -tf $:-1`'/ \
+ n/--use-compress-program/c/ \
+ n/{-b,--block-size}/x:'<block_size>'/ \
+ n/{-V,--label}/x:'<volume_label>'/ \
+ n/{-N,--{after-date,newer}}/x:'<date>'/ \
+ n/{-L,--tape-length}/x:'<tape_length_in_kB>'/ \
+ n/{-C,--directory}/d/ \
+ N/{-C,--directory}/'`\ls $:-1`'/ \
+ n/-[0-7]/"(l m h)"/
+
+ switch ( "$OSTYPE" )
+ case "linux":
+ # Linux filesystems
+ complete mount c/-/"(a f F h l n o r s t U v V w)"/ n/-[hV]/n/ \
+ n/-o/x:'<options>'/ n/-t/x:'<vfstype>'/ \
+ n/-L/x:'<label>'/ n/-U/x:'<uuid>'/ \
+ n@*@'`grep -v "^#" /etc/fstab | tr -s " " " " | cut -f 2`'@
+ complete umount c/-/"(a h n r t v V)"/ n/-t/x:'<vfstype>'/ \
+ n/*/'`mount | cut -d " " -f 3`'/
+ breaksw
+ case "sunos*":
+ case "solaris":
+ # Solaris filesystems
+ complete mount c/-/"(a F m o O p r v V)"/ n/-p/n/ n/-v/n/ \
+ n/-o/x:'<FSType_options>'/ \
+ n@-F@'`\ls -1 /usr/lib/fs`'@ \
+ n@*@'`grep -v "^#" /etc/vfstab | tr -s " " " " | cut -f 3`'@
+ complete umount c/-/"(a o V)"/ n/-o/x:'<FSType_options>'/ \
+ n/*/'`mount | cut -d " " -f 1`'/
+ complete mountall c/-/"(F l r)"/ n@-F@'`\ls -1 /usr/lib/fs`'@
+ complete umountall c/-/"(F h k l r s)"/ n@-F@'`\ls -1 /usr/lib/fs`'@ \
+ n/-h/'`df -k | cut -s -d ":" -f 1 | sort -u`'/
+ breaksw
+ case "cygwin":
+ # Cygwin mounts
+ complete mount c/-/"(b c f h m o p s t u v x E X)"/ n/-[hmpv]/n/ \
+ n/-c/x:'/'/ \
+ n/-o/"(user system binary text exec notexec cygexec nosuid managed)"/ \
+ n@*@'`mount -p | tail -1 | cut -d " " -f 1 | xargs ls -1 | awk '"'"'{print $1":/"; } END{print "//";}'"'"'`'@
+ complete umount c/-/"(A c h s S u U v)"/ n/-[AhSUv]/n/ \
+ n@*@'`mount | grep -v noumount | cut -d " " -f 3`'@
+ breaksw
+ default:
+ breaksw
+ endsw
+
+ # these deal with NIS (formerly YP); if it's not running you don't need 'em
+ if (-X domainname) then
+ set _domain = "`domainname`"
+ set _ypdir = /var/yp # directory where NIS (YP) maps are kept
+
+ if ("$_domain" != "" && "$_domain" != "noname") then
+ complete domainname p@1@D:$_ypdir@" " n@*@n@
+ complete ypcat c@-@"(d k t x)"@ n@-x@n@ n@-d@D:$_ypdir@" " \
+ N@-d@\`\\ls\ -1\ $_ypdir/\$:-1\ \|\ sed\ -n\ s%\\\\.pag\\\$%%p\`@ \
+ n@*@\`\\ls\ -1\ $_ypdir/$_domain\ \|\ sed\ -n\ s%\\\\.pag\\\$%%p\`@
+ complete ypmatch c@-@"(d k t x)"@ n@-x@n@ n@-d@D:$_ypdir@" " \
+ N@-d@x:'<key ...>'@ n@-@x:'<key ...>'@ p@1@x:'<key ...>'@ \
+ n@*@\`\\ls\ -1\ $_ypdir/$_domain\ \|\ sed\ -n\ s%\\\\.pag\\\$%%p\`@
+ complete ypwhich c@-@"(d m t x V1 V2)"@ n@-x@n@ n@-d@D:$_ypdir@" " \
+ n@-m@\`\\ls\ -1\ $_ypdir/$_domain\ \|\ sed\ -n\ s%\\\\.pag\\\$%%p\`@ \
+ N@-m@n@ n@*@\$hosts@
+ endif
+
+ unset _domain _ypdir
+ endif
+
+ complete make \
+ 'n/-f/f/' 'c/*=/f/' \
+ 'n@*@`cat -s GNUmakefile Makefile makefile |& sed -n -e "/No such file/d" -e "/^[^ #].*:/s/:.*//p"`@'
+
+ if ( -f /etc/printcap ) then
+ set printers=(`sed -n -e "/^[^ #].*:/s/:.*//p" /etc/printcap`)
+
+ complete lpr 'c/-P/$printers/'
+ complete lpq 'c/-P/$printers/'
+ complete lprm 'c/-P/$printers/'
+ complete lpquota 'p/1/(-Qprlogger)/' 'c/-P/$printers/'
+ complete dvips 'c/-P/$printers/' 'n/-o/f:*.{ps,PS}/' 'n/*/f:*.dvi/'
+ complete dvilj 'p/*/f:*.dvi/'
+ endif
+
+ # From Alphonse Bendt
+ complete ant \
+ 'n/-f/f:*.xml/' \
+ 'n@*@`cat build.xml | sed -n -e "s/[ \t]*<target[\t\n]*name=.\([a-zA-Z0-9_:]*\).*/\1/p"`@'
+
+ if ($?P4CLIENT && -X perl) then
+ # This is from Greg Allen.
+ set p4cmds=(add branch branches commands change changes client clients \
+ counter counters delete depot depots describe diff diff2 \
+ edit filelog files fix fixes fstat group groups have help \
+ info integrate integrated job jobs jobspec label labels \
+ labelsync lock obliterate opened passwd print protect rename \
+ reopen resolve resolved revert review reviews set submit \
+ sync triggers unlock user users verify where)
+ complete p4 'p/1/$p4cmds/' 'n/help/$p4cmds/' \
+ 'n%{-l,label}%`p4 labels | sed "s/Label \([^ ]*\) .*/\1/"`%' \
+ 'n%-t%`p4 $:1s | sed "s/[^ ]* \([^ ]*\) .*/\1/"`%' \
+ 'c%*@%`p4 labels | sed "s/Label \([^ ]*\) .*/\1/"`%' \
+ 'c@//*/*@`p4 files $:-0... |& perl -nle "m%\Q$:-0\E([^#][^/# ] \
+ *)%;print "\$"1 if \\\!/no such/&&\!"\$"h{"\$"1}++"`@@' \
+ 'c@//@`p4 depots | sed "s/Depot \([^ ]*\) .*/\1/"`@/@'
+ endif
+
+ if (! $?traditional_complete) then
+ uncomplete vi
+ uncomplete vim
+ #complete {vi,vim,gvim,nvi,elvis} n/*/f:^*.{o,a,so,sa,aux,dvi,log,fig,bbl,blg,bst,idx,ilg,ind,toc}/
+ complete {ispell,spell,spellword} 'n@-d@`ls /usr/lib/ispell/*.aff | sed -e "s/\.aff//" `@' 'n/*/f:^*.{o,a,so,sa,aux,dvi,log,fig,bbl,blg,bst,idx,ilg,ind,toc}/'
+ complete elm 'n/-[Ai]/f/' 'c@=@F:$HOME/Mail/@' 'n/-s/x:\<subject\>/'
+ complete ncftp 'n@*@`sed -e '1,2d' $HOME/.ncftp/bookmarks | cut -f 1,2 -d "," | tr "," "\012" | sort | uniq ` '@
+ complete bibtex 'n@*@`ls *.aux | sed -e "s/\.aux//"`'@
+ complete dvi2tty n/*/f:*.dvi/ # Only files that match *.dvi
+ uncomplete gv
+ uncomplete ghostview
+ complete {gv,ghostview} 'n/*/f:*.{ps,eps,epsi}/'
+ complete enscript \
+ 'c/--/(columns= pages= header= no-header truncate-lines \
+ line-numbers setpagedevice= escapes font= \
+ header-font= fancy-header no-job-header \
+ highlight-bars indent= filter= borders page-prefeed \
+ no-page-prefeed lineprinter lines-per-page= mail \
+ media= copies= newline= output= missing-characters \
+ printer= quiet silent landscape portrait \
+ baselineskip= statusdict= title= tabsize= underlay= \
+ verbose version encoding pass-through download-font= \
+ filter-stdin= help highlight-bar-gray= list-media \
+ list-options non-printable-format= page-label-format= \
+ printer-options= ul-angle= ul-font= ul-gray= \
+ ul-position= ul-style= \
+ )/'
+ endif
+
+ complete dpkg \
+ 'c/--{admindir,instdir,root}=/d/' \
+ 'c/--debug=/n/' \
+ 'c/--{admindir,debug,instdir,root}/(=)//' \
+ 'c/--/(admindir= debug= instdir= root= \
+ assert-support-predepends assert-working-epoch \
+ audit auto-deconfigure clear-avail \
+ compare-versions configure contents control \
+ extract force-bad-path field \
+ force-configure-any force-conflicts \
+ force-depends force-depends-version force-help \
+ force-hold force-non-root \
+ force-overwrite-diverted \
+ force-remove-essential force-remove-reinstreq \
+ forget-old-unavail fsys-tarfile get-selections \
+ help ignore-depends info install largemem \
+ license list listfiles merge-avail no-act \
+ pending predep-package print-architecture \
+ print-gnu-build-architecture \
+ print-installation-architecture print-avail \
+ purge record-avail recursive refuse-downgrade \
+ remove search set-selections selected-only \
+ skip-same-version smallmem status unpack \
+ update-avail version vextract \
+ )//' \
+ 'n/{-l}/`dpkg -l|awk \{print\ \$2\}`/' \
+ 'n/*/f:*.deb'/
+ complete dpkg-deb 'c/--{build}=/d/' \
+ 'c/--/(build contents info field control extract \
+ vextract fsys-tarfile help version \
+ license)//' \
+ 'n/*/f:*.deb/'
+ complete apt-get \
+ 'c/--/(build config-file diff-only download-only \
+ fix-broken fix-missing force-yes help ignore-hold no-download \
+ no-upgrade option print-uris purge reinstall quiet simulate \
+ show-upgraded target-release tar-only version yes )/' \
+ 'c/-/(b c= d f h m o= q qq s t x y )/' \
+ 'n/{source,build-dep}/x:<pkgname>/' \
+ 'n/{remove}/`dpkg -l|grep ^ii|awk \{print\ \$2\}`/' \
+ 'n/{install}/`apt-cache pkgnames | sort`/' \
+ 'C/*/(update upgrade dselect-upgrade source \
+ build-dep check clean autoclean install remove)/'
+ complete apt-cache \
+ 'c/--/(all-versions config-file generate full help important \
+ names-only option pkg-cache quiet recurse src-cache version )/' \
+ 'c/-/(c= h i o= p= q s= v)/' \
+ 'n/{search}/x:<regex>/' \
+ 'n/{pkgnames,policy,show,showpkg,depends,dotty}/`apt-cache pkgnames | sort`/' \
+ 'C/*/(add gencaches showpkg stats dump dumpavail unmet show \
+ search depends pkgnames dotty policy )/'
+
+ unset noglob
+ unset _complete
+ unset traditional_complete
+
+endif
+
+
+end:
+ onintr
+
diff --git a/.tcsh/completion/pkgtools_completion.tcsh b/.tcsh/completion/pkgtools_completion.tcsh
new file mode 100644
index 0000000..5767c16
--- /dev/null
+++ b/.tcsh/completion/pkgtools_completion.tcsh
@@ -0,0 +1,22 @@
+#!/bin/csh
+#
+# $Id: complete.sample 52 2006-01-01 06:26:59Z koma2 $
+
+if ($?PORTSDIR == 0) then
+ setenv PORTSDIR /usr/ports
+endif
+
+if ($?PKG_DBDIR == 0) then
+ setenv PKG_DBDIR /var/db/pkg
+endif
+
+complete pkg_create "n@-b@D:$PKG_DBDIR@@"
+complete pkg_deinstall "p@*@D:$PKG_DBDIR@@"
+complete pkg_fetch 'p@*@`ls $PKG_DBDIR | sed "s,\(.*\)-.*,\1," `@@'
+complete pkg_which "c@*@D:$PKG_DBDIR@@" "o@*@D:$PKG_DBDIR@@"
+complete pkgdb "c@*@D:$PKG_DBDIR@@" "o@*@D:$PKG_DBDIR@@"
+complete portinstall "p@*@D:$PORTSDIR@"
+complete ports_glob "p@*@D:$PORTSDIR@"
+complete portupgrade "n@-o@D:$PORTSDIR@" "p@*@D:$PKG_DBDIR@@"
+complete portversion "p@*@D:$PKG_DBDIR@@"
+
diff --git a/.tcsh/completion/zfs_completion.tcsh b/.tcsh/completion/zfs_completion.tcsh
new file mode 100644
index 0000000..e6977aa
--- /dev/null
+++ b/.tcsh/completion/zfs_completion.tcsh
@@ -0,0 +1,77 @@
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright 2007 Cyril Plisko. All rights reserved.
+# Use is subject to license terms.
+#
+
+# This file contains a tcsh completion definitions for zfs command
+
+set zpool_cmd = (create destroy add remove list iostat status\
+ online offline clear attach detach replace scrub\
+ import export upgrade history get set)
+
+set zfs_cmd = (create destroy snapshot rollback clone promote\
+ rename list set get inherit mount unmount\
+ share unshare send receive)
+
+complete zpool \
+ 'p/1/$zpool_cmd/'\
+ 'n/destroy/`zpool list -H -o name`/'\
+ 'n/add/`zpool list -H -o name`/'\
+ 'n/remove/`zpool list -H -o name`/'\
+ 'n/list/`zpool list -H -o name`/'\
+ 'n/iostat/`zpool list -H -o name`/'\
+ 'n/status/`zpool list -H -o name`/'\
+ 'n/online/`zpool list -H -o name`/'\
+ 'n/offline/`zpool list -H -o name`/'\
+ 'n/clear/`zpool list -H -o name`/'\
+ 'n/attach/`zpool list -H -o name`/'\
+ 'n/detach/`zpool list -H -o name`/'\
+ 'n/replace/`zpool list -H -o name`/'\
+ 'n/scrub/`zpool list -H -o name`/'\
+ 'n/import/`zpool list -H -o name`/'\
+ 'n/export/`zpool list -H -o name`/'\
+ 'n/upgrade/`zpool list -H -o name`/'\
+ 'n/history/`zpool list -H -o name`/'\
+ 'N/get/`zpool list -H -o name`/'\
+ 'N/set/`zpool list -H -o name`/'
+
+complete zfs \
+ 'p/1/$zfs_cmd/'\
+ 'n/create/`zfs list -H -o name`/'\
+ 'n/destroy/`zfs list -H -o name`/'\
+ 'n/snapshot/`zfs list -H -o name`/'\
+ 'n/rollback/`zfs list -H -t snapshot -o name`/'\
+ 'n/clone/`zfs list -H -t snapshot -o name`/'\
+ 'n/promote/`zfs list -H -o name`/'\
+ 'n/rename/`zfs list -H -o name`/'\
+ 'n/list/`zfs list -H -o name`/'\
+ 'N/set/`zfs list -H -o name`/'\
+ 'N/get/`zfs list -H -o name`/'\
+ 'n/inherit/`zfs list -H -o name`/'\
+ 'n/mount/`zfs list -H -o name`/'\
+ 'n/unmount/`zfs list -H -o name`/'\
+ 'n/share/`zfs list -H -o name`/'\
+ 'n/unshare/`zfs list -H -o name`/'\
+ 'n/send/`zfs list -H -t snapshot -o name`/'\
+ 'n/receive/`zfs list -H -o name`/'
+
diff --git a/.tcsh/heainit.csh b/.tcsh/heainit.csh
new file mode 100644
index 0000000..c1a8a04
--- /dev/null
+++ b/.tcsh/heainit.csh
@@ -0,0 +1,15 @@
+#!/bin/csh
+#
+# HEASOFT settings
+#
+unset printexitvalue
+
+set HEA_STATE=`echo $PATH | tr ':' '\n' | grep 'heasoft'`
+if ( "x${HEA_STATE}" == "x" ) then
+ source $HEADAS/headas-init.csh
+endif
+unset HEA_STATE
+# set HEA_LDLIB="`echo $LD_LIBRARY_PATH | tr ':' '\n' | grep 'heasoft' | head -n 1`"
+
+exit 0
+
diff --git a/.tcsh/sasinit.csh b/.tcsh/sasinit.csh
new file mode 100644
index 0000000..5b5e39f
--- /dev/null
+++ b/.tcsh/sasinit.csh
@@ -0,0 +1,30 @@
+#!/bin/csh -v
+#
+# SAS settings
+#
+unset printexitvalue
+
+set HEA_STATE="`echo $PATH | tr ':' '\n' | grep 'heasoft'`"
+set SAS_STATE="`echo $PATH | tr ':' '\n' | grep 'xmmsas'`"
+if ( "x${HEA_STATE}" == "x" ) then
+ heainit
+endif
+if ( "x${SAS_STATE}" == "x" ) then
+ ## heasoft, due to conflicts
+ set HEASOFT_BIN="${SAS_DIR}/../heasoft_bin"
+ setenv PATH ${HEASOFT_BIN}:${PATH}
+ ## init SAS
+ source ${SAS_DIR}/setsas.csh
+ setenv SAS_CCFPATH "${SAS_DIR}/../ccf"
+ setenv SAS_ESAS_CALDB "${SAS_DIR}/../esas_caldb"
+ setenv SAS_VERBOSITY 2
+ setenv SAS_SUPPRESS_WARNING 10
+ setenv SAS_IMAGEVIEWER ds9
+ # heasoft
+ # setenv LD_LIBRARY_PATH $HEA_LDLIB:$LD_LIBRARY_PATH
+endif
+unset HEA_STATE
+unset SAS_STATE
+
+exit 0
+
diff --git a/.tcshrc b/.tcshrc
new file mode 100644
index 0000000..ac82e6d
--- /dev/null
+++ b/.tcshrc
@@ -0,0 +1,279 @@
+#####################################################################
+### /etc/csh.cshrc
+### $HOME/.tcshrc
+### LY4ever
+### June 30, 2011
+
+
+### "root" environment (basic) ######################################
+if ($LOGNAME == "root") then
+ set -f path = ( $path /sbin )
+ set -f path = ( $path /usr/sbin )
+ set -l path = ( $path /usr/local/sbin )
+endif
+
+### "ly" environment (basic) ########################################
+if ($LOGNAME == "ly") then
+ set -f path = ( ~/bin $path )
+ set -f path = ( $path /sbin )
+ set -f path = ( $path /usr/sbin )
+ set -l path = ( $path /usr/local/sbin )
+endif
+
+### "user" + "root" environment (basic) #############################
+set -f path = ( $path /bin )
+set -f path = ( $path /usr/bin )
+set -f path = ( $path /usr/local/bin )
+
+### "user" + "root" environment (misc) ##############################
+set -l path = ( $path /usr/games )
+
+
+### Environment settings ############################################
+# colors for 'ls'
+setenv LSCOLORS ExGxFxdxCxegedabagExEx
+setenv CLICOLOR yes
+# colors for 'grep'
+setenv GREP_OPTIONS '--color=auto'
+
+# locale
+setenv LANG en_US.UTF-8
+setenv LC_CTYPE zh_CN.UTF-8
+setenv LC_COLLATE C
+
+# settings for 'fcitx'
+setenv XMODIFIERS @im=fcitx
+setenv QT_IM_MODULE xim
+setenv GTK_IM_MODULE xim
+
+# Misc
+setenv PAGER less
+setenv LESS '-ceiMs'
+setenv EDITOR vim
+setenv VISUAL vim
+
+
+#####################################################################
+### skip remaining setup if not an interactive shell
+if ($?USER == 0 || $?prompt == 0) exit
+
+
+### color code ######################################################
+# 1 for brighter colors
+# 4 for underlined text
+# 5 for flashing text
+# 30 for black foreground
+# 31 for red foreground
+# 32 for green foreground
+# 33 for yellow (or brown) foreground
+# 34 for blue foreground
+# 35 for purple foreground
+# 36 for cyan foreground
+# 37 for white (or gray) foreground
+# 40 for black background
+# 41 for red background
+# 42 for green background
+# 43 for yellow (or brown) background
+# 44 for blue background
+# 45 for purple background
+# 46 for cyan background
+# 47 for white (or gray) background
+
+#set cr = "%{\e[31m%}" # red
+#set cg = "%{\e[32m%}" # green
+#set cy = "%{\e[33m%}" # yellow
+#set c0 = "%{\e[0m%}" # recovery
+
+# prompt
+#set promptchars = ">#"
+#if ( $?prompt ) then
+# if ( "$uid" == "0" ) then
+# set prompt = "%B$cr%n%b$c0@$cy%m$cg.%? %B$cr%#%b "
+# else
+# set prompt = "%B$cg%n%b$c0@$cy%m$c0.%? %B$cg%#%b "
+# endif
+#endif
+#set rprompt = "%~"
+
+
+### prompt ##########################################################
+# Source: "UNIX Power Tools" from O'Reilly
+# Note from Tim Cera (timcera@sourceforge.net).
+set prompt='\
+%B%n%b@%U%m%u %B%S%/%s%b\
+%B%#%b '
+# Prompt used when waiting for stufffor 'for' or 'while'...
+set prompt2="%R? "
+# Prompt used when correcting.
+set prompt3="CORRECT> %B%R%b (y|n|e)? "
+
+
+### bindkey #########################################################
+bindkey '\e[1~' beginning-of-line # Home
+bindkey '\e[3~' delete-char # Delete
+bindkey '\e[4~' end-of-line # End
+bindkey "^W" backward-delete-word # Delete
+bindkey -k up history-search-backward # PageUp
+bindkey -k down history-search-forward # PageDown
+# vi-style key bindings
+#bindkey -v
+
+
+### Tcsh settings ###################################################
+set ignoreeof
+set listlinks
+set nobeep
+set noclobber
+
+set history = 512
+set savehist = 512
+
+# Watch any(1) other users every 0 seconds from any(2) console,
+set watch=(0 any any)
+
+# Format of output string when someone logins or logouts
+set who="%n has %a %l from %M."
+
+set inputmode=insert
+
+set autolist
+set autocorrect
+
+# Use the history of commands to aid expansion.
+set autoexpand
+
+set complete=enhance
+set correct=cmd
+
+#set autologout = (30 5)
+unset autologout
+
+# Symbolic links are expanded to their true values : chase
+# (possible values 'chase' 'ignore' 'expand')
+set symlinks=chase
+
+# After a 'Ctrl-Z', list all the jobs
+set listjobs
+
+# If the exit value is non-zero, print it
+set printexitvalue
+
+# Ask for confirmation when 'rm *'
+set rmstar
+
+# Files that are to be ignored from completion.
+set fignore=(.o)
+
+set time=(8 "\
+Time spent in user mode (CPU seconds) : %Us\
+Time spent in kernel mode (CPU seconds) : %Ss\
+Total time : %Es\
+CPU utilisation (percentage) : %P\
+Times the process was swapped : %W\
+Times of major page faults : %F\
+Times of minor page faults : %R")
+
+# Before printing prompt after a command, do
+#alias precmd date
+
+# Other values are bsd, sysv, etc.
+# This way, both 'set -n' and set '\003' styles will work.
+set echo_style=both
+
+
+### Tcsh aliases ####################################################
+# for a better habit
+#alias rm 'rm -iv'
+#alias mv 'mv -iv'
+#alias cp 'cp -iv'
+
+alias md 'mkdir -v -p'
+alias rd 'rmdir -v'
+
+alias today "date '+%d%h%y'"
+alias mess 'clear ; tail -f /var/log/messages'
+
+alias x 'exit'
+alias ff 'find . -name $*'
+
+#alias . 'pwd'
+alias .. 'cd ..'
+alias ../ 'cd ../'
+alias ... 'cd ../..'
+alias .../ 'cd ../../'
+alias - 'cd -'
+alias / 'cd /'
+alias ls 'ls -F --color=auto'
+alias la 'ls -AF'
+alias lla 'ls -AlF'
+alias ll 'ls -Flh'
+alias lld 'ls -dlh'
+
+alias df 'df -haT'
+#alias grep 'grep -i'
+
+# show
+alias show-ifstat 'systat -ifstat' # net interface
+alias show-geom 'gstat' # I/O state
+alias show-thermal 'sysctl dev.acpi_ibm.0.thermal'
+alias show-cpufreq 'sysctl dev.cpu.0.freq'
+alias show-cpulevels 'sysctl dev.cpu.0.freq_levels'
+alias show-battery 'sysctl hw.acpi.battery.life && sysctl hw.acpi.battery.time'
+alias show-alldep 'make all-depends-list' # exec under 'ports' dirs
+alias show-dep 'portmaster --show-work ./ | sort'
+
+# misc
+alias v 'vim'
+alias a 'alias'
+alias h 'history | less'
+alias ox 'oxford'
+#alias valgrind-checkmem 'valgrind --tool=memcheck --leak-check=full' # check 'memory leak'
+
+# aliases for typos
+alias maek 'make'
+alias alais 'alias'
+
+# for security
+alias del 'mv \!* ~/tmp'
+
+### Tcsh completion #################################################
+# ~/.tcsh_completion dir
+if ( -d ~/.tcsh/completion ) then
+ foreach tcsh_comp ( ~/.tcsh/completion/*.tcsh )
+ source $tcsh_comp
+ end
+endif
+unset tcsh_comp
+
+
+### Misc ############################################################
+### cdargs
+# Just the basic cdargs functionality for tcshell
+alias cv 'cdargs \!* && cd `cat $HOME/.cdargsresult`'
+# add current directory with description:
+alias ca 'cdargs --add=:\!*":"$cwd'
+complete cv 'n@*@`cat -s ~/.cdargs | sed -e "s/ .*//"`@'
+
+
+### Tcsh special aliases ############################################
+## tcsh period
+# Every # seconds, do 'command'.
+# set tperiod = 2
+# alias periodic 'tput bel'
+#unset tperiod
+#unalias periodic
+
+### ly4ever local ###################################################
+## local settings
+if ( -e ~/.tcshrc.local ) then
+ source ~/.tcshrc.local
+endif
+
+## tcsh sched
+# sched +8:00 set prompt='Has trabajado mucho. Llama la novia\! :> '
+
+## run commands
+#fortune -s | cowsay -f ~/.littleprince.cow -W 48
+calendar
+date
+
diff --git a/.tcshrc.local b/.tcshrc.local
new file mode 100644
index 0000000..d000051
--- /dev/null
+++ b/.tcshrc.local
@@ -0,0 +1,41 @@
+#############################################################################
+##
+## .tcshrc.local
+##
+## Author: Simos Xenitellis (simos.lists@googlemail.com)
+##
+## This is the .tcshrc.local file, part of the TCSHRC project
+## at http://tcshrc.sourceforge.net
+##
+## Here you add your aliases, sets, completions and bindkeys that you want
+## to override from the default settings.
+
+### TeXLive
+if ( -d /usr/local/texlive/bin/x86_64-linux ) then
+ set -f path = ( /usr/local/texlive/bin/x86_64-linux $path )
+endif
+
+### ConTeXt
+setenv OSFONTDIR "$HOME/.fonts;/usr/share/fonts"
+
+### DS9 settings
+#if ( -x ~/bin/ds9 ) then
+# alias ds9 '~/bin/ds9'
+#endif
+
+# astro CALDB
+if ( $?CALDB == 0 ) then
+ setenv CALDB "$HOME/local/CALDB"
+ setenv CALDBALIAS "${CALDB}/software/tools/alias_config.fits"
+ setenv CALDBCONFIG "${CALDB}/software/tools/caldb.config"
+endif
+
+setenv HEADAS "/opt/heasoft/heasoft-6.12/x86_64-unknown-linux-gnu"
+setenv CIAO_PATH "/opt/ciao/ciao-4.4"
+#setenv SAS_DIR "/opt/xmmsas/xmmsas_20110223_1801"
+alias heainit 'source ~/.tcsh/heainit.csh'
+alias ciaoinit 'source ~/.tcsh/ciaoinit.csh'
+#alias sasinit 'source ~/.tcsh/sasinit.csh'
+
+### misc settings
+
diff --git a/.tmux.conf b/.tmux.conf
index 8a7d291..a7335dc 100644
--- a/.tmux.conf
+++ b/.tmux.conf
@@ -68,8 +68,8 @@ set-window-option -g utf8 on
set-window-option -g alternate-screen on
## terminal overrides
-#set-option -g terminal-overrides "*88col*:colors=88,*256col*:colors=256,xterm*:colors=256"
-#set -g default-terminal "rxvt-256color"
+# set-option -g terminal-overrides "*88col*:colors=88,*256col*:colors=256,xterm*:colors=256"
+# set -g default-terminal "rxvt-256color"
## start index from 1
set-option -g base-index 1