diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-10-10 21:20:29 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-10-10 21:20:29 +0200 |
commit | ff06577f133f2f9235c7340ae7a6a650c8ce7a95 (patch) | |
tree | d0ea54a58368b99bc2674498e6d399ff668c0e5a | |
parent | 87bbcfa410bb60d9e3418f70b3cf129190148768 (diff) | |
download | dotfiles-ff06577f133f2f9235c7340ae7a6a650c8ce7a95.tar.gz dotfiles-ff06577f133f2f9235c7340ae7a6a650c8ce7a95.tar.bz2 dotfiles-ff06577f133f2f9235c7340ae7a6a650c8ce7a95.zip |
awesome: Add some more cmds to cmd list
-rw-r--r-- | .config/awesome/awesome.lua | 8 | ||||
-rw-r--r-- | .config/awesome/cmds.lua | 5 |
2 files changed, 9 insertions, 4 deletions
diff --git a/.config/awesome/awesome.lua b/.config/awesome/awesome.lua index 3593d23..a44f8bd 100644 --- a/.config/awesome/awesome.lua +++ b/.config/awesome/awesome.lua @@ -19,12 +19,12 @@ local runonce = require("runonce") local cmd = require("cmds") -runonce.run("urxvtd -q -o -f") +runonce.run(cmd.urxvtd) runonce.run("start-pulseaudio-x11") runonce.run("synergys") runonce.run("synergyc 127.0.0.1:24801") runonce.run("pidgin") -runonce.run(os.getenv("HOME") .. "/.local/bin/swIcon.py") +runonce.run(cmd.swIcon) -- This is used later as the default terminal and editor to run. terminal = "urxvtc" @@ -233,8 +233,8 @@ globalkeys = awful.util.table.join( awful.key({ }, "XF86Sleep", function () awful.util.spawn(cmd.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(os.getenv("HOME") .. "/.scripts/toggle_touchpad.sh") end), - awful.key({}, "XF86TouchpadOn", function () awful.util.spawn(os.getenv("HOME") .. "/.scripts/toggle_touchpad.sh") end), + awful.key({}, "XF86TouchpadToggle", function () awful.util.spawn(cmd.tggle_tpd) end), + awful.key({}, "XF86TouchpadOn", function () awful.util.spawn(cmd.tggle_tpd) end), awful.key({ modkey, "Shift" }, "r", awesome.restart), awful.key({ modkey, "Shift" }, "q", awesome.quit), diff --git a/.config/awesome/cmds.lua b/.config/awesome/cmds.lua index 713f807..69d1640 100644 --- a/.config/awesome/cmds.lua +++ b/.config/awesome/cmds.lua @@ -1,3 +1,5 @@ +local os = os + module("eminent") local upower = "dbus-send --system --print-reply " .. @@ -7,6 +9,9 @@ local upower = "dbus-send --system --print-reply " .. 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" } return cmds |