diff --git a/awesome/rc.lua b/awesome/rc.lua
index 4eb3550..d689d2d 100644
--- a/awesome/rc.lua
+++ b/awesome/rc.lua
@@ -73,7 +73,7 @@ layouts =
tags = {}
for s = 1, screen.count() do
-- Each screen has its own tag table.
- tags[s] = awful.tag({ "stat", "web", "mail", "chat", "dev", "media", 7, 8, 9 },
+ tags[s] = awful.tag({ "sys", "web", "mail", "chat", "dev", "media", "virt", 8, 9 },
s,
{ layouts[6], layouts[6], layouts[6], layouts[6], layouts[6], layouts[6], layouts[6], layouts[6], layouts[6] })
end
@@ -103,8 +103,8 @@ mylauncher = awful.widget.launcher({ image = image(beautiful.awesome_icon),
separator = widget({ type = "textbox" })
separator.text = " | "
-uptimewidget = widget({ type = "textbox" })
-vicious.register(uptimewidget, vicious.widgets.uptime, "uptime $2.$3'")
+--uptimewidget = widget({ type = "textbox" })
+--vicious.register(uptimewidget, vicious.widgets.uptime, "uptime $2.$3'")
-- Network
netwidget = widget({ type = "textbox" })
@@ -112,11 +112,18 @@ vicious.register(netwidget, vicious.widgets.net, "down %a %F, %T ', 1)
+vicious.register(datewidget, vicious.widgets.date, '%a %m-%d, %T ', 1)
-- Memory
memwidget = widget({ type = "textbox"})
-vicious.register(memwidget, vicious.widgets.mem, 'mem $1% [$2/$3]', 13)
+--vicious.register(memwidget, vicious.widgets.mem, 'mem $1% [$2/$3]', 13)
+vicious.register(memwidget, vicious.widgets.mem, 'mem $1%', 13)
+
+-- Filesystem
+fswidget = widget({ type = "textbox"})
+vicious.register(fswidget, vicious.widgets.fs, function (widget, args)
+ return 'fs ' .. args["{/ used_gb}"] .. "/" .. args["{/ size_gb}"] .. 'GB'
+end, 20)
-- Battery
batwidget = widget({ type = "textbox" })
@@ -148,7 +155,33 @@ vicious.register(cpuwidget, vicious.widgets.cpu, 'cpu $1°C', 9, "thermal_zone0")
+vicious.register(tempwidget, vicious.widgets.thermal, ' @ $1°C', 9, { "coretemp.0", "core" })
+
+volumewidget = widget({ type = "textbox" })
+vicious.register(volumewidget, vicious.widgets.volume, '$2 $1%', 1, "Master")
+
+volumewidget:buttons(awful.util.table.join(
+ awful.button({}, 1, function () awful.util.spawn("amixer set Master toggle", false) end),
+ awful.button({}, 3, function () awful.util.spawn("urxvt -e alsamixer", true) end),
+ awful.button({}, 4, function () awful.util.spawn("amixer -q set Master 1+", true) end),
+ awful.button({}, 5, function () awful.util.spawn("amixer -q set Master 1-", true) end)
+))
+
+-- Weather
+--weatherwidget = widget({ type = "textbox" })
+--vicious.register(weatherwidget, vicious.widgets.weather, 'weather $1', 120, "ORD")
+
+-- Wifi
+wifiwidget = widget({ type = "textbox" })
+vicious.register(wifiwidget, vicious.widgets.wifi,
+ function (widget, args)
+ --return string.format("%s %i%%", args["{ssid}"], args["{link}"]/70*100)
+ return args["{ssid}"] .. " " .. math.floor(args["{link}"] / 70 * 100) .. "%"
+ end, 10, "wifi0" )
+
+-- Package widget
+--packagewidget = widget({ type = "textbox" })
+--vicious.register(packagewidget, vicious.widgets.pkg, 'pkgs $1', 60, "Arch")
-- Create a systray
mysystray = widget({ type = "systray" })
@@ -236,15 +269,24 @@ for s = 1, screen.count() do
netwidget,
separator,
--memgraphwidget.widget,
+ fswidget,
+ separator,
memwidget,
separator,
--cpugraphwidget.widget,
+ tempwidget,
cpuwidget,
separator,
- uptimewidget,
+ --uptimewidget,
+ --separator,
+ volumewidget,
+ separator,
+ --weatherwidget,
+ --separator,
+ wifiwidget,
separator,
- -- tempwidget,
- -- separator,
+ --packagewidget,
+ --separator,
s == 1 and mysystray or nil,
mytasklist[s],
layout = awful.widget.layout.horizontal.rightleft
@@ -262,6 +304,10 @@ root.buttons(awful.util.table.join(
-- {{{ Key bindings
globalkeys = awful.util.table.join(
+ -- media keys
+ awful.key({}, "XF86AudioRaiseVolume", function () awful.util.spawn("amixer set Master 4+") end ),
+ awful.key({}, "XF86AudioLowerVolume", function () awful.util.spawn("amixer set Master 4-") end ),
+ awful.key({}, "XF86AudioMute", function () awful.util.spawn("amixer set Master toggle") end ),
awful.key({ modkey, }, "p", function() awful.util.spawn( "dmenu_run" ) end ),
awful.key({ modkey, }, "Left", awful.tag.viewprev ),
awful.key({ modkey, }, "Right", awful.tag.viewnext ),