summaryrefslogtreecommitdiffstats
Side-by-side diff
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
@@ -5,7 +5,7 @@ if ! mount | grep -q wormole;then
exit
fi
-if ps auxww | grep -q getmail | grep -v grep;then
+if ps auxww | =grep getmail | grep -v grep;then
exit
fi
diff --git a/mplayer b/mplayer
index 726acea..6f3891d 100755
--- a/mplayer
+++ b/mplayer
@@ -163,13 +163,14 @@ if [[ ! -e $MPSOCKET ]] ;then
#notify-send "Mplayer" "mplayer starting up....."
fi
-#exec &>>|/tmp/mplayer.log
+exec &>>|/tmp/mplayer.log
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
@@ -12,7 +12,8 @@ if [[ $arg == "tnum" ]];then
setopt nonomatch
if ! tmux list-windows -t $session | /bin/grep -i $app | grep -v grep &>/dev/null;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
tmux new-window -d -t $session:$lastone =$muxaliases[$app]
else
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