picom icon indicating copy to clipboard operation
picom copied to clipboard

games to be in opacity-rules in just one rule?

Open Shahab-hashemi opened this issue 9 months ago • 1 comments

Hello dear developers, I recently faced something, and it is steam games in my desktop. In my picom setting in picom config file, i set all windows to be transparented execpt of those that are in opacity-rules , and here is where i want to ask my question, how to set steam and all its games to be in opacity-rules in just one rule? I think it will became a problem in future for me if i add a game in my steam library, i have to add it in opacity-rules on config file. `opacity-rule = [ #for Firefox
"98:class_g = 'firefox' && focused", "70:class_g = 'firefox' && !focused", #for Steam "100:class_g = 'steam' && focused", "95:class_g = 'steam' && !focused", #for vlc "100:class_g = 'vlc' && focused", "99:class_g = 'vlc' && !focused", #for FreeTube "100:class_g = 'FreeTube' && focused", "80:class_g = 'Freetube' && !focused", #for Resident Evil 4 "100:class_g = 'steam_app_254700' && focused ", "98:class_g = 'steam_app_254700' && !focused", #for Dont Starve "100:class_g = 'dontstarve_steam' && focused ", "98:class_g = 'dontstarve_steam' && !focused",

];` Here as you can see i added Dont starve & Resident Evil , i dont want to add each one of the games that i want to test or play. could you give me some advise?

Shahab-hashemi avatar Mar 09 '25 22:03 Shahab-hashemi

Try filtering by common parameters, like window_type.

If the games have a shared pattern in WM_CLASS (for example, steam_app_something), use class_g ~= 'steam_app_.*'.

You can combine multiple conditions for better results.

status4O4 avatar Apr 05 '25 00:04 status4O4