From 3dd9e14391040c9c707d54978b3a70a173993a74 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Tue, 29 Jul 2014 19:22:05 -0700 Subject: [PATCH] add temp and change how tab works --- .config/awesome/rc.lua | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index 98cfff2..597e550 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -9,6 +9,7 @@ require("naughty") -- require("obvious.volume_alsa") require("obvious.battery") +require("obvious.temp_info") -- Load Debian menu entries require("debian.menu") @@ -94,6 +95,8 @@ mytextclock = awful.widget.textclock({ align = "right" }, " %c ", 1) -- myvolumealsa = obvious.volume_alsa() mybattery = obvious.battery() +mytemp = obvious.temp_info() + -- Create a systray mysystray = widget({ type = "systray" }) @@ -169,6 +172,7 @@ for s = 1, screen.count() do mytextclock, -- myvolumealsa, mybattery, + mytemp, s == 1 and mysystray or nil, mytasklist[s], layout = awful.widget.layout.horizontal.rightleft @@ -190,6 +194,7 @@ globalkeys = awful.util.table.join( -- awful.key({ modkey, }, "Right", awful.tag.viewnext ), awful.key({},"XF86AudioRaiseVolume",function () obvious.volume_alsa.raise(0, "Master", 2) end), awful.key({},"XF86AudioLowerVolume",function () obvious.volume_alsa.lower(0, "Master", 2) end), + awful.key({},"XF86RotateWindows", function () awful.util.spawn("rotate_monitor") end), awful.key({ modkey, }, "Escape", awful.tag.history.restore), awful.key({ modkey, }, "j", @@ -213,13 +218,22 @@ globalkeys = awful.util.table.join( awful.key({ modkey, }, "Right", function () awful.screen.focus_relative(-1) end), awful.key({ modkey, }, "u", awful.client.urgent.jumpto), awful.key({ modkey, }, "Tab", - function () - awful.client.focus.history.previous() - if client.focus then - client.focus:raise() - end - end), - + function () + -- awful.client.focus.history.previous() + awful.client.focus.byidx(-1) + if client.focus then + client.focus:raise() + end + end), + + awful.key({ modkey, "Shift" }, "Tab", + function () + -- awful.client.focus.history.previous() + awful.client.focus.byidx(1) + if client.focus then + client.focus:raise() + end + end), -- Standard program awful.key({ modkey, }, "Return", function () awful.util.spawn(terminal) end), awful.key({ modkey, "Control", "Shift" }, "r", awesome.restart), -- 2.39.2