moved to personal fennel config for awesome and added qutebrowser
This commit is contained in:
parent
403cb92b7d
commit
688748f8a6
502 changed files with 8576 additions and 9597 deletions
74
awes2/layout/left-panel/action-bar.lua
Executable file
74
awes2/layout/left-panel/action-bar.lua
Executable file
|
@ -0,0 +1,74 @@
|
|||
local awful = require('awful')
|
||||
local beautiful = require('beautiful')
|
||||
local wibox = require('wibox')
|
||||
local gears = require('gears')
|
||||
|
||||
local dpi = beautiful.xresources.apply_dpi
|
||||
local icons = require('theme.icons')
|
||||
|
||||
local tag_list = require('widget.tag-list')
|
||||
local clickable_container = require('widget.clickable-container')
|
||||
|
||||
return function(s, panel, action_bar_width)
|
||||
|
||||
local menu_icon = wibox.widget {
|
||||
{
|
||||
id = 'menu_btn',
|
||||
image = icons.menu,
|
||||
resize = true,
|
||||
widget = wibox.widget.imagebox
|
||||
},
|
||||
margins = dpi(10),
|
||||
widget = wibox.container.margin
|
||||
}
|
||||
|
||||
local home_button = wibox.widget {
|
||||
{
|
||||
menu_icon,
|
||||
widget = clickable_container
|
||||
},
|
||||
bg = beautiful.background .. '66',
|
||||
widget = wibox.container.background
|
||||
}
|
||||
|
||||
home_button:buttons(
|
||||
gears.table.join(
|
||||
awful.button(
|
||||
{},
|
||||
1,
|
||||
nil,
|
||||
function()
|
||||
panel:toggle()
|
||||
end
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
panel:connect_signal(
|
||||
'opened',
|
||||
function()
|
||||
menu_icon.menu_btn:set_image(gears.surface(icons.close_small))
|
||||
end
|
||||
)
|
||||
|
||||
panel:connect_signal(
|
||||
'closed',
|
||||
function()
|
||||
menu_icon.menu_btn:set_image(gears.surface(icons.menu))
|
||||
end
|
||||
)
|
||||
|
||||
return wibox.widget {
|
||||
id = 'action_bar',
|
||||
layout = wibox.layout.align.vertical,
|
||||
forced_width = action_bar_width,
|
||||
{
|
||||
require('widget.search-apps')(),
|
||||
tag_list(s),
|
||||
require("widget.xdg-folders"),
|
||||
layout = wibox.layout.fixed.vertical,
|
||||
},
|
||||
nil,
|
||||
home_button
|
||||
}
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue