Update some scripts that I had sitting around

This commit is contained in:
R. Tyler Croy 2013-05-22 11:06:37 -07:00
parent 958661774b
commit c7a73d8b43
6 changed files with 24 additions and 8 deletions

View File

@ -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

View File

@ -2,4 +2,4 @@
echo "Auto-configuring display for a single monitor"
xrandr --output LVDS1 --auto --output VGA1 --off
battdyn

View File

@ -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

View File

@ -1,5 +1,5 @@
#!/bin/sh
#!/bin/sh -xe
source ~/envs/mail/bin/activate
offlineimap;
exec offlineimap

View File

@ -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])

View File

@ -1,3 +1,3 @@
#!/bin/bash
alsamixer -c 0
exec alsamixer -c 0