aboutsummaryrefslogtreecommitdiff
path: root/conf.d/05gui.fish
blob: ff03cc7c08a7564454effd57a95f4a7adbe4f1aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
  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