From 4f4dc864a1df2f2d6b7a2b9daba4d2425d06a2b1 Mon Sep 17 00:00:00 2001 From: David Runge Date: Mon, 16 May 2016 19:31:51 +0200 Subject: .config/qtile/config.py: Adding further definitions for the layouts (border color, etc.), a workspace called photo for GIMP and Shotwell and comments. --- .config/qtile/config.py | 73 +++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 65 insertions(+), 8 deletions(-) (limited to '.config') diff --git a/.config/qtile/config.py b/.config/qtile/config.py index 34d0921..78c9176 100644 --- a/.config/qtile/config.py +++ b/.config/qtile/config.py @@ -123,6 +123,7 @@ keys = [ Key([mod, "control"], "l", lazy.layout.grow_right()), # toggle current window to be splitting current group in half Key([mod], "s", lazy.layout.toggle_split()), + # normalize the layout Key([mod], "n", lazy.layout.normalize()), ] @@ -171,6 +172,12 @@ matchers = { "Ardour", ]) ], + 'photo': [ + Match(wm_class=[ + re.compile('Shotwell'), + re.compile('Gimp'), + ]) + ], } workspaces = [ @@ -179,7 +186,7 @@ workspaces = [ {"key": "3", "name": "dev", "matches": matchers["dev"]}, {"key": "4", "name": "games", "matches": matchers["games"]}, {"key": "5", "name": "audio", "matches": matchers["audio"]}, - {"key": "6", "name": "6"}, + {"key": "6", "name": "photo", "matches": matchers["photo"]}, {"key": "7", "name": "7"}, {"key": "8", "name": "8"}, {"key": "9", "name": "9"}, @@ -199,11 +206,43 @@ for workspace in workspaces: )) layouts = [ - layout.Columns(), - layout.VerticalTile(), - layout.Matrix(), + layout.Columns( + border_focus=colors["red"][1:], + border_normal=colors["green"][1:], + margin=1, + ), + layout.TreeTab( + active_bg=colors["red"][1:], + #active_fg=colors["grey"][1:], + active_fg='ffffff', + inactive_bg=colors["green"][1:], + #inactive_fg=colors["lgrey"][1:], + inactive_fg='ffffff', + border_focus=colors["red"][1:], + border_normal=colors["green"][1:], + font='Monospace', + fontsize=14, + margin_left=0, + padding_left=0, + panel_width=100, + previous_on_rm=True, + ), + layout.Stack( + border_focus=colors["red"][1:], + border_normal=colors["green"][1:], + margin=1, + ), layout.Max(), - layout.TreeTab(), + layout.VerticalTile( + border_focus=colors["red"][1:], + border_normal=colors["green"][1:], + margin=1, + ), + layout.Matrix( + border_focus=colors["red"][1:], + border_normal=colors["green"][1:], + margin=1, + ), layout.Zoomy(), ] @@ -237,9 +276,27 @@ screens = [ fmt_playing="%a [%A] %t [%v%%]", ), widget.Sep(), - widget.HDDGraph(), - widget.MemoryGraph(), - widget.CPUGraph(), + widget.HDDGraph( + graph_color=colors["blue"], + border_width=0, + samples=60, + frequency=5, + type="box", + ), + widget.MemoryGraph( + graph_color=colors["green"], + border_width=0, + samples=60, + frequency=2, + type="box", + ), + widget.CPUGraph( + graph_color=colors["red"], + border_width=0, + samples=60, + frequency=2, + type="box", + ), widget.Battery(), widget.Sep(), widget.Systray(), -- cgit v1.2.3-54-g00ecf