Skip to content

Commit

Permalink
back to i3
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Koksharov committed Nov 20, 2017
1 parent 1aa77ad commit 4667211
Show file tree
Hide file tree
Showing 8 changed files with 5,758 additions and 24,902 deletions.
2 changes: 1 addition & 1 deletion Logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

class Logger(object):

log = open("/home/lex/Applications/i3statusbar/status1.log", 'w')
log = open("/home/lex/devel/i3statusbar/status1.log", 'w')
# worker = Worker()

@staticmethod
Expand Down
6 changes: 4 additions & 2 deletions StatusLineBlock.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,13 @@ def markup(self, value):

@property
def border(self):
return self.__getAttr("border")
#return self.__getAttr("border")
return self.__getAttr("color")

@border.setter
def border(self, value):
self.__setAttr("border", value)
#self.__setAttr("border", value)
self.__setAttr("color", value)

@property
def border_top(self):
Expand Down
2 changes: 2 additions & 0 deletions StatusLineCPU.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ def __init__(self):

self.cpuUsage = StatusLineBlock("  -----% ")

self.cpuUsage.separator = False

self.scheduleUpdate(0)

@property
Expand Down
1 change: 1 addition & 0 deletions StatusLineDatetime.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ def __init__(self):
self.updateInterval = 15
self.label = StatusLineBlock("")
self.label.border = "#CAD1DB"
self.label.separator = False
self.scheduleUpdate(0)

@property
Expand Down
1 change: 1 addition & 0 deletions StatusLineMemory.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ def __init__(self):
self.memUsage.min_width = "MEM 9.99G/99.9G"
self.memUsage.align = "center"
self.memUsage.border = "#CAD1DB"
self.memUsage.separator = False

self.scheduleUpdate(0)

Expand Down
6 changes: 5 additions & 1 deletion StatusLineSlider.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def __init__(self, name, label):
#slider = StatusLineBlock("<span size='small'>•</span>")
#slider.markup = "pango"
slider.name = name
slider.color = None
slider.instance = int(i * 100 / self.lenght)
slider.separator = False
slider.separator_block_width = 0
Expand All @@ -47,8 +48,11 @@ def __init__(self, name, label):
#self.inc.markup = "pango"
self.inc.name = name
self.inc.instance = "inc"
self.inc.separator = False
self.inc.separator_block_width = self.separator_width

self.value = 0

@property
def color(self):
return self.label.color
Expand Down Expand Up @@ -92,7 +96,7 @@ def value(self, value):
i = 0
if self.value > 0:
while i <= newIndex:
self.slider[i].color = "red"
self.slider[i].color = "#FF0000"
i += 1

while i <= self.lenght:
Expand Down
28 changes: 27 additions & 1 deletion status1.log
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,30 @@ Udev for: BAT0 self:BAT1
Udev for: BAT1 self:BAT1
do change for: BAT1 self:BAT1
Pulse client init
Pulse client init
Udev for: BAT1 self:BAT1
do change for: BAT1 self:BAT1
Udev for: BAT1 self:BAT0
Udev for: BAT0 self:BAT1
Udev for: BAT0 self:BAT0
do change for: BAT0 self:BAT0
Slider capture expanded
Udev for: BAT0 self:BAT1
Udev for: BAT0 self:BAT0
do change for: BAT0 self:BAT0
Slider capture collapsed
Slider capture expanded
Slider capture collapsed
Slider volume expanded
Slider volume collapsed
Slider capture expanded
Slider capture collapsed
Slider volume expanded
Slider volume collapsed
Slider backlight expanded
Slider backlight collapsed
Slider volume expanded
Slider volume collapsed
Slider backlight expanded
Slider backlight collapsed
Slider capture expanded
Slider capture collapsed
30,614 changes: 5,717 additions & 24,897 deletions statusbat.log

Large diffs are not rendered by default.

0 comments on commit 4667211

Please sign in to comment.