diff options
author | Florian Pritz <f-p@gmx.at> | 2009-02-23 18:53:37 +0100 |
---|---|---|
committer | Florian Pritz <f-p@gmx.at> | 2009-02-23 18:53:37 +0100 |
commit | 5f715d7315fc7bf7ecf7697621f47f83f734e75d (patch) | |
tree | 6963f6e5f84c8c7f81713eb16ba671d527c789a7 | |
parent | a27c29c43b1017f4a10500768e850a9c5a412447 (diff) | |
download | dotfiles-5f715d7315fc7bf7ecf7697621f47f83f734e75d.tar.gz dotfiles-5f715d7315fc7bf7ecf7697621f47f83f734e75d.tar.xz |
added 2 more files
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | .pypanelrc | 280 | ||||
-rw-r--r-- | .siegerc | 369 |
3 files changed, 654 insertions, 0 deletions
@@ -2,9 +2,14 @@ !.zsh/rc/ !.zshrc + !.gitignore + !.vim/ !.vimrc + !.xinitrc +!.pypanelrc +!.siegerc .vim/tags/ diff --git a/.pypanelrc b/.pypanelrc new file mode 100644 index 0000000..2be5193 --- /dev/null +++ b/.pypanelrc @@ -0,0 +1,280 @@ +#---------------------------------------------------- +# File: ~/.pypanelrc +# Version: 0.1.4 +# Author: Florian "Bluewind" Pritz <f-p@gmx.at> +#---------------------------------------------------- + +#------------------------------------------------------------------------------ +# +# PyPanel v2.4 Configuration +# +# This configuration file is a Python script that will be executed when +# PyPanel is started. In order for PyPanel to start properly, make sure that +# this file contains proper Python formatting and no syntax errors. +#------------------------------------------------------------------------------ +VERSION = 2.4 # Config file version + +#------------------------------------------------------------------------------ +# Colors: Format is hex triplet - 0xrrggbb +#------------------------------------------------------------------------------ +BG_COLOR = "0xd6d6d6" # Panel background and tinting color +TASK_COLOR = "0x000000" # Normal task name color +FOCUSED_COLOR = "0x1826de" # Focused task name color +SHADED_COLOR = "0x808080" # Shaded task name color +MINIMIZED_COLOR = "0x808080" # Minimized task name color +#DESKTOP_COLOR = "0xcccccc" # Desktop name color +DESKTOP_COLOR = "0x333333" # Desktop name color +#CLOCK_COLOR = "0xcccccc" # Clock text color +CLOCK_COLOR = "0x333333" # Clock text color +LINE_COLOR = "0x606060" # Vertical line color + +# Text Shadow Colors +TASK_SHADOW_COLOR = "0xffffff" +FOCUSED_SHADOW_COLOR = "0xffffff" +SHADED_SHADOW_COLOR = "0xffffff" +MINIMIZED_SHADOW_COLOR = "0xffffff" +DESKTOP_SHADOW_COLOR = "0xffffff" +CLOCK_SHADOW_COLOR = "0xffffff" + +#------------------------------------------------------------------------------ +# Panel Spacing and Location Options: Measured in pixels +#------------------------------------------------------------------------------ +P_LOCATION = 1 # Panel placement: 0 = top, 1 = bottom +P_WIDTH = 1000 # Panel width: 0 = Use full screen width +P_START = 340 # Starting X coordinate of the panel +P_SPACER = 6 # Spacing between panel objects +P_HEIGHT = 24 # Panel height + +#------------------------------------------------------------------------------ +# Icon Size Options: Measured in pixels +#------------------------------------------------------------------------------ +I_HEIGHT = 16 # Panel application icon height +I_WIDTH = 16 # Panel application icon Width +APPL_I_HEIGHT = 24 # Application launcher icon height +APPL_I_WIDTH = 24 # Application launcher icon width +TRAY_I_HEIGHT = 24 # System tray icon height (usually 16 or 24) +TRAY_I_WIDTH = 24 # System tray icon width (usually 16 or 24) + # If TRAY_I_WIDTH is set to 0, then the + # width specified by the tray app will be used + +#------------------------------------------------------------------------------ +# Panel Clock Format: 'man strftime' for detailed formatting options and help +#------------------------------------------------------------------------------ +CLOCK_FORMAT = "%Y-%m-%d %H:%M" # Ex: 2004-09-25 17:45 + +#------------------------------------------------------------------------------ +# Clock Delay: Seconds between each clock update during periods of inactivity +#------------------------------------------------------------------------------ +CLOCK_DELAY = 20 + +#------------------------------------------------------------------------------ +# Hidden Application List: Apps listed here will not be display on the panel +# The application name is its WM_CLASS name, use 'xprop' to find WM_CLASS +# Ex: ["xmms", "xine", "gDesklets"] +#------------------------------------------------------------------------------ +HIDE_LIST = [] + +#------------------------------------------------------------------------------ +# Hidden Panel Size: Size of the panel when it's hidden/minimized +#------------------------------------------------------------------------------ +HIDDEN_SIZE = 2 + +#------------------------------------------------------------------------------ +# Panel Text Font: This option takes either a traditional or Xft font string +# Ex: "-schumacher-clean-medium-r-normal-*-12-*-*-*-*-*-*-*" +# "aquafont-8" +#------------------------------------------------------------------------------ +FONT = "DejaVu Sans Mono-8" + +#------------------------------------------------------------------------------ +# Show All Applications: Show apps from all desktops or just the current +# 0: Disabled - Only applications on the current desktop will be displayed +# 1: Enabled - Selected apps are moved to the current desktop +# 2: Enabled - Current desktop is changed to the selected apps desktop +#------------------------------------------------------------------------------ +SHOWALL = 0 # 0, 1 or 2 - see descriptions above + +#------------------------------------------------------------------------------ +# Show Minimized/Iconified Applications: Show only minimized apps or all apps +# 0: Disabled - Show all applications on the panel +# 1: Enabled - Show only minimized apps on the panel +#------------------------------------------------------------------------------ +SHOWMINIMIZED = 0 + +#------------------------------------------------------------------------------ +# Application Icon List: List of custom icons for specific applications +# The application name is its WM_CLASS name, use 'xprop' to find WM_CLASS +# +# The "default" entry is used for applications with no icon. If left "", +# PyPanel will use the default icon distributed with the source. +# +# Add entries using the following format - +# "<application name>" : "<full path to icon>", +#------------------------------------------------------------------------------ +ICON_LIST = { + "default" : "", + "example" : "/usr/share/imlib2/data/images/audio.png", + } + +#------------------------------------------------------------------------------ +# Application Launch List: Ordered list of icons and applications for the +# application launcher. +# +# Add entries using the following format - +# ("<executable>", "<full path to icon>") +#------------------------------------------------------------------------------ +LAUNCH_LIST = [ + ("gimp", "/usr/share/imlib2/data/images/paper.png"), + ("VirtualBox", "/usr/share/pixmaps/VBox.png"), + ("gcolor2", "/usr/share/pixmaps/gcolor2/icon.png"), + ("mpc pause", "/usr/share/icons/hydroxygen/24x24/actions/player_pause.png"), + ("mpc play", "/usr/share/icons/hydroxygen/24x24/actions/player_play.png"), + ("mpc stop", "/usr/share/icons/hydroxygen/24x24/actions/player_stop.png") + ] + +#------------------------------------------------------------------------------ +# Background Alpha/Shade Level: 0 (Fully Translucent) -> 255 (Fully Opaque) +# BG_COLOR is used for tinting +#------------------------------------------------------------------------------ +SHADE = 50 + +#------------------------------------------------------------------------------ +# Misc. Options: 1 = Enabled/Yes, 0 = Disabled/No +#------------------------------------------------------------------------------ +ABOVE = 1 # Panel is always above other apps +APPICONS = 1 # Show application icons +AUTOHIDE = 0 # Autohide uses the CLOCK_DELAY timer above +SHADOWS = 0 # Show text shadows +SHOWLINES = 0 # Show object seperation lines +SHOWBORDER = 0 # Show a border around the panel + +#------------------------------------------------------------------------------ +# Desktop Names: Configure the names of your desktops +# If the option is [], PyPanel will attempt to use the desktop name specified +# by the XServer, if that fails it will use the desktop number as its name +# Ex. ["One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight"] +#------------------------------------------------------------------------------ +DESKTOP_NAMES = [] + +#------------------------------------------------------------------------------ +# Panel Layout: ----------------------------------- +# [ 1 ][ 2 ][ 3 ][ 4 ][ 5 ] +# ----------------------------------- +# +# The panel layout is split into 5 sections numbered 1, 2, 3, 4 or 5 as shown +# in the diagram above. Each of the following objects can be enabled by +# assigning it a section number or disabled by assigning it 0: +#------------------------------------------------------------------------------ +DESKTOP = 1 # Desktop name section +TASKS = 3 # Task names section +TRAY = 4 # System tray section +CLOCK = 5 # Clock section +LAUNCHER = 2 # Application launcher section + +#------------------------------------------------------------------------------ +# Button Event Function Definitions +#------------------------------------------------------------------------------ +# Left click - button 1 +# Middle click - button 2 +# Right click - button 3 +# Wheel up - button 4 +# Wheel down - button 5 +# +# changeDesktop(x) +# - Change Desktop: Increase or decrease the current desktop by 'x' amount +# +# toggleShade(task) +# - Shade or Unshade an application +# +# toggleHidden() +# - Minimize the panel to the top or bottom depending on its start location +# +# toggleMinimize(task, traise=1) +# - Minimize or Unminimize an application and optionally raise it +# +# taskRaise(task, focus=1) +# - Raise an application to the top of the window list and optionally focus it +# +# taskLower(task, focus=0) +# - Lower an app to the bottom of the window list and optionally focus it +# +# taskFocus(task) +# - Give focus to the selected application, if it has focus then minimize it +# +# showDesktop() +# - Toggle between hiding and unhiding ALL applications +#------------------------------------------------------------------------------ + +#---------------------------------- +def desktopButtonEvent(pp, button): +#---------------------------------- + """ Button event handler for the panel's desktop object """ + + if button == 1: + pp.changeDesktop(-1) + elif button == 2: + pp.changeDesktop(2) + elif button == 3: + pp.changeDesktop(1) + elif button == 4: + pp.changeDesktop(1) + elif button == 5: + pp.changeDesktop(-1) + +#-------------------------------- +def clockButtonEvent(pp, button): +#-------------------------------- + """ Button event handler for the panel's clock object """ + + if button == 1: + #os.system("xclock &") + pass + elif button == 2: + pass + elif button == 3: + #pp.toggleHidden() + pass + elif button == 4: + pp.showDesktop() + elif button == 5: + pp.showDesktop() + +#-------------------------------- +def panelButtonEvent(pp, button): +#-------------------------------- + """ Button event handler for the panel with no active tasks """ + + if button == 1: + pass + elif button == 2: + pass + elif button == 3: + pass + elif button == 4: + pass + elif button == 5: + pass + +#------------------------------------- +def taskButtonEvent(pp, button, task): +#------------------------------------- + """ Button event handler for the panel's tasks """ + + if button == 1: + pp.taskFocus(task) + elif button == 2: + # Destroy the application + task.obj.destroy() + elif button == 3: + # Ex. - XMMS doesn't shade, so we want to minimize it instead and + # still use button 3 to shade other applications + # task.tclass is the tasks class name (WM_CLASS) + if "xmms" in task.tclass: + pp.toggleMinimize(task) + else: + pp.toggleShade(task) + elif button == 4: + pp.taskRaise(task, focus=1) + elif button == 5: + pp.taskLower(task, focus=0) + diff --git a/.siegerc b/.siegerc new file mode 100644 index 0000000..79dffe6 --- /dev/null +++ b/.siegerc @@ -0,0 +1,369 @@ +# Updated by Siege 2.66, September-12-2008 +# Copyright 2005 by Jeffrey Fulmer, et al. +# +# Siege configuration file -- edit as necessary +# For more information about configuring and running +# this program, visit: http://www.joedog.org/ + +# +# Variable declarations. You can set variables here +# for use in the directives below. Example: +# PROXY = proxy.joedog.org +# Reference variables inside ${} or $(), example: +# proxy-host = ${PROXY} +# You can also reference ENVIRONMENT variables without +# actually declaring them, example: +logfile = $(HOME)/siege.log + +# +# Signify verbose mode, true turns on verbose output +# ex: verbose = true|false +# +verbose = true + +# +# CSV Verbose format: with this option, you can choose +# to format verbose output in traditional siege format +# or comma separated format. The latter will allow you +# to redirect output to a file for import into a spread +# sheet, i.e., siege > file.csv +# ex: csv = true|false (default false) +# +# csv = true + +# +# Full URL verbose format: By default siege displays +# the URL path and not the full URL. With this option, +# you # can instruct siege to show the complete URL. +# ex: fullurl = true|false (default false) +# +# fullurl = true + +# +# Display id: in verbose mode, display the siege user +# id associated with the HTTP transaction information +# ex: display-id = true|false +# +# display-id = + +# +# Show logfile location. By default, siege displays the +# logfile location at the end of every run when logging +# You can turn this message off with this directive. +# ex: show-logfile = false +# +show-logfile = false + +# +# Default logging status, true turns logging on. +# ex: logging = true|false +# +logging = false + +# +# Logfile, the default siege logfile is $PREFIX/var/siege.log +# This directive allows you to choose an alternative log file. +# Environment variables may be used as shown in the examples: +# ex: logfile = /home/jeff/var/log/siege.log +# logfile = ${HOME}/var/log/siege.log +# logfile = ${LOGFILE} +# +# logfile = + +# +# HTTP protocol. Options HTTP/1.1 and HTTP/1.0. +# Some webservers have broken implementation of the +# 1.1 protocol which skews throughput evaluations. +# If you notice some siege clients hanging for +# extended periods of time, change this to HTTP/1.0 +# ex: protocol = HTTP/1.1 +# protocol = HTTP/1.0 +# +protocol = HTTP/1.1 + +# +# Chunked encoding is required by HTTP/1.1 protocol +# but siege allows you to turn it off as desired. +# +# ex: chunked = true +# +chunked = true + +# +# Connection directive. Options "close" and "keep-alive" +# Starting with release 2.57b3, siege implements persistent +# connections in accordance to RFC 2068 using both chunked +# encoding and content-length directives to determine the +# page size. To run siege with persistent connections set +# the connection directive to keep-alive. (Default close) +# CAUTION: use the keep-alive directive with care. +# DOUBLE CAUTION: this directive does not work well on HPUX +# TRIPLE CAUTION: don't use keep-alives until further notice +# ex: connection = close +# connection = keep-alive +# +connection = close + +# +# Default number of simulated concurrent users +# ex: concurrent = 25 +# +concurrent = 15 + +# +# Default duration of the siege. The right hand argument has +# a modifier which specifies the time units, H=hours, M=minutes, +# and S=seconds. If a modifier is not specified, then minutes +# are assumed. +# ex: time = 50M +# +# time = + +# +# Repetitions. The length of siege may be specified in client +# reps rather then a time duration. Instead of specifying a time +# span, you can tell each siege instance to hit the server X number +# of times. So if you chose 'reps = 20' and you've selected 10 +# concurrent users, then siege will hit the server 200 times. +# ex: reps = 20 +# +# reps = + +# +# Default URLs file, set at configuration time, the default +# file is PREFIX/etc/urls.txt. So if you configured siege +# with --prefix=/usr/local then the urls.txt file is installed +# int /usr/local/etc/urls.txt. Use the "file = " directive to +# configure an alternative URLs file. You may use environment +# variables as shown in the examples below: +# ex: file = /export/home/jdfulmer/MYURLS.txt +# file = $HOME/etc/urls.txt +# file = $URLSFILE +# +# file = + +# +# Default URL, this is a single URL that you want to test. This +# is usually set at the command line with the -u option. When +# used, this option overrides the urls.txt (-f FILE/--file=FILE) +# option. You will HAVE to comment this out for in order to use +# the urls.txt file option. +# ex: url = https://shemp.whoohoo.com/docs/index.jsp +# +# url = + +# +# Default delay value, see the siege(1) man page. +# This value is used for load testing, it is not used +# for benchmarking. +# ex: delay = 3 +# +delay = 1 + +# +# Connection timeout value. Set the value in seconds for +# socket connection timeouts. The default value is 30 seconds. +# ex: timeout = 30 +# +# timeout = + +# +# Session expiration: This directive allows you to delete all +# cookies after you pass through the URLs. This means siege will +# grab a new session with each run through its URLs. The default +# value is false. +# ex: expire-session = true +# +# expire-session = + +# +# Failures: This is the number of total connection failures allowed +# before siege aborts. Connection failures (timeouts, socket failures, +# etc.) are combined with 400 and 500 level errors in the final stats, +# but those errors do not count against the abort total. If you set +# this total to 10, then siege will abort after ten socket timeouts, +# but it will NOT abort after ten 404s. This is designed to prevent +# a run-away mess on an unattended siege. The default value is 1024 +# ex: failures = 50 +# +# failures = + +# +# Internet simulation. If true, siege clients will hit +# the URLs in the urls.txt file randomly, thereby simulating +# internet usage. If false, siege will run through the +# urls.txt file in order from first to last and back again. +# ex: internet = true +# +internet = false + +# +# Default benchmarking value, If true, there is NO delay +# between server requests, siege runs as fast as the web +# server and the network will let it. Set this to false +# for load testing. +# ex: benchmark = true +# +benchmark = false + +# +# Set the siege User-Agent to identify yourself at the +# host, the default is: JoeDog/1.00 [en] (X11; I; Siege #.##) +# But that wreaks of corporate techno speak. Feel free +# to make it more interesting :-) Since Limey is recovering +# from minor surgery as I write this, I'll dedicate the +# example to him... +# ex: user-agent = Limey The Bulldog +# +# user-agent = + +# +# Accept-encoding. This option allows you to specify +# acceptable encodings returned by the server. Use this +# directive to turn on compression. By default we accept +# gzip compression. +# +# ex: accept-encoding = * +# accept-encoding = gzip +# accept-encoding = compress;q=0.5;gzip;q=1 +accept-encoding = gzip + +# +# TURN OFF THAT ANNOYING SPINNER! +# Siege spawns a thread and runs a spinner to entertain you +# as it collects and computes its stats. If you don't like +# this feature, you may turn it off here. +# ex: spinner = false +# +spinner = true + +# +# WWW-Authenticate login. When siege hits a webpage +# that requires basic authentication, it will search its +# logins for authentication which matches the specific realm +# requested by the server. If it finds a match, it will send +# that login information. If it fails to match the realm, it +# will send the default login information. (Default is "all"). +# You may configure siege with several logins as long as no +# two realms match. The format for logins is: +# username:password[:realm] where "realm" is optional. +# If you do not supply a realm, then it will default to "all" +# ex: login = jdfulmer:topsecret:Admin +# login = jeff:supersecret +# +# login = + +# +# WWW-Authenticate username and password. When siege +# hits a webpage that requires authentication, it will +# send this user name and password to the server. Note +# this is NOT form based authentication. You will have +# to construct URLs for that. +# ex: username = jdfulmer +# password = whoohoo +# +# username = +# password = + +# +# ssl-cert +# This optional feature allows you to specify a path to a client +# certificate. It is not neccessary to specify a certificate in +# order to use https. If you don't know why you would want one, +# then you probably don't need this feature. Use openssl to +# generate a certificate and key with the following command: +# $ openssl req -nodes -new -days 365 -newkey rsa:1024 \ +# -keyout key.pem -out cert.pem +# Specify a path to cert.pem as follows: +# ex: ssl-cert = /home/jeff/.certs/cert.pem +# +# ssl-cert = + +# +# ssl-key +# Use this option to specify the key you generated with the command +# above. ex: ssl-key = /home/jeff/.certs/key.pem +# You may actually skip this option and combine both your cert and +# your key in a single file: +# $ cat key.pem > client.pem +# $ cat cert.pem >> client.pem +# Now set the path for ssl-cert: +# ex: ssl-cert = /home/jeff/.certs/client.pem +# (in this scenario, you comment out ssl-key) +# +# ssl-key = + +# +# ssl-timeout +# This option sets a connection timeout for the ssl library +# ex: ssl-timeout = 30 +# +# ssl-timeout = + +# +# ssl-ciphers +# You can use this feature to select a specific ssl cipher +# for HTTPs. To view the ones available with your library run +# the following command: openssl ciphers +# ex: ssl-ciphers = EXP-RC4-MD5 +# +# ssl-ciphers = + +# +# Login URL. This is the first URL to be hit by every siege +# client. This feature was designed to allow you to login to +# a server and establish a session. It will only be hit once +# so if you need to hit this URL more then once, make sure it +# also appears in your urls.txt file. +# +# ex: login-url = http://eos.haha.com/login.jsp POST name=jeff&pass=foo +# +# login-url = + +# +# Proxy protocol. This option allows you to select a proxy +# server stress testing. The proxy will request the URL(s) +# specified by -u"my.url.org" OR from the urls.txt file. +# +# ex: proxy-host = proxy.whoohoo.org +# proxy-port = 8080 +# +# proxy-host = +# proxy-port = + +# +# Proxy-Authenticate. When scout hits a proxy server which +# requires username and password authentication, it will this +# username and password to the server. The format is username, +# password and optional realm each separated by a colon. You +# may enter more than one proxy-login as long as each one has +# a different realm. If you do not enter a realm, then scout +# will send that login information to all proxy challenges. If +# you have more than one proxy-login, then scout will attempt +# to match the login to the realm. +# ex: proxy-login: jeff:secret:corporate +# proxy-login: jeff:whoohoo +# +# proxy-login = + +# +# Redirection support. This option allows to to control +# whether a Location: hint will be followed. Most users +# will want to follow redirection information, but sometimes +# it's desired to just get the Location information. +# +# ex: follow-location = false +# +# follow-location = + +# Zero-length data. siege can be configured to disregard +# results in which zero bytes are read after the headers. +# Alternatively, such results can be counted in the final +# tally of outcomes. +# +# ex: zero-data-ok = false +# +# zero-data-ok = + +# +# end of siegerc |