summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2012-11-30 18:55:37 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2012-12-07 08:28:16 +0100
commitbe734416633f2e4b06fc0baae36c7e0483d9ef4a (patch)
tree356a3412eb00cee9be3203adb6bd41d75ec755c9 /.config
parent4b6f26ec10d04b6458de662c40919572837f86e0 (diff)
downloaddotfiles-be734416633f2e4b06fc0baae36c7e0483d9ef4a.tar.gz
dotfiles-be734416633f2e4b06fc0baae36c7e0483d9ef4a.tar.bz2
dotfiles-be734416633f2e4b06fc0baae36c7e0483d9ef4a.zip
awesome: Use systemctl suspend, instead of asking upower via dbus
Diffstat (limited to '.config')
-rw-r--r--.config/awesome/awesome.lua4
-rw-r--r--.config/awesome/cmds.lua6
2 files changed, 2 insertions, 8 deletions
diff --git a/.config/awesome/awesome.lua b/.config/awesome/awesome.lua
index 1b8271a..dc9f9f0 100644
--- a/.config/awesome/awesome.lua
+++ b/.config/awesome/awesome.lua
@@ -232,8 +232,8 @@ globalkeys = awful.util.table.join(
awful.key({ modkey, }, "Print", function () awful.util.spawn("scrot -s") end),
awful.key({ modkey, }, "Pause", function () awful.util.spawn("xset r rate 250 50") end),
- awful.key({ }, "XF86Suspend", function () awful.util.spawn(cmd.suspend) end),
- awful.key({ }, "XF86Sleep", function () awful.util.spawn(cmd.suspend) end),
+ awful.key({ }, "XF86Suspend", function () awful.util.spawn("systemctl suspend") end),
+ awful.key({ }, "XF86Sleep", function () awful.util.spawn("systemctl suspend") end),
awful.key({ }, "XF86MonBrightnessUp", function () awful.util.spawn("sudo brightness up") end),
awful.key({ }, "XF86MonBrightnessDown", function () awful.util.spawn("sudo brightness down") end),
awful.key({}, "XF86TouchpadToggle", function () awful.util.spawn(cmd.tggle_tpd) end),
diff --git a/.config/awesome/cmds.lua b/.config/awesome/cmds.lua
index 69d1640..01e035e 100644
--- a/.config/awesome/cmds.lua
+++ b/.config/awesome/cmds.lua
@@ -2,13 +2,7 @@ local os = os
module("eminent")
-local upower = "dbus-send --system --print-reply " ..
- "--dest=org.freedesktop.UPower " ..
- "/org/freedesktop/UPower "
-
local cmds = {
- suspend = upower .. "org.freedesktop.UPower.Suspend",
- hibernate = upower .. "org.freedesktop.UPower.Hibernate",
urxvtd = "urxvtd -q -o -f",
swIcon = os.getenv("HOME") .. "/.local/bin/swIcon.py",
tggle_tpd = os.getenv("HOME") .. "/.scripts/toggle_touchpad.sh"