fixed ubuntu-11.10 preset
This commit is contained in:
parent
4c53b75a4c
commit
8893b0bb8a
|
@ -75,7 +75,16 @@ awful.screen.connect_for_each_screen(function(s)
|
||||||
layout = wibox.layout.align.horizontal,
|
layout = wibox.layout.align.horizontal,
|
||||||
{ -- Left widgets
|
{ -- Left widgets
|
||||||
layout = wibox.layout.fixed.horizontal,
|
layout = wibox.layout.fixed.horizontal,
|
||||||
require("core.widgets.menu_launcher"),
|
{
|
||||||
|
{
|
||||||
|
require("core.widgets.menu_launcher"),
|
||||||
|
widget = wibox.container.place,
|
||||||
|
halign = "center"
|
||||||
|
},
|
||||||
|
bg = "#26262633",
|
||||||
|
widget = wibox.container.background,
|
||||||
|
forced_width = require("beautiful.xresources").apply_dpi(61),
|
||||||
|
},
|
||||||
--require("widgets.polylauncher")({vertical = false}),
|
--require("widgets.polylauncher")({vertical = false}),
|
||||||
--s.mytaglist,
|
--s.mytaglist,
|
||||||
s.mypromptbox,
|
s.mypromptbox,
|
||||||
|
@ -88,14 +97,16 @@ awful.screen.connect_for_each_screen(function(s)
|
||||||
},
|
},
|
||||||
-- Middle widget
|
-- Middle widget
|
||||||
{
|
{
|
||||||
widget = wibox.container.background
|
--[[require("widgets.polytasklist")({
|
||||||
|
vertical = false,
|
||||||
|
stretch = false,
|
||||||
|
constraint = 180,
|
||||||
|
names = true,
|
||||||
|
margins = 5
|
||||||
|
})(s),]]
|
||||||
|
layout = wibox.layout.fixed.horizontal
|
||||||
},
|
},
|
||||||
{ -- Right widgets
|
{ -- Right widgets
|
||||||
wibox.widget.textclock(),
|
|
||||||
{
|
|
||||||
widget = wibox.container.background,
|
|
||||||
forced_width = (math.abs(s.geometry.width/2)-200)
|
|
||||||
},
|
|
||||||
layout = wibox.layout.fixed.horizontal,
|
layout = wibox.layout.fixed.horizontal,
|
||||||
awful.widget.keyboardlayout(),
|
awful.widget.keyboardlayout(),
|
||||||
require("widgets.wallpapers")({
|
require("widgets.wallpapers")({
|
||||||
|
@ -119,7 +130,13 @@ awful.screen.connect_for_each_screen(function(s)
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
require("widgets.battery")({
|
require("widgets.battery")({
|
||||||
percentage = false,
|
percentage = true,
|
||||||
|
style = {
|
||||||
|
icon_bg_normal = beautiful.topbar_bg
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
wibox.widget.textclock(),
|
||||||
|
require("widgets.username")({
|
||||||
style = {
|
style = {
|
||||||
icon_bg_normal = beautiful.topbar_bg
|
icon_bg_normal = beautiful.topbar_bg
|
||||||
}
|
}
|
||||||
|
|
|
@ -71,26 +71,6 @@ return function(c)
|
||||||
},
|
},
|
||||||
{ "Toggle on tag",
|
{ "Toggle on tag",
|
||||||
toggle_screentags
|
toggle_screentags
|
||||||
},
|
|
||||||
{ "Set as background",
|
|
||||||
function()
|
|
||||||
if G_BackgroundClient then
|
|
||||||
awful.titlebar.show(G_BackgroundClient)
|
|
||||||
G_BackgroundClient.below = false
|
|
||||||
G_BackgroundClient.sticky = false
|
|
||||||
end
|
|
||||||
awful.titlebar.hide(c)
|
|
||||||
c.below = true
|
|
||||||
c.sticky = true
|
|
||||||
G_BackgroundClient = c
|
|
||||||
end
|
|
||||||
},
|
|
||||||
{ "Debug info",
|
|
||||||
{
|
|
||||||
before = {
|
|
||||||
require("widgets.window_debug")(c),
|
|
||||||
},
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
vertical = true
|
vertical = true
|
||||||
|
@ -121,10 +101,26 @@ return function(c)
|
||||||
layout = wibox.layout.flex.horizontal
|
layout = wibox.layout.flex.horizontal
|
||||||
},
|
},
|
||||||
{ -- Right
|
{ -- Right
|
||||||
awful.titlebar.widget.maximizedbutton(c),
|
{
|
||||||
awful.titlebar.widget.minimizebutton (c),
|
{
|
||||||
awful.titlebar.widget.closebutton (c),
|
awful.titlebar.widget.maximizedbutton(c),
|
||||||
layout = wibox.layout.fixed.horizontal(),
|
awful.titlebar.widget.minimizebutton (c),
|
||||||
|
awful.titlebar.widget.closebutton (c),
|
||||||
|
layout = wibox.layout.fixed.horizontal(),
|
||||||
|
widget = wibox.container.margin,
|
||||||
|
margins = 3
|
||||||
|
},
|
||||||
|
widget = wibox.container.background,
|
||||||
|
shape = gears.shape.rounded_bar,
|
||||||
|
bg = {
|
||||||
|
type = "linear",
|
||||||
|
from = { 0, 15 },
|
||||||
|
to = { 0, 0},
|
||||||
|
stops = { { 0, "#5d5d5955"} , {1, "39383555"} }
|
||||||
|
},
|
||||||
|
},
|
||||||
|
widget = wibox.container.margin,
|
||||||
|
margins = 2
|
||||||
},
|
},
|
||||||
layout = wibox.layout.align.horizontal,
|
layout = wibox.layout.align.horizontal,
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,7 @@ global = {}
|
||||||
global.awesome_dir = os.getenv("HOME").."/.config/awesome/"
|
global.awesome_dir = os.getenv("HOME").."/.config/awesome/"
|
||||||
global.config_dir = os.getenv("HOME").."/.awesome/"
|
global.config_dir = os.getenv("HOME").."/.awesome/"
|
||||||
global.themes_dir = os.getenv("HOME").."/.config/awesome/themes/"
|
global.themes_dir = os.getenv("HOME").."/.config/awesome/themes/"
|
||||||
global.theme = global.awesome_dir .. "themes/unity2/theme.lua"
|
global.theme = global.awesome_dir .. "themes/unity/theme.lua"
|
||||||
global.terminal = "xterm"
|
global.terminal = "xterm"
|
||||||
global.editor = os.getenv("EDITOR") or "vim"
|
global.editor = os.getenv("EDITOR") or "vim"
|
||||||
global.editor_cmd = global.terminal .. " -e ".. global.editor
|
global.editor_cmd = global.terminal .. " -e ".. global.editor
|
||||||
|
|
|
@ -5,7 +5,7 @@ global = {}
|
||||||
global.awesome_dir = os.getenv("HOME").."/.config/awesome/"
|
global.awesome_dir = os.getenv("HOME").."/.config/awesome/"
|
||||||
global.config_dir = os.getenv("HOME").."/.awesome/"
|
global.config_dir = os.getenv("HOME").."/.awesome/"
|
||||||
global.themes_dir = os.getenv("HOME").."/.config/awesome/themes/"
|
global.themes_dir = os.getenv("HOME").."/.config/awesome/themes/"
|
||||||
global.theme = global.awesome_dir .. "themes/unity2/theme.lua"
|
global.theme = global.awesome_dir .. "themes/unity/theme.lua"
|
||||||
global.terminal = "xterm"
|
global.terminal = "xterm"
|
||||||
global.editor = os.getenv("EDITOR") or "vim"
|
global.editor = os.getenv("EDITOR") or "vim"
|
||||||
global.editor_cmd = global.terminal .. " -e ".. global.editor
|
global.editor_cmd = global.terminal .. " -e ".. global.editor
|
||||||
|
|
Loading…
Reference in New Issue