diff --git a/bin/cliplink b/bin/cliplink index d117fdb..db49120 100755 --- a/bin/cliplink +++ b/bin/cliplink @@ -1,3 +1,19 @@ #!/bin/sh -elinks "$(xclip -o)" +BROWSER=vimprobable2 +URL=$(xclip -o) + +if [ "" == "${URL}" ]; then + xmessage -nearmouse -timeout 2 "No URL in clipboard" + exit 0 +fi + + +echo "Navigate to: ${URL}" | xmessage \ + -nearmouse \ + -buttons "No!:1,Let's Go!:0" \ + -file - + +if [ $? -eq 0 ]; then + exec ${BROWSER} ${URL} +fi diff --git a/bin/display-single b/bin/display-single index de2c76b..7695eca 100755 --- a/bin/display-single +++ b/bin/display-single @@ -2,4 +2,4 @@ echo "Auto-configuring display for a single monitor" xrandr --output LVDS1 --auto --output VGA1 --off - +battdyn diff --git a/bin/display-work b/bin/display-work index bfbe895..7b974ac 100755 --- a/bin/display-work +++ b/bin/display-work @@ -1,7 +1,7 @@ #!/bin/bash echo "Auto-configuring display for work" #xrandr --output LVDS --auto --output VGA --rotate left --auto --right-of LVDS -xrandr --output LVDS1 --auto --output VGA1 --rotation normal --auto --right-of LVDS1 - +xrandr --output LVDS1 --auto --output VGA1 \ + --rotation normal --auto --right-of LVDS1 battwaste diff --git a/bin/mailpoll b/bin/mailpoll index d75a1ff..7dc8cbd 100755 --- a/bin/mailpoll +++ b/bin/mailpoll @@ -1,5 +1,5 @@ -#!/bin/sh +#!/bin/sh -xe source ~/envs/mail/bin/activate -offlineimap; +exec offlineimap diff --git a/bin/newmailnotify.py b/bin/newmailnotify.py index 0595a08..e7f417b 100644 --- a/bin/newmailnotify.py +++ b/bin/newmailnotify.py @@ -6,7 +6,7 @@ import sys import time DELAY = 20 -INBOXES = ('~/Mail/Personal/INBOX', '~/Mail/Lookout/INBOX') +INBOXES = ('~/Mail/isync/Personal/INBOX', '~/Mail/isync/Lookout/INBOX') def notify(subject, message): subprocess.call(['notify-send', '-i', 'mail_new', '-t', '7000', subject, message]) diff --git a/bin/volume b/bin/volume index 7615433..180a555 100755 --- a/bin/volume +++ b/bin/volume @@ -1,3 +1,3 @@ #!/bin/bash -alsamixer -c 0 +exec alsamixer -c 0