FT-Labs / phyOS-iso

phyOS iso image, click for details
303 stars 3 forks source link

Transparent emacs #29

Open JustGold3n opened 1 year ago

JustGold3n commented 1 year ago

Hello, After installing emacs it turned nearly transparent, even when it was master and in focus

pic-selected-230411-1011-01

FT-Labs commented 1 year ago

Could you

'''xprop''' then click emacs And then send the output to here ?

JustGold3n commented 1 year ago

This is the output of xprop en emacs `_MOTIF_DRAG_RECEIVER_INFO(_MOTIF_DRAG_RECEIVER_INFO) = 0x6c, 0x0, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 WM_STATE(WM_STATE): window state: Normal icon window: 0x0 _NET_WM_DESKTOP(CARDINAL) = 1, 0 WM_HINTS(WM_HINTS): Client accepts input or input focus: True Initial state is Normal State. bitmap id # to use for icon: 0xe00158 bitmap id # of mask for icon: 0xe0015e window id # of group leader: 0xe00001 _GTK_THEME_VARIANT(UTF8_STRING) = _NET_WM_WINDOW_OPACITY(CARDINAL) = 858993459 _NET_WM_ICON(CARDINAL) = Icon (48 x 48): (not shown)

XdndAware(ATOM) = BITMAP _NET_WM_OPAQUE_REGION(CARDINAL) = 0, 0, 846, 992 _NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_NORMAL _NET_WM_SYNC_REQUEST_COUNTER(CARDINAL) = 14680384, 14680385 _NET_WM_USER_TIME(CARDINAL) = 187182 _NET_WM_USER_TIME_WINDOW(WINDOW): window id # 0xe0013f WM_CLIENT_LEADER(WINDOW): window id # 0xe00001 _NET_WM_PID(CARDINAL) = 1607 WM_LOCALE_NAME(STRING) = "en_US.UTF-8" WM_CLIENT_MACHINE(STRING) = "PureCargo" WM_NORMAL_HINTS(WM_SIZE_HINTS): program specified minimum size: 24 by 17 program specified resize increment: 1 by 1 program specified base size: 24 by 17 window gravity: NorthWest WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW, WM_TAKE_FOCUS, _NET_WM_PING, _NET_WM_SYNC_REQUEST WM_CLASS(STRING) = "emacs", "Emacs" WM_ICON_NAME(COMPOUND_TEXT) = "doom \033$(G!9\033(B Doom Emacs" _NET_WM_ICON_NAME(UTF8_STRING) = "doom – Doom Emacs" WM_NAME(COMPOUND_TEXT) = "doom – Doom Emacs" _NET_WM_NAME(UTF8_STRING) = "doom – Doom Emacs"`

FT-Labs commented 1 year ago

Could you please change ~/.config/picom/picom.conf, and set the transparency options like below?

opacity-rule = [ "100:class_g = 'St' && focused", "50:class_g = 'St' && !focused", "100:class_g = 'emacs' && focused", "100:fullscreen", ];

JustGold3n commented 1 year ago

I changed it it remains the same, there is the output of xprop `_MOTIF_DRAG_RECEIVER_INFO(_MOTIF_DRAG_RECEIVER_INFO) = 0x6c, 0x0, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 WM_STATE(WM_STATE): window state: Normal icon window: 0x0 _NET_WM_DESKTOP(CARDINAL) = 2, 0 WM_HINTS(WM_HINTS): Client accepts input or input focus: True Initial state is Normal State. bitmap id # to use for icon: 0x1e00158 bitmap id # of mask for icon: 0x1e0015e window id # of group leader: 0x1e00001 _GTK_THEME_VARIANT(UTF8_STRING) = _NET_WM_WINDOW_OPACITY(CARDINAL) = 858993459 _NET_WM_ICON(CARDINAL) = Icon (48 x 48): (not shown)

XdndAware(ATOM) = BITMAP _NET_WM_OPAQUE_REGION(CARDINAL) = 0, 0, 846, 992 _NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_NORMAL _NET_WM_SYNC_REQUEST_COUNTER(CARDINAL) = 31457600, 31457601 _NET_WM_USER_TIME(CARDINAL) = 187451 _NET_WM_USER_TIME_WINDOW(WINDOW): window id # 0x1e0013f WM_CLIENT_LEADER(WINDOW): window id # 0x1e00001 _NET_WM_PID(CARDINAL) = 3128 WM_LOCALE_NAME(STRING) = "en_US.UTF-8" WM_CLIENT_MACHINE(STRING) = "PureCargo" WM_NORMAL_HINTS(WM_SIZE_HINTS): program specified minimum size: 24 by 17 program specified resize increment: 1 by 1 program specified base size: 24 by 17 window gravity: NorthWest WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW, WM_TAKE_FOCUS, _NET_WM_PING, _NET_WM_SYNC_REQUEST WM_CLASS(STRING) = "emacs", "Emacs" WM_ICON_NAME(COMPOUND_TEXT) = "doom \033$(G!9\033(B Doom Emacs" _NET_WM_ICON_NAME(UTF8_STRING) = "doom – Doom Emacs" WM_NAME(COMPOUND_TEXT) = "doom – Doom Emacs" _NET_WM_NAME(UTF8_STRING) = "doom – Doom Emacs"WM_ICON_NAME(COMPOUND_TEXT) = "doom \033$(G!9\033(B Doom Emacs" _NET_WM_ICON_NAME(UTF8_STRING) = "doom – Doom Emacs" WM_NAME(COMPOUND_TEXT) = "doom – Doom Emacs" _NET_WM_NAME(UTF8_STRING) = "doom – Doom Emacs"`

FT-Labs commented 1 year ago

How about this one?

opacity-rule = [ "100:class_g = 'St' && focused", "50:class_g = 'St' && !focused", "100:class_g = 'Emacs' && focused", "100:fullscreen", ];

JustGold3n commented 1 year ago

Still the same, however i found a way if launched from terminal with flags -nw it works, but im not shure why