experimental option becomes use_pstree
This commit is contained in:
parent
191326bfb2
commit
4f63582e46
14
init.lua
14
init.lua
|
@ -103,7 +103,6 @@ end
|
||||||
local function new(args)
|
local function new(args)
|
||||||
local cfg = args or {}
|
local cfg = args or {}
|
||||||
|
|
||||||
-- legacy definition
|
|
||||||
local mod = cfg.mod or "Mod4"
|
local mod = cfg.mod or "Mod4"
|
||||||
local mod_keysym = cfg.mod_keysym
|
local mod_keysym = cfg.mod_keysym
|
||||||
|
|
||||||
|
@ -113,8 +112,8 @@ local function new(args)
|
||||||
local right = cfg.down or { "l", "Right" }
|
local right = cfg.down or { "l", "Right" }
|
||||||
|
|
||||||
local focus = cfg.focus or awful.client.focus.global_bydirection
|
local focus = cfg.focus or awful.client.focus.global_bydirection
|
||||||
local dont_restore_mods = cfg.dont_restore_mods or false
|
local dont_restore_mods = cfg.dont_restore_mods
|
||||||
local debug = cfg.debug or false
|
local debug = cfg.debug
|
||||||
|
|
||||||
local mods = mod_keysym and { mod_keysym } or generate_conversion_map()
|
local mods = mod_keysym and { mod_keysym } or generate_conversion_map()
|
||||||
|
|
||||||
|
@ -126,7 +125,8 @@ local function new(args)
|
||||||
right = right,
|
right = right,
|
||||||
}
|
}
|
||||||
|
|
||||||
local use_xdotool = cfg.use_xdotool or false
|
local use_xdotool = cfg.use_xdotool
|
||||||
|
local use_pstree = cfg.use_pstree or cfg.experimental -- experimental is a legacy parameter
|
||||||
|
|
||||||
local tmux_keys = cfg.tmux
|
local tmux_keys = cfg.tmux
|
||||||
or {
|
or {
|
||||||
|
@ -139,9 +139,9 @@ local function new(args)
|
||||||
|
|
||||||
local vim_keys = cfg.vim or {
|
local vim_keys = cfg.vim or {
|
||||||
mods = { "Control_L" },
|
mods = { "Control_L" },
|
||||||
up = "k",
|
|
||||||
down = "j",
|
|
||||||
left = "h",
|
left = "h",
|
||||||
|
down = "j",
|
||||||
|
up = "k",
|
||||||
right = "l",
|
right = "l",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -223,7 +223,7 @@ local function new(args)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- use pstree to determine type of client (experimental)
|
-- use pstree to determine type of client (experimental)
|
||||||
if cfg.experimental then
|
if use_pstree then
|
||||||
navigate = function(dir)
|
navigate = function(dir)
|
||||||
local c = client.focus
|
local c = client.focus
|
||||||
local pid = c and c.pid or -1
|
local pid = c and c.pid or -1
|
||||||
|
|
Loading…
Reference in New Issue