Esempio n. 1
0
def default_bar() -> bar.Bar:
    return bar.Bar(
        [
            widget.GroupBox(
                active=Colors.foreground,
                hide_unused=False,
                inactive=Colors.comments,
                highlight_method="line",
                highlight_color=Colors.background,
                this_current_screen_border=Colors.red,
                padding=5,
                margin=5,
            ),
            sep,
            widget.WindowName(),
            sep,
            widget.Net(format="<b>祝{up} {down}</b>", prefix="M"),
            sep,
            widget.Clock(format="<b> %Y-%m-%d %H:%M</b>"),
            sep,
            BatteryWidget(),
            sep,
            widget.KeyboardLayout(),
            sep,
            VolumeWidget(),
            sep,
            PublicIpWidget(),
        ],
        28,
        background=Colors.background_night,
        border_width=0,
        padding=5,
        margin=[0, 0, 5, 0],
        border_color=Colors.foreground,
    )
Esempio n. 2
0
def init_bottom_bar_widgets_list():
    """
    Init bottom bar widgets.
    """
    colors_list = colors.get_colors()
    widgets = []

    prompt = "{0}@{1}: ".format(os.environ["USER"], socket.gethostname())
    widgets.append(
        widget.GroupBox(padding=3,
                        active=colors_list[7][1],
                        inactive=colors_list[6][1]))
    widgets.append(widget.TaskList())
    #widgets.append(widget.WindowTabs())
    widgets.append(
        widget.Prompt(
            prompt=prompt,
            font="Ubuntu Mono",
            padding=10,
        ))
    widgets.append(widget.Spacer())
    widgets.append(widget.CapsNumLockIndicator())
    widgets.append(widget.KeyboardLayout(configured_keyboards=["us", "ir"]))
    widgets.append(widget.CurrentLayoutIcon(scale=.7))
    widgets.append(widget.CurrentLayout(fmt="{:<8}"))
    widgets.append(
        widget.TextBox(font="Ubuntu Bold", text=" ♫", padding=5,
                       fontsize=14))
    widgets.append(widget.Cmus(
        max_chars=40,
        update_interval=0.5,
    ))
    return widgets
Esempio n. 3
0
def wid_top_main_screen():
    return [
        widget.TextBox(text='',
                       fontsize=25,
                       padding=10,
                       mouse_callbacks={'Button1': rofi_show_run}),
        widget.Sep(linewidth=0, padding=5),
        wid_groups(),
        widget.WindowName(),
        widget.Wlan(interface="wlp4s0", format='{essid}'),
        widget.Net(interface="wlp4s0", format='{down} ↓↑ {up}', padding=1),
        custom_sep(),
        widget.CurrentLayoutIcon(scale=0.9),
        custom_sep(),
        widget.KeyboardLayout(configured_keyboards=['us', 'latam'],
                              option="grp:win_space_toggle"),
        custom_sep(),
        widget.Systray(),
        custom_sep(),
        custom_clock(),
        widget.TextBox(text=' ',
                       fontsize=15,
                       padding=3,
                       mouse_callbacks={'Button1': logout_action}),
    ]
Esempio n. 4
0
def wid_second_screen():
    return [
        wid_groups(),
        widget.WindowName(),
        custom_sep(),
        widget.CurrentLayoutIcon(scale=0.85),
        custom_sep(),
        widget.KeyboardLayout(configured_keyboards=['us', 'latam'],
                              option='grp:win_space_toggle'),
        custom_sep(),
        widget.TextBox(text='﬙', fontsize=18),
        widget.CPU(format='CPU: {load_percent}%'),
        widget.TextBox(text='',
                       fontsize=18,
                       mouse_callbacks={'Button1': launch_htop}),
        widget.Memory(format='Mem: {MemUsed}M'),
        widget.TextBox(text='墳',
                       fontsize=18,
                       mouse_callbacks={'Button1': launch_pavucontrol}),
        widget.PulseVolume(),
        widget.TextBox(text='', fontsize=18),
        widget.Backlight(backlight_name='amdgpu_bl0',
                         brightness_file=br_path,
                         max_brightness_file=br_max_path,
                         change_command='brightnessctl set {0}',
                         step=5),
        custom_sep(),
        custom_clock(),
    ]
Esempio n. 5
0
def get_bar():
    return bar.Bar(
        [
            widget.GroupBox(
                active="98c379",
                inactive="abb2bf",
                this_current_screen_border="61afef",
                highlight_method="text",
                highlight_color=["282c34", "282c34"],
                center_aligned=True,
                rounded=False,
                borderwidth=0,
                padding=6,
            ),
            widget.Spacer(bar.STRETCH),
            widget.Systray(),
            widget.TextBox(
                text='',
                foreground="c678dd",
            ),
            widget.KeyboardLayout(),
            widget.TextBox(
                text='',
                foreground="56b6c2",
            ),
            widget.Battery(format='{percent:2.0%}'),
            widget.TextBox(
                text='',
                foreground="e5c07b",
            ),
            widget.Volume(),
            widget.TextBox(
                text='',
                foreground="61afef",
            ),
            widget.Backlight(
                backlight_name="intel_backlight",
                #padding=0,
                #margin=0,
                format='{percent: 2.0%}'),
            widget.TextBox(
                text='',
                foreground="98c379",
            ),
            widget.Clock(format='%B %d (%a) %H:%M', ),
            widget.TextBox(
                text='',
                foreground="e06c75",
            ),
            widget.Wlan(
                interface="wlp5s0",
                format="{essid}",
            ),
        ],
        28,
        margin=0,
        opacity=0)
Esempio n. 6
0
def get_keyboard():
    return widget.KeyboardLayout(
        configured_keyboards=["us", "de"],
        display_map={
            "us": fa.icons["keyboard"],
            "de": "🇩🇪"
        },
        update_interval=1,
    )
Esempio n. 7
0
def powerline_base():
    return [
        widget.KeyboardLayout(**base(bg='secondary'), **KeyboardLayout),
        widget.CurrentLayoutIcon(**base(bg='secondary'),
                                 **current_layout_icon),
        widget.CurrentLayout(**base(bg='secondary'), **current_layout),
        widget.TextBox(**base(bg='secondary'), **text_box, text=''),
        widget.Clock(**base(bg='secondary'), **clock)
    ]
Esempio n. 8
0
def put_keyboard_indicator():
    keyboard = widget.KeyboardLayout(
        foreground=main_color,
        configured_keyboards=['us', 'bg phonetic'],
        display_map={
            'us': 'US',
            'bg phonetic': 'BG'
        })

    return keyboard
Esempio n. 9
0
def keyboard_layout(bg=theme.background, fg=theme.foreground):
    return widget.KeyboardLayout(
        foreground=fg,
        background=bg,
        configured_keyboards=user.languages,
        font=theme.font_bold,
        mouse_callbacks={
            # This doesn't work
            # "Button1": lambda: lazy.widget["keyboardlayout"].next_keyboard(),
            "Button1": lambda: qtile.cmd_spawn("setxkbmap us"),
            "Button3": lambda: qtile.cmd_spawn("setxkbmap ru"),
        },
    )
Esempio n. 10
0
def bottom_bar():
    return bar.Bar([
        widget.HDDBusyGraph(device='nvme0n1p1'),
        widget.CPU(format='CPU {load_percent}%'),
        # memory_widget.Memory(),
        widget.Net(format='{down} ↓↑ {up}'),
        # widget.CheckUpdates(custom_command="checkupdates"),
        widget.KeyboardLayout(configured_keyboards=['us','hu']),
        widget.Spacer(),
        widget.GroupBox(inactive=colors['very-soft-red']),
        widget.Prompt(),
    ],
                   size=BAR_HEIGHT,
                    background=colors['deep-blue'],
                   )
