pass.dmenu: do not check for output-trigger on wayland - dotfiles - 🍚 personal arsenal of "rice"
HTML git clone https://git.drkhsh.at/dotfiles.git
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit 9b232ad9a7a89fd24c9da5bb4d15fc421f95034d
DIR parent fe2b166d2810b06b9a3964d4607523a33925be6a
HTML Author: drkhsh <me@drkhsh.at>
Date: Sat, 30 Nov 2024 01:23:51 +0100
pass.dmenu: do not check for output-trigger on wayland
Diffstat:
M bin/bin/pass.dmenu | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
DIR diff --git a/bin/bin/pass.dmenu b/bin/bin/pass.dmenu
@@ -4,8 +4,10 @@ set -eo pipefail
[ -e $HOME/.config/pass ] && . $HOME/.config/pass
prefix=$PASSWORD_STORE_DIR
export PASSWORD_STORE_DIR="$prefix"
-if ! command -v output-trigger >/dev/null; then
- echo "missing output-trigger" && exit 1
+if [ "$XDG_SESSION_TYPE" != "wayland" ]; then
+ if ! command -v output-trigger >/dev/null; then
+ echo "missing output-trigger" && exit 1
+ fi
fi
clipboard_copy() {
if [ "$XDG_SESSION_TYPE" != "wayland" ]; then