示例#1
0
def init_widgets_list_2():
    prompt = "{0}@{1}: ".format(os.environ["USER"], socket.gethostname())
    widgets_list = [
        GroupBox(font="FontAwesome",
                 fontsize=18,
                 margin_y=-1,
                 margin_x=0,
                 padding_y=6,
                 padding_x=5,
                 borderwidth=0,
                 disable_drag=True,
                 active=colors[5],
                 inactive=colors[9],
                 rounded=True,
                 highlight_method="text",
                 this_current_screen_border=colors[3],
                 other_current_screen_border=colors[8],
                 foreground=colors[2],
                 background=colors[1]
                 ),
        Sep(
            linewidth=1,
            padding=10,
            foreground=colors[2],
            background=colors[1]
        ),
        CurrentLayout(
            font="Noto Sans Bold",
            foreground=colors[5],
            background=colors[1]
        ),
        Sep(
            linewidth=1,
            padding=10,
            foreground=colors[2],
            background=colors[1]
        ),
        # WindowName(font="Noto Sans",
        #           fontsize=12,
        #           foreground=colors[5],
        #           background=colors[1],
        #           ),
        Spacer(opacity=0),
        Sep(
            linewidth=1,
            padding=10,
            foreground=colors[2],
            background=colors[1]
        ),
        # TaskList(),
        Net(
            font="FontAwesome",
            fontsize=12,
            interface="wlp26s0",
            foreground=colors[2],
            background=colors[1],
            padding=0,
            format="{down} ↓↑ {up}"
        ),
    ]
    return widgets_list
示例#2
0
	def short_black(self):
		return Sep(
			linewidth = 0,
			padding = 1,
			background = self.color.black
		)
