fix barheight
This commit is contained in:
parent
36ca0e5a68
commit
10244abb9f
2 changed files with 7 additions and 5 deletions
|
|
@ -7,7 +7,7 @@ themedir = confdir .. "/btheme"
|
||||||
|
|
||||||
theme = {}
|
theme = {}
|
||||||
|
|
||||||
theme.font = "Ubuntu 10"
|
theme.font = "Ubuntu 11"
|
||||||
|
|
||||||
theme.bg_normal = "#222222c0"
|
theme.bg_normal = "#222222c0"
|
||||||
theme.bg_focus = "#535d6ca0"
|
theme.bg_focus = "#535d6ca0"
|
||||||
|
|
|
||||||
|
|
@ -63,6 +63,8 @@ browser = home .. "/bin/run_browser"
|
||||||
-- However, you can use another modifier like Mod1, but it may interact with others.
|
-- However, you can use another modifier like Mod1, but it may interact with others.
|
||||||
modkey = "Mod1"
|
modkey = "Mod1"
|
||||||
|
|
||||||
|
bar_height = 24
|
||||||
|
|
||||||
-- Table of layouts to cover with awful.layout.inc, order matters.
|
-- Table of layouts to cover with awful.layout.inc, order matters.
|
||||||
layouts =
|
layouts =
|
||||||
{
|
{
|
||||||
|
|
@ -142,7 +144,7 @@ mysystray = widget({ type = "systray" })
|
||||||
-- CPU usage widget
|
-- CPU usage widget
|
||||||
cpuwidget = awful.widget.graph()
|
cpuwidget = awful.widget.graph()
|
||||||
cpuwidget:set_width(50)
|
cpuwidget:set_width(50)
|
||||||
cpuwidget:set_height(24)
|
cpuwidget:set_height(bar_height)
|
||||||
cpuwidget:set_background_color("#494B4F")
|
cpuwidget:set_background_color("#494B4F")
|
||||||
cpuwidget:set_color("#FF5656")
|
cpuwidget:set_color("#FF5656")
|
||||||
cpuwidget:set_gradient_colors({ "#FF5656", "#88A175", "#AECF96" })
|
cpuwidget:set_gradient_colors({ "#FF5656", "#88A175", "#AECF96" })
|
||||||
|
|
@ -153,7 +155,7 @@ cpuwidget_t = awful.tooltip({ objects = { cpuwidget.widget },})
|
||||||
-- Initialize widget
|
-- Initialize widget
|
||||||
batwidget = awful.widget.progressbar()
|
batwidget = awful.widget.progressbar()
|
||||||
batwidget:set_width(8)
|
batwidget:set_width(8)
|
||||||
batwidget:set_height(24)
|
batwidget:set_height(bar_height)
|
||||||
batwidget:set_vertical(true)
|
batwidget:set_vertical(true)
|
||||||
batwidget:set_background_color("#494B4F")
|
batwidget:set_background_color("#494B4F")
|
||||||
batwidget:set_border_color(nil)
|
batwidget:set_border_color(nil)
|
||||||
|
|
@ -186,7 +188,7 @@ vicious.register(cpuwidget, vicious.widgets.cpu,
|
||||||
-- RAM usage widget
|
-- RAM usage widget
|
||||||
memwidget = awful.widget.progressbar()
|
memwidget = awful.widget.progressbar()
|
||||||
memwidget:set_width(15)
|
memwidget:set_width(15)
|
||||||
memwidget:set_height(24)
|
memwidget:set_height(bar_height)
|
||||||
memwidget:set_vertical(true)
|
memwidget:set_vertical(true)
|
||||||
memwidget:set_background_color('#494B4F')
|
memwidget:set_background_color('#494B4F')
|
||||||
memwidget:set_color('#AECF96')
|
memwidget:set_color('#AECF96')
|
||||||
|
|
@ -268,7 +270,7 @@ for s = 1, screen.count() do
|
||||||
end, mytasklist.buttons)
|
end, mytasklist.buttons)
|
||||||
|
|
||||||
-- Create the wibox
|
-- Create the wibox
|
||||||
mywibox[s] = awful.wibox({ position = "top", screen = s })
|
mywibox[s] = awful.wibox({ position = "top", height=""..bar_height, screen = s })
|
||||||
-- Add widgets to the wibox - order matters
|
-- Add widgets to the wibox - order matters
|
||||||
mywibox[s].widgets = {
|
mywibox[s].widgets = {
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue