move some files around
This commit is contained in:
parent
df402becef
commit
5bc1b7fc2b
29 changed files with 197 additions and 247 deletions
15
other/scripts/desktop/permaclip/pc-get.sh
Normal file
15
other/scripts/desktop/permaclip/pc-get.sh
Normal file
|
@ -0,0 +1,15 @@
|
|||
# create ~/permaclip if it doesnt exist already
|
||||
mkdir -p $HOME/permaclip
|
||||
|
||||
tr_name=$(echo ${@% (*} | xargs)
|
||||
if [ x"$tr_name" != x"" ]; then
|
||||
nohup bash -c "xclip -selection c -i $HOME/permaclip/${tr_name% (*}" > /dev/null
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo -e "\0markup-rows\x1ftrue"
|
||||
|
||||
for reg in $(ls ~/permaclip); do
|
||||
content=$(cat ~/permaclip/$reg)
|
||||
echo -e "$reg (<i>${content:0:50}...</i>)"
|
||||
done
|
16
other/scripts/desktop/permaclip/pc-set.sh
Normal file
16
other/scripts/desktop/permaclip/pc-set.sh
Normal file
|
@ -0,0 +1,16 @@
|
|||
# create ~/permaclip if it doesnt exist already
|
||||
mkdir -p $HOME/permaclip
|
||||
|
||||
tr_name=$(echo $@ | xargs)
|
||||
if [ x"$tr_name" != x"" ]; then
|
||||
tr_name="${tr_name% (*}"
|
||||
clipdata=$(xclip -selection c -o)
|
||||
echo "$clipdata" > $HOME/permaclip/$tr_name
|
||||
fi
|
||||
|
||||
echo -e "\0markup-rows\x1ftrue"
|
||||
|
||||
for reg in $(ls ~/permaclip); do
|
||||
content=$(cat ~/permaclip/$reg)
|
||||
echo -e "$reg (<i>${content:0:30}</i>)"
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue