octopus, vimrc, bashrc
This commit is contained in:
parent
cba66d2da6
commit
3360dd72ee
|
@ -34,6 +34,9 @@ case $1 in
|
||||||
"toggle")
|
"toggle")
|
||||||
mpc toggle
|
mpc toggle
|
||||||
;;
|
;;
|
||||||
|
"pause")
|
||||||
|
mpc pause
|
||||||
|
;;
|
||||||
"next")
|
"next")
|
||||||
mpc next
|
mpc next
|
||||||
;;
|
;;
|
||||||
|
@ -47,6 +50,7 @@ case $1 in
|
||||||
"play")
|
"play")
|
||||||
case $2 in
|
case $2 in
|
||||||
"inception")
|
"inception")
|
||||||
|
$0 audio pause
|
||||||
$0 vol max
|
$0 vol max
|
||||||
NN=`dirname $0`
|
NN=`dirname $0`
|
||||||
mplayer $NN/audio/inception.mp3
|
mplayer $NN/audio/inception.mp3
|
||||||
|
|
5
bashrc
5
bashrc
|
@ -150,7 +150,7 @@ alias R='R --quiet'
|
||||||
alias cdu='cdu -idh'
|
alias cdu='cdu -idh'
|
||||||
alias dus='du -sh * | sort -h'
|
alias dus='du -sh * | sort -h'
|
||||||
alias im='profanity'
|
alias im='profanity'
|
||||||
alias eclipseJ2EE='/home/frank/Programmation/J2EE/eclipse/eclipse'
|
alias eclipseJEE='/home/frank/Programmation/J2EE/eclipse/eclipse'
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
|
|
||||||
|
@ -479,6 +479,9 @@ function op
|
||||||
"java")
|
"java")
|
||||||
vim "$1"
|
vim "$1"
|
||||||
;;
|
;;
|
||||||
|
"uxf")
|
||||||
|
umlet "$1"
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
xdg-open "$1"
|
xdg-open "$1"
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -43,6 +43,7 @@ static const Rule rules[] = {
|
||||||
{ "Gimp", NULL, NULL, 0, True, -1 },
|
{ "Gimp", NULL, NULL, 0, True, -1 },
|
||||||
{ "Firefox", NULL, NULL, 1 << 0, False, -1 },
|
{ "Firefox", NULL, NULL, 1 << 0, False, -1 },
|
||||||
{ "Thunderbird", NULL, NULL, 1 << 1, False, -1 },
|
{ "Thunderbird", NULL, NULL, 1 << 1, False, -1 },
|
||||||
|
{ "Profanity", NULL, NULL, 1 << 14, False, -1 },
|
||||||
{ "pdfpc", "pdfpc", NULL, 0, True, -1 },
|
{ "pdfpc", "pdfpc", NULL, 0, True, -1 },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -92,7 +93,8 @@ static const char *lockcmd[] = {"octopus.sh", "lock", NULL};
|
||||||
static const char *audioplay[] = {"octopus.sh", "audio", "toggle", NULL};
|
static const char *audioplay[] = {"octopus.sh", "audio", "toggle", NULL};
|
||||||
static const char *audionext[] = {"octopus.sh", "audio", "next", NULL};
|
static const char *audionext[] = {"octopus.sh", "audio", "next", NULL};
|
||||||
static const char *audioprev[] = {"octopus.sh", "audio", "prev", NULL};
|
static const char *audioprev[] = {"octopus.sh", "audio", "prev", NULL};
|
||||||
static const char *inceptionplay[] = {"octopus.sh", "play", "inception"};
|
static const char *inceptionplay[] = {"octopus.sh", "play", "inception", NULL};
|
||||||
|
static const char *printscreen[] = {"scrot", "-s", NULL};
|
||||||
|
|
||||||
static Key keys[] = {
|
static Key keys[] = {
|
||||||
/* modifier key function argument */
|
/* modifier key function argument */
|
||||||
|
|
|
@ -161,6 +161,7 @@ au BufRead /dev/shm/mutt-* set tw=74 fo+=aw noautoindent
|
||||||
autocmd BufRead,BufNewFile *.tex set tw=80 fo+=aw
|
autocmd BufRead,BufNewFile *.tex set tw=80 fo+=aw
|
||||||
autocmd BufRead,BufNewFile *.latex set tw=80 fo+=aw
|
autocmd BufRead,BufNewFile *.latex set tw=80 fo+=aw
|
||||||
autocmd BufRead,BufNewFile *.lista set filetype=lisp
|
autocmd BufRead,BufNewFile *.lista set filetype=lisp
|
||||||
|
autocmd BufRead,BufNewFile *.xml set ts=4 sw=4
|
||||||
|
|
||||||
autocmd BufRead,BufNewFile *.m set nospell
|
autocmd BufRead,BufNewFile *.m set nospell
|
||||||
|
|
||||||
|
@ -168,6 +169,7 @@ autocmd BufRead,BufNewFile *.m set nospell
|
||||||
"Automatic documentation
|
"Automatic documentation
|
||||||
autocmd BufNewFile,BufRead *.py set keywordprg=pydoc
|
autocmd BufNewFile,BufRead *.py set keywordprg=pydoc
|
||||||
autocmd BufNewFile,BufRead *.php set ts=4 sw=4 keywordprg=~/.vim/scripts/doc.php.sh
|
autocmd BufNewFile,BufRead *.php set ts=4 sw=4 keywordprg=~/.vim/scripts/doc.php.sh
|
||||||
|
autocmd BufNewFile,BufRead *.R set ts=4 sw=4 keywordprg=~/.vim/scripts/doc.R.sh
|
||||||
|
|
||||||
"JAVA
|
"JAVA
|
||||||
iabbr syso System.out.println
|
iabbr syso System.out.println
|
||||||
|
|
Loading…
Reference in a new issue