From d867f5a4dc8b2612cb1499b6de942d58e6c6fd63 Mon Sep 17 00:00:00 2001 From: Deposite Pirate Date: Sun, 5 Oct 2025 13:21:26 +0200 Subject: Fix wayland detection. In a wayland environment, X's $DISPLAY is also set. So check for wayland first. modified: conf.d/05gui.fish --- conf.d/05gui.fish | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'conf.d') diff --git a/conf.d/05gui.fish b/conf.d/05gui.fish index ff03cc7..68599ce 100644 --- a/conf.d/05gui.fish +++ b/conf.d/05gui.fish @@ -1,13 +1,13 @@ if status is-interactive; and not fish_is_root_user -if set -q DISPLAY - alias_if xclip ccpy -i -selection clipboard - alias_if xclip cpst -o -selection clipboard - alias_if notify-send notify -else if set -q WAYLAND_DISPLAY +if set -q WAYLAND_DISPLAY alias_if wl-copy ccpy alias_if wl-paste cpst alias_if notify notify-send +else if set -q DISPLAY + alias_if xclip ccpy -i -selection clipboard + alias_if xclip cpst -o -selection clipboard + alias_if notify-send notify else if test (uname) = 'Darwin' alias_if pbcopy ccpy alias_if pbpaste cpst -- cgit v1.3.1