Permalink
Browse files

awesome: minor improvements

  • Loading branch information...
1 parent b6502f8 commit 73df7a94b96e0782af215da798780a81775c91de @Schnouki committed May 31, 2012
Showing with 12 additions and 4 deletions.
  1. +12 −4 awesome/rc.lua
View
16 awesome/rc.lua
@@ -351,11 +351,11 @@ persokeys = {
awful.key({ modkey }, "KP_Delete", function () volume_upd(pb_vol, volume_mute()) end),
-- F2 - verrouiller l'écran
- awful.key({ }, "XF86ScreenSaver", function () os.execute("xscreensaver-command -lock") end),
- awful.key({ modkey, "Control" }, "F2", function () os.execute("xscreensaver-command -lock") end),
+ awful.key({ }, "XF86ScreenSaver", function () awful.util.spawn("xscreensaver-command -lock") end),
+ awful.key({ modkey, "Control" }, "F2", function () awful.util.spawn("xscreensaver-command -lock") end),
-- F3 - éteindre l'écran
- awful.key({ }, "XF86Battery", function () os.execute("xset dpms force suspend") end),
- awful.key({ modkey, "Control" }, "F3", function () os.execute("xset dpms force suspend") end),
+ awful.key({ }, "XF86Battery", function () awful.util.spawn("xset dpms force suspend") end),
+ awful.key({ modkey, "Control" }, "F3", function () awful.util.spawn("xset dpms force suspend") end),
-- F4 - mettre l'ordi en veille
awful.key({ }, "XF86Sleep", function () awful.util.spawn("my-s2ram") end),
awful.key({ modkey, "Control" }, "F4", function () awful.util.spawn("my-s2ram") end),
@@ -694,3 +694,11 @@ mytimer300:add_signal("timeout", function ()
end)
mytimer300:start()
-- }}}
+
+-- {{{ Disable startup-notification
+-- http://awesome.naquadah.org/wiki/Disable_startup-notification_globally
+local oldspawn = awful.util.spawn
+awful.util.spawn = function (s)
+ oldspawn(s, false)
+end
+-- }}}

0 comments on commit 73df7a9

Please sign in to comment.