initial commit - add files

This commit is contained in:
shark
2018-10-30 16:54:46 -05:00
commit ab8185db55
43 changed files with 1081 additions and 0 deletions

View File

@ -0,0 +1,14 @@
function tp
if test $touchpadEnabled = 1
set touchpadEnabled 0
echo Disabled Trackpad
xinput disable "Atmel maXTouch Touchpad"
unclutter --timeout 0 &
else
set touchpadEnabled 1
echo Enabled Trackpad
xinput enable "Atmel maXTouch Touchpad"
kill (jobs -c | grep unclutter) 2>/dev/null
end
end

View File

@ -0,0 +1,11 @@
function transfer --description 'Upload a file to transfer.sh'
if [ $argv[1] ]
# write to output to tmpfile because of progress bar
set -l tmpfile ( mktemp -t transferXXX )
curl --progress-bar --upload-file "$argv[1]" https://transfer.sh/(basename $argv[1]) >> $tmpfile
cat $tmpfile
command rm -f $tmpfile
else
echo 'usage: transfer FILE_TO_TRANSFER'
end
end