a
This commit is contained in:
parent
529d55e239
commit
7932d087ea
|
@ -76,18 +76,8 @@ menubar.utils.terminal = terminal -- Set the terminal for applications that requ
|
||||||
-- Table of layouts to cover with awful.layout.inc, order matters.
|
-- Table of layouts to cover with awful.layout.inc, order matters.
|
||||||
tag.connect_signal("request::default_layouts", function()
|
tag.connect_signal("request::default_layouts", function()
|
||||||
awful.layout.append_default_layouts({
|
awful.layout.append_default_layouts({
|
||||||
-- awful.layout.suit.floating,
|
|
||||||
awful.layout.suit.tile,
|
awful.layout.suit.tile,
|
||||||
-- awful.layout.suit.tile.left,
|
|
||||||
-- awful.layout.suit.tile.bottom,
|
|
||||||
-- awful.layout.suit.tile.top,
|
|
||||||
-- awful.layout.suit.fair,
|
|
||||||
-- awful.layout.suit.fair.horizontal,
|
|
||||||
-- awful.layout.suit.spiral,
|
|
||||||
awful.layout.suit.spiral.dwindle,
|
awful.layout.suit.spiral.dwindle,
|
||||||
-- awful.layout.suit.max,
|
|
||||||
-- awful.layout.suit.max.fullscreen,
|
|
||||||
-- awful.layout.suit.magnifier,
|
|
||||||
awful.layout.suit.corner.nw,
|
awful.layout.suit.corner.nw,
|
||||||
})
|
})
|
||||||
end)
|
end)
|
||||||
|
@ -115,9 +105,6 @@ end)
|
||||||
|
|
||||||
-- {{{ Wibar
|
-- {{{ Wibar
|
||||||
|
|
||||||
-- Keyboard map indicator and switcher
|
|
||||||
mykeyboardlayout = awful.widget.keyboardlayout()
|
|
||||||
|
|
||||||
-- Create a textclock widget
|
-- Create a textclock widget
|
||||||
mytextclock = wibox.widget.textclock()
|
mytextclock = wibox.widget.textclock()
|
||||||
|
|
||||||
|
@ -162,42 +149,49 @@ screen.connect_signal("request::desktop_decoration", function(s)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Create a tasklist widget
|
-- Create the top wibox
|
||||||
s.mytasklist = awful.widget.tasklist {
|
s.top_panel = awful.wibar {
|
||||||
screen = s,
|
|
||||||
filter = awful.widget.tasklist.filter.currenttags,
|
|
||||||
buttons = {
|
|
||||||
awful.button({ }, 1, function (c)
|
|
||||||
c:activate { context = "tasklist", action = "toggle_minimization" }
|
|
||||||
end),
|
|
||||||
awful.button({ }, 3, function() awful.menu.client_list { theme = { width = 250 } } end),
|
|
||||||
awful.button({ }, 4, function() awful.client.focus.byidx(-1) end),
|
|
||||||
awful.button({ }, 5, function() awful.client.focus.byidx( 1) end),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
-- Create the wibox
|
|
||||||
s.mywibox = awful.wibar {
|
|
||||||
position = "top",
|
position = "top",
|
||||||
screen = s,
|
screen = s,
|
||||||
widget = {
|
widget = {
|
||||||
layout = wibox.layout.align.horizontal,
|
|
||||||
{ -- Left widgets
|
{ -- Left widgets
|
||||||
layout = wibox.layout.fixed.horizontal,
|
|
||||||
mylauncher,
|
mylauncher,
|
||||||
s.mytaglist,
|
s.mytaglist,
|
||||||
s.mypromptbox,
|
s.mypromptbox,
|
||||||
},
|
|
||||||
s.mytasklist, -- Middle widget
|
|
||||||
{ -- Right widgets
|
|
||||||
layout = wibox.layout.fixed.horizontal,
|
layout = wibox.layout.fixed.horizontal,
|
||||||
mykeyboardlayout,
|
},
|
||||||
wibox.widget.systray(),
|
{
|
||||||
|
-- Middle widget
|
||||||
|
layout = wibox.layout.fixed.horizontal,
|
||||||
|
},
|
||||||
|
{ -- Right widgets
|
||||||
mytextclock,
|
mytextclock,
|
||||||
s.mylayoutbox,
|
s.mylayoutbox,
|
||||||
|
layout = wibox.layout.fixed.horizontal,
|
||||||
},
|
},
|
||||||
|
layout = wibox.layout.align.horizontal,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
--
|
||||||
|
|
||||||
|
-- Create the bottom wibox
|
||||||
|
s.bottom_panel = awful.wibar {
|
||||||
|
position = "bottom",
|
||||||
|
screen = s,
|
||||||
|
widget = {
|
||||||
|
{
|
||||||
|
layout = wibox.layout.fixed.horizontal,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
layout = wibox.layout.fixed.horizontal,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
layout = wibox.layout.fixed.horizontal,
|
||||||
|
},
|
||||||
|
layout = wibox.layout.align.horizontal,
|
||||||
|
}
|
||||||
|
}
|
||||||
end)
|
end)
|
||||||
|
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
Loading…
Reference in a new issue