From 5727e29795390cf1853748b3bb0c023c506c96f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Pankowski?= Date: Fri, 8 Oct 2021 22:50:09 +0200 Subject: [PATCH] qtile: bar colors for multicreen mode --- alacritty/.config/alacritty/alacritty.yml | 2 +- qtile/.config/qtile/colors.py | 12 ++++++++++++ qtile/.config/qtile/config.py | 3 ++- qtile/.config/qtile/themes.py | 13 +++++++++---- 4 files changed, 24 insertions(+), 6 deletions(-) diff --git a/alacritty/.config/alacritty/alacritty.yml b/alacritty/.config/alacritty/alacritty.yml index 7fd9787..72b3cd1 100644 --- a/alacritty/.config/alacritty/alacritty.yml +++ b/alacritty/.config/alacritty/alacritty.yml @@ -89,7 +89,7 @@ schemas: white: '#fafafa' bright: *bright-colors -colors: *lupan-dark +colors: *lupan-material-dark font: size: 12 diff --git a/qtile/.config/qtile/colors.py b/qtile/.config/qtile/colors.py index ce703cd..890093f 100644 --- a/qtile/.config/qtile/colors.py +++ b/qtile/.config/qtile/colors.py @@ -1,6 +1,18 @@ # Selected colors from https://windicss.org/utilities/colors.html colors = { + "light-blue": { + 50: "#f0f9ff", + 100: "#e0f2fe", + 200: "#bae6fd", + 300: "#7dd3fc", + 400: "#38bdf8", + 500: "#0ea5e9", + 600: "#0284c7", + 700: "#0369a1", + 800: "#075985", + 900: "#0c4a6e", + }, "indigo": { 50: "#eef2ff", 100: "#e0e7ff", diff --git a/qtile/.config/qtile/config.py b/qtile/.config/qtile/config.py index 6af42e8..03af106 100644 --- a/qtile/.config/qtile/config.py +++ b/qtile/.config/qtile/config.py @@ -34,7 +34,8 @@ def createBar(): widget.GroupBox(highlight_method='block', padding_y=10, active=theme["foreground"], - **subtheme("inactive", "this_current_screen_border")), + **subtheme("inactive", "this_current_screen_border", "this_screen_border", + "other_current_screen_border", "other_screen_border")), widget.Spacer(15), widget.WindowName(), widget.Spacer(), diff --git a/qtile/.config/qtile/themes.py b/qtile/.config/qtile/themes.py index fe32994..8df96b1 100644 --- a/qtile/.config/qtile/themes.py +++ b/qtile/.config/qtile/themes.py @@ -23,14 +23,19 @@ def light_dark(light, dark): def toggle_theme(qtile): write_theme(light_dark("dark", "light")) +background = light_dark([colors["blue-gray"][200], colors["blue-gray"][300]], + [colors["blue-gray"][700], colors["blue-gray"][800]]) theme = dict( root_background=light_dark(colors["blue-gray"][300], colors["blue-gray"][700]), - background=light_dark([colors["blue-gray"][200], colors["blue-gray"][300]], - [colors["blue-gray"][700], colors["blue-gray"][800]]), + background=background, foreground=light_dark(colors["blue-gray"][600], colors["blue-gray"][400]), inactive=light_dark(colors["blue-gray"][400], colors["blue-gray"][500]), - this_current_screen_border=light_dark([colors["blue-gray"][50], colors["blue-gray"][200]], - [colors["blue-gray"][600], colors["blue-gray"][700]]), + this_current_screen_border=light_dark([colors["light-blue"][200], colors["light-blue"][300]], + [colors["light-blue"][800], colors["light-blue"][900]]), + this_screen_border=light_dark([colors["blue-gray"][300], colors["blue-gray"][400]], + [colors["blue-gray"][600], colors["blue-gray"][700]]), + other_current_screen_border=background, + other_screen_border=background, border_focus=light_dark(colors["indigo"][400], colors["blue-gray"][500]), border_normal=light_dark(colors["indigo"][900], colors["blue-gray"][800]), alacritty_theme=light_dark("lupan-material-light", "lupan-material-dark"),