From f22b49a46704d7270908dab30e44dbc6485d9023 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Av=C3=A9?= Date: Thu, 21 Jul 2022 23:26:42 +0200 Subject: [PATCH] Move the time to the top right --- awesome/components/pastel/top-panel.lua | 9 +++++---- awesome/theme.lua | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/awesome/components/pastel/top-panel.lua b/awesome/components/pastel/top-panel.lua index f79c95d..7788819 100644 --- a/awesome/components/pastel/top-panel.lua +++ b/awesome/components/pastel/top-panel.lua @@ -62,7 +62,7 @@ local updates_indicator = wibox.widget{ { widget = awful.widget.watch('bash -c "checkupdates | wc -l"', 360), }, - top = 0, bottom = 0, left = 0, right = 0, + top = 0, bottom = 2, left = 0, right = 0, widget = wibox.container.margin }, { @@ -71,7 +71,7 @@ local updates_indicator = wibox.widget{ forced_width = 18, widget = wibox.widget.imagebox, }, - top = 7, bottom = 0, left = 5, right = 0, + top = 5, bottom = 0, left = 5, right = 0, widget = wibox.container.margin } }, @@ -120,7 +120,7 @@ top_panel.create = function(s) expand = "none", layout = wibox.layout.align.horizontal, task_lists, - wibox.widget.textclock('%a %b %d, %H:%M:%S', 1), + wibox.widget{}, { layout = wibox.layout.fixed.horizontal, pl(wibox.widget{}, theme.bg_normal .. "00", theme.top_panel_powerline), @@ -131,7 +131,8 @@ top_panel.create = function(s) pl(cpu_widget, theme.top_panel_powerline, theme.bg_normal), pl(frequency_widget, theme.bg_normal, theme.top_panel_powerline), pl(awful.widget.watch('bash -c "sensors | grep Tctl | cut -f 10 -d \' \' | cut -c 2-"', 5), theme.top_panel_powerline, theme.bg_normal), - pl(require("widgets.layout-box"), theme.bg_normal, theme.bg_normal), + pl(require("widgets.layout-box"), theme.bg_normal, theme.top_panel_powerline), + pl(wibox.widget.textclock('%a %b %d, %H:%M:%S', 1), theme.top_panel_powerline, theme.top_panel_powerline), } } diff --git a/awesome/theme.lua b/awesome/theme.lua index 232ec00..88b419f 100644 --- a/awesome/theme.lua +++ b/awesome/theme.lua @@ -72,7 +72,7 @@ theme.tasklist_fg_normal = theme.fg_normal -- Panel Sizing theme.top_panel_height = dpi(32) -theme.top_panel_powerline = "#3480eb" +theme.top_panel_powerline = "#002F5F" -- Notification Sizing theme.notification_max_width = dpi(350)