Skip to content

Instantly share code, notes, and snippets.

View duncanturk's full-sized avatar

Christopher Rossbach duncanturk

  • Simba n³ GmbH
  • Germany
View GitHub Profile
@major
major / i3-get-window-criteria.sh
Created February 8, 2019 14:39
Get i3 window criteria
#!/bin/sh
# Source: https://faq.i3wm.org/question/2172/how-do-i-find-the-criteria-for-use-with-i3-config-commands-like-for_window-eg-to-force-splashscreens-and-dialogs-to-show-in-floating-mode.1.html
# i3-get-window-criteria - Get criteria for use with i3 config commands
# To use, run this script, then click on a window.
# Output is in the format: [<name>=<value> <name>=<value> ...]
# Known problem: when WM_NAME is used as fallback for the 'title="<string>"' criterion,
# quotes in "<string>" are not escaped properly. This is a problem with the output of `xprop`,
# reported upstream: https://bugs.freedesktop.org/show_bug.cgi?id=66807