From bc3c2177f11891b4d8d7532955b7bc021c6ce10a Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Fri, 14 Jun 2024 11:23:45 -0400 Subject: some fish stuff --- .config/fish/conf.d/ansi-colors.fish | 9 +++++++++ .local/bin/unicode.sh | 8 ++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 .config/fish/conf.d/ansi-colors.fish diff --git a/.config/fish/conf.d/ansi-colors.fish b/.config/fish/conf.d/ansi-colors.fish new file mode 100644 index 0000000..15104ce --- /dev/null +++ b/.config/fish/conf.d/ansi-colors.fish @@ -0,0 +1,9 @@ +set -u fish_color_command blue +set -u fish_color_quote yellow +set -u fish_color_redirection brcyan +set -u fish_color_end green +set -u fish_color_error brred --bold +set -u fish_color_param cyan +set -u fish_color_comment red +set -u fish_color_operator brblue --bold +set -u fish_color_autosuggestion brblack diff --git a/.local/bin/unicode.sh b/.local/bin/unicode.sh index b0de965..fb0721c 100755 --- a/.local/bin/unicode.sh +++ b/.local/bin/unicode.sh @@ -31,6 +31,10 @@ function hex2dec(h,i,x,v){ } test -e ~/.cache/sxmo/PrintableUnicodes.tsv || makefile -# can't wl-ime-type or wtype in pop-os wayland -cat ~/.cache/sxmo/PrintableUnicodes.tsv | sxmo_dmenu.sh -i | cut -d' ' -f1 | tee /dev/stderr | xargs wl-copy #xargs -I{} wl-ime-type '{}' +if test "$XDG_SESSION_TYPE" = x11; then + printf "%s" $(cat ~/.cache/sxmo/PrintableUnicodes.tsv | sxmo_dmenu.sh -i | cut -d' ' -f1 | tee /dev/stderr) | xclip -selection clipboard +else + # can't wl-ime-type or wtype in pop-os wayland + cat ~/.cache/sxmo/PrintableUnicodes.tsv | sxmo_dmenu.sh -i | cut -d' ' -f1 | tee /dev/stderr | xargs wl-copy #xargs -I{} wl-ime-type '{}' +fi -- cgit 1.4.1