AutoYADM commit: 2025-05-01 15:15:06

This commit is contained in:
Daniel Fichtinger 2025-05-01 15:15:06 -04:00
parent bc47e51af8
commit 9e99dd60ec
2 changed files with 8 additions and 8 deletions

View file

@ -1,4 +1,5 @@
#!/usr/bin/env fish #!/usr/bin/env fish
argparse c/clipboard -- $argv
set -l data_path ~/.config/niri/emoji-data.txt set -l data_path ~/.config/niri/emoji-data.txt
# read emoji data # 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) set -l line (printf "%s" $data | fuzzel --prompt=">> " --dmenu)
# get the first space-separated token # get the first space-separated token
set -l emoji (string split -f1 ' ' $line) set -l emoji (string split -f1 ' ' $line)
sleep 0.15
if test -n "$emoji" if test -n "$emoji"
# only type emoji if user made a selection
if not set -ql _flag_c
wtype $emoji wtype $emoji
# wtype -M ctrl -M shift -k v else
# nohup wtype testing &>/dev/null & wl-copy $emoji
# nohup wtype $emoji &>/dev/null & end
else else
return 1 return 1
end end
# wtype "gaming jacket"
# nohup wtype $emoji &>/dev/null &

View file

@ -29,7 +29,7 @@
}, },
// bottom bar // bottom bar
{ {
// "output": "DP-1", "output": "DP-1",
"layer": "top", "layer": "top",
"position": "bottom", "position": "bottom",
"modules-left": [ "modules-left": [