From e3e12372a420c03b28f4e56db0a073fb4a963865 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Wed, 4 Sep 2024 15:11:57 +0200 Subject: fish: fix wayland detection --- .config/fish/config.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.config/fish') diff --git a/.config/fish/config.fish b/.config/fish/config.fish index 2cf4071..e4edb7f 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -60,7 +60,7 @@ if status is-interactive abbr --add --global ddg 'surfraw duckduckgo -j' abbr --add --global lu 'sdcv' - if test (sessiontype) != "X11" + if test "$WAYLAND_DISPLAY" != "wayland-1" abbr --add --global C 'wl-copy' # Wayland else abbr --add --global C 'xsel -b' # X11 -- cgit v1.2.3-70-g09d2