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
|
#!/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"
|
||||||
wtype $emoji
|
# only type emoji if user made a selection
|
||||||
# wtype -M ctrl -M shift -k v
|
if not set -ql _flag_c
|
||||||
# nohup wtype testing &>/dev/null &
|
wtype $emoji
|
||||||
# nohup wtype $emoji &>/dev/null &
|
else
|
||||||
|
wl-copy $emoji
|
||||||
|
end
|
||||||
else
|
else
|
||||||
return 1
|
return 1
|
||||||
end
|
end
|
||||||
# wtype "gaming jacket"
|
|
||||||
# nohup wtype $emoji &>/dev/null &
|
|
||||||
|
|
|
@ -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": [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue