personal dotfiles: my Hyprland config
| -rw-r--r-- | .config/fish/conf.d/ansi-colors.fish | 9 | ||||
| -rwxr-xr-x | .local/bin/unicode.sh | 8 |
2 files changed, 15 insertions, 2 deletions
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 |