From 46163edbc6fa51ede7ac9b258613c41dee7200c0 Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Fri, 15 Dec 2023 07:55:38 -0500 Subject: scripts: update --- .local/bin/emojis.sh | 6 +++++- .local/bin/mfi.py | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to '.local/bin') diff --git a/.local/bin/emojis.sh b/.local/bin/emojis.sh index 4233c2b..5954b33 100755 --- a/.local/bin/emojis.sh +++ b/.local/bin/emojis.sh @@ -74,7 +74,11 @@ emojis(){ ;; * ) # wtype "$emoji" & - printf %s "$emoji" | wl-copy + if test "$XDG_SESSION_TYPE" = x11; then + printf %s "$emoji" | xclip -selection clipboard + else + printf %s "$emoji" | wl-copy + fi emojis "$menu" "$submenu" ;; esac diff --git a/.local/bin/mfi.py b/.local/bin/mfi.py index 8cd19cd..30fc3ce 100755 --- a/.local/bin/mfi.py +++ b/.local/bin/mfi.py @@ -20,6 +20,6 @@ for sub in subs: n = nums.pop() files = r.stdout.decode().strip().split('\n') for file in files: - args.append(file+":"+n) + args.append(file+":"+str(n)) subprocess.run(args) -- cgit 1.4.1