From 10244abb9f7457068c99a51aac9af111648253a8 Mon Sep 17 00:00:00 2001 From: Barak Michener Date: Tue, 7 Oct 2014 13:57:02 -0400 Subject: [PATCH] fix barheight --- .config/awesome/btheme/theme.lua | 2 +- .config/awesome/rc.lua | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.config/awesome/btheme/theme.lua b/.config/awesome/btheme/theme.lua index 731efc7..1559999 100644 --- a/.config/awesome/btheme/theme.lua +++ b/.config/awesome/btheme/theme.lua @@ -7,7 +7,7 @@ themedir = confdir .. "/btheme" theme = {} -theme.font = "Ubuntu 10" +theme.font = "Ubuntu 11" theme.bg_normal = "#222222c0" theme.bg_focus = "#535d6ca0" diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index eeeeebb..4a3aa49 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -63,6 +63,8 @@ browser = home .. "/bin/run_browser" -- However, you can use another modifier like Mod1, but it may interact with others. modkey = "Mod1" +bar_height = 24 + -- Table of layouts to cover with awful.layout.inc, order matters. layouts = { @@ -142,7 +144,7 @@ mysystray = widget({ type = "systray" }) -- CPU usage widget cpuwidget = awful.widget.graph() cpuwidget:set_width(50) -cpuwidget:set_height(24) +cpuwidget:set_height(bar_height) cpuwidget:set_background_color("#494B4F") cpuwidget:set_color("#FF5656") cpuwidget:set_gradient_colors({ "#FF5656", "#88A175", "#AECF96" }) @@ -153,7 +155,7 @@ cpuwidget_t = awful.tooltip({ objects = { cpuwidget.widget },}) -- Initialize widget batwidget = awful.widget.progressbar() batwidget:set_width(8) -batwidget:set_height(24) +batwidget:set_height(bar_height) batwidget:set_vertical(true) batwidget:set_background_color("#494B4F") batwidget:set_border_color(nil) @@ -186,7 +188,7 @@ vicious.register(cpuwidget, vicious.widgets.cpu, -- RAM usage widget memwidget = awful.widget.progressbar() memwidget:set_width(15) -memwidget:set_height(24) +memwidget:set_height(bar_height) memwidget:set_vertical(true) memwidget:set_background_color('#494B4F') memwidget:set_color('#AECF96') @@ -268,7 +270,7 @@ for s = 1, screen.count() do end, mytasklist.buttons) -- 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 mywibox[s].widgets = { {