4
from CairoDock import CairoDock
8
os.system ("xdotool key "+k)
11
def set_param(conf_file, group, key, value):
12
os.system ("sed -i '/^\[%s\]/,/^\[.*/ s/%s *=.*/%s = %s/g' %s" % (group, key, key, value, conf_file))
16
def __init__(self, _name, dock):
20
self.d = self.dock.iface
25
print('['+self.name+'] \033[32msuccess\033[m')
27
print('['+self.name+'] \033[31merror\033[m')
32
def print_error(self,err):
33
print('['+self.name+'] '+err)
36
def get_conf_file(self):
37
if self.conf_file == None:
38
props = self.d.GetProperties('type=Manager&name=Docks') # all managers use the same config-file, so any manager does the trick
39
self.conf_file = props[0]['config-file']