summaryrefslogtreecommitdiffstats
authorRaghavendra D Prabhu <[email protected]>2011-04-14 18:44:28 (GMT)
committer Raghavendra D Prabhu <[email protected]>2011-04-14 18:44:28 (GMT)
commit353a7f4a0f0a987781e7f84fc1c81b814176a4be (patch) (side-by-side diff)
tree61b4f257efa6799360a1fbc504c89c6042a63c69
parent2e14a7721eed972c942d13841a4b7b199ce99418 (diff)
downloadScripts-353a7f4a0f0a987781e7f84fc1c81b814176a4be.zip
Scripts-353a7f4a0f0a987781e7f84fc1c81b814176a4be.tar.gz
Scripts-353a7f4a0f0a987781e7f84fc1c81b814176a4be.tar.bz2
Script updates
Diffstat (more/less context) (ignore whitespace changes)
-rwxr-xr-xgetimap2
-rwxr-xr-xmplayer3
-rwxr-xr-xtux3
-rwxr-xr-xviewdactyl13
4 files changed, 18 insertions, 3 deletions
diff --git a/getimap b/getimap
index 7f2845c..91835a3 100755
--- a/getimap
+++ b/getimap
@@ -7,3 +7,3 @@ fi
-if ps auxww | grep -q getmail | grep -v grep;then
+if ps auxww | =grep getmail | grep -v grep;then
exit
diff --git a/mplayer b/mplayer
index 726acea..6f3891d 100755
--- a/mplayer
+++ b/mplayer
@@ -165,3 +165,3 @@ fi
-#exec &>>|/tmp/mplayer.log
+exec &>>|/tmp/mplayer.log
@@ -172,2 +172,3 @@ pwdir=$(pwd)
pushd $HOME
+${=LOCK}/mplayer.$randnum /usr/bin/mplayer -$vo_map[$fixedvo] -msglevel all=4 -slave -idle -input file=$MPSOCKET -input conf=$HOME/.mplayer/input.conf.mine &!
popd
diff --git a/tux b/tux
index ac35d47..b19d126 100755
--- a/tux
+++ b/tux
@@ -14,3 +14,4 @@ if [[ $arg == "tnum" ]];then
lastone=$(( $(tmux list-windows -t $session | tail -1 | awk -F: '{ print $1 }') + 1 ))
- PATH="/usr/local/bin:/bin:/usr/bin:/sbin:/usr/sbin:/home/raghavendra/bin:/home/raghavendra/bin/libexec"
+ #PATH="/usr/local/bin:/bin:/usr/bin:/sbin:/usr/sbin:/home/raghavendra/bin:/home/raghavendra/bin/libexec"
+ PATH="/home/raghavendra/bin/libexec:/usr/local/bin:/bin:/usr/bin:/sbin:/usr/sbin:/home/raghavendra/bin"
if [[ ! -f =$app ]];then
diff --git a/viewdactyl b/viewdactyl
new file mode 100755
index 0000000..323fa07
--- a/dev/null
+++ b/viewdactyl
@@ -0,0 +1,13 @@
+#!/bin/zsh
+url="$1"
+hurl="$2"
+hurl=$hurl:t
+line=$(/usr/bin/w3m -dump $url | awk "/$hurl/ { print NR; exit; }")
+[[ -z $line ]] && line=30
+echo $hurl | xclip -i
+if pidof w3m;then
+ winum=$(~/bin/tux tnum w3m)
+ tmux send-keys -t uake:$winum 'C-c' 'T' "$url" 'Enter' ":$line" 'Enter'
+else
+ tmux new-window -t uake "/usr/bin/w3m +$line $url"
+fi