AutoYADM commit: 2025-05-01 15:15:06
This commit is contained in:
parent
bc47e51af8
commit
9e99dd60ec
2 changed files with 8 additions and 8 deletions
|
@ -1,4 +1,5 @@
|
|||
#!/usr/bin/env fish
|
||||
argparse c/clipboard -- $argv
|
||||
|
||||
set -l data_path ~/.config/niri/emoji-data.txt
|
||||
# read emoji data
|
||||
|
@ -7,14 +8,13 @@ set -l data (cat $data_path | string collect -N | string trim --right | string c
|
|||
set -l line (printf "%s" $data | fuzzel --prompt=">> " --dmenu)
|
||||
# get the first space-separated token
|
||||
set -l emoji (string split -f1 ' ' $line)
|
||||
sleep 0.15
|
||||
if test -n "$emoji"
|
||||
wtype $emoji
|
||||
# wtype -M ctrl -M shift -k v
|
||||
# nohup wtype testing &>/dev/null &
|
||||
# nohup wtype $emoji &>/dev/null &
|
||||
# only type emoji if user made a selection
|
||||
if not set -ql _flag_c
|
||||
wtype $emoji
|
||||
else
|
||||
wl-copy $emoji
|
||||
end
|
||||
else
|
||||
return 1
|
||||
end
|
||||
# wtype "gaming jacket"
|
||||
# nohup wtype $emoji &>/dev/null &
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
},
|
||||
// bottom bar
|
||||
{
|
||||
// "output": "DP-1",
|
||||
"output": "DP-1",
|
||||
"layer": "top",
|
||||
"position": "bottom",
|
||||
"modules-left": [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue