From 82898eacff6d29d6ee9f87c11aeb187ed7437d1a Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Fri, 21 Jun 2024 23:44:08 +0200 Subject: [PATCH] Customize wibar --- rc.lua | 17 ++++++++++++++--- themes/default/theme.lua | 8 ++++---- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/rc.lua b/rc.lua index 6485321..b099077 100644 --- a/rc.lua +++ b/rc.lua @@ -258,17 +258,28 @@ awful.screen.connect_for_each_screen(function(s) s.mytasklist = awful.widget.tasklist(s, awful.widget.tasklist.filter.currenttags, tasklist_buttons) -- Create the wibox - s.mywibox = awful.wibar({ position = "top", screen = s, height = 20 }) + local wibar_width = s.geometry.width / 3 + local wibar_height = 20 + s.mywibox = wibox({ + x = s.geometry.width - wibar_width, + y = s.geometry.height - wibar_height, + width = wibar_width, + height = wibar_height, + expand = true, + visible = true, + ontop = true, + screen = s, + }) s.textclock = awful.widget.textclock(" %a %d %b %H:%M ") - calendar({}):attach(s.textclock) + calendar({position = "bottom_right"}):attach(s.textclock) -- Add widgets to the wibox s.mywibox:setup { layout = wibox.layout.align.horizontal, { -- Left widgets layout = wibox.layout.fixed.horizontal, - mylauncher, + -- mylauncher, s.mytaglist, s.mypromptbox, }, diff --git a/themes/default/theme.lua b/themes/default/theme.lua index 19a46ca..5d927c9 100644 --- a/themes/default/theme.lua +++ b/themes/default/theme.lua @@ -6,10 +6,10 @@ local theme = {} theme.font = "sans 8" -theme.bg_normal = "#22222200" -theme.bg_focus = "#535d6c00" -theme.bg_urgent = "#ff000000" -theme.bg_minimize = "#44444400" +theme.bg_normal = "#22222299" +theme.bg_focus = "#535d6c99" +theme.bg_urgent = "#ff000099" +theme.bg_minimize = "#44444499" theme.bg_systray = theme.bg_normal theme.fg_normal = "#cccccc"