From 26e4fa3cbe9f8eb28a70bbcd4d3916d7ae4e808f Mon Sep 17 00:00:00 2001 From: joe Date: Thu, 9 Oct 2025 17:12:18 +0200 Subject: up --- .config/msmtp/config | 2 +- .local/bin/dmbookm | 1 + .local/bin/dmpass | 23 ++++++++++++++++++----- 3 files changed, 20 insertions(+), 6 deletions(-) diff --git a/.config/msmtp/config b/.config/msmtp/config index e0f4fc8..4ada845 100644 --- a/.config/msmtp/config +++ b/.config/msmtp/config @@ -2,7 +2,7 @@ defaults auth on -tls on +tls on tls_trust_file /etc/ssl/certs/ca-certificates.crt logfile /home/jozan/.config/msmtp/msmtp.log diff --git a/.local/bin/dmbookm b/.local/bin/dmbookm index e7004a8..1e2a9a7 100755 --- a/.local/bin/dmbookm +++ b/.local/bin/dmbookm @@ -17,6 +17,7 @@ use constant LIST => { chatgpt => 'https://chatgpt.com/', discord => 'https://discord.com/', protondb => 'https://www.protondb.com/', + vultr => 'https://my.vultr.com/', nua_grafana => 'https://grafana.nuabee.fr/', nua_gr_linux_servers => 'https://grafana.nuabee.fr/d/xfpJB9FGz/linux-servers', nua_gr_restops => 'https://grafana.nuabee.fr/d/Mz11bd07k/vue-d-ensemble-machines-atelier', diff --git a/.local/bin/dmpass b/.local/bin/dmpass index 475b96e..c315be1 100755 --- a/.local/bin/dmpass +++ b/.local/bin/dmpass @@ -1,5 +1,6 @@ #!/bin/sh +name=0 full=0 color='#cc241d'; if [ "$1" = "--full" ]; then @@ -7,6 +8,11 @@ if [ "$1" = "--full" ]; then if echo "$2" | grep '^#' 2>&1; then color="$2" fi +elif [ "$1" = "--name" ]; then + name=1 + if echo "$2" | grep '^#' 2>&1; then + color="$2" + fi elif echo "$1" | grep '^#' 2>&1; then color="$1" fi @@ -32,21 +38,28 @@ password=$(printf "%s\n" "${password_files}" | $dmenu) p="$(pass show "$password")" -if [ $full -eq 1 ]; then +if [ $full -eq 1 ] || [ $name -eq 1 ]; then id=$(printf "%s" "$password" | sed 's/.*___//') printf "%s\n" $id | { IFS= read -r pass; printf %s "$id"; } | $xdotool + if [ $name -eq 1 ]; then + exit + fi +fi + +if [ $full -eq 1 ]; then if [ -n "$WAYLAND_DISPLAY" ]; then ydotool key 15:1 15:0 else xdotool key Tab fi - printf "%s\n" "$p" | { IFS= read -r pass; printf %s "$pass"; } | $xdotool +fi + +printf "%s\n" "$p" | { IFS= read -r pass; printf %s "$pass"; } | $xdotool + +if [ $full -eq 1 ]; then if [ -n "$WAYLAND_DISPLAY" ]; then ydotool key 28:1 28:0 else xdotool key Return fi - exit fi - -printf "%s\n" "$p" | { IFS= read -r pass; printf %s "$pass"; } | $xdotool -- cgit v1.2.3