Customize wibar

This commit is contained in:
Thomas Forgione 2024-06-21 23:44:08 +02:00
parent b73008c860
commit 82898eacff
2 changed files with 18 additions and 7 deletions

17
rc.lua
View File

@ -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) s.mytasklist = awful.widget.tasklist(s, awful.widget.tasklist.filter.currenttags, tasklist_buttons)
-- Create the wibox -- 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 ") 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 -- Add widgets to the wibox
s.mywibox:setup { s.mywibox:setup {
layout = wibox.layout.align.horizontal, layout = wibox.layout.align.horizontal,
{ -- Left widgets { -- Left widgets
layout = wibox.layout.fixed.horizontal, layout = wibox.layout.fixed.horizontal,
mylauncher, -- mylauncher,
s.mytaglist, s.mytaglist,
s.mypromptbox, s.mypromptbox,
}, },

View File

@ -6,10 +6,10 @@ local theme = {}
theme.font = "sans 8" theme.font = "sans 8"
theme.bg_normal = "#22222200" theme.bg_normal = "#22222299"
theme.bg_focus = "#535d6c00" theme.bg_focus = "#535d6c99"
theme.bg_urgent = "#ff000000" theme.bg_urgent = "#ff000099"
theme.bg_minimize = "#44444400" theme.bg_minimize = "#44444499"
theme.bg_systray = theme.bg_normal theme.bg_systray = theme.bg_normal
theme.fg_normal = "#cccccc" theme.fg_normal = "#cccccc"