summary refs log tree commit diff
path: root/.local/bin
diff options
context:
space:
mode:
authorZach DeCook <zach.decook@bettercarpeople.com>2023-06-27 20:00:54 -0400
committerZach DeCook <zach.decook@bettercarpeople.com>2023-06-27 20:00:54 -0400
commit9f6f29edf5d43826ef283dcba89f5aefe93430ef (patch)
treec05d2d5dfeefd90b538483e1bda453cc11b01fb4 /.local/bin
parent368e163aeb3e10a48d124924cb2f8c38b2b5ab98 (diff)
downloaddotfiles-9f6f29edf5d43826ef283dcba89f5aefe93430ef.tar.gz
changes: yeah
Diffstat (limited to '.local/bin')
-rwxr-xr-x.local/bin/emojis.sh3
-rwxr-xr-x.local/bin/mfi.py25
-rwxr-xr-x.local/bin/wl-copy2
3 files changed, 27 insertions, 3 deletions
diff --git a/.local/bin/emojis.sh b/.local/bin/emojis.sh
index 9ba19ad..5e1baba 100755
--- a/.local/bin/emojis.sh
+++ b/.local/bin/emojis.sh
@@ -6,6 +6,7 @@
 input=/usr/share/unicode/emoji/emoji-test.txt
 
 prefix=$1
+alias sxmo_dmenu.sh='fzf'
 
 topmenu(){
 	menu=$(grep ' group: ' "$input" | cut -d: -f2 |sed 's/^ //g'|awk 'BEGIN{print "All Emojis"}(1){print}END{print "exit"}'| $prefix sxmo_dmenu.sh -i --header Emojis)
@@ -70,7 +71,7 @@ emojis(){
 		fi
 		;;
 	* )
-		wl-ime-type "$emoji" &
+		# wtype "$emoji" &
 		printf %s "$emoji" | wl-copy
 		emojis "$menu" "$submenu"
 		;;
diff --git a/.local/bin/mfi.py b/.local/bin/mfi.py
new file mode 100755
index 0000000..8cd19cd
--- /dev/null
+++ b/.local/bin/mfi.py
@@ -0,0 +1,25 @@
+#!/usr/bin/env python3
+import sys
+import subprocess
+
+args = sys.argv[1:]
+subs = []
+nums = []
+for arg in args:
+    file = arg.split(':')[0]
+    r = subprocess.run(['find', '.', '-name', file],stdout=subprocess.PIPE)
+    subs.append(r)
+    if ':' in arg:
+        nums.append(arg.split(':')[1])
+    else:
+        nums.append(0)
+
+nums.reverse()
+args = ['micro']
+for sub in subs:
+    n = nums.pop()
+    files = r.stdout.decode().strip().split('\n')
+    for file in files:
+        args.append(file+":"+n)
+    
+subprocess.run(args)
diff --git a/.local/bin/wl-copy b/.local/bin/wl-copy
deleted file mode 100755
index a53757b..0000000
--- a/.local/bin/wl-copy
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-xclip -in -selection clipboard