diff --git a/.config/niri/scripts/rofi-rbw-wrapper.fish b/.config/niri/scripts/rofi-rbw-wrapper.fish new file mode 100755 index 00000000..156bdde4 --- /dev/null +++ b/.config/niri/scripts/rofi-rbw-wrapper.fish @@ -0,0 +1,17 @@ +#!/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