diff options
| author | Deposite Pirate | 2025-10-16 19:30:01 +0200 |
|---|---|---|
| committer | Deposite Pirate | 2025-10-16 19:30:01 +0200 |
| commit | 517acf6ac9a9da29ac4cd52de2a52db5a8fab88a (patch) | |
| tree | 29c29eb348c0c77cc6588dd84f7054d53bc49d70 /conf.d/05gui.fish | |
| parent | 1dfd92bdd350ff109d2cf2152e6a7d59f24f672f (diff) | |
Integrate utility functions
Add the ask function that just prompts for yes or no. Clean up and make
available the copy/paste/notify aliases to all scripts.
modified: conf.d/00functions.fish
modified: conf.d/05gui.fish
modified: functions/alert.fish
Diffstat (limited to 'conf.d/05gui.fish')
| -rw-r--r-- | conf.d/05gui.fish | 28 |
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 |
