@@ -0,0 +1,1135 @@
+#!/usr/bin/env python3%0A%0Aimport os%0Aimport subprocess%0Afrom widgets.widget import Widget%0Afrom widgets.config import colors, icons%0A%0Aclass Bright(Widget):%0A    '''%0A    '''%0A%0A    def __init__(self, value=''):%0A        '''%0A        Params:%0A            bg: background color%0A            fg: foreground color%0A            icon: icon%0A        '''%0A        Widget.__init__(self)%0A        self.value = value%0A%0A        self.bg = None%0A        self.fg = colors%5B'c_white'%5D%0A        self.icon = icons%5B'bright'%5D%0A%0A        self.colors_rules = dict()%0A        self.action = %5B%5D%0A        self.action_buttons = %5B%5D%0A%0A    def update(self):%0A        '''%0A%0A        TO IMPLEMENT.%0A%0A        '''%0A        with open('/sys/class/backlight/intel_backlight/brightness') as br:%0A            brightness = br.readlines()%5B0%5D.strip()%0A        with open('/sys/class/backlight/intel_backlight/max_brightness') as mx:%0A            maximum = mx.readlines()%5B0%5D.strip()%0A%0A        br = int(int(brightness)*100/int(maximum))%0A        self.value = br%0A%0A%0Aif __name__ == '__main__':%0A    # a = Widget('a')%0A    # a.add_action(3, 'date')%0A    # a.add_action(1, 'time')%0A%0A    a = Widget()%0A%0A    print(a.get_output())%0A

Add brightness widget.