Added tasklisk, made network info less jumpy

This commit is contained in:
Mutzi 2023-01-24 00:52:50 +01:00
parent 58d2046ff9
commit 87e209f237

View File

@ -91,6 +91,15 @@ theme.titlebar_maximized_button_focus_inactive = theme.confdir .. '/icons/titleb
theme.titlebar_maximized_button_normal_active = theme.confdir .. '/icons/titlebar/maximized_normal_active.png' theme.titlebar_maximized_button_normal_active = theme.confdir .. '/icons/titlebar/maximized_normal_active.png'
theme.titlebar_maximized_button_focus_active = theme.confdir .. '/icons/titlebar/maximized_focus_active.png' theme.titlebar_maximized_button_focus_active = theme.confdir .. '/icons/titlebar/maximized_focus_active.png'
theme.tasklist_fg_normal = '#555555'
theme.tasklist_bg_normal = '#5bcdc2'
theme.tasklist_fg_focus = '#111111'
theme.tasklist_bg_focus = '#5bcdab'
theme.tasklist_fg_urgent = '#c1cd5b'
theme.tasklist_bg_urgent = '#cd5b66'
theme.tasklist_fg_minimize = '#99aaff'
theme.tasklist_bg_minimize = '#5c7875'
local markup = lain.util.markup local markup = lain.util.markup
-- Textclock -- Textclock
@ -282,7 +291,37 @@ function theme.at_screen_connect(s)
s.mytaglist = awful.widget.taglist(s, awful.widget.taglist.filter.all, awful.util.taglist_buttons) s.mytaglist = awful.widget.taglist(s, awful.widget.taglist.filter.all, awful.util.taglist_buttons)
-- Create a tasklist widget -- Create a tasklist widget
s.mytasklist = awful.widget.tasklist(s, awful.widget.tasklist.filter.currenttags, awful.util.tasklist_buttons) s.mytasklist = awful.widget.tasklist({
screen = s,
filter = awful.widget.tasklist.filter.currenttags,
buttons = awful.util.tasklist_buttons,
style = {
shape_focus = function(cr, w, h)
gears.shape.partially_rounded_rect(cr, w, h, false, true, false, true, 10)
end,
shape = function(cr, w, h)
gears.shape.partially_rounded_rect(cr, w, h, true, false, true, false, 10)
end,
},
layout = {
spacing = 5,
layout = wibox.layout.flex.horizontal,
},
widget_template = {
{
{
id = 'text_role',
widget = wibox.widget.textbox,
},
left = 10,
right = 10,
widget = wibox.container.margin,
},
id = 'background_role',
widget = wibox.container.background,
},
})
s.mytasklist = wibox.container.margin(s.mytasklist, 20, 20, 1, 1)
-- Create the wibox -- Create the wibox
s.mywibox = s.mywibox =
@ -299,17 +338,29 @@ function theme.at_screen_connect(s)
--mpdicon, --mpdicon,
--theme.mpd.widget, --theme.mpd.widget,
}, },
--s.mytasklist, -- Middle widget s.mytasklist, -- Middle widget
nil, --nil,
{ -- Right widgets { -- Right widgets
layout = wibox.layout.fixed.horizontal, layout = wibox.layout.fixed.horizontal,
wibox.widget.systray(), wibox.widget.systray(),
--mailicon, --mailicon,
--theme.mail.widget, --theme.mail.widget,
{
{
{
layout = wibox.layout.fixed.horizontal,
netdownicon, netdownicon,
netdowninfo, netdowninfo,
netupicon, netupicon,
netupinfo.widget, netupinfo.widget,
},
halign = 'right',
widget = wibox.container.place,
},
width = 120,
strategy = 'exact',
layout = wibox.layout.constraint,
},
volicon, volicon,
theme.volume.widget, theme.volume.widget,
memicon, memicon,