diff options
| author | Zach DeCook <zach.decook@bettercarpeople.com> | 2023-12-15 07:55:38 -0500 |
|---|---|---|
| committer | Zach DeCook <zach.decook@bettercarpeople.com> | 2023-12-15 07:55:38 -0500 |
| commit | 46163edbc6fa51ede7ac9b258613c41dee7200c0 (patch) | |
| tree | 04a13f644fad8733c36e3c8758dd4d174520e79e | |
| parent | 334a13fc76dd5722f0abeee00f3d75d6009ea1aa (diff) | |
| download | dotfiles-46163edbc6fa51ede7ac9b258613c41dee7200c0.tar.gz | |
scripts: update
| -rwxr-xr-x | .local/bin/emojis.sh | 6 | ||||
| -rwxr-xr-x | .local/bin/mfi.py | 2 |
2 files changed, 6 insertions, 2 deletions
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) |
