about summary refs log tree commit diff stats
path: root/config/lf/lfrc
diff options
context:
space:
mode:
Diffstat (limited to 'config/lf/lfrc')
-rw-r--r--config/lf/lfrc9
1 files changed, 9 insertions, 0 deletions
diff --git a/config/lf/lfrc b/config/lf/lfrc
index e5e58cd..138c470 100644
--- a/config/lf/lfrc
+++ b/config/lf/lfrc
@@ -9,6 +9,14 @@ cmd open ${{
 	opener $f
 }}
 
+cmd ttmsh ${{
+	TTMURL="curl -F 'file=@-' https://ttm.sh < $f"
+	if [ -n "$TTMURL" ]; then
+		echo "$TTMURL"|tee "$HOME/ttmsh"|xclip -r
+	done
+	notify-send  'successfully uploaded to ttm!' 'link copied to selection, backup is in $HOME/ttmsh'
+}}
+
 cmd rename %[ -e $1 ] && printf "file exists" || mv $f $1
 
 # binds
@@ -19,3 +27,4 @@ map <enter> shell
 map R reload
 map x $$f
 map X !$f
+map t ttmsh