awesome && xscreensaver && lock

This commit is contained in:
Kolan Sh 2012-07-01 17:33:50 +04:00
parent 40089362a1
commit 645fa37537
2 changed files with 12 additions and 0 deletions

View File

@ -1 +1,2 @@
os.execute ("xscreensaver -no-splash &")
os.execute ("pidgin &") os.execute ("pidgin &")

11
rc.lua
View File

@ -85,16 +85,26 @@ myawesomemenu = {
{ "manual", terminal .. " -e man awesome" }, { "manual", terminal .. " -e man awesome" },
{ "edit config", editor_cmd .. " " .. awesome.conffile }, { "edit config", editor_cmd .. " " .. awesome.conffile },
{ "restart", awesome.restart }, { "restart", awesome.restart },
{ "lock", "xscreensaver-command --lock" },
{ "quit", awesome.quit } { "quit", awesome.quit }
} }
function lock_screen ()
os.execute ("xscreensaver-command --lock")
end
mywebmenu = { mywebmenu = {
{ "firefox", "firefox" }, { "firefox", "firefox" },
{ "pidgin", "pidgin" } { "pidgin", "pidgin" }
} }
myconfigmenu = {
{ "xscreensaver", "xscreensaver-demo" }
}
mymainmenu = awful.menu({ items = { { "awesome", myawesomemenu, beautiful.awesome_icon }, mymainmenu = awful.menu({ items = { { "awesome", myawesomemenu, beautiful.awesome_icon },
{ "web", mywebmenu, beautiful.awesome_icon }, { "web", mywebmenu, beautiful.awesome_icon },
{ "config", myconfigmenu, beautiful.awesome_icon },
{ "lock", "xscreensaver-command --lock" },
{ "open terminal", terminal } { "open terminal", terminal }
} }
}) })
@ -254,6 +264,7 @@ globalkeys = awful.util.table.join(
awful.key({ modkey, }, "Return", function () awful.util.spawn(terminal) end), awful.key({ modkey, }, "Return", function () awful.util.spawn(terminal) end),
awful.key({ modkey, "Control" }, "r", awesome.restart), awful.key({ modkey, "Control" }, "r", awesome.restart),
awful.key({ modkey, "Shift" }, "q", awesome.quit), awful.key({ modkey, "Shift" }, "q", awesome.quit),
awful.key({ modkey, "Control" }, "l", lock_screen),
awful.key({ modkey, }, "l", function () awful.tag.incmwfact( 0.05) end), awful.key({ modkey, }, "l", function () awful.tag.incmwfact( 0.05) end),
awful.key({ modkey, }, "h", function () awful.tag.incmwfact(-0.05) end), awful.key({ modkey, }, "h", function () awful.tag.incmwfact(-0.05) end),