about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRaphael McSinyx <vn.mcsinyx@gmail.com>2016-07-26 16:22:52 +0700
committerRaphael McSinyx <vn.mcsinyx@gmail.com>2016-11-20 16:44:09 +0700
commitc01d97d037d227c6cd777931bf5ccd98b14d5c5d (patch)
tree0d4b4185b2b95e89c60fdda578484b242531a5c9
parent374ecacd0808ce322cb85ba85023e0b8fb94bcf6 (diff)
downloaddotfiles-c01d97d037d227c6cd777931bf5ccd98b14d5c5d.tar.gz
Update 20160726
-rw-r--r--awesome/.config/awesome/rc.lua27
1 files changed, 21 insertions, 6 deletions
diff --git a/awesome/.config/awesome/rc.lua b/awesome/.config/awesome/rc.lua
index f88d3b1..87bd48e 100644
--- a/awesome/.config/awesome/rc.lua
+++ b/awesome/.config/awesome/rc.lua
@@ -127,7 +127,7 @@ menubar.utils.terminal = terminal -- Set the terminal for applications that requ
 myclock_text = awful.widget.textclock("<span color='#3c3836'> #%u %FT%R</span>")
 myclock = wibox.widget.background()
 myclock:set_widget(myclock_text)
-myclock:set_bg("#d65d0e")
+myclock:set_bg("#cc241d")
 
 -- Create a CPU usage widget
 mycpuwidget_text = wibox.widget.textbox()
@@ -141,9 +141,9 @@ vicious.register(
 )
 mycpuwidget = wibox.widget.background()
 mycpuwidget:set_widget(mycpuwidget_text)
-mycpuwidget:set_bg("#d79921")
+mycpuwidget:set_bg("#d65d0e")
 
--- Create a memory usage widget
+-- Create memory usage widgets
 mymemwidget_text = wibox.widget.textbox()
 vicious.register(
     mymemwidget_text,
@@ -155,7 +155,20 @@ vicious.register(
 )
 mymemwidget = wibox.widget.background()
 mymemwidget:set_widget(mymemwidget_text)
-mymemwidget:set_bg("#98971a")
+mymemwidget:set_bg("#d79921")
+
+myswapwidget_text = wibox.widget.textbox()
+vicious.register(
+    myswapwidget_text,
+    vicious.widgets.mem,
+    function(widget, args)
+        return("<span color='#3c3836'> SWP%03d%%</span>"):format(args[5])
+    end,
+    2
+)
+myswapwidget = wibox.widget.background()
+myswapwidget:set_widget(myswapwidget_text)
+myswapwidget:set_bg("#98971a")
 
 -- Create a battery widget
 mybatwidget_text = wibox.widget.textbox()
@@ -319,10 +332,12 @@ for s = 1, screen.count() do
     local left_layout = wibox.layout.fixed.horizontal()
     --left_layout:add(mylauncher)
     left_layout:add(myclock)
-    left_layout:add(myarrow1)
+    left_layout:add(myarrow0)
     left_layout:add(mycpuwidget)
-    left_layout:add(myarrow2)
+    left_layout:add(myarrow1)
     left_layout:add(mymemwidget)
+    left_layout:add(myarrow2)
+    left_layout:add(myswapwidget)
     left_layout:add(myarrow3)
     left_layout:add(mybatwidget)
     left_layout:add(myarrow4)