aboutsummaryrefslogtreecommitdiff
path: root/conf.d/05gui.fish
diff options
context:
space:
mode:
Diffstat (limited to 'conf.d/05gui.fish')
-rw-r--r--conf.d/05gui.fish28
1 files changed, 14 insertions, 14 deletions
diff --git a/conf.d/05gui.fish b/conf.d/05gui.fish
index 68599ce..9fc0629 100644
--- a/conf.d/05gui.fish
+++ b/conf.d/05gui.fish
@@ -1,17 +1,17 @@
-if status is-interactive; and not fish_is_root_user
+if not fish_is_root_user
-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
- alias_if osascript notify -e
-end
+ if set -q WAYLAND_DISPLAY
+ alias_if wl-copy ccpy
+ alias_if wl-paste cpst
+ alias_if notify-send notify
+ 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 string match -q 'Darwin' (uname)
+ alias_if pbcopy ccpy
+ alias_if pbpaste cpst
+ alias_if osascript notify -e
+ end
end