Skip to content

Commit

Permalink
Changed mem plugin, and added tags definition.
Browse files Browse the repository at this point in the history
  • Loading branch information
geektophe committed Jun 19, 2013
1 parent 7d09b85 commit 2c5211b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
4 changes: 4 additions & 0 deletions rc/tags.awful.lua
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@ awful.rules.rules = {
{ rule = { class = "rdesktop" },
properties = { tag = tags[screen.count()][5], floating=true } },

-- Wireshark
{ rule = { class = "Wireshark" },
properties = { tag = tags[1][5] } },

-- Nautilus
{ rule_any = { class = {"Nautilus", "Thunar"} },
properties = { tag = tags[1][6] } },
Expand Down
10 changes: 6 additions & 4 deletions widgets/mem.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,18 @@ end

function widget(wide)
if _memwidget == nil then
_memwidget = blingbling.classical_graph.new()
_memwidget = blingbling.progress_bar.new()
_memwidget:set_height(18)

if wide == nil or wide then
_memwidget:set_width(100)
_memwidget:set_width(60)
else
_memwidget:set_width(75)
_memwidget:set_width(50)
end
_memwidget:set_tiles_color("#00000022")
_memwidget:set_show_text(true)
_memwidget:set_horizontal(true)
-- _memwidget:set_tiles_color("#00000022")
-- _memwidget:set_show_text(true)
vicious.register(_memwidget, vicious.widgets.mem, '$1')
end

Expand Down

0 comments on commit 2c5211b

Please sign in to comment.