diff --git a/dot_config/fuzzel/executable_fuzzel-wl-copy-pass.sh b/dot_config/fuzzel/executable_fuzzel-wl-copy-pass.sh new file mode 100644 index 0000000..02d9a2e --- /dev/null +++ b/dot_config/fuzzel/executable_fuzzel-wl-copy-pass.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +# Use fuzzel to find a password from password-store and copy it to clipboard. +# inpired by: https://gist.github.com/igemnace/2b8609d280752e8a1b173204c14f6892 + +pass_name=$(cd $HOME/.password-store && rg --files | sort | sed 's/\.gpg$//' | fuzzel -d) + +[[ $pass_name != "" ]] && pass show $pass_name | wl-copy diff --git a/plasma-shourtcuts/private_clipboard.kksrc b/plasma-shourtcuts/private_clipboard.kksrc new file mode 100644 index 0000000..301110e --- /dev/null +++ b/plasma-shourtcuts/private_clipboard.kksrc @@ -0,0 +1,11 @@ +[clipman.desktop][Global Shortcuts] +_launch=Alt+Y + +[fuzzel-plasma-pass.sh.desktop][Global Shortcuts] +_launch=Alt+Shift+Y + +[fuzzel.desktop][Global Shortcuts] +_launch=Alt+D + +[org.wezfurlong.wezterm.desktop][Global Shortcuts] +_launch=Alt+Return