You are not logged in.

#1 2024-03-22 03:55:21

Allen_Wu233
Member
Registered: 2022-10-06
Posts: 7

Disable animations for specific window class with picom-ftlabs-git

OS: Archlinux
WM: i3
compositor: picom-ftlabs-git

For example, I want to disable animations for Fcitx5
I have added

wintypes:
{
    popup_menu = { animation = "none"; }
}

to ~/.config/picom/picom.conf, but it dosen't work.

Unluckly, it seems that the feature isn't available: https://github.com/FT-Labs/picom/issues/19
Is there any other solution?

Offline

#2 2024-03-22 08:15:57

seth
Member
Registered: 2012-09-03
Posts: 51,696

Re: Disable animations for specific window class with picom-ftlabs-git

This fork seems to have config options, https://github.com/yshui/picom/commit/0 … 10821fb316 - but unvetted

Offline

#3 2024-03-22 08:21:24

Allen_Wu233
Member
Registered: 2022-10-06
Posts: 7

Re: Disable animations for specific window class with picom-ftlabs-git

Thanks. My config is based on it, but I have no idea to make it work as I expect  sad

Last edited by Allen_Wu233 (2024-03-22 09:40:30)

Offline

#4 2024-03-22 08:28:11

seth
Member
Registered: 2012-09-03
Posts: 51,696

Re: Disable animations for specific window class with picom-ftlabs-git

But you're not using that fork, are you?
You've indicate to use the ftlabs fork.

Offline

#5 2024-03-22 09:44:54

Allen_Wu233
Member
Registered: 2022-10-06
Posts: 7

Re: Disable animations for specific window class with picom-ftlabs-git

seth wrote:

But you're not using that fork, are you?
You've indicate to use the ftlabs fork.

Oh sorry, I read it wrong

Offline

#6 2024-03-22 09:53:02

Allen_Wu233
Member
Registered: 2022-10-06
Posts: 7

Re: Disable animations for specific window class with picom-ftlabs-git

Here is my configuration
~/.config/picom/picom.conf https://fars.ee/auQ6

Offline

#7 2024-03-22 10:05:32

seth
Member
Registered: 2012-09-03
Posts: 51,696

Re: Disable animations for specific window class with picom-ftlabs-git

Assuming the aniamtions in ftlabs are cofigurable for at least the wintypes, check

xwininfo
xprop

on the relevant window to see whether "popup_menu" is the correct type at all.

Edit: and a post in the linked thread suggests to NOT quote "none"

Last edited by seth (2024-03-22 10:07:14)

Offline

#8 2024-03-22 10:10:18

Allen_Wu233
Member
Registered: 2022-10-06
Posts: 7

Re: Disable animations for specific window class with picom-ftlabs-git

seth wrote:

Assuming the aniamtions in ftlabs are cofigurable for at least the wintypes, check

xwininfo
xprop

on the relevant window to see whether "popup_menu" is the correct type at all.

Edit: and a post in the linked thread suggests to NOT quote "none"

xwininfo

xwininfo: Window id: 0x1200003 "Fcitx5 Input Window"

  Absolute upper-left X:  1327
  Absolute upper-left Y:  156
  Relative upper-left X:  1327
  Relative upper-left Y:  156
  Width: 960
  Height: 102
  Depth: 32
  Visual: 0x299
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x1200002 (not installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: WhenMapped
  Save Under State: yes
  Map State: IsViewable
  Override Redirect State: yes
  Corners:  +1327+156  -273+156  -273-1342  +1327-1342
  -geometry 960x102+1327+156

xprop

WM_CLASS(STRING) = "fcitx", "fcitx"
WM_NAME(STRING) = "Fcitx5 Input Window"
_NET_WM_PID(CARDINAL) = 11150
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_POPUP_MENU
_XEMBED_INFO(_XEMBED_INFO) = 0x0, 0x1

Last edited by Allen_Wu233 (2024-03-22 10:12:01)

Offline

#9 2024-03-22 10:17:03

Allen_Wu233
Member
Registered: 2022-10-06
Posts: 7

Re: Disable animations for specific window class with picom-ftlabs-git

It raises error after unquoting "none"

    popup_menu = { animation = none; opacity = 0.8; }
[ 03/22/24 18:15:32.810 parse_config_libconfig FATAL ERROR ] Error when reading configuration file "/home/Allen/.config/picom/picom.conf", line 439: syntax error
[ 03/22/24 18:15:32.810 main FATAL ERROR ] Failed to create new session.

Last edited by Allen_Wu233 (2024-03-22 10:17:22)

Offline

#10 2024-03-22 13:36:08

seth
Member
Registered: 2012-09-03
Posts: 51,696

Re: Disable animations for specific window class with picom-ftlabs-git

Did you try XoDefender's fork?
The config you posted btw. doesn't have any animation settings in the wintypes array?

Offline

#11 2024-03-22 13:38:47

Allen_Wu233
Member
Registered: 2022-10-06
Posts: 7

Re: Disable animations for specific window class with picom-ftlabs-git

seth wrote:

Did you try XoDefender's fork?
The config you posted btw. doesn't have any animation settings in the wintypes array?

OK, I'll have a try.
Yes, I have deleted it.

Offline

Board footer

Powered by FluxBB