Skip to content

useful condition rules

Richard Grenville edited this page Sep 9, 2016 · 4 revisions

Useful condition rules

Some random useful condition rules for use with --focus-exclude, --shadow-exclude, --invert-color-include, --fade-exclude, --opacity-rule, etc. …​ For those who found using xprop a difficulty.

  • Match all full-screen windows:

    fullscreen
  • Match conky window: (The class name may change if you set own_window_class to a different value in .conkyrc.)

    class_g = 'Conky'
  • Match Marco’s Alt-Tab highlight window (so that it doesn’t cast an ugly shadow): (Tip from @ikem-krueger.)

    --shadow-exclude "class_g = 'Marco'"
  • Hide shadow on the short-lived maximized frameless window created by VirtualBox 5 in UIDesktopWidgetWatchdog::sltRecalculateHostScreenAvailableGeometry(), which may cause a short flickering effect when VirtualBox starts (#317):

    --shadow-exclude 'class_g = "VirtualBox" && name = "VirtualBox" && bounding_shaped && (_NET_WM_STATE@[0]:a = "_NET_WM_STATE_MAXIMIZED_VERT" && _NET_WM_STATE@[1]:a = "_NET_WM_STATE_MAXIMIZED_HORZ" || _NET_WM_STATE@[0]:a = "_NET_WM_STATE_MAXIMIZED_HORZ" && _NET_WM_STATE@[1]:a = "_NET_WM_STATE_MAXIMIZED_VERT") && _NET_WM_WINDOW_TYPE@[0]:a = "_KDE_NET_WM_WINDOW_TYPE_OVERRIDE"'
Clone this wiki locally