Example #1
0
def init_widgets():
    prompt = "{0}@{1}: ".format(os.environ["USER"], hostname)
    widgets = [
        Prompt(prompt=prompt,
               font="DejaVu Sans Mono",
               padding=10,
               background=GREY),
        TextBox(text="◤ ",
                fontsize=45,
                padding=-8,
                foreground=GREY,
                background=DARK_GREY),
        CurrentLayoutIcon(scale=0.6, padding=-4),
        TextBox(text=" ", padding=2),
        GroupBox(fontsize=8,
                 padding=4,
                 borderwidth=1,
                 urgent_border=DARK_BLUE,
                 disable_drag=True,
                 highlight_method="block",
                 this_screen_border=DARK_BLUE,
                 other_screen_border=DARK_ORANGE,
                 this_current_screen_border=BLUE,
                 other_current_screen_border=ORANGE),
        TextBox(text="◤",
                fontsize=45,
                padding=-1,
                foreground=DARK_GREY,
                background=GREY),
        TaskList(borderwidth=0,
                 highlight_method="block",
                 background=GREY,
                 border=DARK_GREY,
                 urgent_border=DARK_BLUE),
        Systray(background=GREY),
        TextBox(text="◤",
                fontsize=45,
                padding=-1,
                foreground=GREY,
                background=DARK_GREY),
        TextBox(text=" ⚠", foreground=BLUE, fontsize=18),
        Notify(),
        TextBox(text=" ⌚", foreground=BLUE, fontsize=18),
        Clock(format="%A %d-%m-%Y %H:%M")
    ]
    if hostname in ("spud", "saiga"):
        widgets[-2:-2] = [
            TextBox(text=" ↯", foreground=BLUE, fontsize=14),
            Battery(update_delay=2)
        ]
    if DEBUG:
        widgets += [Sep(), CurrentLayout()]
    return widgets
Example #2
0
def init_widgets_list():
    widgets_list = [
        GroupBox(font="DaddyTimeMono Nerd Font",
                 fontsize=20,
                 margin_y=3,
                 margin_x=3,
                 padding_y=5,
                 padding_x=5,
                 borderwidth=3,
                 active=colors[2],
                 inactive=colors[2],
                 rounded=False,
                 highlight_color=colors[1],
                 highlight_method="line",
                 this_current_screen_border=colors[3],
                 this_screen_border=colors[4],
                 other_current_screen_border=colors[0],
                 other_screen_border=colors[0],
                 foreground=colors[2],
                 background=colors[0]),
        Sep(linewidth=720,
            padding=40,
            foreground=colors[0],
            background=colors[0]),
        CurrentLayoutIcon(
            custom_icon_paths=[os.path.expanduser("~/.config/qtile/icons")],
            foreground=colors[0],
            background=colors[4],
            padding=0,
            scale=0.7),
        CurrentLayout(foreground=colors[2], background=colors[4], padding=5),
        Clock(foreground=colors[2],
              background=colors[5],
              format="%A, %B %d  [ %H:%M ]"),
        Sep(linewidth=0,
            padding=10,
            foreground=colors[0],
            background=colors[5])
    ]
    return widgets_list
Example #3
0
def init_widgets():
    prompt = "{0}@{1}: ".format(os.environ["USER"], hostname)
    widgets = [
        Prompt(prompt=prompt,
               font="DejaVu Sans Mono",
               padding=10,
               background=GREY),
        TextBox(text="◤ ",
                fontsize=45,
                padding=-8,
                foreground=GREY,
                background=DARK_GREY),
        CurrentLayoutIcon(scale=0.6, padding=-4),
        Spacer(width=10),
        GroupBox(fontsize=8,
                 padding=4,
                 borderwidth=1,
                 urgent_border=DARK_BLUE,
                 disable_drag=True,
                 highlight_method="block",
                 this_screen_border=DARK_BLUE,
                 other_screen_border=DARK_ORANGE,
                 this_current_screen_border=BLUE,
                 other_current_screen_border=ORANGE),
        TextBox(text="◤",
                fontsize=45,
                padding=-1,
                foreground=DARK_GREY,
                background=GREY),
        TaskList(borderwidth=0,
                 highlight_method="block",
                 background=GREY,
                 border=DARK_GREY,
                 urgent_border=DARK_BLUE),
        Systray(background=GREY),
        TextBox(text="◤",
                fontsize=45,
                padding=-1,
                foreground=GREY,
                background=DARK_GREY),
        Notify(fmt=" 🔥 {}"),
        Clock(fmt=" ⌚ {}", format="%A %d-%m-%Y %H:%M")
    ]
    if os.path.isdir("/sys/module/battery"):
        widgets.insert(-1, Battery(fmt=" ⚡️ {}", update_delay=2))
    if DEBUG:
        widgets += [Sep(), CurrentLayout()]
    return widgets
