dot

packages and services management
Log | Files | Refs | README

commit 8da6ce6f2d54c06d24d788d102231b7dff4e603d
parent f74edcd8674a6cf76fd7565bae51bbf734813af5
Author: Josuah Demangeon <mail@josuah.net>
Date:   Thu,  8 Nov 2018 23:40:52 +0100

bin/menu-*: use clip-in and do not require a terminal

Diffstat:
Mbin/clip-out | 5+----
Mbin/menu-find | 2+-
Mbin/menu-pass | 2+-
Mbin/menu-ssh | 2+-
Mbin/menu-uri | 2+-
5 files changed, 5 insertions(+), 8 deletions(-)

diff --git a/bin/clip-out b/bin/clip-out @@ -2,7 +2,4 @@ CLIP=${CLIP:-$HOME/.cache/clip} -mkdir -p "$(dirname "$CLIP")" -touch "$CLIP" -chmod 600 "$CLIP" -cat >$CLIP +cat "$CLIP" diff --git a/bin/menu-find b/bin/menu-find @@ -3,4 +3,4 @@ test $# = 0 && set -- . -find "$@" '(' -name .git -o -name CVS ')' -prune -o -print | sort | menu +find "$@" '(' -name .git -o -name CVS ')' -prune -o -print | sort | menu | clip-in diff --git a/bin/menu-pass b/bin/menu-pass @@ -1,3 +1,3 @@ #!/bin/sh -e -pass $(pass | menu) +pass $(pass | menu) | clip-in diff --git a/bin/menu-ssh b/bin/menu-ssh @@ -3,4 +3,4 @@ t=$(sed 's/[, ].*//' "$HOME/.ssh/known_hosts" | menu) t=${t:-localhost} -exec ssh "$t" +exec window ssh "$t" diff --git a/bin/menu-uri b/bin/menu-uri @@ -1,3 +1,3 @@ #!/bin/sh -e -exec xdg-open "$(menu <"$HOME/.config/uri")" +window xdg-open "$(menu <"$HOME/.config/uri")"