diff options
| -rw-r--r-- | conf.d/05gui.fish | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/conf.d/05gui.fish b/conf.d/05gui.fish index de14a01..ff03cc7 100644 --- a/conf.d/05gui.fish +++ b/conf.d/05gui.fish @@ -1,14 +1,17 @@ if status is-interactive; and not fish_is_root_user -if set -q DISPLAY; and command -q xclip - alias ccpy 'xclip -i -selection clipboard' - alias cpst 'xclip -o -selection clipboard' -else if set -q WAYLAND_DISPLAY; and command -q wl-copy; and command -q wl-paste - alias ccpy 'wl-copy' - alias cpst 'wl-paste' -else if test (uname) = 'Darwin'; and command -q pbcopy; and command -q pbpaste - alias ccpy 'pbcopy' - alias cpst 'pbpaste' +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 + alias_if wl-copy ccpy + alias_if wl-paste cpst + alias_if notify notify-send +else if test (uname) = 'Darwin' + alias_if pbcopy ccpy + alias_if pbpaste cpst + alias_if osascript notify -e end end |