Esempio n. 11
0
def setup_screens(num_screens: int = 1) -> None:
    """
    Setup screens list according to a given number
    """
    screens.clear()
    for _ in range(num_screens):
        bar_instance = bar.Bar(
            [
                # Left
                widget.GroupBox(
                    disable_drag=True,
                    hide_unused=True,
                ),
                widget.Prompt(),

                # Center
                widget.Spacer(),
                widget.WindowName(),
                widget.Spacer(),

                # Right
                *additional_widgets_right,
                *resources_widgets,
                *clock_widgets,
                widget.Systray(),
                widget.KeyboardLayout(
                    #TODO: Add mouse callbacks to switch keyboard layout
                    display_map={
                        'us': '\U0001F1FA\U0001F1F8',
                        'pt': '\U0001F1F5\U0001F1F9',
                    }, ),
            ],
            18,
        )

        screen_instance = Screen(
            top=bar_instance,
            wallpaper='~/wallpapers/mac_computer.jpg',
            wallpaper_mode='fill',
        )

        screens.append(screen_instance)
Esempio n. 12
0
                widget.Spacer(length=10),

                # widget.Chord(
                #     chords_colors={
                #         'launch': ("#ff0000", "#ffffff"),
                #     },
                #     name_transform=lambda name: name.upper(),
                # ),

                # widget.CapsNumLockIndicator(),
                # widget.Maildir(maildir_path='~/.mail'),
                widget.KeyboardLayout(configured_keyboards=[
                    'us', 'rs alternatequotes', 'rs latin'
                ],
                                      display_map={
                                          'us': 'english',
                                          'rs alternatequotes':
                                          'serbian cyrillic',
                                          'rs latin': 'serbian latin'
                                      },
                                      option='caps:swapescape'),

                #   墳 婢
                widget.TextBox(text=" 墳"),
                widget.Volume(),
                widget.Clock(format='%A %d %b %I:%M %p'),
                widget.Systray(),
            ],
            24,
            opacity=0.85,
        ), ),
]
Esempio n. 13
0
     fontshadow=None,
     foreground='ffffff',
     markup=True,
     max_chars=0,
     mouse_callbacks={},
     noplay_color='cecece',
     padding=None,
     play_color='00ff00',
     update_interval=0.5,
 ),
 widget.KeyboardLayout(
     configured_keyboards=['br'],
     display_map={},
     fmt='{}',
     font='fontawesome',
     fontsize=13,
     foreground="#f0ec0a",
     mouse_callbacks={},
     option=None,
     update_interval=1,
 ),
 widget.Net(
     format=' {down} ↓↑ {up}',
     interface=None,
     font='fontawesome',
     fontsize=13,
     foreground='#4feb44',
     update_interval=1,
 ),
 widget.Memory(
     font='fontawesome',
Esempio n. 14
0
    extension_defaults = widget_defaults.copy()
    w1 = [
        widget.WindowName(),
        widget.GroupBox(active=colors['green'],
                        this_current_screen_border=colors['green'],
                        this_screen_border=colors['green'],
                        other_screen_border=colors['gray'],
                        highlight_method='line'),
        widget.Chord(
            chords_colors={'launch': ("#ff0000", "#ffffff")},
            name_transform=lambda name: name.upper(),
        ),
        widget.CurrentLayoutIcon(scale=0.6),
        widget.Spacer(),
        widget.Systray(),
        widget.KeyboardLayout(
            configured_keyboards=['us altgr-intl', 'es', 'us'], fmt=' {}'),
        widget.GenPollText(
            func=bt_status,
            update_interval=5,
            mouse_callbacks={'Button1': bt_mouse_click},
        ),
        widget.TextBox(text=' ', padding=0),
        widget.Volume(padding=5),
        widget.Clock(format=' %H:%M'),
        widget.TextBox(text='',
                       mouse_callbacks={'Button1': notification_toggle}),
    ]
    if isLaptop:
        w1.insert(6, Battery(colors))
        w1.insert(6, Wlan(colors))
Esempio n. 15
0
)

default_data = dict(fontsize=12, foreground="FF6600", background="1D1D1D", font="ttf-droid")

