Увидели сообщение с непонятной ссылкой, спам, непристойность или оскорбление?Воспользуйтесь ссылкой «Сообщить модератору» рядом с сообщением!
0 Пользователей и 1 Гость просматривают эту тему.
-- {{{ Wibox-- Create a textclock widgetmytextclock = awful.widget.textclock()-- Create a wibox for each screen and add it-- Create a wibox for each screen and add ittop_wibox = { }bottom_wibox = { }mypromptbox = {}mylayoutbox = {}mytaglist = {}mytaglist.buttons = awful.util.table.join( awful.button({ }, 1, awful.tag.viewonly), awful.button({ modkey }, 1, awful.client.movetotag), awful.button({ }, 3, awful.tag.viewtoggle), awful.button({ modkey }, 3, awful.client.toggletag), awful.button({ }, 4, function(t) awful.tag.viewnext(awful.tag.getscreen(t)) end), awful.button({ }, 5, function(t) awful.tag.viewprev(awful.tag.getscreen(t)) end) )mytasklist = {}mytasklist.buttons = awful.util.table.join( awful.button({ }, 1, function (c) if c == client.focus then c.minimized = true else -- Without this, the following -- :isvisible() makes no sense c.minimized = false if not c:isvisible() then awful.tag.viewonly(c:tags()[1]) end -- This will also un-minimize -- the client, if needed client.focus = c c:raise() end end), awful.button({ }, 2, function (c) c:kill() end), awful.button({ }, 3, function () if instance then instance:hide() instance = nil else instance = awful.menu.clients({ width=250 }) end end), awful.button({ }, 4, function () awful.client.focus.byidx(1) if client.focus then client.focus:raise() end end), awful.button({ }, 5, function () awful.client.focus.byidx(-1) if client.focus then client.focus:raise() end end))for s = 1, screen.count() do -- Create a promptbox for each screen mypromptbox[s] = awful.widget.prompt() -- Create an imagebox widget which will contains an icon indicating which layout we're using. -- We need one layoutbox per screen. mylayoutbox[s] = awful.widget.layoutbox(s) -- Create a taglist widget mytaglist[s] = awful.widget.taglist(s, awful.widget.taglist.filter.all, mytaglist.buttons) -- Create a tasklist widget mytasklist[s] = awful.widget.tasklist(s, awful.widget.tasklist.filter.currenttags, mytasklist.buttons) -- Отступ-- mystatusbar = awful.wibox({ position = "bottom", screen = 1, ontop = false, width = 1, height = 22 })top_wibox[s] = awful.wibox ({ position = "top", screen = s, border_width = 0, height = 22 }) -- Widgets that are aligned to the left local top_left_layout = wibox.layout.fixed.horizontal()-- left_layout:add(mylauncher) top_left_layout:add(mylayoutbox[s]) top_left_layout:add(mytaglist[s]) top_left_layout:add(mypromptbox[s]) -- Widgets that are aligned to the right local top_right_layout = wibox.layout.fixed.horizontal() if s == 1 then top_right_layout:add(wibox.widget.systray()) end -- Now bring it all together (with the tasklist in the middle) local layout = wibox.layout.align.horizontal() layout:set_left(top_left_layout) layout:set_middle(mytasklist[s]) layout:set_right(top_right_layout) top_wibox[s]:set_widget(top_wibow_layout) bottom_wibox[s] = awful.wibox ({ position = "bottom", screen = s, border_width = 0, height = 22 }) -- Widgets that are aligned to the left local down_left_layout = wibox.layout.fixed.horizontal()-- left_layout:add(mylauncher) down_left_layout:add(mylayoutbox[s]) down_left_layout:add(mytaglist[s]) down_left_layout:add(mypromptbox[s]) -- Widgets that are aligned to the right local down_right_layout = wibox.layout.fixed.horizontal() if s == 1 then down_right_layout:add(wibox.widget.systray()) end -- Now bring it all together (with the tasklist in the middle) local down_layout = wibox.layout.align.horizontal() down_layout:set_left(down_left_layout) down_layout:set_right(down_right_layout) bottom_wibox:set_widget(down_layout)end-- }}}
Страница сгенерирована за 0.104 секунд. Запросов: 23.