merging workstation diffs
This commit is contained in:
+6
-3
@@ -81,8 +81,10 @@ kptotps() { _kp_run show -st "$KEEPASS_DB" "$1"; }
|
||||
|
||||
# run with KP_DEBUG=1 to troubleshoot if needed
|
||||
function load_gemini() {
|
||||
export GEMINI_API_KEY=$(kpgets "Gemini API Key")
|
||||
echo "Gemini API Key loaded into environment!"
|
||||
if [[ -z "${MY_VARIABLE+set}" ]]; then
|
||||
export GEMINI_API_KEY=$(kpgets "Gemini API Key")
|
||||
echo "Gemini API Key loaded into environment!"
|
||||
fi
|
||||
}
|
||||
|
||||
function totp() {
|
||||
@@ -101,7 +103,8 @@ function totp() {
|
||||
if $clip; then
|
||||
case "$UNAME_STRING" in
|
||||
Darwin) echo -n "$code" | pbcopy ;;
|
||||
Linux) if [[ "$XDG_SESSION_TYPE" == "wayland" ]]; then
|
||||
Linux) SESSION_ID=$(loginctl session-status | head -n 1 | awk '{print $1}')
|
||||
if loginctl show-session "$SESSION_ID" -p Type | grep -q "Type=wayland"; then
|
||||
echo -n "$code" | wl-copy
|
||||
else
|
||||
echo -n "$code" | xclip -selection clipboard
|
||||
|
||||
Reference in New Issue
Block a user