screens = [
    Screen(
        bottom=bar.Bar(
            [
                widget.GroupBox(margin_x=1, margin_y=1, **default_data),
                widget.Prompt(**default_data),
                widget.Sep(),
                widget.Spacer(),
                widget.Sep(),
                # widget.BitcoinTicker(),
                # widget.LaunchBar(progs=[('thunderbird', 'thunderbird -safe-mode', 'launch thunderbird in safe mode')]),
                widget.KeyboardLayout(configured_keyboards=['us', 'ru'], **default_data),
                widget.Volume(**default_data),
                # widget.TextBox("default config", name="default"),
                widget.Systray(icon_size=16, **default_data),
                widget.Spacer(width=6),
            ],
            30,
        ),
        top=bar.Bar(
            [
                widget.WindowName(**default_data),
                # widget.BitcoinTicker(**default_data),
                widget.Clock(format='%I:%M', **default_data),
            ],
            30,
        ),
Esempio n. 16
0
     widget.ThermalSensor(tag_sensor="Core 0", foreground=fg_color),
     widget.Sep(),
     widget.GenPollUrl(url="http://ip-api.com/json/",
                       parse=get_ip_location,
                       foreground=fg_color),
     # widget.KeyboardKbdd(configured_keyboards=['us', 'ir']),
     widget.Sep(),
     # widget.Wlan(interface="wlp3s0", format="{essid} {percent:2.0%}", foreground=fg_color),
     # widget.NetGraph(interface="wlp3s0", foreground=fg_color),
     widget.TextBox(text="/dev/sda:", foreground=fg_color),
     widget.HDDBusyGraph(fill_color=cursor_color,
                         graph_color=bold_color,
                         border_color=bg_color,
                         foreground=fg_color),
     widget.Sep(),
     widget.KeyboardLayout(configured_keyboards=['us', 'ir'],
                           foreground=fg_color),
     widget.Sep(),
     widget.Backlight(backlight_name="intel_backlight",
                      format="☼ {percent: 2.0%}",
                      foreground=fg_color),
     widget.Volume(emoji=True, foreground=fg_color),
     # widget.Battery(foreground=fg_color, charge_char=u'▲', discharge_char=u'▼', low_foreground=bold_color),
     # widget.BatteryIcon(),
     widget.Sep(),
     widget.Systray(icon_size=22, padding=7, foreground=fg_color),
     widget.Sep(),
     widget.Clock(format='%Y-%m-%d %a %I:%M %p',
                  foreground=fg_color),
 ],
 24,
 background=bg_color,
Esempio n. 17
0
)
extension_defaults = dict(
    dmenu_prompt=">",
    dmenu_font=FONT + '-8',
    background=BLACK,
    foreground=GREEN,
    selected_background=GREEN,
    selected_foreground=BLACK,
    dmenu_height=24,
)

keyboard_widget = widget.KeyboardLayout(
        configured_keyboards=['us', 'lt sgs', 'ru phonetic'],
        # display_map={
        #     'us': 'us ',
        #     'lt sgs': 'sgs',
        #     # 'ru phonetic': 'ru',
        #     },
        options='compose:menu,grp_led:scroll',
        foreground=GREEN
        )

