diff options
Diffstat (limited to 'rc.lua')
-rw-r--r-- | rc.lua | 26 |
1 files changed, 22 insertions, 4 deletions
@@ -86,6 +86,16 @@ mybatwidget = wibox.widget.textbox() vicious.register(mybatwidget, vicious.widgets.bat, "$1$2%", 61, "BAT0") -- }}} +-- {{{ Network usage +mydnicon = wibox.widget.imagebox("/home/anrxc/.config/awesome/icons/down.png", false) +myupicon = wibox.widget.imagebox("/home/anrxc/.config/awesome/icons/up.png", false) +-- Initialize widget +mynetwidget = wibox.widget.textbox() +vicious.register(mynetwidget, vicious.widgets.net, '<span color="' + .. beautiful.fg_netdn_widget ..'">${eth0 down_kb}</span> <span color="' + .. beautiful.fg_netup_widget ..'">${eth0 up_kb}</span>', 3) +-- }}} + -- {{{ Date and time mydateicon = wibox.widget.imagebox("/home/anrxc/.config/awesome/icons/time.png", false) -- Initialize widgets @@ -207,6 +217,10 @@ awful.screen.connect_for_each_screen(function(s) mybaticon, mybatwidget, myseparator, + mydnicon, + mynetwidget, + myupicon, + myseparator, mydateicon, mydatestwidget, myseparator, @@ -478,13 +492,17 @@ awful.rules.rules = { }, { rule = { name = "Alpine" }, - properties = { screen = 1, tag = "4" } }, + properties = { screen = 1, tag = "mail" } }, + { rule = { name = "alpine" }, + properties = { screen = 1, tag = "mail" } }, { rule = { class = "Emacs" }, - properties = { screen = scount, tag = "2" } }, + properties = { screen = scount, tag = "emacs" } }, { rule = { class = "Firefox" }, - properties = { screen = scount, tag = "3" } }, + properties = { screen = scount, tag = "web" } }, + { rule = { class = "firefox" }, + properties = { screen = scount, tag = "web" } }, { rule = { class = "Slack" }, - properties = { screen = scount, tag = "5" } }, + properties = { screen = scount, tag = "im" } }, { rule_any = { instance = { |