Example #4
0
def init_widgets():
    widgets = [
        CurrentLayoutIcon(scale=0.6, padding=8),
        GroupBox(fontsize=8, padding=4, borderwidth=1, urgent_border=DARK_BLUE,
                 disable_drag=True, highlight_method="block",
                 this_screen_border=DARK_BLUE, other_screen_border=DARK_ORANGE,
                 this_current_screen_border=BLUE,
                 other_current_screen_border=ORANGE),

        TextBox(text="◤", fontsize=45, padding=-1, foreground=DARK_GREY,
                background=GREY),

        TaskList(borderwidth=0, highlight_method="block", background=GREY,
                 border=DARK_GREY, urgent_border=DARK_BLUE,
                 markup_floating="<i>{}</i>", markup_minimized="<s>{}</s>"),

        Systray(background=GREY),
        TextBox(text="◤", fontsize=45, padding=-1,
                foreground=GREY, background=DARK_GREY),
        Notify(fmt=" 🔥 {} "),
        PulseVolume(fmt=" {}", emoji=True, volume_app="pavucontrol"),
        PulseVolume(volume_app="pavucontrol"),
        Clock(format=" ⏱ %H:%M  <span color='#666'>%A %d-%m-%Y</span>  ")
    ]
    if os.path.isdir("/sys/module/battery"):
        widgets.insert(-1, Battery(format=" {char} {percent:2.0%} ",
                                   charge_char="⚡", discharge_char="🔋",
                                   full_char="⚡", unknown_char="⚡",
                                   empty_char="⁉️ ", update_interval=2,
                                   show_short_text=False,
                                   default_text=""))
        widgets.insert(-1, Battery(fmt="<span color='#666'>{}</span> ",
                                   format="{hour:d}:{min:02d}",
                                   update_interval=2, show_short_text=True,
                                   default_text=""))
    if DEBUG:
        widgets += [Sep(), CurrentLayout()]
    return widgets
Example #5
0
w_key_l = {
    "configured_keyboards": ['us', 'de', 'iq ku_ara', 'ar'],
    "display_map": {
        "us": "EN",
        "iq ku_ara": "KU",
        "de": "DE",
        "ar": "AR"
    },
}

screens = [
    Screen(top=bar.Bar(
        [
            CurrentLayoutIcon(custom_icon_paths=wd_icon),
            Sep(**w_sep),
            GroupBox(**w_gbox, ),
            TextBox(
                text="🐸",
                fontsize="16",
                padding=5,
            ),
            WindowCount(),
            Prompt(**w_prompt),
            WindowName(foreground=colorz[1]),
            TextBox(
                text="📂",
                fontsize="16",
                padding=5,
                mouse_callbacks={'Button1': open_fm},
            ),
Example #6
0
     block_highlight_text_color=bar_colors[0],
     highlight_color=bar_colors[3],
     this_current_screen_border=bar_colors[0],
     active=bar_colors[1],
     markup=True,
     center_aligned=True,
     disable_drag=True,
 ),
 Image(
     filename=expanduser("~/.config/qtile/icons/p7.png"),
     margin=0,
     background=bar_colors[0],
 ),
 Sep(
     linewidth=10,
     foreground=bar_colors[0],
     background=bar_colors[0],
     size_percent=100,
 ),
 WindowName(foreground=bar_colors[5], background=bar_colors[0]),
 Image(
     filename=expanduser("~/.config/qtile/icons/p1.png"),
     margin=0,
     background=bar_colors[0],
 ),
 Mpd2(foreground=bar_colors[0],
      background=bar_colors[8],
      play_states={
          'play': '⏸',
          'pause': '▶',
          'stop': '■'
      },