That's fucking stupid, but funny

This commit is contained in:
Frank Villaro-Dixon 2014-03-09 22:35:57 +01:00
parent a8b26155eb
commit 7bee9a97ef
5 changed files with 18 additions and 1 deletions

BIN
Utils/audio/inception.mp3 Normal file

Binary file not shown.

View file

@ -1,5 +1,5 @@
#!/bin/bash
set -x
#set -x
#OCTOPUS=~/Programmation/Utils/octopus.sh
#This octopus handles all the actions like volume up, refresh status bar, etc..
@ -22,6 +22,9 @@ case $1 in
"mute")
amixer -q set Master toggle
;;
"max")
amixer -q set Master 100% unmute
;;
esac
$0 refresh
;;
@ -41,6 +44,16 @@ case $1 in
$0 refresh
;;
"play")
case $2 in
"inception")
$0 vol max
NN=`dirname $0`
mplayer $NN/audio/inception.mp3
;;
esac
;;
"monitor")
case $2 in

View file

@ -92,6 +92,7 @@ static const char *lockcmd[] = {"octopus.sh", "lock", NULL};
static const char *audioplay[] = {"octopus.sh", "audio", "toggle", NULL};
static const char *audionext[] = {"octopus.sh", "audio", "next", NULL};
static const char *audioprev[] = {"octopus.sh", "audio", "prev", NULL};
static const char *inceptionplay[] = {"octopus.sh", "play", "inception"};
static Key keys[] = {
/* modifier key function argument */
@ -130,6 +131,7 @@ static Key keys[] = {
{ 0, XF86XK_AudioPlay, spawn, { .v = audioplay } },
{ 0, XF86XK_AudioPrev, spawn, { .v = audioprev } },
{ 0, XF86XK_AudioNext, spawn, { .v = audionext } },
{ 0, XF86XK_AudioStop, spawn, { .v = inceptionplay} },
TAGKEYS( XK_1, 0)
TAGKEYS( XK_2, 1)

View file

@ -3,3 +3,4 @@ text/html; lynx -display_charset=utf-8 -dump %s; nametemplate=%s.html; copiousou
audio/*; vlc %s
application/pdf; evince %s
application/msword; libreoffice %s
application/vnd.openxmlformats-officedocument.presentationml.presentation; libreoffice %s #fuck you

View file

@ -155,6 +155,7 @@ inoremap § <esc>/<+.\{-1,}+><return>c/+>/e<return>
"Automatic line wrap/br (quotation=74) when writing mails in mutt
"CF. limit of 74 for when ">>>" ;)
au BufRead /dev/shm/mutt-* set tw=74 fo+=aw noautoindent
autocmd BufRead,BufNewFile *.tex set tw=80 fo+=aw