Free disk space widget for /home added.

This commit is contained in:
Kolan Sh 2013-03-28 16:18:55 +04:00
parent 4dc9d763ba
commit 55ff7d81ac
5 changed files with 15 additions and 3 deletions

BIN
Icons/16x16/hdd_clear.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 194 B

View File

@ -9,7 +9,7 @@ require("awful.autofocus")
local wibox = require("wibox") local wibox = require("wibox")
-- Theme handling library -- Theme handling library
local beautiful = require("beautiful") local beautiful = require("beautiful")
beautiful.init("/home/rat/.config/awesome/themes/default/theme.lua") -- beautiful.init("/home/kolan/.config/awesome/themes/default/theme.lua")
-- Notification library -- Notification library
local naughty = require("naughty") local naughty = require("naughty")
local menubar = require("menubar") local menubar = require("menubar")

2
rc.lua
View File

@ -277,6 +277,8 @@ for s = 1, screen.count() do
--right_layout:add(spacer) --right_layout:add(spacer)
right_layout:add(memicon) right_layout:add(memicon)
right_layout:add(mem) right_layout:add(mem)
right_layout:add(diskicon)
right_layout:add(disk)
--right_layout:add(spacer) --right_layout:add(spacer)
--right_layout:add(weatheric) --right_layout:add(weatheric)
--right_layout:add(weather) --right_layout:add(weather)

View File

@ -110,7 +110,8 @@ theme.awesome_icon = home_path .. '.config/awesome/themes/default/icon/awesome16
theme.arch_icon = home_path .. '.config/awesome/themes/default/icon/Arch.png' theme.arch_icon = home_path .. '.config/awesome/themes/default/icon/Arch.png'
-- {{{ Widgets -- {{{ Widgets
theme.widget_disk = awful.util.getdir("config") .. "/themes/default/widgets/disk.png" -- theme.widget_disk = awful.util.getdir("config") .. "/themes/default/widgets/disk.png"
theme.widget_disk = "/home/kolan/.config/awesome/Icons/16x16/hdd_clear.png"
theme.widget_cpu = awful.util.getdir("config") .. "/themes/default/widgets/cpu.png" theme.widget_cpu = awful.util.getdir("config") .. "/themes/default/widgets/cpu.png"
theme.widget_ac = awful.util.getdir("config") .. "/themes/default/widgets/ac.png" theme.widget_ac = awful.util.getdir("config") .. "/themes/default/widgets/ac.png"
theme.widget_acblink = awful.util.getdir("config") .. "/themes/default/widgets/acblink.png" theme.widget_acblink = awful.util.getdir("config") .. "/themes/default/widgets/acblink.png"

9
wi.lua
View File

@ -173,6 +173,15 @@ memicon:set_image(beautiful.widget_ram)
mem = wibox.widget.textbox() mem = wibox.widget.textbox()
vicious.register(mem, vicious.widgets.mem, " $1/$5% ", 2) vicious.register(mem, vicious.widgets.mem, " $1/$5% ", 2)
-- End Mem }}} -- End Mem }}}
-- {{{ Start Mem
diskicon = wibox.widget.imagebox()
diskicon:set_image(beautiful.widget_disk)
--
disk = wibox.widget.textbox()
vicious.register(disk, vicious.widgets.fs, "${/home avail_gb}Gb ", 15)
-- End Mem }}}
-- --
-- {{{ Start Gmail -- {{{ Start Gmail
--mailicon = wibox.widget.imagebox(beautiful.widget_mail) --mailicon = wibox.widget.imagebox(beautiful.widget_mail)