]> git.donarmstrong.com Git - x_base.git/commitdiff
add temp and change how tab works
authorDon Armstrong <don@donarmstrong.com>
Wed, 30 Jul 2014 02:22:05 +0000 (19:22 -0700)
committerDon Armstrong <don@donarmstrong.com>
Wed, 30 Jul 2014 02:22:05 +0000 (19:22 -0700)
.config/awesome/rc.lua

index 98cfff2f11d3fe81158cd660cc7d3adb9e231261..597e55072ecbeb0d150f06e4534bdcd0f227b385 100644 (file)
@@ -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),