demontager
April 9th, 2017, 11:40 AM
I'm searching a way to match window name title in order to close it automatically upon popping-up. This should work in devilspie, but i didn't find a way to match window by regex.
For instance i have the window titles with such names
"Message from firstid@aol.im"
"Message from secondid@aol.im"
"Message from thirdid@aol.im"
And i need close them all by matching string "Message from"
I tried such construction generated by gdevilspie
; generated_rule pidgin_close
( if
( begin
( is ( window_name ) "Message from" )
)
( begin
( close )
( println "match" )
)
)
It obviously does not work, tried to put Message from* to be like regex, but also not.
Also tried devilpie2 with such regex suggested here https://github.com/gusnan/devilspie2/issues/8
if (string.find(get_window_name(),"Message from")~=nil) then
debug_print("found");
close();
end
For instance i have the window titles with such names
"Message from firstid@aol.im"
"Message from secondid@aol.im"
"Message from thirdid@aol.im"
And i need close them all by matching string "Message from"
I tried such construction generated by gdevilspie
; generated_rule pidgin_close
( if
( begin
( is ( window_name ) "Message from" )
)
( begin
( close )
( println "match" )
)
)
It obviously does not work, tried to put Message from* to be like regex, but also not.
Also tried devilpie2 with such regex suggested here https://github.com/gusnan/devilspie2/issues/8
if (string.find(get_window_name(),"Message from")~=nil) then
debug_print("found");
close();
end