AutoYADM commit: 2025-05-04 18:00:06

This commit is contained in:
Daniel Fichtinger 2025-05-04 18:00:06 -04:00
parent 62b35dcdbf
commit 4d114c959a
3 changed files with 62 additions and 11 deletions

View file

@ -1,17 +1,21 @@
#!/usr/bin/env fish
set -l opts --selector fuzzel --clipboarder wl-copy --typer wtype --use-notify-send
set -l cmd (echo type\ncopy\nprint\n | fuzzel --prompt="Mode: " --dmenu)
set -l opts --selector fuzzel --clear-after 60 --clipboarder wl-copy --typer wtype --use-notify-send
set -l target (echo username\npassword\nautotype | fuzzel --prompt="Targets: " --dmenu)
rofi-rbw $opts --action $cmd
if not test "$target" = both
set --append opts --target $target
end
# 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
if test "$cmd" = type
rofi-rbw $opts --action type
else if test "$cmd" = copy
rofi-rbw $opts --action copy
else if test "$cmd" = print
notify-send --wait (rofi-rbw $opts --action print | string collect -N)
else
return 1
end