Browse Source

fixed ubuntu-11.10 preset

master
Yessiest 2 years ago
parent
commit
8893b0bb8a
  1. 33
      core/layout.lua
  2. 44
      core/titlebar.lua
  3. 2
      core/vars.lua
  4. 2
      presets/ubuntu-11.10/core/vars.lua

33
core/layout.lua

@ -75,7 +75,16 @@ awful.screen.connect_for_each_screen(function(s)
layout = wibox.layout.align.horizontal,
{ -- Left widgets
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}),
--s.mytaglist,
s.mypromptbox,
@ -88,14 +97,16 @@ awful.screen.connect_for_each_screen(function(s)
},
-- 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
wibox.widget.textclock(),
{
widget = wibox.container.background,
forced_width = (math.abs(s.geometry.width/2)-200)
},
layout = wibox.layout.fixed.horizontal,
awful.widget.keyboardlayout(),
require("widgets.wallpapers")({
@ -119,7 +130,13 @@ awful.screen.connect_for_each_screen(function(s)
}
}),
require("widgets.battery")({
percentage = false,
percentage = true,
style = {
icon_bg_normal = beautiful.topbar_bg
}
}),
wibox.widget.textclock(),
require("widgets.username")({
style = {
icon_bg_normal = beautiful.topbar_bg
}

44
core/titlebar.lua

@ -71,26 +71,6 @@ return function(c)
},
{ "Toggle on tag",
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
@ -121,10 +101,26 @@ return function(c)
layout = wibox.layout.flex.horizontal
},
{ -- Right
awful.titlebar.widget.maximizedbutton(c),
awful.titlebar.widget.minimizebutton (c),
awful.titlebar.widget.closebutton (c),
layout = wibox.layout.fixed.horizontal(),
{
{
awful.titlebar.widget.maximizedbutton(c),
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,
}

2
core/vars.lua

@ -5,7 +5,7 @@ global = {}
global.awesome_dir = os.getenv("HOME").."/.config/awesome/"
global.config_dir = os.getenv("HOME").."/.awesome/"
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.editor = os.getenv("EDITOR") or "vim"
global.editor_cmd = global.terminal .. " -e ".. global.editor

2
presets/ubuntu-11.10/core/vars.lua

@ -5,7 +5,7 @@ global = {}
global.awesome_dir = os.getenv("HOME").."/.config/awesome/"
global.config_dir = os.getenv("HOME").."/.awesome/"
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.editor = os.getenv("EDITOR") or "vim"
global.editor_cmd = global.terminal .. " -e ".. global.editor

Loading…
Cancel
Save