Changes

Jump to: navigation, search

Package:Qtile

2,032 bytes added, 5 years ago
Added "Customize bars" section
=== Customize bars ===
The first thing you might want to customize is the bottom bar on the first screen. Here is the default code: {{file|name=~/.config/qtile/config.py|lang=python|body=screens = [ Screen( bottom=bar.Bar( [ widget.GroupBox(), widget.Prompt(), widget.WindowName(), widget.TextBox("default config", name="default"), widget.Systray(), widget.Clock(format='%Y-%m-%d %a %I:%M %p'Coming soon), ], 30, ), ),]}} If you want this bar to be on top, replace {{c|bottom<nowiki>=</nowiki>bar.Bar(}} by {{c|top<nowiki>=</nowiki>bar.Bar(}}. Of course, you can have a bar on top and on bottom. Just specify both {{c|top}} and {{c|bottom}} as {{c|Screen}} keyword arguments. You can also place bars on the left or on the right, using Screen's {{c|left}} and {{c|right}} keyword arguments. The first argument of {{c|bar.Bar()}} is a list of widgets (we'll talk about it later). The second argument is the thickness of the bar in pixels. If you have multiple screens and want bars on both screens, you must de define multiple Screen instances. ==== Example ==== {{file|name=~/.config/qtile/config.py|lang=python|body=screens = [ Screen( bottom=bar.Bar( [ widget.GroupBox(), widget.Prompt(), widget.WindowName(), widget.TextBox("I am a 30px height bottom bar", name="default"), widget.Systray(), widget.Clock(format='%Y-%m-%d %a %I:%M %p'), ], 30, ), ), Screen( top=bar.Bar( [ widget.WindowName(), widget.TextBox("I am a 24px height top bar", name="default"), ], 24, ), right=bar.Bar( [ widget.TextBox("I am a 50px width right bar", name="default"), widget.Systray(), ], 50, ), ),]}}
=== Customize workspaces ===
wiki-staff
336
edits

Navigation menu