Awesome: Simplify filebrowser call

master
Pierre Neidhardt 2016-10-18 10:51:26 +05:30
parent 2e0cb65544
commit 79adbd5483
1 changed files with 4 additions and 4 deletions

View File

@ -261,9 +261,9 @@ globalkeys = awful.util.table.join(
awful.key({ modkey, }, "e", function () awful.util.spawn(os.getenv("EDITOR")) end),
-- File browser
awful.key({ modkey, }, "d", function () awful.util.spawn("sh -c 'export SHELL_FILEBROWSER=true; exec " .. termcmd .. "'") end),
awful.key({ }, "XF86Explorer", function () awful.util.spawn("sh -c 'export SHELL_FILEBROWSER=true; exec " .. termcmd .. "'") end),
awful.key({ }, "XF86MyComputer", function () awful.util.spawn("sh -c 'export SHELL_FILEBROWSER=true; exec " .. termcmd .. "'") end),
awful.key({ modkey, }, "d", function () awful.util.spawn("env SHELL_FILEBROWSER=true " .. termcmd) end),
awful.key({ }, "XF86Explorer", function () awful.util.spawn("env SHELL_FILEBROWSER=true " .. termcmd) end),
awful.key({ }, "XF86MyComputer", function () awful.util.spawn("env SHELL_FILEBROWSER=true " .. termcmd) end),
-- Screen lock. xlockmore is useful for LDAP login because slock does not work with it.
-- Don't use 'spawn_with_shell' if you want to keep Awesome's config portable.