Re-release
This commit is contained in:
commit
5fccf763cd
25 changed files with 1421 additions and 0 deletions
45
awesome_bar.sh
Executable file
45
awesome_bar.sh
Executable file
|
@ -0,0 +1,45 @@
|
|||
#!/bin/zsh
|
||||
|
||||
SCREEN=0
|
||||
|
||||
func_power() {
|
||||
if [ -e /proc/acpi/battery/BAT0/info ]; then
|
||||
CAP=$(grep full /proc/acpi/battery/BAT0/info | awk '{print $4}')
|
||||
REM=$(grep remaining /proc/acpi/battery/BAT0/state | awk '{print $3}')
|
||||
CHARGING=$(grep "charging state" /proc/acpi/battery/BAT0/state | awk '{print $3}')
|
||||
STATE=$(($REM * 100 / $CAP))"%"
|
||||
|
||||
if [ "$CHARGING" = "charged" ]; then
|
||||
echo $SCREEN widget_tell topbar power_logo image /home/xeno/etc/icons/iconpack03/actions/go-next.png | awesome-client
|
||||
elif [ "$CHARGING" = "discharging" ]; then
|
||||
echo $SCREEN widget_tell topbar power_logo image /home/xeno/etc/icons/iconpack03/actions/go-down.png | awesome-client
|
||||
elif [ "$CHARGING" = "charging" ]; then
|
||||
echo $SCREEN widget_tell topbar power_logo image /home/xeno/etc/icons/iconpack03/actions/go-up.png | awesome-client
|
||||
fi
|
||||
|
||||
echo $STATE
|
||||
else
|
||||
echo "No Battery"
|
||||
fi
|
||||
}
|
||||
|
||||
func_mem() {
|
||||
TOT=$(free -m | grep Mem | awk '{print $2}')
|
||||
USE=$(free -m | grep buffers/cache | awk '{print $3}')
|
||||
MEM=$(($USE * 100 / $TOT))
|
||||
echo $MEM
|
||||
}
|
||||
|
||||
while true; do
|
||||
echo $SCREEN widget_tell topbar power text " `func_power` " | awesome-client
|
||||
echo $SCREEN widget_tell topbar mem data mem_state " `func_mem` " | awesome-client
|
||||
echo $SCREEN widget_tell topbar hdd data hdd_root `df / | tail -n 1 | awk '{print $4+100-100}'` | awesome-client
|
||||
echo $SCREEN widget_tell topbar hdd data hdd_home `df /home | tail -n 1 | awk '{print $4+100-100}'` | awesome-client
|
||||
echo $SCREEN widget_tell topbar wlan text " `/sbin/ifconfig | grep -A 1 wlan0 | tail -n 1 | awk '{print $2}' | sed 's/Adresse://g'` " | awesome-client
|
||||
echo $SCREEN widget_tell topbar clock text " `date +"%x %T"` " | awesome-client
|
||||
echo $SCREEN widget_tell topbar hostname text " `hostname` " | awesome-client
|
||||
|
||||
sleep 1
|
||||
done
|
||||
|
||||
# vim: set tw=0 ts=4:
|
104
awesomerc
Normal file
104
awesomerc
Normal file
|
@ -0,0 +1,104 @@
|
|||
screen 0 {
|
||||
general {
|
||||
resize_hints = false
|
||||
border = 1
|
||||
new_become_master = false
|
||||
new_get_focus = true
|
||||
}
|
||||
styles {
|
||||
normal { font = "Terminus 8" fg = "#ffffff" bg = "#000000" border = "#dddddd" }
|
||||
focus { fg = "#000000" bg = "#535d6c" border = "#ff0000" }
|
||||
urgent { fg = "#111111" bg = "#ff4500" }
|
||||
}
|
||||
tags {
|
||||
tag 1 { layout = "tile" mwfact = 0.54 }
|
||||
tag 2 { layout = "tile" mwfact = 0.54 }
|
||||
tag 3 { layout = "tile" mwfact = 0.54 }
|
||||
tag 4 { layout = "tile" mwfact = 0.54 }
|
||||
tag 5 { layout = "tile" mwfact = 0.54 }
|
||||
tag 6 { layout = "tile" mwfact = 0.54 }
|
||||
tag 7 { layout = "tile" mwfact = 0.54 }
|
||||
tag 8 { layout = "tile" mwfact = 0.54 }
|
||||
tag 9 { layout = "tile" mwfact = 0.54 }
|
||||
}
|
||||
layouts {
|
||||
layout tile {}
|
||||
layout tilebottom {}
|
||||
layout max {}
|
||||
}
|
||||
statusbar topbar {
|
||||
position = "top"
|
||||
height = "16"
|
||||
taglist tags {}
|
||||
iconbox power_logo { image = "/home/xeno/etc/icons/iconpack03/devices/battery.png" align = "right" }
|
||||
textbox power { align = "right" }
|
||||
iconbox mem_logo { image = "/home/xeno/etc/icons/shield.png" align = "right" }
|
||||
emptybox 01 { width = "5" align = "right" }
|
||||
progressbar mem { data mem_state { bordercolor = "#99cc00" fg = "#cc6600" } width = "60" height = .7 align = "right" }
|
||||
emptybox 02 { width = "5" align = "right" }
|
||||
iconbox hdd_logo { image = "/home/xeno/etc/icons/iconpack03/devices/drive-harddisk.png" align = "right" }
|
||||
emptybox 03 { width = "5" align = "right" }
|
||||
progressbar hdd { data hdd_root { bordercolor = "#99cc00" fg = "#cc6600" } data hdd_home { bordercolor = "#99cc33" fg = "#cc6600" } width = "60" height = .7 align = "right" }
|
||||
emptybox 04 { width = "5" align = "right" }
|
||||
iconbox wlan_logo { image = "/home/xeno/etc/icons/iconpack03/devices/network-wireless.png" align = "right" mouse { button = "1" command = "spawn" arg = "wicd-client -n" } }
|
||||
textbox wlan { align = "right" style { fg = "#999999" } mouse { button = "1" command = "spawn" arg = "wicd-client -n" } }
|
||||
iconbox clock_logo { image = "/home/xeno/etc/icons/iconpack03/apps/office-calendar.png" align = "right" }
|
||||
textbox clock { align = "right" }
|
||||
iconbox hostname_logo { image = "/home/xeno/etc/icons/iconpack03/devices/computer.png" align = "right" }
|
||||
textbox hostname { align = "right" style { fg = "#ff0000" } }
|
||||
}
|
||||
}
|
||||
|
||||
rules {
|
||||
rule { name = "Gimp" float = true }
|
||||
rule { name = "MPlayer" float = true }
|
||||
rule { name = "PacketTracer5" float = true }
|
||||
rule { name = "Twinkle" float = true }
|
||||
rule { name = "SDL_App" float = true }
|
||||
rule { name = "No_Crypt_Client_2d.exe" float = true }
|
||||
rule { name = "linux_64_client" float = true }
|
||||
rule { name = "Skype" float = true }
|
||||
rule { name = "Pidgin" float = true }
|
||||
rule { name = "Vega Strike" float = true }
|
||||
|
||||
}
|
||||
|
||||
mouse {
|
||||
client { modkey = {"Mod1"} button = "1" command = "client_movemouse" }
|
||||
client { modkey = {"Mod1"} button = "3" command = "client_resizemouse" }
|
||||
}
|
||||
|
||||
keys {
|
||||
key { modkey = {"Mod1"} key = "q" command = "spawn" arg = "`dmenu_path | dmenu` && eval \"exec $exe\"" }
|
||||
key { modkey = {"Mod1"} key = "Return" command = "spawn" arg = "exec x-terminal-emulator" }
|
||||
key { modkey = {"Mod1"} key = "l" command = "spawn" arg = "exec xscreensaver-command -lock" }
|
||||
key { modkey = {"Mod1"} key = "k" command = "spawn" arg = "exec amixer -c 0 set PCM 2dB+" }
|
||||
key { modkey = {"Mod1"} key = "s" command = "spawn" arg = "exec amixer -c 0 set PCM 2dB-" }
|
||||
key { modkey = {"Mod1"} key = "space" command = "tag_setlayout" arg = "+1" }
|
||||
key { modkey = {"Mod1"} key = "b" command = "statusbar_toggle" }
|
||||
key { modkey = {"Mod1"} key = "r" command = "client_focusnext" }
|
||||
key { modkey = {"Mod1"} key = "g" command = "client_focusprev" }
|
||||
key { modkey = {"Mod1", "Shift"} key = "r" command = "client_swapnext" }
|
||||
key { modkey = {"Mod1", "Shift"} key = "g" command = "client_swapprev" }
|
||||
key { modkey = {"Mod1"} key = "Tab" command = "screen_focus" arg = "+1" }
|
||||
key { modkey = {"Mod1"} key = "n" command = "tag_setmwfact" arg = "-0.02" }
|
||||
key { modkey = {"Mod1"} key = "t" command = "tag_setmwfact" arg = "+0.02" }
|
||||
key { modkey = {"Mod1", "Shift"} key = "n" command = "tag_setnmaster" arg = "+1" }
|
||||
key { modkey = {"Mod1", "Shift"} key = "t" command = "tag_setnmaster" arg = "-1" }
|
||||
key { modkey = {"Mod1"} key = "h" command = "tag_viewprev" }
|
||||
key { modkey = {"Mod1"} key = "f" command = "tag_viewnext" }
|
||||
key { modkey = {"Mod1"} key = "m" command = "client_togglemax" }
|
||||
key { modkey = {"Mod1", "Shift"} key = "c" command = "client_kill" }
|
||||
key { modkey = {"Mod1", "Shift"} key = "q" command = "quit" }
|
||||
key { modkey = {"Mod1", "Control"} key = "r" command = "restart" }
|
||||
key { modkey = {"Mod1"} key = "0" command = "tag_view" }
|
||||
keylist
|
||||
{
|
||||
modkey = {"Mod1"}
|
||||
command = "tag_view"
|
||||
keylist = { 1, 2, 3, 4, 5, 6, 7, 8, 9 }
|
||||
arglist = { 1, 2, 3, 4, 5, 6, 7, 8, 9 }
|
||||
}
|
||||
}
|
||||
|
||||
# vim: set tw=0 ts=4:
|
41
dzen2.sh
Executable file
41
dzen2.sh
Executable file
|
@ -0,0 +1,41 @@
|
|||
#!/bin/zsh
|
||||
# dzen2 script by Stefan Ritter <xeno@thehappy.de>
|
||||
|
||||
COUNT=0
|
||||
|
||||
func_date() {
|
||||
date +%x" "%T
|
||||
}
|
||||
|
||||
func_cputemp() {
|
||||
if [ -e /proc/acpi/thermal_zone/THRM/temperature ]; then
|
||||
echo $(cat /proc/acpi/thermal_zone/THRM/temperature | awk '{print $2 "°"}')
|
||||
fi
|
||||
}
|
||||
|
||||
func_battery() {
|
||||
if [ -e /proc/acpi/battery/BAT0/info ]; then
|
||||
CAP=$(grep full /proc/acpi/battery/BAT0/info | awk '{print $4}')
|
||||
REM=$(grep remaining /proc/acpi/battery/BAT0/state | awk '{print $3}')
|
||||
echo $(($REM * 100 / $CAP))"%"
|
||||
fi
|
||||
}
|
||||
|
||||
func_load() {
|
||||
echo $(cat /proc/loadavg | awk '{print $1 " " $2 " " $3}')
|
||||
}
|
||||
|
||||
func_volume() {
|
||||
amixer | grep -A 6 \'PCM\' | tail -n 1 | awk '{print $5}' | sed 's/\[//g' | sed 's/\]//g'
|
||||
}
|
||||
|
||||
func_wlanip() {
|
||||
/sbin/ifconfig | grep -A 1 wlan0 | tail -n 1 | awk '{print $2}' | sed 's/Adresse://g'
|
||||
}
|
||||
|
||||
while true; do
|
||||
print "^i(etc/pixelicons/spkr_01.xbm) $(func_volume) ^i(etc/pixelicons/info_01.xbm) $(func_load) ^i(etc/pixelicons/bat_full_02.xbm) $(func_battery) ^i(etc/pixelicons/temp.xbm) $(func_cputemp) ^ca(1,wicd-client -n)^i(etc/pixelicons/wifi_02.xbm)^ca() $(func_wlanip) ^i(etc/pixelicons/clock.xbm) $(func_date) ^fg(red)$(hostname) "
|
||||
sleep 1
|
||||
done
|
||||
|
||||
# vim: set tw=0:
|
6
geekcode
Normal file
6
geekcode
Normal file
|
@ -0,0 +1,6 @@
|
|||
-----BEGIN GEEK CODE BLOCK-----
|
||||
Version: 3.12
|
||||
GCS d- s+:- a- C++ UL P+ L+++ E--- W++ N* o K- w---
|
||||
O- M- V- PS PE-- Y PGP++ t+ 5 X R+ tv+ b++ DI-- D++
|
||||
G- e* h+ r- y+
|
||||
------END GEEK CODE BLOCK------
|
35
mocconfig
Normal file
35
mocconfig
Normal file
|
@ -0,0 +1,35 @@
|
|||
ReadTags = yes
|
||||
MusicDir = "/home/xeno/mp3/"
|
||||
Sort = FileName
|
||||
ShowStreamErrors = no
|
||||
Mp3IgnoreCRCErrors = yes
|
||||
Repeat = no
|
||||
Shuffle = no
|
||||
AutoNext = yes
|
||||
FormatString = "%(a:%a - :)%(t:%t:)"
|
||||
OutputBuffer = 2048
|
||||
InputBuffer = 512
|
||||
Prebuffering = 64
|
||||
SoundDriver = ALSA
|
||||
AlsaMixer = PCM
|
||||
AlsaMixer2 = Master
|
||||
AlsaDevice = default
|
||||
ShowHiddenFiles = no
|
||||
StartInMusicDir = yes
|
||||
HideFileExtension = yes
|
||||
ShowFormat = yes
|
||||
ShowTime = IfAvailable
|
||||
Theme = red_theme
|
||||
MOCDir = ~/.moc
|
||||
UseMmap = no
|
||||
SavePlaylist = yes
|
||||
SyncPlaylist = yes
|
||||
ASCIILines = no
|
||||
SeekTime = 10
|
||||
TagsCacheSize = 256
|
||||
PlaylistNumbering = yes
|
||||
FollowPlayedFile = yes
|
||||
CanStartInPlaylist = yes
|
||||
UseCursorSelection = yes
|
||||
#SetScreenTitle = yes
|
||||
PlaylistFullPaths = no
|
4
musik/exodus.pls
Normal file
4
musik/exodus.pls
Normal file
|
@ -0,0 +1,4 @@
|
|||
[playlist]
|
||||
Title=Radio-Exodus
|
||||
NumberOfEntries=1
|
||||
File1=http://stream.radio-exodus.de:9090/
|
3
musik/hifipunk.pls
Normal file
3
musik/hifipunk.pls
Normal file
|
@ -0,0 +1,3 @@
|
|||
[playlist]
|
||||
NumberOfEntries=1
|
||||
File1=http://128.hifipunk.com:8000
|
15
musik/idobi.pls
Normal file
15
musik/idobi.pls
Normal file
|
@ -0,0 +1,15 @@
|
|||
[playlist]
|
||||
numberofentries=4
|
||||
File1=http://72.13.82.202:80
|
||||
Title1=(#1 - 1/450) idobi Radio: Music that doesn't suck! News, interviews and the best in alternative, rock, and punk m
|
||||
Length1=-1
|
||||
File2=http://208.53.158.213:80
|
||||
Title2=(#2 - 1/1000) idobi Radio: Music that doesn't suck! News, interviews and the best in alternative, rock, and punk m
|
||||
Length2=-1
|
||||
File3=http://72.13.82.34:80
|
||||
Title3=(#3 - 1/1000) idobi Radio: Music that doesn't suck! News, interviews and the best in alternative, rock, and punk m
|
||||
Length3=-1
|
||||
File4=http://208.53.147.142:80
|
||||
Title4=(#4 - 1/1000) idobi Radio: Music that doesn't suck! News, interviews and the best in alternative, rock, and punk m
|
||||
Length4=-1
|
||||
Version=2
|
7
musik/rautemusik.pls
Normal file
7
musik/rautemusik.pls
Normal file
|
@ -0,0 +1,7 @@
|
|||
[playlist]
|
||||
File1=http://extreme-high.rautemusik.fm
|
||||
Title1=#Musik.eXTreMe - www.RauteMusik.FM - Wir rocken das Netz!
|
||||
Length1=-1
|
||||
NumberOfEntries=1
|
||||
Version=2
|
||||
|
3
musik/wackenradio.pls
Normal file
3
musik/wackenradio.pls
Normal file
|
@ -0,0 +1,3 @@
|
|||
[playlist]
|
||||
NumberOfEntries=1
|
||||
File1=http://62.141.50.223:8001/
|
26
mutt/colors
Normal file
26
mutt/colors
Normal file
|
@ -0,0 +1,26 @@
|
|||
color normal white default # default colors
|
||||
|
||||
color attachment yellow default
|
||||
color hdrdefault white default
|
||||
color indicator white blue # cursor color
|
||||
color markers brightblue default
|
||||
color quoted green default
|
||||
color signature brightblue default
|
||||
color status blue default
|
||||
color tilde brightblue default
|
||||
color tree brightblue default
|
||||
|
||||
### header colors
|
||||
color header red default ^From:
|
||||
color header red default ^To:
|
||||
color header red default ^Reply-To:
|
||||
color header red default ^Cc:
|
||||
color header red default ^Subject:
|
||||
|
||||
### body colors
|
||||
color body brightblue default [\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+
|
||||
color body brightblue default (https?|ftp)://[\-\.\,/%~_:?\#a-zA-Z0-9]+
|
||||
|
||||
### mark unread stuff
|
||||
color index white red ~N
|
||||
color index white red ~O
|
2
mutt/ignore
Normal file
2
mutt/ignore
Normal file
|
@ -0,0 +1,2 @@
|
|||
ignore *
|
||||
unignore From To Reply-To Subject Cc
|
14
mutt/pgp
Normal file
14
mutt/pgp
Normal file
|
@ -0,0 +1,14 @@
|
|||
set pgp_decode_command="gpg --status-fd=2 %?p?--passphrase-fd 0? --no-verbose --quiet --batch --output - %f"
|
||||
set pgp_verify_command="gpg --status-fd=2 --no-verbose --quiet --batch --output - --verify %s %f"
|
||||
set pgp_decrypt_command="gpg --status-fd=2 %?p?--passphrase-fd 0? --no-verbose --quiet --batch --output - %f"
|
||||
set pgp_sign_command="gpg --no-verbose --batch --quiet --output - %?p?--passphrase-fd 0? --armor --detach-sign --textmode %?a?-u %a? %f"
|
||||
set pgp_clearsign_command="gpg --no-verbose --batch --quiet --output - %?p?--passphrase-fd 0? --armor --textmode --clearsign %?a?-u %a? %f"
|
||||
set pgp_encrypt_only_command="/usr/lib/mutt/pgpewrap gpg --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f"
|
||||
set pgp_encrypt_sign_command="/usr/lib/mutt/pgpewrap gpg %?p?--passphrase-fd 0? --batch --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f"
|
||||
set pgp_import_command="gpg --no-verbose --import %f"
|
||||
set pgp_export_command="gpg --no-verbose --export --armor %r"
|
||||
set pgp_verify_key_command="gpg --verbose --batch --fingerprint --check-sigs %r"
|
||||
set pgp_list_pubring_command="gpg --no-verbose --batch --quiet --with-colons --list-keys %r"
|
||||
set pgp_list_secring_command="gpg --no-verbose --batch --quiet --with-colons --list-secret-keys %r"
|
||||
set pgp_good_sign="^\\[GNUPG:\\] GOODSIG"
|
||||
set pgp_autosign=yes
|
6
mutt/settings
Normal file
6
mutt/settings
Normal file
|
@ -0,0 +1,6 @@
|
|||
set header_cache="~/.mutt_header_cache"
|
||||
set mail_check=3
|
||||
set timeout=2
|
||||
set beep_new=yes
|
||||
set edit_headers
|
||||
set pager_index_lines=6
|
12
mutt/sidebar
Normal file
12
mutt/sidebar
Normal file
|
@ -0,0 +1,12 @@
|
|||
set sidebar_delim = " | "
|
||||
set sidebar_width = 40
|
||||
|
||||
bind index \CH sidebar-prev
|
||||
bind index \CN sidebar-next
|
||||
bind index \CR sidebar-open
|
||||
bind pager \CH sidebar-prev
|
||||
bind pager \CN sidebar-next
|
||||
bind pager \CR sidebar-open
|
||||
|
||||
macro index b '<enter-command>toggle sidebar_visible<enter>'
|
||||
macro pager b '<enter-command>toggle sidebar_visible<enter>'
|
13
mutt/smime
Normal file
13
mutt/smime
Normal file
|
@ -0,0 +1,13 @@
|
|||
set smime_ca_location="~/.smime/ca-bundle.crt"
|
||||
set smime_certificates="~/.smime/certificates"
|
||||
set smime_keys="~/.smime/keys"
|
||||
set smime_pk7out_command="openssl smime -verify -in %f -noverify -pk7out"
|
||||
set smime_get_cert_command="openssl pkcs7 -print_certs -in %f"
|
||||
set smime_get_signer_cert_command="openssl smime -verify -in %f -noverify -signer %c -out /dev/null"
|
||||
set smime_get_cert_email_command="openssl x509 -in %f -noout -email"
|
||||
set smime_import_cert_command="smime_keys add_cert %f"
|
||||
set smime_encrypt_command="openssl smime -encrypt %a -outform DER -in %f %c"
|
||||
set smime_sign_command="openssl smime -sign -signer %c -inkey %k -passin stdin -in %f -certfile %i -outform DER"
|
||||
set smime_decrypt_command="openssl smime -decrypt -passin stdin -inform DER -in %f -inkey %k -recip %c"
|
||||
set smime_verify_command="openssl smime -verify -inform DER -in %s %C -content %f"
|
||||
set smime_verify_opaque_command="openssl smime -verify -inform DER -in %s %C"
|
442
neo2
Normal file
442
neo2
Normal file
|
@ -0,0 +1,442 @@
|
|||
// based on a keyboard map from an 'xkb/symbols/de' file
|
||||
//
|
||||
// $XKeyboardConfig: xkeyboard-config/symbols/de,v 1.17 2007/07/15 22:12:12 svu Exp $
|
||||
// $XFree86: xc/programs/xkbcomp/symbols/de,v 1.6 2003/09/08 13:12:51 pascal Exp $
|
||||
|
||||
default
|
||||
xkb_symbols "basic" {
|
||||
|
||||
include "latin(type4)"
|
||||
|
||||
name[Group1]="Germany";
|
||||
|
||||
key <AE02> { [ 2, quotedbl, twosuperior, oneeighth ] };
|
||||
key <AE03> { [ 3, section, threesuperior, sterling ] };
|
||||
key <AE04> { [ 4, dollar, onequarter, currency ] };
|
||||
|
||||
key <AE11> {type[Group1]="FOUR_LEVEL_PLUS_LOCK", symbols[Group1]=
|
||||
[ssharp, question, backslash, questiondown, 0x1001E9E ]};
|
||||
// The unicode capital letter sharp s U+1E9E is transformed to "SS"
|
||||
// to match the rules for capitalizing sharp s in german.
|
||||
// If the capital sharp s is needed, delete the line
|
||||
// starting with <U1E9C> from /usr/share/X11/locale/iso8859-15/Compose.
|
||||
// If both doubled S and capital sharp s are needed, use 0x1001E9E
|
||||
// for capital sharp s and some free unicode codepoint like 0x1001E9C
|
||||
// for doubled S. Don`t forget to change this in the Compose file, too.
|
||||
|
||||
key <AE12> { [dead_acute, dead_grave, dead_cedilla, dead_ogonek ] };
|
||||
|
||||
key <AD03> { [ e, E, EuroSign, EuroSign ] };
|
||||
key <AD06> { [ z, Z, leftarrow, yen ] };
|
||||
key <AD11> { [udiaeresis, Udiaeresis, dead_diaeresis, dead_abovering ] };
|
||||
key <AD12> { [ plus, asterisk, dead_tilde, dead_macron ] };
|
||||
|
||||
key <AC10> { [odiaeresis, Odiaeresis, dead_doubleacute, dead_doubleacute ] };
|
||||
key <AC11> { [adiaeresis, Adiaeresis, dead_circumflex, dead_caron] };
|
||||
key <TLDE> { [dead_circumflex, degree, notsign, notsign ] };
|
||||
|
||||
key <BKSL> { [numbersign, apostrophe, dead_grave, dead_breve ] };
|
||||
key <AB01> { [ y, Y, guillemotleft, less ] };
|
||||
|
||||
include "kpdl(comma)"
|
||||
|
||||
include "level3(ralt_switch)"
|
||||
};
|
||||
|
||||
partial alphanumeric_keys
|
||||
xkb_symbols "nodeadkeys" {
|
||||
|
||||
// modify the basic German layout to not have any dead keys
|
||||
|
||||
include "de(basic)"
|
||||
name[Group1]="Germany - Eliminate dead keys";
|
||||
|
||||
key <TLDE> { [asciicircum, degree, notsign, notsign ] };
|
||||
key <AE12> { [apostrophe, grave, cedilla, cedilla ] };
|
||||
key <AD11> { [udiaeresis, Udiaeresis, diaeresis, diaeresis ] };
|
||||
key <AD12> { [ plus, asterisk, asciitilde, macron ] };
|
||||
key <AC10> { [odiaeresis, Odiaeresis, doubleacute, doubleacute ] };
|
||||
key <AC11> { [adiaeresis, Adiaeresis, asciicircum, asciicircum ] };
|
||||
key <BKSL> { [numbersign, apostrophe, grave, grave ] };
|
||||
key <AB10> { [ minus, underscore, dead_belowdot, abovedot ] };
|
||||
};
|
||||
|
||||
partial alphanumeric_keys
|
||||
xkb_symbols "deadgraveacute" {
|
||||
// modify the basic German layout to have only acute and grave
|
||||
// as dead keys (tilde and circumflex are needed as spacing characters
|
||||
// in many programming languages)
|
||||
|
||||
include "de(basic)"
|
||||
name[Group1]="Germany - Dead grave acute";
|
||||
|
||||
key <TLDE> { [asciicircum, degree, notsign, notsign ] };
|
||||
key <AD12> { [ plus, asterisk, asciitilde, dead_macron ] };
|
||||
key <BKSL> { [numbersign, apostrophe, grave, grave ] };
|
||||
};
|
||||
|
||||
partial alphanumeric_keys
|
||||
xkb_symbols "deadacute" {
|
||||
// modify the basic German layout to have only acute as
|
||||
// dead keys (ASCII grave, tilde and circumflex are needed as
|
||||
// spacing characters in many programming languages and text formatters)
|
||||
|
||||
include "de(deadgraveacute)"
|
||||
|
||||
name[Group1]="Germany - Dead acute";
|
||||
|
||||
key <AE12> { [dead_acute, grave, dead_cedilla, dead_ogonek ] };
|
||||
key <BKSL> { [numbersign, apostrophe, dead_grave, dead_grave ] };
|
||||
};
|
||||
|
||||
partial alphanumeric_keys
|
||||
xkb_symbols "ro" {
|
||||
// add romanian-specific letters to the basic German layout.
|
||||
// Romanian symbols are accessible with combination of <AltGr> and
|
||||
// 'a', 's', 't', 'i', 'ä (ä)' (+<Shift> for capital letters).
|
||||
// To view romanian-specific symbols, add "export LC_CTYPE=ro_RO"
|
||||
// or "export LC_CTYPE=de_DE.utf8" to your .profile.
|
||||
|
||||
include "de(basic)"
|
||||
|
||||
name[Group1]="Germany - Romanian keyboard with German letters";
|
||||
|
||||
key <AD05> { [ t, T, tcedilla, Tcedilla ] };
|
||||
key <AD08> { [ i, I, icircumflex, Icircumflex ] };
|
||||
key <AC01> { [ a, A, acircumflex, Acircumflex ] };
|
||||
key <AC02> { [ s, S, scedilla, Scedilla ] };
|
||||
key <AC11> { [ adiaeresis, Adiaeresis, abreve, Abreve ] };
|
||||
};
|
||||
|
||||
partial alphanumeric_keys
|
||||
xkb_symbols "ro_nodeadkeys" {
|
||||
// add romanian-specific letters to the German nodeadkeys layout.
|
||||
// Read the comment for de_ro !
|
||||
|
||||
include "de(nodeadkeys)"
|
||||
name[Group1]="Germany - Romanian keyboard with German letters, eliminate dead keys";
|
||||
|
||||
key <AD05> { [ t, T, tcedilla, Tcedilla ] };
|
||||
key <AD08> { [ i, I, icircumflex, Icircumflex ] };
|
||||
key <AC01> { [ a, A, acircumflex, Acircumflex ] };
|
||||
key <AC02> { [ s, S, scedilla, Scedilla ] };
|
||||
key <AC11> { [ adiaeresis, Adiaeresis, abreve, Abreve ] };
|
||||
};
|
||||
|
||||
// German Dvorak keymap by Thorsten Staerk (www.staerk.de/thorsten)
|
||||
// Have acute and grave as dead keys, tilde and circumflex alive as they are needed
|
||||
// in many programming languages.
|
||||
// to use this keymap, use a 105-key-keyboard and the command setxkbmap -model pc105 -layout dvorak -variant de
|
||||
// source: http://www-lehre.informatik.uni-osnabrueck.de/~rfreund/dvorak.php
|
||||
partial alphanumeric_keys
|
||||
xkb_symbols "dvorak" {
|
||||
include "us(dvorak)"
|
||||
|
||||
name[Group1]="Germany - Dvorak";
|
||||
|
||||
key <TLDE> { [ asciicircum, degree ] };
|
||||
|
||||
key <AE01> { [ 1, exclam, onesuperior ] };
|
||||
key <AE02> { [ 2, quotedbl, twosuperior ] };
|
||||
key <AE03> { [ 3, section, threesuperior ] };
|
||||
key <AE04> { [ 4, dollar, bar ] };
|
||||
key <AE05> { [ 5, percent, bar ] };
|
||||
key <AE06> { [ 6, ampersand, brokenbar ] };
|
||||
key <AE07> { [ 7, slash, braceleft ] };
|
||||
key <AE08> { [ 8, parenleft, bracketleft ] };
|
||||
key <AE09> { [ 9, parenright, bracketright ] };
|
||||
key <AE10> { [ 0, equal, braceright ] };
|
||||
key <AE11> { [ plus, asterisk, asciitilde ] };
|
||||
key <AE12> { [ less, greater, dead_grave ] };
|
||||
|
||||
key <AD01> { [ udiaeresis, Udiaeresis, at ] };
|
||||
key <AD02> { [ comma, semicolon, dead_diaeresis ] };
|
||||
key <AD03> { [ period, colon ] };
|
||||
key <AD08> { [ c, C, copyright, Cacute ] };
|
||||
key <AD09> { [ t, T, trademark ] };
|
||||
key <AD10> { [ z, Z, zabovedot, Zabovedot ] };
|
||||
key <AD11> { [ question, ssharp ] };
|
||||
key <AD12> { [ slash, backslash, dead_acute ] };
|
||||
|
||||
key <AC01> { [ a, A, at, aogonek ] };
|
||||
key <AC02> { [ o, O, oacute, Oacute ] };
|
||||
key <AC03> { [ e, E, EuroSign, eogonek ] };
|
||||
key <AC04> { [ i, I ] };
|
||||
key <AC05> { [ u, U ] };
|
||||
key <AC06> { [ h, H ] };
|
||||
key <AC07> { [ d, D ] };
|
||||
key <AC08> { [ r, R, registered ] };
|
||||
key <AC09> { [ n, N, nacute, Nacute ] };
|
||||
key <AC10> { [ s, S, sacute, Sacute] };
|
||||
key <AC11> { [ l, L, lstroke, Lstroke ] };
|
||||
|
||||
key <AB01> { [ odiaeresis, Odiaeresis ] };
|
||||
key <AB02> { [ q, Q, at ] };
|
||||
key <AB07> { [ m, M, mu ] };
|
||||
key <AB10> { [ numbersign, apostrophe ] };
|
||||
|
||||
key <BKSL> { [ minus, underscore, hyphen, diaeresis] };
|
||||
|
||||
key <LSGT> { [ adiaeresis, Adiaeresis, bar ] };
|
||||
|
||||
include "level3(ralt_switch)"
|
||||
};
|
||||
|
||||
partial alphanumeric_keys
|
||||
xkb_symbols "Sundeadkeys" {
|
||||
|
||||
// For naming consistency
|
||||
|
||||
include "de(basic)"
|
||||
|
||||
};
|
||||
|
||||
partial alphanumeric_keys
|
||||
xkb_symbols "sundeadkeys" {
|
||||
|
||||
// For naming consistency
|
||||
|
||||
include "de(Sundeadkeys)"
|
||||
|
||||
name[Group1]="Germany - Sun dead keys";
|
||||
};
|
||||
|
||||
|
||||
// German NEO-Layout
|
||||
// adopted 2004 by Hanno Behrens <Hanno.Behrens@gmx.de>
|
||||
// inspired by Dvorak/de-ergo http://www.goebel-consult.de/de-ergo/
|
||||
//
|
||||
// Authors:
|
||||
// <lucky at zankt dot net>
|
||||
// Benjamin Kellermann <Benjamin dot Kellermann at gmx dot Germany>
|
||||
//
|
||||
// Other Questions:
|
||||
// <mailinglist at neo-layout dot org>
|
||||
//
|
||||
// $Revision$, $Date$
|
||||
// http://pebbles.schattenlauf.de/layout.php
|
||||
|
||||
|
||||
partial alphanumeric_keys modifier_keys keypad_keys
|
||||
xkb_symbols "neo" {
|
||||
|
||||
name[Group1]= "German Neostyle";
|
||||
|
||||
// Modifier definition
|
||||
// -----------------------
|
||||
|
||||
// Mod3 (FIXME Nur CAPS+BKSL ist Caps_Lock – Nicht andersherum, siehe Ticket #30)
|
||||
key.type[Group1]="THREE_LEVEL";
|
||||
key <BKSL> { [ ISO_Level3_Shift, ISO_Level3_Shift, Caps_Lock ] };
|
||||
key <CAPS> { [ ISO_Level3_Shift, ISO_Level3_Shift, Caps_Lock ] };
|
||||
|
||||
// Definition des Neo-Mod4
|
||||
key.type[Group1]="ONE_LEVEL";
|
||||
key <LSGT> { [ 0xfe11 ]};
|
||||
key <RALT> { [ 0xfe11 ]};
|
||||
modifier_map Mod3 { <LSGT>, <RALT> };
|
||||
// Achtung: ^^^ Dies ist eine X-Server-Variable, nicht unser Mod3.
|
||||
|
||||
// Ebenen im Neo-Jargon, hier im Treiber andere Reihenfolge
|
||||
// -------------------------------------------------------------
|
||||
// Ebene 1: normal
|
||||
// Ebene 2: Shift
|
||||
// Ebene 3: Mod3
|
||||
// Ebene 4: Mod4 (zum Markieren Shift+Mod4)
|
||||
// Ebene 5: Shift+Mod3
|
||||
// Ebene 6: Mod3+Mod4 (in dieser Reihenfolge)
|
||||
// Compose (keine eigene Ebene): Mod3+Tab
|
||||
// Feststelltaste (Capslock): Shift+Shift
|
||||
//
|
||||
// Ebenen im Xkeymap-Jargon, hier in der Treiberdatei
|
||||
// -------------------------------------------------------
|
||||
// Die von uns genannte Ebene 6 ist auf den X-Level 7
|
||||
// verschoben, da der X-Level 6 mit Shift+Mod4 zu erreichen ist.
|
||||
// Die Navigationstasten von Ebene 4 (mit X-Mod4 bzw. X-Level 5)
|
||||
// werden teilweise, um auch mit Shift+Mod4 zu funktionieren,
|
||||
// nochmal im X-Level 6 wiederholt. Also so:
|
||||
// Ebene1 Ebene2 Ebene3 Ebene5 Ebene4 Eb4+Shift Ebene6
|
||||
// X-Level1 X-Level2 X-Level3 X-Level4 X-Level5 X-Level6 X-Level7
|
||||
|
||||
key.type[Group1]="EIGHT_LEVEL_ALPHABETIC" ;
|
||||
|
||||
// general Lock
|
||||
// -----------------
|
||||
// Einrasten über linke Win-Taste+Modifier, Lösen über nochmaliges Betätigen des Modifiers
|
||||
// ShiftLock und Mod5Lock funktionieren, aber Achtung:
|
||||
// FIXME Mod3Lock lässt sich aber nicht mehr lösen!!!!
|
||||
|
||||
|
||||
// Tab as Multi_key (Compose)
|
||||
// -------------------------------
|
||||
key <TAB> { [ Tab, ISO_Left_Tab, Multi_key ] };
|
||||
|
||||
// number row
|
||||
// ---------------
|
||||
|
||||
// These are the levels used, and Xorg's translations with type="EIGHT_LEVEL":
|
||||
// Base Shift Mod3 Shift+Mod3 Mod4 Shift+Mod4 Mod3+Mod4
|
||||
// Mod5 Mod6
|
||||
// Level1 Level2 Level3 Level4 Level5 Level6 Level7
|
||||
// Ebene1 Ebene2 Ebene3 Ebene5 Ebene4 Ebene4+Shift Ebene6
|
||||
|
||||
key <TLDE> { [ dead_circumflex, dead_caron, dead_breve, dead_stroke, dead_belowdot, NoSymbol, dead_belowdot ] };
|
||||
|
||||
key <AE01> { [ 1, degree, onesuperior, U2081, enfilledcircbullet, NoSymbol, notsign ] };
|
||||
key <AE02> { [ 2, numerosign, twosuperior, U2082, U2023, NoSymbol, logicalor ] };
|
||||
key <AE03> { [ 3, section, threesuperior, U2083, NoSymbol, NoSymbol, logicaland ] };
|
||||
key <AE04> { [ 4, guillemotright, U203A, U2113, Prior, Prior, uptack ] };
|
||||
key <AE05> { [ 5, guillemotleft, U2039, femalesymbol, NoSymbol, NoSymbol, U2221 ] };
|
||||
key <AE06> { [ 6, EuroSign, cent, malesymbol, sterling, NoSymbol, U2225 ] };
|
||||
|
||||
key <AE07> { [ 7, dollar, yen, Greek_kappa, currency, NoSymbol, U21C8 ] };
|
||||
key <AE08> { [ 8, doublelowquotemark, singlelowquotemark, U27E8, KP_Divide, NoSymbol, U21C5 ] };
|
||||
key <AE09> { [ 9, leftdoublequotemark, leftsinglequotemark, U27E9, KP_Multiply, NoSymbol, U220B ] };
|
||||
key <AE10> { [ 0, rightdoublequotemark, rightsinglequotemark, U2080, minus, NoSymbol, emptyset ] };
|
||||
|
||||
key <AE11> { [ minus, endash, emdash, U2011, NoSymbol, NoSymbol, hyphen ] };
|
||||
key <AE12> { [ dead_acute, dead_grave, dead_cedilla, dead_ogonek, dead_abovedot, NoSymbol, dead_abovering ] };
|
||||
|
||||
// top row
|
||||
// ------------
|
||||
// xvlcwkhgfqß
|
||||
key <AD01> { [ x, X, ellipsis, Greek_xi, U22EE, NoSymbol, Greek_XI ] };
|
||||
key <AD02> { [ v, V, underscore, NoSymbol, BackSpace, BackSpace, U2259 ] };
|
||||
key <AD03> { [ l, L, bracketleft, Greek_lambda, Up, Up, Greek_LAMBDA ] };
|
||||
key <AD04> { [ c, C, bracketright, Greek_chi, Delete, Delete, U2102 ] };
|
||||
key <AD05> { [ w, W, asciicircum, Greek_omega, Insert, Insert, Greek_OMEGA ] };
|
||||
|
||||
key <AD06> { [ k, K, exclam, U03F0, exclamdown, NoSymbol, radical ] };
|
||||
key <AD07> { [ h, H, less, Greek_psi, 7, NoSymbol, Greek_PSI ] };
|
||||
key <AD08> { [ g, G, greater, Greek_gamma, 8, NoSymbol, Greek_GAMMA ] };
|
||||
key <AD09> { [ f, F, equal, Greek_phi, 9, NoSymbol, Greek_PHI ] };
|
||||
key <AD10> { [ q, Q, ampersand, U03D5, plus, NoSymbol, U211A ] };
|
||||
key <AD11> { [ ssharp, U1E9E, U017F, Greek_finalsmallsigma, NoSymbol, NoSymbol, jot ] };
|
||||
|
||||
key <AD12> { [ dead_tilde, dead_macron, dead_diaeresis, dead_doubleacute, dead_stroke, NoSymbol, NoSymmol ] };
|
||||
|
||||
// middle row
|
||||
// ---------------
|
||||
// uiaeosnrtdy
|
||||
key <AC01> { [ u, U, backslash, NoSymbol, Home, Home, U222E ] };
|
||||
key <AC02> { [ i, I, slash, Greek_iota, Left, Left, integral ] };
|
||||
key <AC03> { [ a, A, braceleft, Greek_alpha, Down, Down, U2200 ] };
|
||||
key <AC04> { [ e, E, braceright, Greek_epsilon, Right, Right, U2203 ] };
|
||||
key <AC05> { [ o, O, asterisk, Greek_omicron, End, End, elementof ] };
|
||||
|
||||
key <AC06> { [ s, S, question, Greek_sigma, questiondown, NoSymbol, Greek_SIGMA ] };
|
||||
key <AC07> { [ n, N, parenleft, Greek_nu, 4, NoSymbol, U2115 ] };
|
||||
key <AC08> { [ r, R, parenright, U03F1, 5, NoSymbol, U211D ] };
|
||||
key <AC09> { [ t, T, minus, Greek_tau, 6, NoSymbol, partialderivative ] };
|
||||
key <AC10> { [ d, D, colon, Greek_delta, comma, NoSymbol, Greek_DELTA ] };
|
||||
key <AC11> { [ y, Y, at, Greek_upsilon, period, NoSymbol, nabla ] };
|
||||
|
||||
// bottom row
|
||||
// ---------------
|
||||
// üöäpzbm,.j
|
||||
key <AB01> { [ udiaeresis, Udiaeresis, numbersign, NoSymbol, Escape, Escape, variation ] };
|
||||
key <AB02> { [ odiaeresis, Odiaeresis, dollar, NoSymbol, Tab, Tab, U2111 ] };
|
||||
key <AB03> { [ adiaeresis, Adiaeresis, bar, Greek_eta, Next, Next, U211C ] };
|
||||
key <AB04> { [ p, P, asciitilde, Greek_pi, Return, Return, Greek_PI ] };
|
||||
key <AB05> { [ z, Z, grave, Greek_zeta, NoSymbol, NoSymbol, U2124 ] };
|
||||
|
||||
key <AB06> { [ b, B, plus, Greek_beta, colon, NoSymbol, U21D0 ] };
|
||||
key <AB07> { [ m, M, percent, Greek_mu, 1, NoSymbol, ifonlyif ] };
|
||||
key <AB08> { [ comma, NoSymbol, quotedbl, Greek_rho, 2, NoSymbol, U21D2 ] };
|
||||
key <AB09> { [ period, NoSymbol, apostrophe, U03D1, 3, NoSymbol, Greek_THETA ] };
|
||||
key <AB10> { [ j, J, semicolon, Greek_theta, semicolon, NoSymbol, U221D ] };
|
||||
|
||||
// Space key
|
||||
// --------------
|
||||
key <SPCE> { [ space, space, space, nobreakspace, 0, NoSymbol, U202F ] };
|
||||
|
||||
// Keypad
|
||||
// ===========
|
||||
|
||||
// Num-Lock gibt es bei Neo nicht mehr:
|
||||
//key.type[Group1]="FOUR_LEVEL_MIXED_KEYPAD" ;
|
||||
|
||||
// Die ehemalige Num-Lock-Taste erzeugt nun diverse Zeichen:
|
||||
key <NMLK> { [ Tab, ISO_Left_Tab, equal, U2248, notequal, NoSymbol, U2261 ] };
|
||||
|
||||
// topmost row
|
||||
// ----------------
|
||||
key <KPDV> { [ KP_Divide, KP_Divide, division, U2223, U2300, NoSymbol, U2044 ] };
|
||||
key <KPMU> { [ KP_Multiply, KP_Multiply, U22C5, multiply, U2299, NoSymbol, U2297 ] };
|
||||
key <KPSU> { [ KP_Subtract, KP_Subtract, U2212, U2216, U2296, NoSymbol, U2238 ] };
|
||||
|
||||
// top row
|
||||
// ------------
|
||||
key <KP7> { [ KP_7, U2714, U2195, U230A, KP_Home, KP_Home, U2308 ] };
|
||||
key <KP8> { [ KP_8, U2718, U2191, U2229, KP_Up, KP_Up, U22C2 ] };
|
||||
key <KP9> { [ KP_9, dagger, U20D7, U230B, KP_Prior, KP_Prior, U2309 ] };
|
||||
key <KPAD> { [ KP_Add, KP_Add, plusminus, U2213, U2295, NoSymbol, U2214 ] };
|
||||
|
||||
// middle row
|
||||
// ----------------
|
||||
key <KP4> { [ KP_4, U2663, leftarrow, includedin, KP_Left, KP_Left, U2286 ] };
|
||||
key <KP5> { [ KP_5, EuroSign, infinity, U22B6, KP_Begin, KP_Begin, U22B7 ] };
|
||||
key <KP6> { [ KP_6, brokenbar, rightarrow, includes, KP_Right, KP_Right, U2287 ] };
|
||||
|
||||
// bottom row
|
||||
// ---------------
|
||||
key <KP1> { [ KP_1, U2666, U2194, U226A, KP_End, KP_End, U2264 ] };
|
||||
key <KP2> { [ KP_2, U2665, downarrow, union, KP_Down, KP_Down, U22C3 ] };
|
||||
key <KP3> { [ KP_3, U2660, U21CC, U226B, KP_Next, KP_Next, U2265 ] };
|
||||
key <KPEN> { [ KP_Enter, KP_Enter, KP_Enter, KP_Enter, KP_Enter, KP_Enter, KP_Enter ] };
|
||||
key <KPEQ> { [ KP_Equal ] };
|
||||
|
||||
// bottommost row
|
||||
// -------------------
|
||||
key <KP0> { [ KP_0, U2423, percent, U2030, KP_Insert, KP_Insert, U25A1 ] };
|
||||
key <KPDL> { [ KP_Decimal, comma, period, apostrophe, KP_Delete, KP_Delete, quotedbl ] };
|
||||
|
||||
};
|
||||
|
||||
// Copied from macintosh_vndr/de
|
||||
// olh@suse.de very close to MacOS map
|
||||
|
||||
partial alphanumeric_keys
|
||||
xkb_symbols "mac" {
|
||||
|
||||
include "de"
|
||||
name[Group1]= "Germany - Macintosh";
|
||||
|
||||
// Alphanumeric section
|
||||
key <AE01> { [ 1, exclam, exclamdown, at ] };
|
||||
key <AE05> { [ 5, percent, bracketleft ] };
|
||||
key <AE06> { [ 6, ampersand, bracketright ] };
|
||||
key <AE07> { [ 7, slash, bar, backslash ] };
|
||||
key <AE08> { [ 8, parenleft, braceleft, asciitilde ] };
|
||||
key <AE09> { [ 9, parenright, braceright ] };
|
||||
key <AD01> { [ q, Q, guillemotleft, guillemotright ] };
|
||||
key <AD04> { [ r, R, registered ] };
|
||||
key <AD07> { [ u, U, diaeresis, Aacute ] };
|
||||
key <AD08> { [ i, I, slash, Ucircumflex ] };
|
||||
key <AD11> { [ udiaeresis, Udiaeresis, periodcentered, degree ] };
|
||||
key <AD12> { [ plus, asterisk, asciitilde ] };
|
||||
key <AC01> { [ a, A, aring, Aring ] };
|
||||
key <AC05> { [ g, G, copyright ] };
|
||||
key <AC06> { [ h, H, ordfeminine ] };
|
||||
key <AC09> { [ l, L, at ] };
|
||||
key <AC10> { [ odiaeresis, Odiaeresis, dead_acute ] };
|
||||
key <AB06> { [ n, N, asciitilde ] };
|
||||
|
||||
};
|
||||
|
||||
partial alphanumeric_keys
|
||||
xkb_symbols "mac_nodeadkeys" {
|
||||
// modify the standard German mac layout to not have any dead keys
|
||||
include "de(mac)"
|
||||
name[Group1]= "Germany - Macintosh, eliminate dead keys";
|
||||
key <AE04> { [ 4, dollar, onequarter, currency ] };
|
||||
|
||||
key <TLDE> { [ asciicircum, degree, notsign ] };
|
||||
key <AE12> { [ acute, grave, cedilla ] };
|
||||
key <AD11> { [ udiaeresis, Udiaeresis, diaeresis ] };
|
||||
key <AD12> { [ plus, asterisk, asciitilde, macron ] };
|
||||
key <AC10> { [ odiaeresis, Odiaeresis, acute ] };
|
||||
key <AC11> { [ adiaeresis, Adiaeresis, asciicircum ] };
|
||||
|
||||
key <BKSL> { [ numbersign, apostrophe, grave ] };
|
||||
};
|
10
screenrc
Normal file
10
screenrc
Normal file
|
@ -0,0 +1,10 @@
|
|||
vbell off
|
||||
startup_message off
|
||||
autodetach on
|
||||
defscrollback 1024
|
||||
|
||||
bindkey -k k3 prev
|
||||
bindkey -k k4 next
|
||||
|
||||
caption always
|
||||
caption string '%{= kW}[ %{w}%H %{W}][ %{w}load[ %l ] %{W}][ %{B}%d/%m/%Y %c %{W}][ %{w}%?%-w%?%{w}(%{B}%n%f %t%{w})%{w}%?%+w%? %{W}]'
|
289
urxvt-yank-urls
Normal file
289
urxvt-yank-urls
Normal file
|
@ -0,0 +1,289 @@
|
|||
#! perl
|
||||
|
||||
# ----------------------------------------
|
||||
|
||||
# same url as used in "selection"
|
||||
my $url_matcher =
|
||||
qr{(
|
||||
(?:https?://|ftp://|news://|mailto:|file://)[ab-zA-Z0-9\-\@;\/?:&=%\$_.+!*\x27(),~#]+
|
||||
[ab-zA-Z0-9\-\@;\/?:&=%\$_+!*\x27()~] # exclude some trailing characters (heuristic)
|
||||
)}x;
|
||||
|
||||
sub on_start {
|
||||
my ($term) = @_;
|
||||
|
||||
$term->{have_Clipboard} = eval { require Clipboard; };
|
||||
if ($term->{have_Clipboard}) {
|
||||
import Clipboard;
|
||||
}
|
||||
|
||||
$term->{browser} = $term->x_resource ("urlLauncher") || "x-www-browser";
|
||||
|
||||
()
|
||||
}
|
||||
|
||||
sub on_line_update {
|
||||
my ($term, $row) = @_;
|
||||
|
||||
# fetch the line that has changed
|
||||
my $line = $term->line ($row);
|
||||
my $text = $line->t;
|
||||
|
||||
# find all urls (if any)
|
||||
while ($text =~ /$url_matcher/g) {
|
||||
my $rend = $line->r;
|
||||
|
||||
# mark all characters as underlined. we _must_ not toggle underline,
|
||||
# as we might get called on an already-marked url.
|
||||
if ($term->x_resource ("underlineURLs") eq "true") {
|
||||
$_ |= urxvt::RS_Uline
|
||||
for @{$rend}[ $-[1] .. $+[1] - 1];
|
||||
|
||||
$line->r ($rend);
|
||||
}
|
||||
}
|
||||
|
||||
()
|
||||
}
|
||||
|
||||
sub on_button_release {
|
||||
my ($term, $event) = @_;
|
||||
|
||||
my $mask = $term->ModLevel3Mask | $term->ModMetaMask
|
||||
| urxvt::ShiftMask | urxvt::ControlMask;
|
||||
|
||||
if ($event->{button} == 2 && ($event->{state} & $mask) == 0) {
|
||||
my $row = $event->{row};
|
||||
my $col = $event->{col};
|
||||
|
||||
my $line = $term->line ($row);
|
||||
my $text = $line->t;
|
||||
|
||||
while ($text =~ /$url_matcher/g) {
|
||||
if ($-[1] <= $col && $+[1] >= $col) {
|
||||
$term->exec_async ($term->{browser}, $1);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
()
|
||||
}
|
||||
|
||||
#sub on_scroll_back {
|
||||
# my ($term, $lines, $saved) = @_;
|
||||
#
|
||||
# if ($lines > $url_selected && $url_selected>0) {
|
||||
# move_highlight ($term, 1);
|
||||
# }
|
||||
#
|
||||
# for (my $n=0; $n<$lines; $n++) {
|
||||
# shift @url_db
|
||||
# }
|
||||
#
|
||||
# ()
|
||||
#}
|
||||
|
||||
# ----------------------------------------
|
||||
|
||||
my $mark_mode_active = 0;
|
||||
my %mod = ( 'control' => 0, 'shift' => 0 );
|
||||
my $url_selected = -1;
|
||||
my @url_db = ();
|
||||
|
||||
# ----------------------------------------
|
||||
|
||||
sub do_scan_for_urls {
|
||||
my ($term) = @_;
|
||||
|
||||
@url_db = ();
|
||||
|
||||
my $row_start = $term->top_row;
|
||||
my $row_end = $term->nrow;
|
||||
|
||||
for (my $row=$row_start; $row<=$row_end; $row++) {
|
||||
|
||||
# fetch the line that has changed
|
||||
my $line = $term->line ($row);
|
||||
my $text = $line->t;
|
||||
|
||||
# find all urls (if any)
|
||||
while ($text =~ /$url_matcher/g) {
|
||||
my $rend = $line->r;
|
||||
my $url = $1;
|
||||
|
||||
my %h = ( 'row' => $row,
|
||||
'col_from' => $-[1],
|
||||
'col_to' => $+[1] - 1,
|
||||
'url' => $url);
|
||||
push @url_db, \%h;
|
||||
}
|
||||
}
|
||||
|
||||
# 0 for none, positive count otherwise
|
||||
return $#url_db + 1;
|
||||
}
|
||||
|
||||
sub on_user_command {
|
||||
my ($term, $cmd) = @_;
|
||||
|
||||
$cmd eq "mark-yank-urls:activate_mark_mode"
|
||||
and activate_mark_mode($term);
|
||||
|
||||
()
|
||||
}
|
||||
|
||||
sub on_key_press {
|
||||
my ($term, $event, $keysym, $octets) = @_;
|
||||
|
||||
($keysym == 65507) && { $mod{control} = 1 };
|
||||
($keysym == 65505) && { $mod{shift} = 1 };
|
||||
|
||||
# ignore all input when we are active
|
||||
$mark_mode_active && return 1;
|
||||
|
||||
()
|
||||
}
|
||||
|
||||
sub on_key_release {
|
||||
my ($term, $event, $keysym, $octets) = @_;
|
||||
|
||||
if ($mark_mode_active) {
|
||||
my $ch = chr($keysym);
|
||||
|
||||
if ($keysym == 65307) { # <esc>
|
||||
deactivate_mark_mode ($term);
|
||||
return 1;
|
||||
|
||||
} elsif ($keysym == 65293) { # <enter>
|
||||
my $url = get_active_url($term);
|
||||
$url =~ s/\(["|><&()]\)/\\$1/;
|
||||
$term->exec_async ($term->{browser} . ' ' . $url);
|
||||
deactivate_mark_mode ($term);
|
||||
return 1;
|
||||
|
||||
} elsif ($keysym == 65507) { # <control>
|
||||
$mod{control} = 0;
|
||||
return 1;
|
||||
|
||||
} elsif ($keysym == 65505) { # <shift>
|
||||
$mod{shift} = 0;
|
||||
return 1;
|
||||
|
||||
} elsif ($mod{control} && (($ch eq 'n') || ($ch eq 'p'))) {
|
||||
# ^n and ^p to cycle list
|
||||
my $dir = ($ch eq 'n') ? 1 : -1;
|
||||
move_highlight ($term, $dir);
|
||||
|
||||
} elsif ($ch eq 'y') { # y
|
||||
do_copy ($term);
|
||||
deactivate_mark_mode ($term);
|
||||
return 1;
|
||||
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
()
|
||||
}
|
||||
|
||||
sub get_active_url {
|
||||
my ($term) = @_;
|
||||
my $max = $#url_db + 1;
|
||||
|
||||
return if $url_selected < 0 || $url_selected >= $max;
|
||||
return if not defined $url_db[$url_selected];
|
||||
my $o = $url_db[$url_selected];
|
||||
my %h = %$o;
|
||||
|
||||
return $h{url};
|
||||
}
|
||||
|
||||
sub do_copy {
|
||||
my ($term) = @_;
|
||||
|
||||
my $text = get_active_url ($term);
|
||||
|
||||
if ($term->{have_Clipboard}) {
|
||||
Clipboard->copy($text);
|
||||
} else {
|
||||
$text =~ s/\(["|><&()]\)/\\$1/;
|
||||
system ("echo -n \"$text\" | xclip -i");
|
||||
}
|
||||
}
|
||||
|
||||
sub move_highlight {
|
||||
my ($term, $dir) = @_;
|
||||
my $max = $#url_db + 1;
|
||||
|
||||
do_highlight ($term, 0);
|
||||
|
||||
$url_selected = ($max + $url_selected + $dir) % $max;
|
||||
|
||||
do_highlight ($term, 1);
|
||||
|
||||
$term->want_refresh;
|
||||
}
|
||||
|
||||
sub do_highlight {
|
||||
my ($term, $enable) = @_;
|
||||
my $max = $#url_db + 1;
|
||||
|
||||
return if $url_selected < 0 || $url_selected >= $max;
|
||||
return if not defined $url_db[$url_selected];
|
||||
|
||||
my $o = $url_db[$url_selected];
|
||||
my %h = %$o;
|
||||
|
||||
my $row = $h{row};
|
||||
my $line = $term->line ($row);
|
||||
my $text = $line->t;
|
||||
my $rend = $line->r;
|
||||
|
||||
if ($enable) {
|
||||
$_ |= urxvt::RS_RVid
|
||||
for @{$rend}[ $h{col_from} .. $h{col_to}];
|
||||
|
||||
# make it visible
|
||||
$term->view_start ( $row < 0 ? $row : 0 );
|
||||
|
||||
} else {
|
||||
$_ &= ~urxvt::RS_RVid
|
||||
for @{$rend}[ $h{col_from} .. $h{col_to}];
|
||||
}
|
||||
|
||||
$line->r ($rend);
|
||||
}
|
||||
|
||||
sub activate_mark_mode {
|
||||
my ($term) = @_;
|
||||
|
||||
if ($mark_mode_active) {
|
||||
|
||||
move_highlight ($term, -1);
|
||||
|
||||
} elsif ( do_scan_for_urls ($term) ) {
|
||||
|
||||
$term->{save_view_start} = $term->view_start;
|
||||
|
||||
move_highlight ($term, 0);
|
||||
|
||||
$mark_mode_active=1 if ($url_selected > -1);
|
||||
}
|
||||
}
|
||||
|
||||
sub deactivate_mark_mode {
|
||||
my ($term) = @_;
|
||||
|
||||
do_highlight ($term, 0);
|
||||
|
||||
$mark_mode_active = 0;
|
||||
$url_selected = -1;
|
||||
|
||||
$term->view_start ($term->{save_view_start});
|
||||
$term->want_refresh;
|
||||
}
|
||||
|
||||
# vim: set et ts=4 sw=4:
|
||||
|
15
vimrc
Normal file
15
vimrc
Normal file
|
@ -0,0 +1,15 @@
|
|||
syntax on
|
||||
colorscheme delek
|
||||
filetype plugin indent on
|
||||
|
||||
set laststatus=2
|
||||
set number
|
||||
set noerrorbells
|
||||
set autoindent
|
||||
set tabstop=8
|
||||
set shiftround
|
||||
set textwidth=80
|
||||
set modeline
|
||||
set nobackup
|
||||
|
||||
map <f9> :make<CR>
|
50
xdefaults
Normal file
50
xdefaults
Normal file
|
@ -0,0 +1,50 @@
|
|||
URxvt*.perl-ext-common: default,matcher
|
||||
|
||||
URxvt.keysym.M-u: perl:mark-yank-urls,activate_mark_mode
|
||||
URxvt.perl-lib: /home/xeno/etc/
|
||||
URxvt.perl-ext: selection,urxvt-yank-urls
|
||||
|
||||
#URxvt.transparent: true
|
||||
#URxvt.tintColor: #000000
|
||||
#URxvt.shading: 10
|
||||
|
||||
URxvt*font: xft:terminus:pixelsize=8
|
||||
URxvt*buffered: true
|
||||
URxvt*internalBorder: 2
|
||||
URxvt*reverseVideo: false
|
||||
URxvt*scrollBar: false
|
||||
URxvt*scrollstyle: plain
|
||||
URxvt*secondaryscroll: true
|
||||
URxvt*saveLines: 1000
|
||||
URxvt*termName: rxvt-unicode
|
||||
URxvt*eightBitInput: true
|
||||
URxvt*metaSendsEscape: true
|
||||
URxvt*urlLauncher: firefox
|
||||
URxvt*matcher.button: 1
|
||||
URxvt*cutchars: `"()'*<>[]{|}
|
||||
URxvt*matcher.pattern.1: \\bwww\\.[\\w-]\\.[\\w./?&@#-]*[\\w/-]
|
||||
URxvt*urgentOnBell: true
|
||||
URxvt*visualBell: false
|
||||
|
||||
URxvt.cursorColor: #005588
|
||||
URxvt*background: #141414
|
||||
URxvt*foreground: #ffffff
|
||||
URxvt*underlineColor: red
|
||||
URxvt*colorBD: #FFFFFF
|
||||
URxvt*colorUL: #FFFFFF
|
||||
URxvt*color0: #5D5D5D
|
||||
URxvt*color1: #CC0000
|
||||
URxvt*color2: #6E8558
|
||||
URxvt*color3: #C4A000
|
||||
URxvt*color4: #3465A4
|
||||
URxvt*color5: #CEA86F
|
||||
URxvt*color6: #FFFFFF
|
||||
URxvt*color7: #FFFFFF
|
||||
URxvt*color8: #888888
|
||||
URxvt*color9: #D76666
|
||||
URxvt*color10: #B5DF8D
|
||||
URxvt*color11: #FF0000
|
||||
URxvt*color12: #729FCF
|
||||
URxvt*color13: #FFD28F
|
||||
URxvt*color14: #69C8B1
|
||||
URxvt*color15: #9AC4DD
|
16
xinitrc
Executable file
16
xinitrc
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
WM='awesome'
|
||||
|
||||
# SSH KEYAGENT
|
||||
keychain --clear -q ~/.ssh/id_dsa
|
||||
source ~/.keychain/`hostname`-sh > /dev/null
|
||||
|
||||
# RANDOM WALLPAPER
|
||||
xsetbg -onroot -border black ~/pictures/wallpaper/$(ls ~/pictures/wallpaper/ | sed -n $((RANDOM%$(ls ~/pictures/wallpaper/ | wc -l)+1))p)
|
||||
|
||||
xscreensaver -no-splash &
|
||||
wicd-client &
|
||||
etc/awesome_bar.sh &
|
||||
|
||||
# LET'S GO
|
||||
exec $WM
|
92
xmonad-0.7.hs
Normal file
92
xmonad-0.7.hs
Normal file
|
@ -0,0 +1,92 @@
|
|||
import XMonad
|
||||
import System.Exit
|
||||
|
||||
import qualified XMonad.StackSet as W
|
||||
import qualified Data.Map as M
|
||||
|
||||
myTerminal = "x-terminal-emulator"
|
||||
myBorderWidth = 1
|
||||
myModMask = mod1Mask
|
||||
myNumlockMask = mod2Mask
|
||||
myWorkspaces = ["1","2","3","4","5","6","7","8","9"]
|
||||
myNormalBorderColor = "#dddddd"
|
||||
myFocusedBorderColor = "#ff0000"
|
||||
myDefaultGaps = [(14,0,0,0)]
|
||||
|
||||
myKeys conf@(XConfig {XMonad.modMask = modMask}) = M.fromList $
|
||||
[ ((modMask, xK_Return), spawn $ XMonad.terminal conf)
|
||||
, ((modMask, xK_q ), spawn "exe=`dmenu_path | dmenu` && eval \"exec $exe\"")
|
||||
, ((modMask, xK_l ), spawn "xscreensaver-command -lock")
|
||||
, ((modMask .|. shiftMask, xK_c ), kill)
|
||||
, ((modMask, xK_space ), sendMessage NextLayout)
|
||||
, ((modMask .|. shiftMask, xK_space ), setLayout $ XMonad.layoutHook conf)
|
||||
, ((modMask, xK_r ), windows W.focusDown)
|
||||
, ((modMask, xK_g ), windows W.focusUp )
|
||||
, ((modMask, xK_m ), windows W.focusMaster )
|
||||
, ((modMask .|. shiftMask, xK_r ), windows W.swapDown )
|
||||
, ((modMask .|. shiftMask, xK_g ), windows W.swapUp )
|
||||
, ((modMask, xK_n ), sendMessage Shrink)
|
||||
, ((modMask, xK_t ), sendMessage Expand)
|
||||
, ((modMask, xK_h ), withFocused $ windows . W.sink)
|
||||
, ((modMask, xK_comma ), sendMessage (IncMasterN 1))
|
||||
, ((modMask, xK_period), sendMessage (IncMasterN (-1)))
|
||||
, ((modMask, xK_k ), spawn "amixer -c 0 set PCM 2dB+")
|
||||
, ((modMask, xK_s ), spawn "amixer -c 0 set PCM 2dB-")
|
||||
, ((modMask, xK_b ),
|
||||
modifyGap (\i n -> let x = (XMonad.defaultGaps conf ++ repeat (0,0,0,0)) !! i
|
||||
in if n == x then (0,0,0,0) else x))
|
||||
]
|
||||
++
|
||||
|
||||
[((m .|. modMask, k), windows $ f i)
|
||||
| (i, k) <- zip (XMonad.workspaces conf) [xK_1 .. xK_9]
|
||||
, (f, m) <- [(W.greedyView, 0), (W.shift, shiftMask)]]
|
||||
|
||||
myMouseBindings (XConfig {XMonad.modMask = modMask}) = M.fromList $
|
||||
[ ((modMask, button1), (\w -> focus w >> mouseMoveWindow w))
|
||||
, ((modMask, button2), (\w -> focus w >> windows W.swapMaster))
|
||||
, ((modMask, button3), (\w -> focus w >> mouseResizeWindow w))
|
||||
]
|
||||
|
||||
myLayout = tiled ||| Mirror tiled ||| Full
|
||||
where
|
||||
tiled = Tall nmaster delta ratio
|
||||
nmaster = 1
|
||||
ratio = 1/2
|
||||
delta = 1/100
|
||||
|
||||
myManageHook = composeAll
|
||||
[ className =? "MPlayer" --> doFloat
|
||||
, className =? "Skype" --> doFloat
|
||||
, className =? "Twinkle" --> doFloat
|
||||
, className =? "VirtualBox" --> doFloat
|
||||
, className =? "Gimp" --> doFloat
|
||||
, className =? "Qemu-launcher" --> doFloat
|
||||
, className =? "Default - Wine desktop" --> doFloat
|
||||
]
|
||||
|
||||
myFocusFollowsMouse :: Bool
|
||||
myFocusFollowsMouse = True
|
||||
|
||||
myLogHook = return ()
|
||||
|
||||
main = xmonad defaults
|
||||
|
||||
defaults = defaultConfig {
|
||||
terminal = myTerminal,
|
||||
focusFollowsMouse = myFocusFollowsMouse,
|
||||
borderWidth = myBorderWidth,
|
||||
modMask = myModMask,
|
||||
numlockMask = myNumlockMask,
|
||||
workspaces = myWorkspaces,
|
||||
normalBorderColor = myNormalBorderColor,
|
||||
focusedBorderColor = myFocusedBorderColor,
|
||||
defaultGaps = myDefaultGaps,
|
||||
|
||||
keys = myKeys,
|
||||
mouseBindings = myMouseBindings,
|
||||
|
||||
layoutHook = myLayout,
|
||||
manageHook = myManageHook,
|
||||
logHook = myLogHook
|
||||
}
|
75
xmonad-0.8.hs
Normal file
75
xmonad-0.8.hs
Normal file
|
@ -0,0 +1,75 @@
|
|||
import XMonad
|
||||
import XMonad.Hooks.ManageDocks
|
||||
import System.Exit
|
||||
|
||||
import qualified XMonad.StackSet as W
|
||||
import qualified Data.Map as M
|
||||
|
||||
myTerminal = "urxvt"
|
||||
myBorderWidth = 1
|
||||
myModMask = mod1Mask
|
||||
myNumlockMask = mod2Mask
|
||||
myWorkspaces = ["1","2","3","4","5","6","7","8","9"]
|
||||
myNormalBorderColor = "#dddddd"
|
||||
myFocusedBorderColor = "#ff0000"
|
||||
|
||||
myKeys conf@(XConfig {XMonad.modMask = modMask}) = M.fromList $
|
||||
[ ((modMask, xK_Return), spawn $ XMonad.terminal conf)
|
||||
, ((modMask, xK_q ), spawn "exe=`dmenu_path | dmenu` && eval \"exec $exe\"")
|
||||
, ((modMask, xK_l ), spawn "slock")
|
||||
, ((modMask .|. shiftMask, xK_c ), kill)
|
||||
, ((modMask, xK_space ), sendMessage NextLayout)
|
||||
, ((modMask .|. shiftMask, xK_space ), setLayout $ XMonad.layoutHook conf)
|
||||
, ((modMask, xK_r ), windows W.focusDown)
|
||||
, ((modMask, xK_g ), windows W.focusUp )
|
||||
, ((modMask, xK_m ), windows W.focusMaster )
|
||||
, ((modMask .|. shiftMask, xK_r ), windows W.swapDown )
|
||||
, ((modMask .|. shiftMask, xK_g ), windows W.swapUp )
|
||||
, ((modMask, xK_n ), sendMessage Shrink)
|
||||
, ((modMask, xK_t ), sendMessage Expand)
|
||||
, ((modMask, xK_h ), withFocused $ windows . W.sink)
|
||||
, ((modMask , xK_comma ), sendMessage (IncMasterN 1))
|
||||
, ((modMask , xK_period), sendMessage (IncMasterN (-1)))
|
||||
]
|
||||
++
|
||||
|
||||
[((m .|. modMask, k), windows $ f i)
|
||||
| (i, k) <- zip (XMonad.workspaces conf) [xK_1 .. xK_9]
|
||||
, (f, m) <- [(W.greedyView, 0), (W.shift, shiftMask)]]
|
||||
|
||||
myMouseBindings (XConfig {XMonad.modMask = modMask}) = M.fromList $
|
||||
[ ((modMask, button1), (\w -> focus w >> mouseMoveWindow w))
|
||||
, ((modMask, button2), (\w -> focus w >> windows W.swapMaster))
|
||||
, ((modMask, button3), (\w -> focus w >> mouseResizeWindow w))
|
||||
]
|
||||
|
||||
myManageHook = composeAll
|
||||
[ className =? "MPlayer" --> doFloat
|
||||
, className =? "Gimp" --> doFloat ]
|
||||
|
||||
myFocusFollowsMouse :: Bool
|
||||
myFocusFollowsMouse = True
|
||||
|
||||
myLogHook = return ()
|
||||
myStartupHook = return ()
|
||||
|
||||
main = xmonad defaults
|
||||
|
||||
defaults = defaultConfig {
|
||||
manageHook = manageDocks <+> manageHook defaultConfig,
|
||||
layoutHook = avoidStruts $ layoutHook defaultConfig,
|
||||
terminal = myTerminal,
|
||||
focusFollowsMouse = myFocusFollowsMouse,
|
||||
borderWidth = myBorderWidth,
|
||||
modMask = myModMask,
|
||||
numlockMask = myNumlockMask,
|
||||
workspaces = myWorkspaces,
|
||||
normalBorderColor = myNormalBorderColor,
|
||||
focusedBorderColor = myFocusedBorderColor,
|
||||
|
||||
keys = myKeys,
|
||||
mouseBindings = myMouseBindings,
|
||||
|
||||
logHook = myLogHook,
|
||||
startupHook = myStartupHook
|
||||
}
|
96
zshrc
Normal file
96
zshrc
Normal file
|
@ -0,0 +1,96 @@
|
|||
PTIME=%{$(echo -n '\e[0;31m')%}%T
|
||||
PUSER=%{$(echo -n '\e[0;37m')%}%n
|
||||
PATKI=%{$(echo -n '\e[1;37m')%}@
|
||||
PHOST=%{$(echo -n '\e[1;32m')%}%m
|
||||
PDOPP=%{$(echo -n '\e[1;37m')%}:
|
||||
PPATH=%{$(echo -n '\e[1;32m')%}%~
|
||||
PCOMM=%{$(echo -n '\e[0;37m')%}
|
||||
PROMPT="$PTIME $PUSER$PATKI$PHOST$PDOPP$PPATH$PCOMM "
|
||||
|
||||
export PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/games
|
||||
|
||||
# Set terminal title dynamic
|
||||
case $TERM in
|
||||
rxvt*)
|
||||
precmd () {print -Pn "\e]0;%n@%m: %~\a"}
|
||||
;;
|
||||
esac
|
||||
|
||||
HISTSIZE=1000
|
||||
SAVEHIST=1000
|
||||
HISTFILE=~/.zsh_history
|
||||
PATH=~/bin:$PATH
|
||||
|
||||
autoload -U compinit; compinit
|
||||
autoload zmv
|
||||
|
||||
alias ls="ls --color=auto"
|
||||
alias l="ls -laX"
|
||||
alias cp="cp -v"
|
||||
alias mkdir="mkdir -p"
|
||||
alias grep="grep --color=auto"
|
||||
alias g="gvim"
|
||||
alias v="vim"
|
||||
alias agu="sudo apt-get update"
|
||||
alias agdu="sudo apt-get dist-upgrade"
|
||||
alias acs="apt-cache search"
|
||||
alias agi="sudo apt-get install"
|
||||
alias purge="sudo apt-get --purge autoremove"
|
||||
alias c="clear && fortune"
|
||||
alias s="screen -r -d"
|
||||
alias df="df -m"
|
||||
alias iso="genisoimage -l -J -R -o cd.iso"
|
||||
alias a="acpi -t"
|
||||
alias w="wicd-client -n"
|
||||
alias gitlog="git log --pretty=oneline --abbrev-commit"
|
||||
alias x="xine"
|
||||
alias x1="xrandr --output VGA --off"
|
||||
alias x2="xrandr --output VGA --auto && xrandr --output VGA --right-of LVDS"
|
||||
alias m="mocp"
|
||||
alias mp="mplayer"
|
||||
alias p="ping"
|
||||
alias rmrf="rm -rf"
|
||||
alias vbm="VBoxManage"
|
||||
alias r='rdesktop-vrdp -k de -K localhost'
|
||||
alias gitserv='git daemon --verbose --reuseaddr --base-path=. --export-all ./.git'
|
||||
|
||||
alias -g C='| wc -l'
|
||||
alias -g G='| grep'
|
||||
alias -g H='| head'
|
||||
alias -g T='| tail'
|
||||
alias -g L='| less'
|
||||
|
||||
alias -s mp3=mplayer
|
||||
alias -s exe=wine
|
||||
|
||||
setopt nobeep
|
||||
setopt autocd
|
||||
setopt listpacked
|
||||
setopt listtypes
|
||||
|
||||
shot() {
|
||||
if [ "$1" != '' ]; then
|
||||
scrot -c -d 3 $1
|
||||
scp $1 xeno:www/pub/
|
||||
rm $1
|
||||
else
|
||||
scrot -c -d 3
|
||||
fi
|
||||
}
|
||||
|
||||
gpdf() {
|
||||
xpdf =(gpg --decrypt $1)
|
||||
}
|
||||
|
||||
md() {
|
||||
mkdir $1
|
||||
cd $1
|
||||
}
|
||||
|
||||
ausrede() {
|
||||
if [ $RANDOM -lt 16384 ]; then
|
||||
fortune bofh-excuses
|
||||
else
|
||||
nc towel.blinkenlights.nl 666
|
||||
fi
|
||||
}
|
Loading…
Reference in a new issue