top = bar.Bar(
    [
        widget.GroupBox(hide_unused=True),
        widget.CurrentLayoutIcon(scale=0.65),
        widget.WindowName(),
        widget.Clipboard(foreground=RED),
        widget.Moc(play_color=GREEN, noplay_color=YELLOW),
        widget.Systray(),

        widget.Volume(
Esempio n. 18
0
    Screen(top= bar.Bar(
        [
            widget.GroupBox(fontsize=17,
                            active=current_style['primary'],
                            block_highlight_text_color=current_style['foreground'],
                            this_current_screen_border=current_style['primary'],
                            highlight_method="block",
                            rounded=False),
            widget.Prompt(),
            WkWidget(style=current_style),
            widget.Spacer(),
            widget.Clock(format='   %a %d-%m %H:%M   ',
                         foreground=current_style['secondary']),

            widget.TextBox(' ', fontsize=22),
            widget.KeyboardLayout(configured_keyboards=['us_custom', 'dk', 'us_ez'],
                                  display_map={'us_custom': 'code', 'dk': 'DK', 'us_ez': 'EZ'}),
            widget.Systray(),
            widget.Volume(emoji=False, mute_command=[
                'amixer',
                'q',
                'set',
                'Master',
                'toggle']),
        ], 24, background=current_style['background']
    )),
]

@hook.subscribe.client_new
def client_new(client: window.Window):
    if client.name in ('qutebrowser', 'chromium'):
        client.togroup('Web')
Esempio n. 19
0
                    discharge_char='↓',
                    charge_char='↑',
                    format='{char} {hour:d}:{min:02d}',
                    # foreground=YELLOW,
                    # low_foreground=RED
                ),
                widget.Volume(
                    font="Iosevka Bold", fontsize=14, update_interval=2),
                widget.Clock(
                    font="Iosevka Bold",
                    fontsize=14,
                    format='%a %d-%m-%y %H:%M',
                ),
                widget.Systray(
                    font="Iosevka Bold",
                    fontsize=14,
                ),
                widget.KeyboardLayout(
                    configured_keyboards=['us', 'ru'],
                    display_map={
                        'us': 'us ',
                        'ru': 'ru ',
                    },
                    # options='compose:rctrl',
                    # foreground=GREEN
                ),
            ],
            30,
        ), )
]
Esempio n. 20
0
     format="ams: {main_temp} °{units_temperature}",
 ),
 widget.Spacer(length=10),
 widget.Sep(),
 widget.Spacer(length=10),
 widget.Maildir(
     maildir_path="~/mail/personal",
     sub_folders=(
         {"label": "i", "path": "inbox"},
         {"label": "a", "path": "archives"},
     ),
 ),
 widget.Spacer(length=10),
 widget.Sep(),
 widget.Spacer(length=10),
 widget.KeyboardLayout(configured_keyboards=("us", "br")),
 widget.Spacer(length=10),
 widget.Sep(),
 widget.Spacer(length=10),
 widget.Systray(icon_size=40),
 widget.Sep(),
 widget.CheckUpdates(
     mouse_callbacks={
         "Button1": lambda: qtile.cmd_spawn(
             f"{terminal} -e sudo pacman -Syu"
         ),
         "Button2": lambda: qtile.cmd_spawn(
             f"{terminal} -e sudo pacman -Syy --noconfirm"
         ),
     }
 ),
Esempio n. 21
0
     }),
 widget.TextBox(
     fontsize=font_size,
     text='clock:',
 ),
 widget.Clock(fontsize=font_size,
              format='%a, %b %d [ %H:%M ]',
              foreground=main_color),
 widget.TextBox(
     fontsize=font_size,
     text='kb:',
 ),
 widget.KeyboardLayout(
     fontsize=font_size,
     foreground=main_color,
     configured_keyboards=['us', 'bg phonetic'],
     display_map={
         'us': 'US',
         'bg phonetic': 'BG'
     }),
 widget.TextBox(
     fontsize=font_size,
     text='[]=:',
 ),
 widget.CurrentLayout(fontsize=font_size,
                      foreground=main_color),
 widget.Image(filename='~/.config/qtile/pacman.png',
              scale='False',
              mouse_callbacks={
                  'Button1':
                  lambda: qtile.cmd_spawn(
                      'alacritty -e sudo pacman -Syyu')
Esempio n. 22
0
     foreground=color1,
     background=color3,
 ),
 #widget.Moc(            # Require moc (http://moc.daper.net)
 #    fmt='moc{}',
 #    max_chars=30,
 #    foreground=color1,
 #    background=color4,
 #),
 widget.Net(
     format='說{ down}',
     foreground=color1,
     background=color3,
 ),
 widget.KeyboardLayout(
     foreground=color1,
     background=color3,
 ),
 widget.Clock(
     format='%Y-%m-%d %a %I:%M %p',
     background=color3,
 ),
 widget.Notify(
     foreground=color1,
     background=color3,
     audiofile=None,
 ),
 widget.Systray(
     background=color3,
     icon_size=20,
     padding=5,
 ),
Esempio n. 23
0
             padding = 9,
             ),
     ],
     24,
     margin = [4, 6, 1, 6],
     opacity = 0.85,
 ),
 bottom=bar.Bar(
         [
         widget.Spacer(
             length = 10,
             ),
         widget.Prompt(),
         widget.WindowName(),
         widget.KeyboardLayout(
             configured_keyboards = ['us', 'us -variant colemak'],
             display_map = {'us':'US ', 'us -variant colemak':'Colemak '},
             ),
         widget.Systray(),
         #widget.Spacer(
         #    length = 10,
         #    ),
         widget.TextBox(
             "⏻",
             fontsize = 18,
             mouse_callbacks = {'Button1': lambda qtile: qtile.cmd_spawn('rofi -show power-menu -modi "power-menu:rofi-power-menu --choices=shutdown/reboot" \
                     -font "JetBrainsMono Nerd Font 80"\
                     -theme ~/.config/rofi/config.rasi\
                     -fullscreen')
                     },
             padding = 10,
             ),
Esempio n. 24
0
 def init_widgets_list(self):
     '''
     Function that returns the desired widgets in form of list
     '''
     widgets_list = [
         widget.Sep(linewidth=0,
                    padding=6,
                    foreground=self.colors[2],
                    background=self.colors[0]),
         widget.CurrentLayoutIcon(custom_icon_paths=[
             os.path.expanduser("~/.config/qtile/icons")
         ],
                                  background=self.colors[0],
                                  padding=0,
                                  scale=0.75),
         widget.Sep(linewidth=0,
                    padding=5,
                    foreground=self.colors[2],
                    background=self.colors[0]),
         widget.GroupBox(font="JetBrains Mono",
                         fontsize=12,
                         margin_y=3,
                         margin_x=0,
                         padding_y=5,
                         padding_x=3,
                         borderwidth=3,
                         active=self.colors[2],
                         inactive=self.colors[1],
                         rounded=False,
                         highlight_method="block",
                         urgent_alert_method='block',
                         urgent_border=self.colors[9],
                         this_current_screen_border=self.colors[9],
                         this_screen_border=self.colors[4],
                         other_current_screen_border=self.colors[0],
                         other_screen_border=self.colors[0],
                         foreground=self.colors[2],
                         background=self.colors[0],
                         disable_drag=False),
         widget.Sep(linewidth=0,
                    padding=5,
                    foreground=self.colors[2],
                    background=self.colors[0]),
         widget.WindowTabs(
             foreground=self.colors[6],
             background=self.colors[0],
             padding=0,
         ),
         widget.TextBox(text='',
                        foreground=self.colors[14],
                        background=self.colors[0],
                        padding=0,
                        fontsize=37),
         widget.TextBox(text=" ",
                        foreground=self.colors[7],
                        background=self.colors[14],
                        padding=0,
                        fontsize=14),
         widget.TextBox(text=self.host,
                        foreground=self.colors[7],
                        background=self.colors[14],
                        padding=5,
                        fontsize=13),
         widget.TextBox(text='',
                        foreground=self.colors[11],
                        background=self.colors[14],
                        padding=0,
                        fontsize=37),
         widget.TextBox(text="  ",
                        foreground=self.colors[7],
                        background=self.colors[11],
                        padding=0,
                        fontsize=14),
         widget.KeyboardLayout(
             foreground=self.colors[7],
             background=self.colors[11],
         ),
         widget.TextBox(text='',
                        background=self.colors[11],
                        foreground=self.colors[10],
                        padding=0,
                        fontsize=37),
         widget.TextBox(
             text="   ",
             background=self.colors[10],
             padding=0,
             fontsize=14,
             mouse_callbacks={
                 'Button1':
                 lambda: qtile.cmd_spawn(self.kitty + ' -e sudo pacman -Syu'
                                         )
             },
         ),
         widget.CheckUpdates(
             update_interval=1000,
             mouse_callbacks={
                 'Button1':
                 lambda: qtile.cmd_spawn(self.kitty + ' -e sudo pacman -Syu'
                                         )
             },
             background=self.colors[10],
             display_format='{updates}',
             # colour_have_updates=self.colors[0],
             distro="Arch_checkupdates",
         ),
         widget.TextBox(text='',
                        foreground=self.colors[1],
                        background=self.colors[10],
                        padding=0,
                        fontsize=37),
         widget.TextBox(text="  ",
                        foreground=self.colors[7],
                        background=self.colors[1],
                        padding=0,
                        fontsize=18),
         widget.Clock(background=self.colors[1],
                      format="%A, %B %d - %H:%M "),
         widget.TextBox(text='',
                        foreground=self.colors[0],
                        background=self.colors[1],
                        padding=0,
                        fontsize=37),
         widget.TextBox(
             text="  ",
             background=self.colors[0],
             padding=0,
         ),
         widget.Volume(background=self.colors[0], padding=5),
         widget.Battery(
             background=self.colors[0],
             padding=5,
             update_interval=2,
             format='{char}  {percent:2.0%}  {hour:d}:{min:02d}',
             charge_char='CHR',
             discharge_char='DIS',
             empty_char='EMP',
             full_char='FUL',
             unknown_char='UNK',
         ),
         widget.Systray(background=self.colors[0], padding=5),
     ]
     return widgets_list
Esempio n. 25
0
screens = [
    Screen(
        top=bar.Bar(
            [
	         widget.CurrentLayoutIcon(
                        foreground = color['light_blue'],
                        custom_icon_paths=[os.path.expanduser("~/.config/qtile/icons")],
                        padding = 0,
                        scale=0.7
                        ),
                 widget.CurrentLayout(
                        padding = 5
                        ),
		 widget.KeyboardLayout(
			padding = 5,
			configured_keyboards = ['us', 'ara'],
			font = "Source Code Pro",
                        foreground = color['light_blue'],
			),
 		 widget.LaunchBar(
                        padding = 5,
                        progs = [('Calendar', 'google-calendar -h', 'Google Calendar')],
                        ),
		 widget.GroupBox(font="Ubuntu Bold",
                        fontsize = 9,
                        margin_y = 3,
                        margin_x = 0,
                        padding_y = 5,
                        padding_x = 5,
                        borderwidth = 3,
                        active = color['white'],
                        inactive = color['white'],
Esempio n. 26
0
                    urgent_border=red),
    widget.TextBox(text="\u25e4",
                   fontsize=42,
                   padding=-1,
                   foreground=dk_grey,
                   background=grey),
    widget.TaskList(borderwidth=1,
                    background=grey,
                    border=cyan,
                    urgent_border=red),
    widget.TextBox(text="\u25e4 ", fontsize=42, padding=-8, foreground=grey),
    #widget.TextBox(text=u'\U0001f321'),
    widget.Systray(),
    widget.TextBox(text="\u2328", foreground=cyan),
    widget.KeyboardLayout(configured_keyboards=["us dvorak", "us"],
                          foreground=cyan,
                          update_interval=5),
    tempsensor.TempSensor(font="fontawesome"),
    networkmonitor.NetworkMonitor(font="fontawesome"),
    volume.Volume(font="fontawesome"),
    widget.Clock(format='%m-%d-%Y %a %H:%M:%S'),
]

widgets2 = [
    widget.TextBox(text="\u25e4 ", fontsize=42, padding=-8, foreground=grey),
    widget.GroupBox(borderwidth=4,
                    highlight_method='line',
                    margin=0,
                    disable_drag=True,
                    this_current_screen_border=cyan,
                    this_screen_border=lt_grey,
Esempio n. 27
0
    layout.MonadTall(border_width=1, ratio=0.75),
    layout.Max()
]

widget_defaults = dict(
    font='Arial',
    fontsize=16,
    padding=3,
)

screens = [
    Screen(bottom=bar.Bar(
        [
            widget.GroupBox(this_current_screen_border='FF0000',
                            urgent_alert_method='text'),
            widget.KeyboardLayout(configured_keyboards=['us', 'il']),
            widget.Prompt(),
            widget.TextBox(text=" ", width=bar.STRETCH),
            widget.Mpris(),
            widget.Systray(),
            widget.Clock(format='%I:%M %p', timezone="Asia/Jerusalem"),
        ],
        30,
    ), ),
]

# Drag floating layouts.
mouse = [
    Drag([mod],
         "Button1",
         lazy.window.set_position_floating(),
Esempio n. 28
0
        widget.TextBox(
            text=u"\u231a", foreground="008000", fontsize=30, padding=0),
        widget.Clock('%H:%M | %d-%m-%Y %a', foreground="008000"),
        widget.TextBox(text=u"\u25c0)", foreground="70ff70", padding=0),
        widget.Volume(foreground="70ff70", update_interval=1),
        widget.TextBox(
            text=u" \u26a1", foreground="0066ff", fontsize=30, padding=0),
        widget.Battery(
            energy_now_file='charge_now',
            energy_full_file='charge_full',
            power_now_file='current_now',
            foreground="0066ff",
        ),
        widget.ThermalSensor(foreground="ff0000", update_interval=5),
        widget.TextBox(text=u"\u2328", fontsize=30, padding=0),
        widget.KeyboardLayout(configured_keyboards=["us", "ua"]),
        # widget.Wlan(interface = "wlp3s0", update_interval = 5),
        widget.Systray(),
    ],
    30)

bottom_bar = bar.Bar([
    widget.GroupBox(urgent_alert_method='text',
                    fontsize=12,
                    this_current_screen_border='7b5830'),
], 25)

screens = [
    Screen(top=top_bar, bottom=bottom_bar),
    Screen(),
]
Esempio n. 29
0
    Key([mod], "w", lazy.window.kill()),

    # Switch between windows in current stack pane
    Key([alt], 'Tab', lazy.layout.down()),
    Key([mod, "control"], "r", lazy.restart()),
    Key([mod, "control"], "q", lazy.shutdown()),
    Key([mod], "r", lazy.spawncmd()),
    Key([], 'Caps_Lock', lazy.function(change_keyboard_layout())),
    Key([], "XF86AudioRaiseVolume",
        lazy.spawn("amixer -c 1 -q set Master 2dB+")),
    Key([], "XF86AudioLowerVolume",
        lazy.spawn("amixer -c 1 -q set Master 2dB-")),
]

screens = [
    Screen(top=bar.Bar([
        widget.GroupBox(),
        widget.WindowName(),
        widget.TextBox('🔋'),
        widget.Battery(battery_name='BAT1'),
        widget.TextBox('🔈'),
        widget.Volume(cardid=1, device=None, update_interval=0.2),
        widget.Systray(icon_size=14),
        widget.KeyboardLayout(name='KeyboardLayout',
                              configured_keyboards=['us', 'ru', 'ua']),
        widget.Clock(format='%Y-%m-%d %H:%M', ),
    ], 30), ),
    Screen(top=bar.Bar(
        [widget.GroupBox(), widget.WindowName()], 30), )
]
Esempio n. 30
0
                         padding=1),
    widget.Spacer(background=color_lightblue, length=5),  # +1
    widget.TextBox(background=color_lightblue,
                   foreground=color_bluegray,
                   fontsize=10,
                   text='',
                   padding=0),
    widget.Spacer(background=color_lightblue, length=6),  # +0
    widget.TextBox(background=color_lightblue,
                   foreground=color_black,
                   text=' ',
                   padding=0),
    widget.Spacer(background=color_lightblue, length=3),  # +0
    widget.KeyboardLayout(background=color_lightblue,
                          foreground=color_black,
                          configured_keyboards=keyboards,
                          display_map=keynames,
                          option='caps:swapescape',
                          padding=0),
    widget.Spacer(background=color_lightblue, length=3),  # +0

    ### lightblue 2 purple ###
    widget.Spacer(background='96a3df', length=1),
    widget.Spacer(background='98a2e0', length=1),
    widget.Spacer(background='99a0e0', length=1),
    widget.Spacer(background='9a9fe1', length=1),
    widget.Spacer(background='9c9ee1', length=1),
    widget.Spacer(background='9d9de1', length=1),
    widget.Spacer(background='9e9ce2', length=1),
    widget.Spacer(background='9f9ae2', length=1),
    widget.Spacer(background='a199e3', length=1),
    widget.Spacer(background='a298e3', length=1),