Skip to content

Commit

Permalink
Added dual screen support
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniDiazTech committed Jul 14, 2021
1 parent d484861 commit 761eb86
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 31 deletions.
3 changes: 1 addition & 2 deletions groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
from icons import group_icons

class CreateGroups:
def __init__(self):
self.group_names = group_icons
group_names = group_icons

def init_groups(self):
"""
Expand Down
4 changes: 3 additions & 1 deletion icons.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@
"V  ",
"M  ",
"C  ",
"E  "]
"E  ",
"N  ",
]

41 changes: 13 additions & 28 deletions widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,33 +106,6 @@ def init_widgets_list(self):
background=self.colors[0],
padding=5
),
# widget.TextBox(
# text = '',
# background = self.colors[0],
# foreground = self.colors[4],
# padding = 0,
# fontsize = 37
# ),
# widget.TextBox(
# text = " ⟳",
# padding = 2,
# foreground = self.colors[2],
# background = self.colors[4],
# fontsize = 14
# ),
# # widget.CheckUpdates(
# # update_interval = 1000,
# # foreground = self.colors[2],
# # mouse_callbacks = {'Button1': lambda qtile: qtile.cmd_spawn(self.termite + ' -e sudo pacman -Syu')},
# # background = self.colors[4]
# # ),
# widget.TextBox(
# text = "Updates",
# padding = 5,
# mouse_callbacks = {'Button1': lambda qtile: qtile.cmd_spawn(self.termite + ' -e sudo pacman -Syu')},
# foreground = self.colors[2],
# background = self.colors[4]
# ),
widget.TextBox(
text='',
background=self.colors[0],
Expand Down Expand Up @@ -225,8 +198,20 @@ def init_widgets_screen(self):
widgets_screen = self.init_widgets_list()
return widgets_screen

def init_widgets_screen2(self):
'''
Function that returns the widgets in a list.
It can be modified so it is useful if you have a multimonitor system
'''
widgets_screen2 = self.init_widgets_screen()
del widgets_screen2[7]
return widgets_screen2

def init_screen(self):
'''
Init the widgets in the screen
'''
return [Screen(top=bar.Bar(widgets=self.init_widgets_screen(), opacity=1.0, size=20))]
return [Screen(top=bar.Bar(widgets=self.init_widgets_screen(), opacity=1.0, size=20)),
Screen(top=bar.Bar(
widgets=self.init_widgets_screen2(), opacity=1.0, size=20))
]

0 comments on commit 761eb86

Please sign in to comment.