From cd2244e3eefa8da1e683b68357dcf19a9b41c095 Mon Sep 17 00:00:00 2001 From: xero Date: Sun, 9 Mar 2014 16:47:51 -0400 Subject: add battery widget config variable --- .config/awesome/config.lua | 1 + .config/awesome/rc.lua | 1 + 2 files changed, 2 insertions(+) (limited to '.config/awesome') diff --git a/.config/awesome/config.lua b/.config/awesome/config.lua index 2ed3392..94d5984 100644 --- a/.config/awesome/config.lua +++ b/.config/awesome/config.lua @@ -17,6 +17,7 @@ tag_count = 4 tag_icon = "◊" tag_icon_active = "◆" clock_format = " %a %m/%d %H:%M " -- http://linux.die.net/man/3/strftime +battery_id = "BAT1" -- █▓▒░ preffered apps terminal = "urxvtc" diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index 195c90d..cd48b35 100755 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -338,6 +338,7 @@ fswidgetbg = fswidget -- █▓▒░ battery baticon = wibox.widget.imagebox(beautiful.widget_battery) batwidget = lain.widgets.bat({ + battery = battery_id, settings = function() if bat_now.perc == "N/A" then widget:set_markup(" AC ") -- cgit v1.2.1