From 517acf6ac9a9da29ac4cd52de2a52db5a8fab88a Mon Sep 17 00:00:00 2001 From: Deposite Pirate Date: Thu, 16 Oct 2025 19:30:01 +0200 Subject: 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 --- conf.d/05gui.fish | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'conf.d/05gui.fish') 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 -- cgit v1.3.1