diff options
Diffstat (limited to '.config/awesome')
-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 |