Update some scripts that I had sitting around
This commit is contained in:
parent
958661774b
commit
c7a73d8b43
18
bin/cliplink
18
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
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
|
||||
echo "Auto-configuring display for a single monitor"
|
||||
xrandr --output LVDS1 --auto --output VGA1 --off
|
||||
|
||||
battdyn
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#!/bin/sh
|
||||
#!/bin/sh -xe
|
||||
|
||||
source ~/envs/mail/bin/activate
|
||||
|
||||
offlineimap;
|
||||
exec offlineimap
|
||||
|
|
|
@ -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])
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
alsamixer -c 0
|
||||
exec alsamixer -c 0
|
||||
|
|
Loading…
Reference in New Issue