MiF36rus
@MiF36rus
Алкоголик

Как определить wintype?

Доброго времени суток!

Стоит 4.11.3-1-ARCH + i3wm+compton

Сейчас все окна сделал прозрачные, но хочу чтобы некоторые типы окон не были прозрачными, например браузер или текстовый редактор, в конфиге compton'а если указать в wintypes нужные типы окна это можно сделать, но как определить какой тип у окна?
гуглил, нашел xwininfo, но в выводе не нашел wintype.

compton.conf
##########
# Shadow #
##########

# Enabled client-side shadows on windows.
shadow = true;

# Avoid drawing shadows on dock/panel windows.
no-dock-shadow = true; 
  
# Don't draw shadows on DND windows. 
no-dnd-shadow = true; 

# Zero the part of the shadow's mask behind the  
clear-shadow = true;   

################################################# 
# window. Fix some weirdness with ARGB windows. #
#################################################

# The blur radius for shadows. (default 12)
shadow-radius = 7;    

# The left offset for shadows. (default -15)
shadow-offset-x = -12;   

# The top offset for shadows. (default -15)
shadow-offset-y = -12;   

# The translucency for shadows. (default .75)
shadow-opacity = 0.6;  

# Red color value of shadow. (0.0 - 1.0, defaults to 0) 
shadow-red = 1.0;   

# Green color value of shadow. (0.0 - 1.0, defaults to 0)
shadow-green = 1.0;   

# Blue color value of shadow. (0.0 - 1.0, defaults to 0)
shadow-blue = 1.0;    

shadow-exclude = [ "i:a:sakura", "_GTK_FRAME_EXTENTS@:c" , "class_g = 'conky'"];

# Avoid drawing shadow on all shaped windows
shadow-ignore-shaped = true;  
        # (see also: --detect-rounded-corners)

###########
# Opacity #
###########

# The opacity for menus. (default 1.0)
menu-opacity = 0.8;  

# Default opacity of inactive windows. (0.0 - 1.0)
inactive-opacity = 0.6; 

# Default opacity for active windows. (0.0 - 1.0)    
active-opacity = 0.9;

# Opacity of window titlebars and borders. (0.1 - 1.0)     
frame-opacity = 0.9; 

# Let inactive opacity set by 'inactive-opacity' overrides     
# inactive-opacity-override = true; 
	# value of _NET_WM_OPACITY. Bad choice.

# XRender backend: Step size for alpha pictures. Increasing
# alpha-step = 0.06;      
	# it may result in less X resource usage,
	# Yet fading may look bad.

# Dim inactive windows. (0.0 - 1.0)
inactive-dim = 0.1;     

# Do not let dimness adjust based on window opacity.
# inactive-dim-fixed = true;  

# Blur background of transparent windows.
blur-background = true;   
          # Bad performance with X Render backend.
          # GLX backend is preferred.

# Blur background of opaque windows with transparent
blur-background-frame = true;   
          # frames as well.

# Do not let blur radius adjust based on window opacity.
blur-background-fixed = false;    
blur-background-exclude = [ "window_type = 'dock'", "window_type = 'desktop'" ];
          # Exclude conditions for background blur.

##########
# Fading #
##########

# Fade windows during opacity changes.
fading = true;   

# The time between steps in a fade in milliseconds. (default 10).
# fade-delta = 30; 

# Opacity change between steps while fading in. (default 0.028).
fade-in-step = 0.03;    

# Opacity change between steps while fading out. (default 0.03).
fade-out-step = 0.03; 

# Avoid fade windows in/out when opening/closing.  
# no-fading-openclose = true; 

# Exclude conditions for fading.
fade-exclude = [ "g:e:SMPlayer" ];   

#########
# Other #
#########

# Backend to use: "xrender" or "glx". GLX backend is typically
# backend = "xrender"   

# Backend to use: "xrender" or "glx". GLX backend is typically
backend = "glx"   
        # much faster but depends on a sane driver.

# Try to detect WM windows and mark them as active.
mark-wmwin-focused = true;  

# Mark all non-WM but override-redirect windows active (e.g. menus).
mark-ovredir-focused = true;  

# Use EWMH _NET_WM_ACTIVE_WINDOW to determine which window is focused
use-ewmh-active-win = false;  
        # instead of using FocusIn/Out events. Usually more reliable but
        # depends on a EWMH-compliant WM.

# Detect rounded corners and treat them as rectangular when --shadow-ignore- shaped is on.
detect-rounded-corners = true;  

# Detect _NET_WM_OPACITY on client windows, useful for window
detect-client-opacity = true; 
        # managers not passing _NET_WM_OPACITY of client windows to frame
        # windows.

# For --sw-opti: Specify refresh rate of the screen. 0 for auto.
refresh-rate = 0;   

# "none", "drm", "opengl", "opengl-oml", "opengl-swc", "opengl-mswc" 
vsync = "opengl-swc";   
        # See man page for more details.

# Enable DBE painting mode. Rarely needed.
dbe = false;      

# Painting on X Composite overlay window. Recommended.
paint-on-overlay = false; 

# Limit compton to repaint at most once every 1 / refresh_rate.
sw-opti = false;    
        # Incompatible with certain VSync methods.

# Unredirect all windows if a full-screen opaque window is
unredir-if-possible = true;  
        # detected, to maximize performance for full-screen windows.

# A list of conditions of windows that should always be considered
focus-exclude = [ ];    
        # focused.

# Use WM_TRANSIENT_FOR to group windows, and consider windows in
detect-transient = true;  
        # the same group focused at the same time.

# Use WM_CLIENT_LEADER to group windows.
detect-client-leader = true;  

# Conditions for windows to be painted with inverted color.
invert-color-include = [ ]; 

###############
# GLX backend #    
###############

# GLX backend fine-tune options. See man page for more info.

# Recommended.
glx-no-stencil = true;  

# Useful with --glx-swap-method,
glx-copy-from-front = true;  

# Recommended if it works. Breaks VSync.
# glx-use-copysubbuffermesa = true; 

# Recommended if it works.  
glx-no-rebind-pixmap = true;  

# See man page.
glx-swap-method = "undefined";  

########################
# Window type settings #
########################

wintypes:
{
  tooltip = { fade = true; shadow = false; opacity = 0.75; focus = true; };
  # fade: Fade the particular type of windows.
  # shadow: Give those windows shadow
  # opacity: Default opacity for the type of windows.
  # focus: Whether to always consider windows of this type focused.
};
  • Вопрос задан
  • 273 просмотра
Решения вопроса 1
MiF36rus
@MiF36rus Автор вопроса
Алкоголик
ответ найден, - xprop , иделать прозрачность по классам а не по wintype.
Ответ написан
Комментировать
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы