From 405fed6955a7e36db5c9b6770616807227254155 Mon Sep 17 00:00:00 2001 From: stupidcomputer Date: Mon, 15 Apr 2024 19:33:35 -0500 Subject: [PATCH] add a password menu --- .config/sxhkd/sxhkdrc | 4 ++++ builds/utils.nix | 4 +++- builds/utils/sh/passmenu | 7 +++++++ 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100755 builds/utils/sh/passmenu diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index 9b3ed90..63b006d 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -35,6 +35,10 @@ super + e super + shift + e systemctl suspend +# password menu +super + z + passmenu + # manipulate a node super + {_,ctrl +,shift + }{h,j,k,l} bspc node -{f,p,s} {west,south,north,east} diff --git a/builds/utils.nix b/builds/utils.nix index f2371dc..c175d33 100644 --- a/builds/utils.nix +++ b/builds/utils.nix @@ -19,6 +19,8 @@ , xrandr , svkbd , xkbset +, rbw +, xclip , libsForQt5 }: @@ -29,7 +31,7 @@ stdenv.mkDerivation rec { src = ./utils; nativeBuildInputs = [ makeWrapper pkg-config libxcb ]; - buildInputs = [ libxcb bash feh xrandr jq curl fzy ytfzf ffmpeg sshuttle svkbd scrcpy xkbset libsForQt5.kolourpaint ]; + buildInputs = [ libxcb bash feh xrandr jq curl fzy ytfzf ffmpeg sshuttle svkbd scrcpy xkbset rbw xclip libsForQt5.kolourpaint ]; buildPhase = '' ls diff --git a/builds/utils/sh/passmenu b/builds/utils/sh/passmenu new file mode 100755 index 0000000..8d19bf7 --- /dev/null +++ b/builds/utils/sh/passmenu @@ -0,0 +1,7 @@ +# wrapper around rbw + +resp=$(rbw list | tmenu) + +rbw get "$resp" | xclip -selection clipboard +sleep 15 +echo "cleared" | xclip -selection clipboard