Parse 'Application:' config key, which specifies icon, window class,
Parse 'Application:' config key, which specifies icon, window class,
title and run command at once.
diff --git a/qwerty.py b/qwerty.py
index 504dcae..5668dde 100755
--- a/qwerty.py
+++ b/qwerty.py
@@ -370,6 +370,14 @@ def parse_config():
raise SyntaxError, "Unexpected 'Description' key in config file"
continue
+ v = parse_line('Application', line)
+ if v:
+ K.icon = v + '.png'
+ K.cls = v
+ K.command = v
+ K.title = v.capitalize()
+ continue
+
v = parse_line('Icon',line)
if v:
if context == SECTION: