JopStro / bspswallow

dwm-like swallowing for bspwm
MIT License
126 stars 12 forks source link

get_class() only grab last class name from xprop #14

Closed wisaTong closed 3 years ago

wisaTong commented 3 years ago

Hello, This is my xprop output

WM_CLASS(STRING) = "urxvt", "URxvt"
WM_COMMAND(STRING) = { "urxvt", "-cd", "/home/wendel" }

your script only grabs URxvt so I can't put urxvt in .config/bspwm/terminals same goes with WM_COMMAND it only grabs /home/wendel

May I suggest grabbing all the class names and only the first in WM_COMMAND?