summaryrefslogtreecommitdiffstats
path: root/bashrc
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2010-04-26 08:07:49 -0500
committerJesse Luehrs <doy@tozt.net>2010-04-26 08:07:49 -0500
commite76e435b1e6706287942e7b38bdc27db5746a034 (patch)
tree97824fc29bc19257aad12d8bfe91cfe86e6e27ed /bashrc
parente56eb8219ce55fb64d01cfa39a12cb1a123fbf98 (diff)
downloadconf-e76e435b1e6706287942e7b38bdc27db5746a034.tar.gz
conf-e76e435b1e6706287942e7b38bdc27db5746a034.zip
add a couple aliases for my webcam
Diffstat (limited to 'bashrc')
-rw-r--r--bashrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/bashrc b/bashrc
index 4605342..7e3afeb 100644
--- a/bashrc
+++ b/bashrc
@@ -92,6 +92,10 @@ alias wgetff='wget --user-agent="Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.
alias ..='cd ..'
alias dotperl="rsync -av lib/* ${HOME}/.perl/"
alias clean_packages='sudo pacman -Rsn $(pacman -Qqdt)'
+alias webcam='mplayer tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video0 -fps 15 -vf screenshot'
+function webcam_record {
+ mencoder tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video0:forceaudio:adevice=/dev/dsp -ovc lavc -oac mp3lame -lameopts cbr:br=64:mode=3 -o $1
+}
function luado { # thanks rici
local e=$1
shift