I'm new to this so bear with me but I'm trying to do a rule that splits out my time on Firefox tabs using arbtt v0.7 in categorize.cfg:
-- Firefox
current window ($program == "Navigator") ==>
if $title =~ /^(.*) - (.*@.*) - .* Mail - Mozilla Firefox$/ then tag Email:$2-$1 else
if $title =~ /^(.*) - Calendar - Mozilla Firefox$/ then tag Calendar:$1 else
if $title =~ /^(.*) - Mozilla Firefox$/ then tag Firefox:$1 else
tag Firefox,
But I get:
Parser error: "/home/rich/.arbtt/categorize.cfg" (line 29, column 3): unexpected "i" expecting "else"
I have also tried another approach with more success:
current window ( $program == "Navigator" && $title =~ /^(.*) - (.*@.*) - .* Mail - Mozilla Firefox$/ )
==> tag Email:$2-$1,
current window ( $program == "Navigator" && $title =~ /^(.*) - Calendar - Mozilla Firefox$/ )
==> tag Calendar:$1,
current window ( $program == "Navigator" && $title =~ /^((?!.*\b(Calendar|Mail)\b)) - Mozilla Firefox$/ )
==> tag Firefox:$1,
But the last clause doesn't return any results; the first two clauses do.
Cheers, Rich