diff options
| author | Deposite Pirate | 2025-10-05 13:21:26 +0200 |
|---|---|---|
| committer | Deposite Pirate | 2025-10-05 13:21:26 +0200 |
| commit | d867f5a4dc8b2612cb1499b6de942d58e6c6fd63 (patch) | |
| tree | 29680ff8e3ef48afc05c03e4d152468fb6cd0ce3 | |
| parent | 1837e920fca81193f94cb4204f5ab08fcbda56d1 (diff) | |
Fix wayland detection.
In a wayland environment, X's $DISPLAY is also set. So check for
wayland first.
modified: conf.d/05gui.fish
| -rw-r--r-- | conf.d/05gui.fish | 10 |
1 files changed, 5 insertions, 5 deletions
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 |
