Commits

Jason Ryan committed 80f44b9

Still working around pass

  • Participants
  • Parent commits 03691d0

Comments (0)

Files changed (4)

 #include "/home/jason/.config/colours/dark"
 
 ! --  Extensions -- !
-URxvt.perl-ext-common: matcher,keyboard-select,url-select,clipboard
-URxvt.keysym.M-Escape: perl:keyboard-select:activate
-URxvt.keysym.M-u:      perl:url-select:select_next
-URxvt.keysym.M-s:      perl:keyboard-select:search
-URxvt.keysym.M-c:      perl:clipboard:copy
-URxvt.keysym.M-v:      perl:clipboard:paste
-URxvt.keysym.M-C-v:    perl:clipboard:paste_escaped
+URxvt.perl-ext-common:     matcher,keyboard-select,url-select,clipboard
+URxvt.keysym.M-Escape:     perl:keyboard-select:activate
+URxvt.keysym.M-u:          perl:url-select:select_next
+URxvt.keysym.M-s:          perl:keyboard-select:search
+URxvt.keysym.M-c:          perl:clipboard:copy
+URxvt.keysym.M-v:          perl:clipboard:paste
+URxvt.keysym.M-C-v:        perl:clipboard:paste_escaped
+URxvt.clipboard.copycmd:   xclip -i -selection clipboard
+URxvt.clipboard.pastecmd:  xclip -o -selection clipboard
 URxvt.url-select.launcher: /home/jason/Scripts/vimprobtab.sh
-URxvt.matcher.rend.0:  -Uline fg16
-URxvt.matcher.button:  1
+URxvt.matcher.rend.0:      -Uline fg16
+URxvt.matcher.button:      1
 
 ! -- Xterm settings -- !
 xterm*termName: xterm-256color
 export SDCV_PAGER="/usr/bin/less"
 export SYSTEMD_PAGER="less -j4aR"
 export BROWSER="/usr/bin/vimprobable2"
-export PASSWORD_STORE_DIR="$HOME/Sync/pass"
+export PASSWORD_STORE_DIR="$HOME/Sync/pass/"
 
 # man page colours
 export LESS_TERMCAP_mb=$'\E[01;31m'

File Scripts/imgur

-#!/bin/bash
-
-# imgur script by Bart Nagel <bart@tremby.net>
-# version 2
-# I release this as public domain. Do with it what you will.
-
-# Required: curl
-#
-# Optional: xsel or xclip for automatically putting the URL on the X selection
-# for easy pasting
-#
-# Instructions:
-# Put it somewhere in your path and maybe rename it:
-# 	mv ~/Downloads/imgur.sh ~/bin/imgur
-# Make it executable:
-# 	chmod +x ~/bin/imgur
-# Stick your API key in the top:
-# 	vim ~/bin/imgur
-# Upload an image:
-# 	imgur images/hilarious/manfallingover.jpg
-# The URL will be displayed (and the delete page's URL will be displayed on
-# stderr). If you have xsel or xclip the URL will also be put on the X
-# selection, which you can usually paste with a middle click.
-
-# API Key provided by Alan@imgur.com
-apikey="b3625162d3418ac51a9ee805b1840452"
-
-# function to output usage instructions
-function usage {
-	echo "Usage: $(basename $0) <filename>
-Upload an image to imgur and output its new URL to stdout. Its delete page is
-output to stderr.
-If xsel or xclip is available, the URL is put on the X selection for easy
-pasting." >&2
-}
-
-# check API key has been entered
-if [ "$apikey" = "Your API key" ]; then
-	echo "You first need to edit the script and put your API key in the variable near the top." >&2
-	exit 15
-fi
-
-# check arguments
-if [ "$1" = "-h" -o "$1" = "--help" ]; then
-	usage
-	exit 0
-elif [ $# -ne 1 ]; then
-	if [ $# == 0 ]; then
-		echo "No file specified" >&2
-	else
-		echo "Unexpected arguments" >&2
-	fi
-	usage
-	exit 16
-elif [ ! -f "$1" ]; then
-	echo "File \"$1\" not found" >&2
-	exit 1
-fi
-
-# check curl is available
-which curl >/dev/null 2>/dev/null || {
-	echo "Couln't find curl, which is required." >&2
-	exit 17
-}
-
-# upload the image
-response=$(curl -F "key=$apikey" -H "Expect: " -F "image=@$1" \
-	http://imgur.com/api/upload.xml 2>/dev/null)
-# the "Expect: " header is to get around a problem when using this through the
-# Squid proxy. Not sure if it's a Squid bug or what.
-if [ $? -ne 0 ]; then
-	echo "Upload failed" >&2
-	exit 2
-elif [ $(echo $response | grep -c "<error_msg>") -gt 0 ]; then
-	echo "Error message from imgur:" >&2
-	echo $response | sed -r 's/.*<error_msg>(.*)<\/error_msg>.*/\1/' >&2
-	exit 3
-fi
-
-# parse the response and output our stuff
-url=$(echo $response | sed -r 's/.*<original_image>(.*)<\/original_image>.*/\1/')
-deleteurl=$(echo $response | sed -r 's/.*<delete_page>(.*)<\/delete_page>.*/\1/')
-echo $url
-echo "Delete page: $deleteurl" >&2
-
-# put the URL on the clipboard if we have xsel or xclip
-if [ $DISPLAY ]; then
-	{ which xsel >/dev/null 2>/dev/null && echo -n $url | xsel; } \
-		|| { which xclip >/dev/null 2>/dev/null && echo -n $url | xclip; } \
-		|| echo "Haven't copied to the clipboard: no xsel or xclip" >&2
-else
-	echo "Haven't copied to the clipboard: no \$DISPLAY" >&2
-fi

File Scripts/passmenu

 
 shopt -s nullglob globstar
 
-font='-*-tamsyn-medium-*-*-*-17-*-*-*-*-*-iso8859-*'
+font='Dejavu Sans Mono:medium:size=7.5'
 nb='#121212'
 nf='#696969'
 sb='#121212'