st icon indicating copy to clipboard operation
st copied to clipboard

[BUG] Xrdb-merge breaks emojis

Open orhnk opened this issue 2 years ago • 7 comments

Here is a quick DEMO:

https://github.com/siduck/st/assets/101834410/fcbe7332-4fe2-4e8e-b453-518ba71887e9

Why this is important?

I manipulate the terminal padding whenever I enter Neovim. Which requires a xrdb-merge ~/.Xresources



Xft.antialias:	1
Xft.hinting:	1
Xft.autohint:	0
Xft.hintstyle:	hintslight
Xft.rgba:	rgb
Xft.lcdfilter:	lcddefault

! window padding
st.borderpx: 20

!-- values between 0.1  - 1.0 --!

st.alpha: 1.0

#define fonts JetBrainsMono Nerd Font :pixelsize=15:antialias=true:autohint=true, \
                   JoyPixels:style:Regular, \

! Symbola:style:Regular, \
! Noto Color Emoji, \

*.font: fonts



#define base00 #282828
#define base01 #3c3836
#define base02 #504945
#define base03 #665c54
#define base04 #bdae93
#define base05 #d5c4a1
#define base06 #ebdbb2
#define base07 #fbf1c7
#define base08 #fb4934
#define base09 #fe8019
#define base0A #fabd2f
#define base0B #b8bb26
#define base0C #8ec07c
#define base0D #83a598
#define base0E #d3869b
#define base0F #d65d0e

*.foreground:   base05
#ifdef background_opacity
*.background:   [background_opacity]base00
#else
*.background:   base00
#endif
*.cursorColor:  base05


*color0:       base00
*color1:       base08
*color2:       base0B
*color3:       base0A
*color4:       base0D
*color5:       base0E
*color6:       base0C
*color7:       base05

*color8:       base03
*color9:       base08
*color10:      base0B
*color11:      base0A
*color12:      base0D
*color13:      base0E
*color14:      base0C
*color15:      base07

! just remove this if you dont use my tabbed

tabbed.selfgcolor:   #d6d8eb
tabbed.selbgcolor:   #1e222a

tabbed.normfgcolor:  #9294a8
tabbed.normbgcolor:  #282c34

orhnk avatar Aug 26 '23 09:08 orhnk

Eureka!!!

@siduck I found an insane behavior on coincidence:

https://github.com/siduck/st/assets/101834410/e50fab34-28c7-4fd9-814b-ffa596a81ccc

orhnk avatar Sep 03 '23 11:09 orhnk

i had no idea my st build supported emojis, i dont remember a patch for it

siduck avatar Sep 29 '23 12:09 siduck

#14 #19

are about this, but The solutions I tried didn't work.

Maybe I just don't know what should I do with libxft-bgra other than installing it

orhnk avatar Sep 30 '23 01:09 orhnk

just dont use emojis in st! issue solved

siduck avatar Sep 30 '23 02:09 siduck

But can you explain why It is actually working?

(M-g key)

orhnk avatar Oct 09 '23 04:10 orhnk

But can you explain why It is actually working?

(M-g key)

no idea, before we needed libxft-bgra instead of libxft package, but i'm assuming bgra PR stuff has been merged into libxft repo :thinking:

siduck avatar Oct 09 '23 04:10 siduck

I was right https://gitlab.freedesktop.org/xorg/lib/libxft/-/merge_requests/12

siduck avatar Oct 09 '23 04:10 siduck