picom, mpv, tridactyl, and new transmission script
This commit is contained in:
parent
d36ce8b8b9
commit
907dc10bad
7 changed files with 298 additions and 291 deletions
298
awesome/rc.lua
298
awesome/rc.lua
|
@ -147,168 +147,168 @@ end
|
|||
screen.connect_signal("property::geometry", set_wallpaper)
|
||||
|
||||
|
||||
awful.screen.connect_for_each_screen(function(s)
|
||||
-- Wallpaper
|
||||
set_wallpaper(s)
|
||||
-- awful.screen.connect_for_each_screen(function(s)
|
||||
-- -- Wallpaper
|
||||
-- set_wallpaper(s)
|
||||
|
||||
-- Each screen has its own tag table.
|
||||
awful.tag({ " ", " ", " ", " "}, s, awful.layout.layouts[1])
|
||||
-- -- Each screen has its own tag table.
|
||||
-- awful.tag({ " ", " ", " ", " "}, s, awful.layout.layouts[1])
|
||||
|
||||
s.padding = {
|
||||
bottom = dpi(20)
|
||||
}
|
||||
-- s.padding = {
|
||||
-- bottom = dpi(20)
|
||||
-- }
|
||||
|
||||
yoffset = dpi(45)
|
||||
xoffset = dpi(18)
|
||||
-- yoffset = dpi(45)
|
||||
-- xoffset = dpi(18)
|
||||
|
||||
mypanel = wibox
|
||||
({
|
||||
x = s.geometry.x + xoffset,
|
||||
y = s.geometry.height - yoffset,
|
||||
height = dpi(30),
|
||||
width = s.geometry.width - (xoffset * 2),
|
||||
ontop = false,
|
||||
stretch = false,
|
||||
type = "dock",
|
||||
screen = s,
|
||||
shape = gears.shape.rounded_bar,
|
||||
bg = beautiful.bg_normal,
|
||||
fg = beautiful.fg_normal,
|
||||
opacity = 0.65,
|
||||
})
|
||||
-- mypanel = wibox
|
||||
-- ({
|
||||
-- x = s.geometry.x + xoffset,
|
||||
-- y = s.geometry.height - yoffset,
|
||||
-- height = dpi(30),
|
||||
-- width = s.geometry.width - (xoffset * 2),
|
||||
-- ontop = false,
|
||||
-- stretch = false,
|
||||
-- type = "dock",
|
||||
-- screen = s,
|
||||
-- shape = gears.shape.rounded_bar,
|
||||
-- bg = beautiful.bg_normal,
|
||||
-- fg = beautiful.fg_normal,
|
||||
-- opacity = 0.65,
|
||||
-- })
|
||||
|
||||
mypanel:struts {
|
||||
bottom = dpi(40)
|
||||
}
|
||||
-- mypanel:struts {
|
||||
-- bottom = dpi(40)
|
||||
-- }
|
||||
|
||||
-- Create a promptbox for each screen
|
||||
s.mypromptbox = awful.widget.prompt()
|
||||
-- Create an imagebox widget which will contain an icon indicating which layout we're using.
|
||||
-- We need one layoutbox per screen.
|
||||
s.mylayoutbox = awful.widget.layoutbox(s)
|
||||
s.mylayoutbox:buttons(gears.table.join(
|
||||
awful.button({ }, 1, function () awful.layout.inc( 1) end),
|
||||
awful.button({ }, 3, function () awful.layout.inc(-1) end),
|
||||
awful.button({ }, 4, function () awful.layout.inc( 1) end),
|
||||
awful.button({ }, 5, function () awful.layout.inc(-1) end)))
|
||||
-- Create a taglist widget
|
||||
s.mytaglist = awful.widget.taglist {
|
||||
screen = s,
|
||||
filter = awful.widget.taglist.filter.all,
|
||||
buttons = taglist_buttons
|
||||
}
|
||||
-- -- Create a promptbox for each screen
|
||||
-- s.mypromptbox = awful.widget.prompt()
|
||||
-- -- Create an imagebox widget which will contain an icon indicating which layout we're using.
|
||||
-- -- We need one layoutbox per screen.
|
||||
-- s.mylayoutbox = awful.widget.layoutbox(s)
|
||||
-- s.mylayoutbox:buttons(gears.table.join(
|
||||
-- awful.button({ }, 1, function () awful.layout.inc( 1) end),
|
||||
-- awful.button({ }, 3, function () awful.layout.inc(-1) end),
|
||||
-- awful.button({ }, 4, function () awful.layout.inc( 1) end),
|
||||
-- awful.button({ }, 5, function () awful.layout.inc(-1) end)))
|
||||
-- -- Create a taglist widget
|
||||
-- s.mytaglist = awful.widget.taglist {
|
||||
-- screen = s,
|
||||
-- filter = awful.widget.taglist.filter.all,
|
||||
-- buttons = taglist_buttons
|
||||
-- }
|
||||
|
||||
-- Create a systray widget
|
||||
s.mysystray = {
|
||||
wibox.widget.systray(),
|
||||
-- bg = "#00FF0066",
|
||||
widget = wibox.container.background,
|
||||
}
|
||||
-- -- Create a systray widget
|
||||
-- s.mysystray = {
|
||||
-- wibox.widget.systray(),
|
||||
-- -- bg = "#00FF0066",
|
||||
-- widget = wibox.container.background,
|
||||
-- }
|
||||
|
||||
s.mytasklist = awful.widget.tasklist {
|
||||
screen = s,
|
||||
filter = awful.widget.tasklist.filter.currenttags,
|
||||
buttons = tasklist_buttons,
|
||||
style = {
|
||||
border_width = 0,
|
||||
border_color = '#777777',
|
||||
shape = gears.shape.rounded_bar,
|
||||
-- s.mytasklist = awful.widget.tasklist {
|
||||
-- screen = s,
|
||||
-- filter = awful.widget.tasklist.filter.currenttags,
|
||||
-- buttons = tasklist_buttons,
|
||||
-- style = {
|
||||
-- border_width = 0,
|
||||
-- border_color = '#777777',
|
||||
-- shape = gears.shape.rounded_bar,
|
||||
|
||||
},
|
||||
layout = {
|
||||
spacing = 20,
|
||||
spacing_widget = {
|
||||
{
|
||||
forced_width = 5,
|
||||
forced_height = dpi(20),
|
||||
-- shape = gears.shape.circle,
|
||||
widget = wibox.widget.separator
|
||||
},
|
||||
valign = 'center',
|
||||
halign = 'center',
|
||||
widget = wibox.container.place,
|
||||
},
|
||||
layout = wibox.layout.flex.horizontal
|
||||
},
|
||||
-- notice that there is *no* wibox.wibox prefix, it is a template,
|
||||
-- not a widget instance.
|
||||
widget_template = {
|
||||
{
|
||||
{
|
||||
{
|
||||
{
|
||||
id = 'icon_role',
|
||||
widget = wibox.widget.imagebox,
|
||||
},
|
||||
margins = 2,
|
||||
widget = wibox.container.margin,
|
||||
},
|
||||
{
|
||||
id = 'text_role',
|
||||
widget = wibox.widget.textbox,
|
||||
},
|
||||
layout = wibox.layout.align.horizontal,
|
||||
},
|
||||
left = 10,
|
||||
right = 10,
|
||||
widget = wibox.container.margin
|
||||
},
|
||||
id = 'background_role',
|
||||
widget = wibox.container.background,
|
||||
},
|
||||
}
|
||||
-- Create Battery, Network, and Volume widget
|
||||
s.battery = require('widget.battery')()
|
||||
-- s.network = require('widget.network')()
|
||||
s.volume = require('widget.volume')()
|
||||
s.updater = require('widget.package-updater')()
|
||||
-- },
|
||||
-- layout = {
|
||||
-- spacing = 20,
|
||||
-- spacing_widget = {
|
||||
-- {
|
||||
-- forced_width = 5,
|
||||
-- forced_height = dpi(20),
|
||||
-- -- shape = gears.shape.circle,
|
||||
-- widget = wibox.widget.separator
|
||||
-- },
|
||||
-- valign = 'center',
|
||||
-- halign = 'center',
|
||||
-- widget = wibox.container.place,
|
||||
-- },
|
||||
-- layout = wibox.layout.flex.horizontal
|
||||
-- },
|
||||
-- -- notice that there is *no* wibox.wibox prefix, it is a template,
|
||||
-- -- not a widget instance.
|
||||
-- widget_template = {
|
||||
-- {
|
||||
-- {
|
||||
-- {
|
||||
-- {
|
||||
-- id = 'icon_role',
|
||||
-- widget = wibox.widget.imagebox,
|
||||
-- },
|
||||
-- margins = 2,
|
||||
-- widget = wibox.container.margin,
|
||||
-- },
|
||||
-- {
|
||||
-- id = 'text_role',
|
||||
-- widget = wibox.widget.textbox,
|
||||
-- },
|
||||
-- layout = wibox.layout.align.horizontal,
|
||||
-- },
|
||||
-- left = 10,
|
||||
-- right = 10,
|
||||
-- widget = wibox.container.margin
|
||||
-- },
|
||||
-- id = 'background_role',
|
||||
-- widget = wibox.container.background,
|
||||
-- },
|
||||
-- }
|
||||
-- -- Create Battery, Network, and Volume widget
|
||||
-- s.battery = require('widget.battery')()
|
||||
-- -- s.network = require('widget.network')()
|
||||
-- s.volume = require('widget.volume')()
|
||||
-- s.updater = require('widget.package-updater')()
|
||||
|
||||
s.myrightwidgets =
|
||||
{
|
||||
{ -- Right widgets
|
||||
layout = wibox.layout.fixed.horizontal,
|
||||
s.volume,
|
||||
s.mysystray,
|
||||
s.updater,
|
||||
-- s.network,
|
||||
s.battery,
|
||||
wibox.container.margin (s.mylayoutbox,0,dpi(25),0,0),
|
||||
},
|
||||
-- bg = "#00FF0066",
|
||||
widget = wibox.container.background,
|
||||
}
|
||||
-- s.myrightwidgets =
|
||||
-- {
|
||||
-- { -- Right widgets
|
||||
-- layout = wibox.layout.fixed.horizontal,
|
||||
-- s.volume,
|
||||
-- s.mysystray,
|
||||
-- s.updater,
|
||||
-- -- s.network,
|
||||
-- s.battery,
|
||||
-- wibox.container.margin (s.mylayoutbox,0,dpi(25),0,0),
|
||||
-- },
|
||||
-- -- bg = "#00FF0066",
|
||||
-- widget = wibox.container.background,
|
||||
-- }
|
||||
|
||||
-- Empty widget to use for spacing
|
||||
s.myemptywidget = wibox.widget{
|
||||
markup = '',
|
||||
align = '',
|
||||
valign = '',
|
||||
widget = wibox.widget.textbox
|
||||
}
|
||||
-- -- Empty widget to use for spacing
|
||||
-- s.myemptywidget = wibox.widget{
|
||||
-- markup = '',
|
||||
-- align = '',
|
||||
-- valign = '',
|
||||
-- widget = wibox.widget.textbox
|
||||
-- }
|
||||
|
||||
-- -- Add widgets to the wibox
|
||||
mypanel:setup {
|
||||
layout = wibox.layout.align.horizontal,
|
||||
expand = "outside",
|
||||
{ -- Left widgets
|
||||
layout = wibox.layout.align.horizontal,
|
||||
wibox.container.margin (s.mytaglist,dpi(15),0,dpi(-3),0),
|
||||
wibox.container.margin (s.mytasklist,dpi(25),dpi(25),0,0), -- Middle widget
|
||||
s.myemptywidget,
|
||||
spacing = dpi(15)
|
||||
},
|
||||
mytextclock,
|
||||
{ -- Right widgets
|
||||
layout = wibox.layout.align.horizontal,
|
||||
s.myemptywidget,
|
||||
wibox.container.margin (s.mypromptbox,dpi(25),dpi(25),0,0), -- Middle widget
|
||||
s.myrightwidgets,
|
||||
},
|
||||
visible = true,
|
||||
}
|
||||
-- -- -- Add widgets to the wibox
|
||||
-- mypanel:setup {
|
||||
-- layout = wibox.layout.align.horizontal,
|
||||
-- expand = "outside",
|
||||
-- { -- Left widgets
|
||||
-- layout = wibox.layout.align.horizontal,
|
||||
-- wibox.container.margin (s.mytaglist,dpi(15),0,dpi(-3),0),
|
||||
-- wibox.container.margin (s.mytasklist,dpi(25),dpi(25),0,0), -- Middle widget
|
||||
-- s.myemptywidget,
|
||||
-- spacing = dpi(15)
|
||||
-- },
|
||||
-- mytextclock,
|
||||
-- { -- Right widgets
|
||||
-- layout = wibox.layout.align.horizontal,
|
||||
-- s.myemptywidget,
|
||||
-- wibox.container.margin (s.mypromptbox,dpi(25),dpi(25),0,0), -- Middle widget
|
||||
-- s.myrightwidgets,
|
||||
-- },
|
||||
-- visible = true,
|
||||
-- }
|
||||
|
||||
mypanel.visible = true
|
||||
end)
|
||||
-- mypanel.visible = true
|
||||
-- end)
|
||||
-- }}}
|
||||
|
||||
-- {{{ Mouse bindings
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue