Exemple #1
0
            txt_floating="🗗 ",
            txt_maximized="🗖 ",
            txt_minimized="🗕 ",
            border=COLORS["Polar Night"][3],
        ),
        widget.TextBox(foreground=COLORS["Aurora"][1], **arrow_left),
        widget.Clock(format='%I:%M %p %m/%d',
                     timezone=None,
                     background=COLORS["Aurora"][1]),
        widget.TextBox(foreground=COLORS["Aurora"][0],
                       background=COLORS["Aurora"][1],
                       **arrow_left),
        widget.LaunchBar(progs=[(
            'Exit',
            "rofi -show power-menu -modi power-menu:rofi-power-menu --no-symbols",
            'Exit menu')],
                         default_icon=HOME + "/.local/share/icons/logout.png",
                         background=COLORS["Aurora"][0],
                         padding=0),
    ],
                       24,
                       opacity=0.9,
                       background=def_colors["background"]), ),
]

# Drag floating layouts.
mouse = [
    Drag([mod],
         "Button1",
         lazy.window.set_position_floating(),
         start=lazy.window.get_position()),
Exemple #2
0
                        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'],
                        rounded = False,
                        highlight_color = color['grey'],
                        highlight_method = "line",
                        this_current_screen_border = color['green'],
                        this_screen_border = color['purple'],
# Lots of the other widgets are textboxes, which display font awesome icons to provide info about the widget they are next to, or to make
# the fancy triangle pattern in the top-right corner

widget_defaults = dict(
    font='Cantarell',
    fontsize=20,
    padding=5,
)
screens = [
    Screen(
        top=bar.Bar(
            [
                widget.LaunchBar(
                    progs=[
                        ('    ', 'rofi -show drun',
                         'Switch Sound output to Computer Speakers'),
                    ],
                    background="dba19b",
                    padding=0,
                ),
                # Displays current layout of the windows
                widget.CurrentLayoutIcon(
                    foreground="dba19b", background="272a46", scale=0.4),
                widget.Sep(background="272a46", ),
                widget.Prompt(),
                # Provides a way to launch and keep track of apps
                widget.TaskList(
                    background="272a46",
                    foreground="dba19b",
                    border="655668",
                    unfocused_border="272a46",
                    highlight_method="block",
Exemple #4
0
extension_defaults = dict(
    dmenu_prompt=">",
    dmenu_font='monospace',
    background=BLACK,
    foreground=GREEN,
    selected_background=GREEN,
    selected_foreground=BLACK,
    dmenu_height=24,
)

screens = [
    Screen(
        top=bar.Bar(
            [
                widget.LaunchBar(
                    progs=[('rofi', 'rofimenu', 'Rofi launcher')],
                    default_icon='/home/ulverza/Pictures/icons/arch.png',
                    background=colors[0]),
                widget.GroupBox(
                    padding=5,
                    active=colors[7],
                    inactive=colors[8],
                    rounded=False,
                    highlight_color=colors[3],
                    highlight_method="block",
                    this_current_screen_border=colors[2],
                    #this_screen_border = colors [4],
                    other_current_screen_border=colors[0],
                    other_screen_border=colors[0],
                    foreground=colors[2],
                    background=colors[0],
                    disable_drag=True,
Exemple #5
0
     fontsize=37,
     padding=0,
     foreground=colors[1],
     background="#00000000",
 ),
 widget.Spacer(length=bar.STRETCH),
 widget.WidgetBox(
     widgets=[
         widget.LaunchBar(progs=[
             (fa.icons['discord'],
              'brave --new-window https://www.discord.com', 'Discord'),
             (fa.icons['github'],
              'brave --new-window https://www.github.com', 'Github'),
             (fa.icons['reddit-alien'],
              'brave --new-window https://www.reddit.com', 'Reddit'),
             (fa.icons['twitch'],
              'brave --new-window https://www.twitch.com', 'Twitch'),
             (fa.icons['youtube'],
              'brave --new-window https://www.youtube.com', 'Youtube'),
             (fa.icons['spotify'], 'spotify', 'Spotify'),
             (fa.icons['skype'], 'skypeforlinux', 'Skype'),
             (fa.icons['linkedin'],
              'brave --new-window https://www.linkedin.com', 'LinkedIn'),
         ], ),
     ],
     font='Font Awesome 6 Free',
     fontsize=16,
     foreground=blanco,
     text_closed=fa.icons['dragon'],
     text_open=fa.icons['docker'],
 ),
 widget.Spacer(length=bar.STRETCH),
Exemple #6
0
 Screen(
     # Bar
     top=bar.Bar(
         # Bar General Options
         size=24,
         background=["#282C33"],
         margin=[0,0,0,0],
         opacity=1,
         
         # Widgets
         widgets=[
             widget.WidgetBox(
                 widgets=[
                     widget.TextBox(text="This widget is in the box"),
                     widget.LaunchBar(           # required: pyxdg
                         #progs=('logout', 'qshell:self.qtile.cmd_shutdown()', 'logout from qtile'),
                         #progs=('restart', 'echo shutdown', 'restart the machine'), 
                     ),
                 ],
                 background=color3,
                 text_open='',
                 text_closed='',
             ),
             widget.CurrentLayoutIcon(
                 custom_icon_paths=['~/.config/qtile/icons'],
                 background=color3,
             ),
             widget.GroupBox(
                 active=color1,
                 inactive=color2,
                 background=color3,
             ),
Exemple #7
0
def init_widgets_list():
	prompt = "{0}@{1}: ".format(os.environ["USER"], socket.gethostname())
	widgets_list = [
		widget.Spacer(length = 8, background = colors[1]),
		widget.LaunchBar(
			progs = [("", "xfce4-appfinder", "Launch apps")], 
			background = colors[1],
			padding = 0
		),
		widget.GroupBox(
			font = CustomFont.TEXT.value,
			fontsize = 16,
			margin_y = 4,
			margin_x = 0,
			padding_y = 0,
			padding_x = 6,
			borderwidth = 0,
			disable_drag = True,
			active = colors[9],
			inactive = colors[2],
			rounded = False,
			highlight_method = "line",
			highlight_color = colors[4],
			this_current_screen_border = colors[8],
			foreground = colors[2],
			background = colors[1]
		),
		widget.Sep(
			linewidth = 1,
			padding = 10,
			foreground = colors[2],
			background = colors[1]
		),
		widget.CurrentLayout(
			font = CustomFont.TEXT_BOLD.value,
			fontsize = 14,
			foreground = colors[5],
			background = colors[1]
		),
		widget.Sep(
			linewidth = 1,
			padding = 10,
			foreground = colors[2],
			background = colors[1]
		),
		widget.WindowName(
			font = CustomFont.TEXT.value,
			fontsize = 14,
			foreground = colors[5],
			background = colors[1]
		),
		widget.Net(
			font = CustomFont.MONO.value,
			fontsize = 14,
			interface = "eno1",
			foreground = colors[2],
			background = colors[1],
			padding = 0,
		),
		widget.Sep(
			linewidth = 1,
			padding = 10,
			foreground = colors[2],
			background = colors[1]
		),
		# widget.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,
		#),
		# widget.Sep(
		#	linewidth = 1,
		#	padding = 10,
		#	foreground = colors[2],
		#	background = colors[1]
		#),
		# # do not activate in Virtualbox - will break qtile
		# widget.ThermalSensor(
		#	foreground = colors[5],
		#	foreground_alert = colors[6],
		#	background = colors[1],
		#	metric = True,
		#	padding = 3,
		#	threshold = 80
		#),

		# widget.Sep(
		#	linewidth = 1,
		#	padding = 10,
		#	foreground = colors[2],
		#	background = colors[1]
		#),
		# widget.Battery(
		#	font="Noto Sans",
		#	update_interval = 10,
		#	fontsize = 12,
		#	foreground = colors[5],
		#	background = colors[1],
		#),
		widget.TextBox(
			font = CustomFont.ICON.value,
			text = "  ",
			foreground = colors[5],
			background = colors[1],
			padding = 0,
			fontsize = 18
		),
		widget.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",
			mouse_callbacks = dict(Button1 = open_htop)
		),
		widget.Sep(
			linewidth = 1,
			padding = 10,
			foreground = colors[2],
			background = colors[1]
		),
		widget.TextBox(
			font = CustomFont.ICON.value,
			text = "  ",
			foreground = colors[4],
			background = colors[1],
			padding = 0,
			fontsize = 18
		),
		widget.Memory(
			font = CustomFont.MONO.value,
			format = '{MemUsed}M/{MemTotal}M',
			update_interval = 10,
			fontsize = 16,
			foreground = colors[5],
			background = colors[1],
			mouse_callbacks = dict(Button1 = open_taskmanager)
		),
		widget.Sep(
			linewidth = 1,
			padding = 10,
			foreground = colors[2],
			background = colors[1]
		),
		widget.TextBox(
			font = CustomFont.ICON.value,
			text ="  ",
			foreground = colors[3],
			background = colors[1],
			padding = 0,
			fontsize = 18
		),
		widget.Clock(
			font = CustomFont.MONO.value,
			foreground = colors[5],
			background = colors[1],
			fontsize = 16,
			format = "%Y-%m-%d %H:%M",
			mouse_callbacks = {'Button1': open_calendar, 'Button3': close_calendar}
		),
		widget.Sep(
			linewidth = 1,
			padding = 10,
			foreground = colors[2],
			background = colors[1]
		),
		# widget.Volume(),
		widget.LaunchBar(
			progs = [
				("  ", "xfce4-settings-manager", "Settings"),
				('  ', 'qshell:self.qtile.cmd_shutdown()', 'Logout from qtile'),
				("  ", "systemctl suspend", "Suspend"),
				("  ", "systemctl poweroff", "Power Off")
			], 
			background = colors[1],
			padding = 0
		),
		widget.Sep(
			linewidth = 1,
			padding = 10,
			foreground = colors[2],
			background = colors[1]
		),
		widget.Systray(
			background = colors[1],
			icon_size = 27,
			padding = 8
		),
		widget.Spacer(length = 8, background = colors[1])
	]
	return widgets_list
Exemple #8
0
def init_widgets_list():
    prompt = "{0}@{1}: ".format(os.environ["USER"], socket.gethostname())
    widgets_list = [
               widget.Sep(
                        linewidth = 0,
                        padding = 6,
                        foreground = colors[2],
                        background = colors[0]
                        ),
               widget.GroupBox(font="Ubuntu Bold",
                        fontsize = 9,
                        margin_y = 0,
                        margin_x = 0,
                        padding_y = 5,
                        padding_x = 5,
                        borderwidth = 1,
                        active = colors[2],
                        inactive = colors[2],
                        rounded = False,
                        highlight_method = "block",
                        this_current_screen_border = colors[5],
                        this_screen_border = colors [1],
                        other_current_screen_border = colors[0],
                        other_screen_border = colors[0],
                        foreground = colors[2],
                        background = colors[0]
                        ),
               widget.Prompt(
                        prompt=prompt,
                        font="Ubuntu Mono",
                        padding=10,
                        foreground = colors[3],
                        background = colors[1]
                        ),
               widget.Sep(
                        linewidth = 0,
                        padding = 10,
                        foreground = colors[2],
                        background = colors[0]
                        ),
               widget.WindowName(font="Ubuntu",
                        fontsize = 11,
                        foreground = colors[5],
                        background = colors[0],
                        padding = 5
                        ),
               widget.TextBox(
                        text='',
                        background = colors[0],
                        foreground = colors[5],
                        padding=0,
                        fontsize=37
                        ),
               widget.TextBox(
                        text=" [icon]",
                        foreground=colors[2],
                        background=colors[5],
                        padding = 0,
                        fontsize=14
                        ),
               widget.Net(
                        interface = "enp0s3",
                        foreground = colors[2],
                        background = colors[5],
                        padding = 5
                        ),
               widget.TextBox(
                        text='',
                        background = colors[5],
                        foreground = colors[7],
                        padding=0,
                        fontsize=37
                        ),
               widget.TextBox(
                        font="Ubuntu Bold",
                        text=" ☵",
                        padding = 5,
                        foreground=colors[2],
                        background=colors[7],
                        fontsize=14
                        ),
               widget.CurrentLayout(
                        foreground = colors[2],
                        background = colors[7],
                        padding = 5
                        ),
               widget.TextBox(
                        text='',
                        background = colors[7],
                        foreground = colors[5],
                        padding=0,
                        fontsize=37
                        ),
               widget.TextBox(
                        font="Ubuntu Bold",
                        text=" ⟳",
                        padding = 5,
                        foreground=colors[2],
                        background=colors[5],
                        fontsize=14
                        ),
               widget.CheckUpdates(
                        execute = "none",
                        update_interval = 1800,
                        foreground = colors[2],
                        background = colors[5]
                        ),
               widget.TextBox(
                        text="Updates",
                        padding = 5,
                        foreground=colors[2],
                        background=colors[5]
                        ),
               widget.TextBox(
                        text='',
                        background = colors[5],
                        foreground = colors[7],
                        padding=0,
                        fontsize=37
                        ),
               widget.Battery(
                        font="Ubuntu Bold",
                        foreground=colors[2],
                        background=colors[7],
                        fontsize=14
                        ),
              # widget.Cmus(
              #          max_chars = 40,
              #          update_interval = 0.5,
              #          background=colors[7],
              #          play_color = colors[2],
              #          noplay_color = colors[2]
              #          ),
               widget.TextBox(
                        text='',
                        background = colors[7],
                        foreground = colors[5],
                        padding=0,
                        fontsize=37
                        ),
               widget.TextBox(
                        font="Ubuntu Bold",
                        text=" [ICON]",
                        foreground=colors[2],
                        background=colors[5],
                        padding = 5,
                        fontsize=14
                        ),
               widget.Clock(
                        foreground = colors[2],
                        background = colors[5],
                        format="%A, %d %B - %H:%M"
                        ),
               widget.Sep(
                        linewidth = 0,
                        padding = 5,
                        foreground = colors[0],
                        background = colors[5]
                        ),
               widget.Systray(
                        background=colors[0],
                        padding = 5
                        ),
               widget.TextBox(
                        text='',
                        background = colors[5],
                        foreground = colors[11],
                        padding=0,
                        fontsize=37
                        ),
               widget.LaunchBar(
                        progs = [
                            (' ', '/usr/bin/light-locker-command -l', 'lock'),
                            (' 勒', 'reboot', 'restart'),
                            ('  ', 'poweroff', 'shutdown'),
                            ],
                        background = colors[11],
                        ),
              ]
    return widgets_list
Exemple #9
0
# inactive_color='ff0000',
# inactive_text ='I',
# markup        =True,
# padding       =None,
                        # ),
                
                widget.Pomodoro(),
                widget.Clock(format='%Y-%m-%d %a %I:%M %p'),
                widget.CurrentLayout(),

                widget.TextBox("qtile Vol:", name="default"),
                widget.Volume(),
		widget.LaunchBar(
		    default_icon='/usr/share/icons/oxygen/base/256x256/mimetypes/application-x-executable-script.png',
		    progs=[
		           ('qtile.pdf-Okular', 'okular /home/thinkpad/Desktop/qtile.pdf', 'qtile.pdf 읽기를 실행'),
                           ('읽기 테스트', 'espeak hi', 'espeak hi'),
		          ]
                                ),
                widget.Battery(format="{watt:.1f}W 충전{char}{percent:2.0%}"), #(format="{char}{percent:2.0%} {hour:02d}:{min:02d} {watt:.2f}W"),
                widget.Systray(),
                widget.Clipboard(),
                widget.Wlan(),
            ],
            24,
        ),
    ),
]

# Drag floating layouts.
mouse = [
                format="{char}{percent:2.0%}",
            ),
            widget.Sep(foreground="005500"),
            widget.Clock(format='%a %b %d', ),
            widget.Clock(
                format="%I:%M %p",
                fontsize=30,
            ),
            widget.Sep(foreground="005500"),
            widget.Wlan(format="", ),
            widget.LaunchBar(
                progs=[
                    ('  ', 'networkmanager_dmenu', 'menu'),
                    ('', 'polychromatic-controller', 'razer config'),
                    ('', 'pavucontrol', 'sound menu'),
                    ('', 'python3 /usr/share/slimbookbattery/preferences.pyc',
                     'slimbook preferences')
                ],
                default_icon=None,
                padding=0,
            ),
        ],
        40,
        background="000000",
    ), ),
]

# Drag floating layouts.
mouse = [
    Drag([mod],
         "Button1",
Exemple #11
0
widget_defaults = dict(
    font='Ubuntu Mono',
    fontsize=14,
    padding=3,
)

screens = [
    Screen(
        top=bar.Bar(
            [
                widget.CurrentLayout(),
                widget.TextBox('|'),
                widget.LaunchBar([
                    ('Firefox', 'firefox', 'Web browser'),
                    ('PyCharm', 'Application/pycharm-2017.1.3/bin/pycharm.sh',
                     'Editor'),
                ]),
                widget.TextBox('|'),
                widget.Prompt(),
                widget.Spacer(),
                widget.Systray(),
                widget.TextBox('|'),
                #widget.TaskList(),
                widget.Volume(),
                widget.TextBox('|'),
                widget.Clock(format='%d-%m-%Y %a %H:%M %p'),
            ],
            25,
            background=["#042a2b"],
        ),
Exemple #12
0
                widget.MemoryGraph(fill_color='e99814', graph_color='e99814'),
                widget.sep.Sep(foreground='7b5830'), #add separator bars where deemed necessary
                widget.CurrentLayoutIcon(),
                widget.sep.Sep(foreground='7b5830'), #add separator bars where deemed necessary
                widget.Volume(emoji=True),
                widget.Volume(),
                widget.sep.Sep(foreground='7b5830'),
#                widget.Wlan(),
                widget.sep.Sep(foreground='7b5830'),
                widget.BatteryIcon(),
                widget.Battery(),
                widget.sep.Sep(foreground='7b5830'), #add separator bars where deemed necessary
                widget.Clock(format='%Y-%m-%d %a %H:%M:%S'),
                widget.sep.Sep(foreground='7b5830'), #add separator bars where deemed necessary
                widget.LaunchBar(progs=[
                    ('firefox', 'firefox', 'inicio de firefox'),
                    ('poweroff', 'systemctl poweroff', 'Poweroff')
                    ], default_icon='/usr/share/icons/Adwaita/24x24/actions/system-shutdown.png'),
            ],
            24,
        ),
    ),
]

# Drag floating layouts.
mouse = [
    Drag([mod], "Button1", lazy.window.set_position_floating(),
         start=lazy.window.get_position()),
    Drag([mod], "Button3", lazy.window.set_size_floating(),
         start=lazy.window.get_size()),
    Click([mod], "Button2", lazy.window.bring_to_front())
]
Exemple #13
0
class Stretcher(base._TextBox):
    orientations = base.ORIENTATION_HORIZONTAL

    def __init__(self, width=bar.STRETCH, **config):
        base._TextBox.__init__(self, width=width, **config)
        self.add_defaults(AppName.defaults)


dock = bar.Bar(
    [
        widget.LaunchBar(
            [('thunderbird', 'thunderbird', 'launch thunderbird'),
             ("firefox", "firefox", "launch firefox"),
             ("visual-studio-code", "code", "launch vscode"),
             ("spotify",
              "env LD_PRELOAD=/usr/lib/spotify-adblock.so spotify %U",
              "launch spotify"),
             ("com.slack.Slack", "com.slack.Slack", "launch slack"),
             ("com.discordapp.Discord", "com.discordapp.Discord",
              "launch discord"), ("chromium", "chromium", "launch chromium")],
            padding=7,
        ),
        widget.Sep(foreground=colors[7][0] + "50", padding=20),
        widget.TaskList(
            borderwidth=0,
            max_title_width=0,
            markup_normal="",
            markup_floating="",
            markup_maximixed="",
            markup_focused="",
            markup_minimized="",
            padding=3,