AutoYADM commit: 2025-05-01 14:45:05
This commit is contained in:
parent
36c5099718
commit
ea21308016
2 changed files with 13 additions and 2 deletions
|
@ -775,7 +775,7 @@ binds {
|
||||||
}
|
}
|
||||||
// The quit action will show a confirmation dialog to avoid accidental exits.
|
// The quit action will show a confirmation dialog to avoid accidental exits.
|
||||||
Mod+Shift+semicolon {
|
Mod+Shift+semicolon {
|
||||||
spawn "~/.config/niri/emoji-picker.sh"
|
spawn "~/.config/niri/emoji-picker.fish"
|
||||||
}
|
}
|
||||||
// Mod+Shift+semicolon {
|
// Mod+Shift+semicolon {
|
||||||
// quit
|
// quit
|
||||||
|
|
|
@ -3,4 +3,15 @@
|
||||||
set -l data_path ~/.config/niri/emoji-data.txt
|
set -l data_path ~/.config/niri/emoji-data.txt
|
||||||
# read emoji data
|
# read emoji data
|
||||||
set -l data (cat $data_path | string collect -N | string trim --right | string collect -N)
|
set -l data (cat $data_path | string collect -N | string trim --right | string collect -N)
|
||||||
printf "%s" $data | fuzzel --prompt=">> " --dmenu
|
# user selects line with fuzzel
|
||||||
|
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"
|
||||||
|
else
|
||||||
|
return 1
|
||||||
|
end
|
||||||
|
# wtype "gaming jacket"
|
||||||
|
# nohup wtype $emoji &>/dev/null &
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue