From 3a2ae744d5cd8ae246cb6152d6681c2dc1f4e748 Mon Sep 17 00:00:00 2001 From: Simon Rieger Date: Thu, 7 Dec 2023 12:13:31 +0100 Subject: [PATCH] add kde-shortcuts --- dot_config/fuzzel/executable_fuzzel-wl-copy-pass.sh | 7 +++++++ plasma-shourtcuts/private_clipboard.kksrc | 11 +++++++++++ 2 files changed, 18 insertions(+) create mode 100644 dot_config/fuzzel/executable_fuzzel-wl-copy-pass.sh create mode 100644 plasma-shourtcuts/private_clipboard.kksrc 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