-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7ad3faf
commit b443259
Showing
3 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/sh | ||
|
||
# Stolen from https://github.com/CalinLeafshade/dots/blob/master/bin/bin/snippy.sh | ||
# https://www.youtube.com/watch?v=PRgIxRl67bk | ||
|
||
SNIPS=${HOME}/.dotfiles/snippets | ||
|
||
FILE=`ls ${SNIPS} | /usr/bin/rofi -dmenu` | ||
|
||
if [ -f ${SNIPS}/${FILE} ]; then | ||
DATA=$([ -x "${SNIPS}/${FILE}" ] && bash "${SNIPS}/${FILE}" || head --bytes=-1 ${SNIPS}/${FILE}) | ||
printf "$DATA" | xsel -p -i | ||
printf "$DATA" | xsel -b -i | ||
xdotool key shift+Insert | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
command cat /home/marcel/.ssh/id_rsa.pub |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters