Compare commits

..

No commits in common. "da807b773fa9033015b1e14e2ee38834dd6224fe" and "04d4602325e3399087d649e78328e921f50446a2" have entirely different histories.

3 changed files with 1 additions and 27 deletions

View File

@ -1,12 +0,0 @@
#!/usr/bin/env bash
# Copy snippet to primary clipboard for middle-click pasting
# Maintain list of snippets in private repository
FOLDER=${HOME}/.private-scripts/snippets
FILE=`ls ${FOLDER} | /usr/bin/rofi -dmenu`
if [ -f ${FOLDER}/${FILE} ]; then
DATA=$([ -x "${FOLDER}/${FILE}" ] && bash "${FOLDER}/${FILE}" || head --bytes=-1 ${FOLDER}/${FILE})
printf -- "${DATA}" | wl-copy -p
fi

View File

@ -1,17 +1,3 @@
#!/bin/bash
if [ -e $HOME/.spool/ssh-agent.sock ]; then
PID=$(tail -n 1 $HOME/.spool/ssh-agent.env | sed 's/echo Agent pid \([0-9]*\);/\1/')
if [ -z $PID ]; then
pkill ssh-agent
rm $HOME/.spool/ssh-agent.*
else
CMD=$(ps -p $PID -o comm | tail -n 1)
if [ ! -z $CMD ] && [ $CMD == 'ssh-agent' ]; then
echo "Valid agent already found at $HOME/.spool/ssh-agent.sock with PID $PID"
exit
fi
fi
fi
eval $(ssh-agent -a $HOME/.spool/ssh-agent.sock | tee $HOME/.spool/ssh-agent.env) >/dev/null

View File

@ -5,5 +5,5 @@ RUNNING=$(pgrep todotxt-machine)
if [ "$RUNNING" ]; then
kill $RUNNING 2&>1 /dev/null
else
/usr/bin/alacritty --title todotxt-machine -e ${HOME}/.pyenv/shims/todotxt-machine ${HOME}/export/todo.txt
/usr/bin/xterm -e "/home/jpm/.local/bin/todotxt-machine /home/jpm/nextcloud/phone/todo.txt"
fi