about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--awesome/.config/awesome/rc.lua7
-rw-r--r--zathura/.config/zathura/zathurarc4
2 files changed, 6 insertions, 5 deletions
diff --git a/awesome/.config/awesome/rc.lua b/awesome/.config/awesome/rc.lua
index 52578bb..b6d4b52 100644
--- a/awesome/.config/awesome/rc.lua
+++ b/awesome/.config/awesome/rc.lua
@@ -158,7 +158,12 @@ vicious.register(mymemusage, vicious.widgets.mem,
 myswpusage = wibox.widget.textbox() -- swap
 vicious.register(myswpusage, vicious.widgets.mem,
                  function(widget, args)
-                   return (" SWP%03d%%"):format(args[5])
+                   -- Without swap, args[5] will be nan
+                   if args[5] ~= args[5] then
+                     return ""
+                   else
+                     return (" SWP%03d%%"):format(args[5])
+                   end
                  end, 2)
 
 -- Create a battery widget
diff --git a/zathura/.config/zathura/zathurarc b/zathura/.config/zathura/zathurarc
index 4c7d375..56187ac 100644
--- a/zathura/.config/zathura/zathurarc
+++ b/zathura/.config/zathura/zathurarc
@@ -16,10 +16,6 @@ set notification-error-bg \#9d0006
 set notification-error-fg \#fbf1c7
 set notification-warning-bg \#fbf1c7
 set notification-warning-fg \#9d0006
-set tabbar-bg \#fbf1c7
-set tabbar-fg \#a89984
-set tabbar-focus-bg \#a89984
-set tabbar-focus-fg \#fbf1c7
 set statusbar-bg \#a89984
 set statusbar-fg \#fbf1c7
 set adjust-open width