balrog

A partial drop-in replacement for pass and pass-otp written in POSIX shell.
git clone https://git.stjo.hn/balrog
Log | Files | Refs | README | LICENSE

commit ba7a47930eff33d346724a6b7664fda80d8ed49b
parent 1ec5f42828ed0ab219ba28c1775f53cbc3b1a32e
Author: St John Karp <contact@stjo.hn>
Date:   Thu, 17 Nov 2022 01:46:00 -0500

Change the variable used to detect Xorg vs. Wayland

Also changed the Wayland clipboard utility to match what's in KISS.

Diffstat:
Mbalrog | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/balrog b/balrog @@ -12,9 +12,9 @@ CHARACTERS='a-zA-Z0-9!"#$%&'\''()*+,-./:;<=>?@[]^_‘{|}~\\' TMP_FILE="$HOME/.balrogtmp" # Identify the system's clipboard utility. -[ "$XDG_SESSION_TYPE" = 'x11' ] && - CLIP='xclip -selection clipboard' || - CLIP='wl-copy' +[ -n "$WAYLAND_DISPLAY" ] && + CLIP='waycopy' || + CLIP='xclip -selection clipboard' # Loop through all the arguments and set flags/options. while [ "$#" -gt 0 ] ; do