Commit c82df9b72191cc8519c2538413e49a9139ffb1ce

Authored by Ian Foster
1 parent 6c05124f1b
Exists in master

smaller awesome bar

Showing 1 changed file with 10 additions and 6 deletions Side-by-side Diff

awesome/awesome/rc.lua View file @ c82df9b
... ... @@ -19,8 +19,8 @@
19 19 require('calendar2')
20 20  
21 21 --freedesktop menus
22   -require('modules/awesome-freedesktop/freedesktop.utils')
23   -require('modules/awesome-freedesktop/freedesktop.menu')
  22 +--require('modules/awesome-freedesktop/freedesktop.utils')
  23 +--require('modules/awesome-freedesktop/freedesktop.menu')
24 24  
25 25 --for widgets
26 26 require("vicious")
... ... @@ -146,7 +146,8 @@
146 146 { "quit", awesome.quit }
147 147 }
148 148  
149   -menu_items = freedesktop.menu.new()
  149 +--menu_items = freedesktop.menu.new()
  150 +menu_items = {}
150 151 table.insert(menu_items, { "awesome", myawesomemenu, beautiful.awesome_icon })
151 152 table.insert(menu_items, { "Exit", exit_command })
152 153  
153 154  
... ... @@ -184,10 +185,13 @@
184 185 local fg_center_color = "#FFCF00"
185 186 local bg_color = "#111111"
186 187  
  188 +--TODO height of bar for widgets and wibox should be set in theme
  189 +--TODO rename theme
  190 +
187 191 -- RAM usage widget
188 192 memwidget = awful.widget.progressbar()
189 193 memwidget:set_width(8)
190   -memwidget:set_height(18)
  194 +memwidget:set_height(15)
191 195 memwidget:set_vertical(true)
192 196 memwidget:set_background_color(bg_color)
193 197 memwidget:set_color(fg_color)
... ... @@ -205,7 +209,7 @@
205 209 -- CPU usage widget
206 210 cpuwidget = awful.widget.graph()
207 211 cpuwidget:set_width(30)
208   -cpuwidget:set_height(18)
  212 +cpuwidget:set_height(15)
209 213 cpuwidget:set_background_color(bg_color)
210 214 cpuwidget:set_color(fg_color)
211 215 cpuwidget:set_gradient_angle(180)
... ... @@ -286,7 +290,7 @@
286 290 end, mytasklist.buttons)
287 291  
288 292 -- Create the wibox
289   - mywibox[s] = awful.wibox({ position = "top", screen = s })
  293 + mywibox[s] = awful.wibox({ position = "top", screen = s, height = "15" })
290 294 -- Add widgets to the wibox - order matters
291 295 mywibox[s].widgets = {
292 296 {