From 62b35dcdbfdc56555375c9a73380e3ae075490df Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Sun, 4 May 2025 17:45:05 -0400 Subject: [PATCH] AutoYADM commit: 2025-05-04 17:45:05 --- .config/niri/config.kdl##hostname.dbox | 3 +++ .config/niri/scripts/rofi-rbw-wrapper.fish | 22 +++++++++++----------- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/.config/niri/config.kdl##hostname.dbox b/.config/niri/config.kdl##hostname.dbox index 04aed48d..d25a64fa 100644 --- a/.config/niri/config.kdl##hostname.dbox +++ b/.config/niri/config.kdl##hostname.dbox @@ -762,6 +762,9 @@ binds { Mod+P { spawn "clipcat-menu" } + Mod+B { + spawn "~/.config/niri/scripts/rofi-rbw-wrapper.fish" + } // Applications such as remote-desktop clients and software KVM switches may // request that niri stops processing the keyboard shortcuts defined here // so they may, for example, forward the key presses as-is to a remote machine. diff --git a/.config/niri/scripts/rofi-rbw-wrapper.fish b/.config/niri/scripts/rofi-rbw-wrapper.fish index 156bdde4..8f5094c0 100755 --- a/.config/niri/scripts/rofi-rbw-wrapper.fish +++ b/.config/niri/scripts/rofi-rbw-wrapper.fish @@ -1,17 +1,17 @@ #!/usr/bin/env fish -set -l cmd $argv[1] +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 -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 --action $cmd -rofi-rbw $opts +# 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