示例#3
0
def init_widgets_list():
    prompt = "{0}@{1}: ".format(os.environ["USER"], socket.gethostname())
    widgets_list = [
        GroupBox(font="FontAwesome",
                 fontsize=16,
                 margin_y=-1,
                 margin_x=0,
                 padding_y=6,
                 padding_x=5,
                 borderwidth=0,
                 disable_drag=True,
                 active=colors[5],
                 inactive=colors[9],
                 rounded=False,
                 highlight_method="text",
                 this_current_screen_border=colors[8],
                 foreground=colors[2],
                 background=colors[1]
                 ),
        Sep(
            linewidth=1,
            padding=10,
            foreground=colors[2],
            background=colors[1]
        ),
        CurrentLayout(
            font="MesloLGS NF Bold",
            foreground=colors[5],
            background=colors[1]
        ),
        Sep(
            linewidth=1,
            padding=10,
            foreground=colors[2],
            background=colors[1]
        ),
        WindowName(font="Noto Sans",
                   fontsize=12,
                   foreground=colors[5],
                   background=colors[1],
                   ),
        Prompt(name="my_prompt"),
        Sep(
            linewidth=1,
            padding=10,
            foreground=colors[2],
            background=colors[1]
        ),
        HeadsetBattery(font="MesloLGS NF",
                       charging_charts=[':'],
                       battery_level_format=lambda x: f':{x}%',
                       # battery_level_format=status_getter,
                       disconnected_chart=''),
        Sep(
            linewidth=1,
            padding=10,
            foreground=colors[2],
            background=colors[1]
        ),
        Radio(playlist={"R Nacional": "http://198.15.107.53:8090/;"},
              playing_spinner=[random_bar() + random_bar() + random_bar() + random_bar() for e in range(10)],
              font="MesloLGS NF",
              mute_string="婢",
              stopped_spinner=[""]),
        Sep(
            linewidth=1,
            padding=10,
            foreground=colors[2],
            background=colors[1]
        ),
        TaskLog(
            line_saved="\nFecha: {date}     min: {time}     Tarea: {task}",
            prompt_name="my_prompt",
            file_path="~/tiempos.log",
            format="min: {time}",
            get_time=lambda start_date: round((datetime.now() - start_date).seconds / 60, 1)
        ),
        Sep(
            linewidth=1,
            padding=10,
            foreground=colors[2],
            background=colors[1]
        ),
        Net(
            font="MesloLGS NF Blond",
            fontsize=12,
            # interface=["enp24s0", "wlp26s0"],
            foreground=colors[2],
            background=colors[1],
            padding=0,
            format="{down}  {up}"
        ),
        Sep(
            linewidth=1,
            padding=10,
            foreground=colors[2],
            background=colors[1]
        ),
        # NetGraph(
        #          font="Noto Sans",
        #          fontsize=12,
        #          bandwidth="down",
        #          interface="auto",
        #          fill_color = colors[8],
        #          foreground=colors[2],
        #          background=colors[1],
        #          graph_color = colors[8],
        #          border_color = colors[2],
        #          padding = 0,
        #          border_width = 1,
        #          line_width = 1,
        #          ),
        # Sep(
        #          linewidth = 1,
        #          padding = 10,
        #          foreground = colors[2],
        #          background = colors[1]
        #          ),
        TextBox(
            font="FontAwesome",
            text="  ",
            foreground=colors[6],
            background=colors[1],
            padding=0,
            fontsize=16
        ),
        CPUGraph(
            border_color=colors[2],
            fill_color=colors[8],
            graph_color=colors[8],
            background=colors[1],
            border_width=1,
            line_width=1,
            core="all",
            type="box"
        ),
        # do not activate in Virtualbox - will break qtile
        # ThermalSensor(
        #                        foreground = colors[5],
        #                        foreground_alert = colors[6],
        #                        background = colors[1],
        #                        metric = True,
        #                        padding = 3,
        #                        threshold = 80
        #                        ),
        Sep(
            linewidth=1,
            padding=10,
            foreground=colors[2],
            background=colors[1]
        ),
        TextBox(
            font="FontAwesome",
            text="  ",
            foreground=colors[4],
            background=colors[1],
            padding=0,
            fontsize=16
        ),
        Memory(
            font="FontAwesome",
            foreground=colors[2],
            background=colors[1],
            padding=0,
            fontsize=12,
            format="{MemUsed: .0f}/{MemTotal: .0f}"
        ),
        Sep(
            linewidth=1,
            padding=10,
            foreground=colors[2],
            background=colors[1]
        ),
        TextBox(
            font="FontAwesome",
            text="  ",
            foreground=colors[3],
            background=colors[1],
            padding=0,
            fontsize=16
        ),
        Clock(
            foreground=colors[5],
            background=colors[1],
            fontsize=12,
            format="%Y-%m-%d %H:%M",
            mouse_callbacks={'Button1': lambda qtile: qtile.cmd_spawn("xfce4-terminal cal -3")}
        ),
        # WidgetBox(widgets=[
        #    TextBox(text="This widget is in the box"),
        #    Memory()
        # ],background=colors[1]),
        Sep(
            linewidth=1,
            padding=10,
            foreground=colors[2],
            background=colors[1]
        ),
        Systray(
            background=colors[1],
            icon_size=20,
            padding=4
        ),
    ]
    return widgets_list
示例#4
0
	def large_orange(self):
		return Sep(
			linewidth = 0,
			padding = 3,
			background = self.color.orange
		)
示例#5
0
	def large_black(self):
		return Sep(
			linewidth = 0,
			padding = 3,
			background = self.color.black
		)
示例#6
0
	def short_magenta(self):
		return Sep(
			linewidth = 0,
			padding = 1,
			background = self.color.magenta
		)
示例#7
0
	def large_green(self):
		return Sep(
			linewidth = 0,
			padding = 3,
			background = self.color.green
		)
示例#8
0
	def large_magenta(self):
		return Sep(
			linewidth = 0,
			padding = 3,
			background = self.color.magenta
		)
示例#9
0
	def large_red(self):
		return Sep(
			linewidth = 0,
			padding = 3,
			background = self.color.red
		)
示例#10
0
 def small(self):
     return Sep(
         linewidth = 0,
         padding   = 10,
     )
示例#11
0
 def extra_large(self):
     return Sep(
         linewidth = 0,
         padding   = 40,
     )
示例#12
0
 def large(self):
     return Sep(
         linewidth = 0,
         padding   = 20,
     )