X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=.config%2Fawesome%2Frc.lua;h=3bd510770ca31f4941691023d0ab59bd7c1aaf4c;hb=6d84dd3a02154b9e2c3652c3f0579b2809428d03;hp=98cfff2f11d3fe81158cd660cc7d3adb9e231261;hpb=c6744b5188d7112d7dad888be8b9da056ca08953;p=x_base.git diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index 98cfff2..3bd5107 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), @@ -396,7 +410,7 @@ end wallpaper_cmd = "find " .. wallpaper_dir .. " -xtype f \\( -iname '*.jpg' -o -iname '*.png' \\) " .. - " -not -name '.*' -print0 | shuf -n" .. screen.count() .. " -z | xargs -0 feh --bg-max" + " -not -name '.*' -print0 | shuf -n" .. screen.count() .. " -z | xargs -0 feh --draw-exif -d --bg-max" -- set up the wallpaper timer wallpaper_timer = timer({ timeout = 0 })