Tuesday, June 19. 2007
http://mark.nanihil.com/downloads/screenshot
#!/bin/bash
DIR="${HOME}/screenshots"
DATE="$(date +%Y%m%d@%H%M%S)"
NAME="${DIR}/screenshot-${DATE}.png"
LOG="${DIR}/screenshots.log"
# Testen, ob das Verzeichniss zum speichern der Screenshots existiert, andernfalls wird es erstellt
if [ ! -d "${DIR}" ]; then mkdir "${DIR}"; fi
# Screenshot von einem Fenster
if [ "$1" = "win" ]; then import "${NAME}"; fi
# Screenshot des gesamten Bildschirms
if [ "$1" = "scr" ]; then import -window root "${NAME}"; fi
# Screenshot von einem Bereich
if [ "$1" = "area" ]; then import "${NAME}"; fi
# Haenge den Dateinamen an die Logdatei an
echo "${NAME}" >> "${LOG}"
Siehe [Conf] .fluxbox/keys fuer Anwendung.
Orginal von: http://de.gentoo-wiki.com/Screenshot_mit_Drucktaste
Downloadbereich
OnDesktop Mouse1 :hideMenus
OnDesktop Mouse2 :workspaceMenu
OnDesktop Mouse3 :rootMenu
OnDesktop Mouse4 :nextWorkspace
OnDesktop Mouse5 :prevWorkspace
Mod1 Tab :NextWindow
Mod1 Shift Tab :PrevWindow
Mod1 F1 :Workspace 1
Mod1 F2 :Workspace 2
Mod1 F3 :Workspace 3
Mod1 F4 :Workspace 4
Mod1 F5 :Workspace 5
Control F13 :execCommand screenshot win
None F13 :execCommand screenshot scr
None F14 :execCommand xmms -t
None F15 :execCommand amixer sset Master toggle
None F16 :execCommand xmms -f
None F17 :execCommand xmms -s
None F18 :execCommand xmms -r
None F19 :execCommand amixer sset Master 5%-
None F20 :execCommand amixer sset Master 5%+
None F21 :execCommand xset -dpms
None F22 :execCommand xset dpms 10 10 10
Mod4 k :KillWindow
Mod4 r :Reconfigure
Mod4 q :ExecCommand ~/torsmo/quote.sh d
Mod4 e :ExecCommand xfe
Mod4 f :ExecCommand firefox
Mod4 x :ExecCommand xmms -t
Mod4 c :Close
Mod4 w :ExecCommand ~/wecker
Mod4 a :RootMenu
Mod4 l :ExecCommand xlock -mode blank
Mod4 Shift a :WindowMenu
Mod4 t :ExecCommand thunderbird
Mod4 Shift t :ToggleDecor
Mod4 s :ShadeWindow
Mod4 Shift s :StickWindow
Mod4 h :MaximizeHorizontal
Mod4 v :MaximizeVertical
Mod4 m :MaximizeWindow
Mod4 Shift m :Minimize
Mod4 d :ExecCommand /mybin/3ddeskfx
Mod4 Shift d :ExecCommand /mybin/3ddeskfx mode 4
Mod4 Right :ExecCommand 3ddesk --gotoright --nozoom
Mod4 Left :ExecCommand 3ddesk --gotoleft --nozoom
Monday, June 18. 2007
# slocate terminfo
Oder schoener:
# find /usr/share/terminfo -type f | sed 's/.*\/\(.*\)/\1/g'
Danke an doomy!
Friday, June 8. 2007
Downloadbereich
Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "Default Screen" 0 0
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
EndSection
Section "Files"
# ModulePath "/usr/X11R6/lib/modules"
RgbPath "/usr/X11R6/lib/X11/rgb"
FontPath "/usr/X11R6/lib/X11/fonts/local/"
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath "/usr/X11R6/lib/X11/fonts/CID/"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/cyrillic/"
EndSection
Section "Module"
Load "dbe"
SubSection "extmod"
Option "omit xfree86-dga"
EndSubSection
Load "type1"
Load "freetype"
Load "glx"
Load "i2c"
Load "bitmap"
Load "ddc"
Load "dri"
Load "int10"
Load "vbe"
EndSection
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection
Section "InputDevice"
Identifier "Configured Mouse"
Driver "synaptics"
Option "CorePointer"
Option "ShmConfig" "true"
Option "Device" "/dev/input/mice"
Option "Protocol" "ExplorerPS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
EndSection
Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "Monitor"
Identifier "Generic Monitor"
HorizSync 28.0 - 84.0
VertRefresh 43.0 - 80.0
Option "DPMS"
EndSection
Section "Device"
Identifier "Intel Corporation Mobile Integrated Graphics Controller"
Driver "i810"
BusID "PCI:0:2:0"
EndSection
Section "Screen"
Identifier "Default Screen"
Device "Intel Corporation Mobile Integrated Graphics Controller"
Monitor "Generic Monitor"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1280x800"
EndSubSection
SubSection "Display"
Depth 4
Modes "1280x800"
EndSubSection
SubSection "Display"
Depth 8
Modes "1280x800"
EndSubSection
SubSection "Display"
Depth 15
Modes "1280x800"
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x800"
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x1024" "1280x960" "1280x800"
EndSubSection
EndSection
Section "DRI"
Mode 0666
EndSection
Section "Extensions"
Option "Composite" "Enable"
Option "RENDER" "Enable"
EndSection
Thursday, June 7. 2007
Downloadbereich
#Based on http://www.michael-prokop.at/computer/config/.zshrc + others
PROMPT=$'%n@%m %0(3c,%c,%~) %0(?,%{\e[0;32m%}:%),%{\e[0;31m%}:(%s)%b %# '
type compinit &>/dev/null || { autoload -U compinit && compinit }
export COLORTERM="yes"
alias -g C='|wc -l'
alias -g M='| more'
alias -g G='| grep'
alias -g dt='dmesg | tail'
alias -g T='| tail'
alias -g N='&>/dev/null'
alias 'mbox'='screen -x mbox'
# Xterm resizing-fu.
# Based on http://svn.kitenet.net/trunk/home-full/.zshrc?rev=11710&view=log (by Joey Hess)
alias hide='echo -en "\033]50;nil2\007"'
alias tiny='echo -en "\033]50;-misc-fixed-medium-r-normal-*--80-*--c-*-iso8859-15\007"'
alias small='echo -en "\033]50;6x10\007"'
alias medium='echo -en "\033]50;-misc-fixed-medium-r-normal--13-120-75-75-c-80-iso8859-15\007"'
alias default='echo -e "\033]50;-misc-fixed-medium-r-normal-*--140-*--c-*-iso8859-15\007"'
alias large='echo -en "\033]50;-misc-fixed-medium-r-normal-*--150-*--c-*-iso8859-15\007"'
alias huge='echo -en "\033]50;-misc-fixed-medium-r-normal-*--210-*--c-*-iso8859-15\007"'
alias smartfont='echo -en "\033]50;-artwiz-smoothansi-*--*--*--*--*--*-\007"'
alias semifont='echo -en "\033]50;-misc-fixed-medium-r-semicondensed-*--120-*--*--iso8859-15\007"'
# listing stuff
alias dir="ls -lSrah"
alias lad='ls -d .*(/)' # only show dot-directories
alias lsa='ls -a .*(.)' # only show dot-files
alias lss='ls -l (s,S,t)' # only files with setgid/setuid/sticky flag
alias lsl='ls -l (@[1,10])' # only symlinks
alias lsx='ls -l (*[1,10])' # only executables
alias lsw='ls -ld (R,W,X.^ND/)' # world-{readable,writable,executable} files
alias lsbig="ls -flh (.OL[1,10])" # display the biggest files
alias lsd='ls -d (/)' # only show directories
alias lse='ls -d (/^F)' # only show empty directories
alias lsnew="ls -rl (D.om[1,10])" # display the newest files
alias lsold="ls -rtlh (D.om[1,10])" # display the oldest files
alias lssmall="ls -Srl (.oL[1,10])" # display the smallest files
mdiff() { diff -udrP "$1" "$2" > diff.`date "+%Y-%m-%d"`."$1" }
memusage(){ ps aux | awk '{if (NR > 1) print $5; if (NR > 2) print "+"} END { print "p" }' | dc }
shtar() { gunzip -c $1 | tar -tf - -- | $PAGER }
shtgz() { tar -ztf $1 | $PAGER }
shzip() { unzip -l $1 | $PAGER }
# list files which have been modified within the last x days
new() { print -l (m-$1) }
# UTF-8 change
isutfenv () {
case "$LANG $CHARSET $LANGUAGE" in
(*utf*) return 0 ;;
(*UTF*) return 0 ;;
(*) return 1 ;;
esac
}
alias term2iso="echo 'Setting terminal to iso mode' ; echo -e '^[%@'"
alias term2utf="echo 'Setting terminal to utf-8 mode'; echo -e '^[%G'"
# alias utf2iso=`if isutfenv ; then
# for ENV in 'env | grep UTF' ; do
# eval export "$(echo $ENV | sed 's/UTF-8/iso885915/')"
# done
# fi`
# alias iso2utf=`if isutfenv ; then
# for ENV in 'env | grep "\.iso"' ; do
# eval export '$(echo $ENV | sed "s/iso.*/UTF-8/")'
# done
# fi`
#if [[ "$TERM" == screen ]]; then
bindkey "\e[1~" beginning-of-line # home
bindkey "^[[4~" end-of-line # End
bindkey "^[[A" up-line-or-search # cursor up
bindkey "^[[B" down-line-or-search # -
bindkey '^x' history-beginning-search-backward # alternative ways of searching the shell history
# bindkey '\e[7~' beginning-of-line # home
# bindkey '\e[8~' end-of-line # end
#fi
fetchmail 1> /dev/null 2>&1
OARK=`ps -ef | grep screen..x.mbox | grep -v grep`
if [ ! "$OARK" ] ; then
#conky -c ~/torsmo/server_info 1> /dev/null 2>&1
conky -c ~/torsmo/icq_msg 1> /dev/null 2>&1
pkill osdsh ; pkill osdctl ; sleep 1 ; osdsh -o 1 -p 1
screen -x mbox
fi
http://project-run.com/index.php?serendipity[subpage]=Downloadbereich
#Based on http://www.michael-prokop.at/computer/config/.zshrc + others
PROMPT=$'%n@%m %0(3c,%c,%~) %0(?,%{\e[0;32m%}:%),%{\e[0;31m%}:(%s)%b %# '
type compinit &>/dev/null || { autoload -U compinit && compinit }
export COLORTERM="yes"
(( ${+BROWSER} )) || export BROWSER="firefox"
(( ${+PAGER} )) || export PAGER="less"
alias -g C='|wc -l'
alias -g M='| more'
alias -g G='| grep'
alias -g dt='dmesg | tail'
alias -g T='| tail'
alias -g N='&>/dev/null'
alias -g nanihil='ssh -X -Y -L1431:localhost:143 -L1432:localhost:25 -L8080:localhost:8080 mkeeper@213.239.217.213'
# Xterm resizing-fu.
# Based on http://svn.kitenet.net/trunk/home-full/.zshrc?rev=11710&view=log (by Joey Hess)
alias hide='echo -en "\033]50;nil2\007"'
alias tiny='echo -en "\033]50;-misc-fixed-medium-r-normal-*--80-*--c-*-iso8859-15\007"'
alias small='echo -en "\033]50;6x10\007"'
alias medium='echo -en "\033]50;-misc-fixed-medium-r-normal--13-120-75-75-c-80-iso8859-15\007"'
alias default='echo -e "\033]50;-misc-fixed-medium-r-normal-*--140-*--c-*-iso8859-15\007"'
alias large='echo -en "\033]50;-misc-fixed-medium-r-normal-*--150-*--c-*-iso8859-15\007"'
alias huge='echo -en "\033]50;-misc-fixed-medium-r-normal-*--210-*--c-*-iso8859-15\007"'
alias smartfont='echo -en "\033]50;-artwiz-smoothansi-*--*--*--*--*--*-\007"'
alias semifont='echo -en "\033]50;-misc-fixed-medium-r-semicondensed-*--120-*--*--iso8859-15\007"'
# listing stuff
alias dir="ls -lSrah"
alias lad='ls -d .*(/)' # only show dot-directories
alias lsa='ls -a .*(.)' # only show dot-files
alias lss='ls -l (s,S,t)' # only files with setgid/setuid/sticky flag
alias lsl='ls -l (@[1,10])' # only symlinks
alias lsx='ls -l (*[1,10])' # only executables
alias lsw='ls -ld (R,W,X.^ND/)' # world-{readable,writable,executable} files
alias lsbig="ls -flh (.OL[1,10])" # display the biggest files
alias lsd='ls -d (/)' # only show directories
alias lse='ls -d (/^F)' # only show empty directories
alias lsnew="ls -rl (D.om[1,10])" # display the newest files
alias lsold="ls -rtlh (D.om[1,10])" # display the oldest files
alias lssmall="ls -Srl (.oL[1,10])" # display the smallest files
dwicti() { ${=BROWSER} http://de.wiktionary.org/wiki/${(C)1// /_} }
ewicti() { ${=BROWSER} http://en.wiktionary.org/wiki/${(C)1// /_} }
wikide () { ${=BROWSER} http://de.wikipedia.org/wiki/"${(C)*}" }
wikien() { ${=BROWSER} http://en.wikipedia.org/wiki/"$*" }
google() { ${=BROWSER} "http://www.google.at/search?hl=de&num=100&q=$*" }
mdiff() { diff -udrP "$1" "$2" > diff.`date "+%Y-%m-%d"`."$1" }
memusage(){ ps aux | awk '{if (NR > 1) print $5; if (NR > 2) print "+"} END { print "p" }' | dc }
oleo() { ${=BROWSER} "http://dict.leo.org/?search=$*" }
shtar() { gunzip -c $1 | tar -tf - -- | $PAGER }
shtgz() { tar -ztf $1 | $PAGER }
shzip() { unzip -l $1 | $PAGER }
swiki() { ${=BROWSER} http://de.wikipedia.org/wiki/Spezial:Search/${(C)1} }
# list files which have been modified within the last x days
new() { print -l (m-$1) }
# ogg2mp3 with bitrate of 192
ogg2mp3_192() {
oggdec -o - ${1} | lame -b 192 - ${1:r}.mp3
}
# UTF-8 change
isutfenv () {
case "$LANG $CHARSET $LANGUAGE" in
(*utf*) return 0 ;;
(*UTF*) return 0 ;;
(*) return 1 ;;
esac
}
alias term2iso="echo 'Setting terminal to iso mode' ; echo -e '^[%@'"
alias term2utf="echo 'Setting terminal to utf-8 mode'; echo -e '^[%G'"
alias utf2iso=`if isutfenv ; then
for ENV in 'env | grep UTF' ; do
eval export "$(echo $ENV | sed 's/UTF-8/iso885915/')"
done
fi`
alias iso2utf=`if isutfenv ; then
for ENV in 'env | grep "\.iso"' ; do
eval export "$(echo $ENV | sed 's/iso.*/UTF-8/')"
done
fi`
#if [[ "$TERM" == screen ]]; then
bindkey "\e[1~" beginning-of-line # home
bindkey "^[[4~" end-of-line # End
bindkey "^[[A" up-line-or-search # cursor up
bindkey "^[[B" down-line-or-search # -
bindkey '^x' history-beginning-search-backward # alternative ways of searching the shell history
# bindkey '\e[7~' beginning-of-line # home
# bindkey '\e[8~' end-of-line # end
#fi
# Startx - if x is not already started
# case `/usr/bin/tty` in /dev/tty[0-9]*)
XPID=$(/sbin/pidof xinit)
if [ -z "$XPID" ] ; then
startx ; exit
fi
# esac
if [ ! `/sbin/pidof skippy` ] ; then
skippy &
fi
if [ ! `/sbin/pidof esd` ] ; then
esd -nobeeps &
fi
if [ $(/sbin/ifconfig | /usr/bin/grep "inet addr" | cut -f 2 -d: | cut -f 1 --delimiter=" " | /usr/bin/grep 192 | cut -f 1 --delimiter=".") = "192" -a ! `/sbin/pidof synergys` ] ; then
synergys -c synergy.conf
fi
if [ ! `/sbin/pidof ssh` ] ; then
sshfs -o gid=1000,uid=1000 mkeeper@nanihil.com: nanihil/
ssh -X -Y -L1431:localhost:143 -L1432:localhost:25 -L8080:localhost:8080 mkeeper@213.239.217.213
fi
if [ ! `/sbin/pidof sshfs` ] ; then
sshfs -o gid=1000,uid=1000 mkeeper@nanihil.com: nanihil/
fi
#sb_filter=`ps aux | grep sb_imapfilter | grep -v grep`
#if [ $? = "1" -a `/sbin/pidof ssh` ] ; then
#python /usr/bin/sb_imapfilter.py -c -t -l 30 &
#fi
|