17 lines
359 B
Fish
Executable file
17 lines
359 B
Fish
Executable file
#!/usr/bin/env fish
|
|
|
|
set -l cmd $argv[1]
|
|
|
|
set -l opts --selector fuzzel --clear-after 60 --clipboarder wl-copy --typer wtype --use-notify-send
|
|
|
|
if test "$cmd" = type
|
|
rofi-rbw $opts --action type
|
|
else if test "$cmd" = copy
|
|
rofi-rbw $opts --action copy
|
|
else if test "$cmd" = print
|
|
rofi-rbw $opts --action print
|
|
else
|
|
return 1
|
|
end
|
|
|
|
rofi-rbw $opts
|