aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xawesome/rc.lua16
1 files changed, 9 insertions, 7 deletions
diff --git a/awesome/rc.lua b/awesome/rc.lua
index a72c3e0b..6dfc2358 100755
--- a/awesome/rc.lua
+++ b/awesome/rc.lua
@@ -88,10 +88,12 @@ myawesomemenu = {
{ "edit config", editor_cmd .. " " .. awesome.conffile },
{ "restart", awesome.restart },
{ "quit", function() awesome.quit() end },
+ { "fix wallpaper", function() awful.spawn.with_shell("nitrogen --restore") end },
}
mymainmenu = awful.menu({ items = { { "awesome", myawesomemenu, beautiful.awesome_icon },
{ "open terminal", terminal }
+
}
})
@@ -166,10 +168,10 @@ screen.connect_signal("property::geometry", set_wallpaper)
awful.screen.connect_for_each_screen(function(s)
-- Wallpaper
- set_wallpaper(s)
+-- set_wallpaper(s)
-- Each screen has its own tag table.
- awful.tag({ "1", "2", "3", "4", "5", "6", "7", "8", "9" }, s, awful.layout.layouts[1])
+ awful.tag({ "1", "2", "3", "4", "5", "6", "7", "8", "9", "10" }, s, awful.layout.layouts[1])
-- Create a promptbox for each screen
s.mypromptbox = awful.widget.prompt()
@@ -196,7 +198,7 @@ awful.screen.connect_for_each_screen(function(s)
}
-- Create the wibox
- s.mywibox = awful.wibar({ position = "top", screen = s })
+ s.mywibox = awful.wibar({ position = "bottom", screen = s })
-- Add widgets to the wibox
s.mywibox:setup {
@@ -204,6 +206,7 @@ awful.screen.connect_for_each_screen(function(s)
{ -- Left widgets
layout = wibox.layout.fixed.horizontal,
mylauncher,
+ wibox.widget.systray(),
s.mytaglist,
s.mypromptbox,
},
@@ -211,7 +214,6 @@ awful.screen.connect_for_each_screen(function(s)
{ -- Right widgets
layout = wibox.layout.fixed.horizontal,
mykeyboardlayout,
- wibox.widget.systray(),
mytextclock,
s.mylayoutbox,
},
@@ -376,7 +378,7 @@ clientkeys = gears.table.join(
-- Bind all key numbers to tags.
-- Be careful: we use keycodes to make it work on any keyboard layout.
-- This should map on the top row of your keyboard, usually 1 to 9.
-for i = 1, 9 do
+for i = 1, 10 do
globalkeys = gears.table.join(globalkeys,
-- View tag only.
awful.key({ modkey }, "#" .. i + 9,
@@ -389,7 +391,7 @@ for i = 1, 9 do
end,
{description = "view tag #"..i, group = "tag"}),
-- Toggle tag display.
- awful.key({ modkey, "Control" }, "#" .. i + 9,
+ awful.key({ "Mod1" }, "#" .. i + 9,
function ()
local screen = awful.screen.focused()
local tag = screen.tags[i]
@@ -410,7 +412,7 @@ for i = 1, 9 do
end,
{description = "move focused client to tag #"..i, group = "tag"}),
-- Toggle tag on focused client.
- awful.key({ modkey, "Control", "Shift" }, "#" .. i + 9,
+ awful.key({ "Mod1", "Shift" }, "#" .. i + 9,
function ()
if client.focus then
local tag = client.focus.screen.tags[i]