0
modkey + jまたはmodkey + kは、同じタグのクライアント間を循環するだけです。 すべてのクライアントがタグを無視して循環することはできますか?出来ますか?素晴らしいWM:すべてのタグのすべてのクライアントをどのように反復処理できますか?
おかげ
modkey + jまたはmodkey + kは、同じタグのクライアント間を循環するだけです。 すべてのクライアントがタグを無視して循環することはできますか?出来ますか?素晴らしいWM:すべてのタグのすべてのクライアントをどのように反復処理できますか?
おかげ
あり、組み込みには、このような機能はありませんが、次の(未テスト)動作するかもしれません:
function next_client_total(i)
local c = client.focus
if not c then return end
local cls = client.get()
local fcls = {}
-- Remove all non-normal clients
for _, c in ipairs(cls) do
if awful.client.focus.filter(c) or c == sel then
table.insert(fcls, c)
end
end
-- Find the focused client
for idx, c in ipairs(fcls) do
if c == sel then
-- Found it, focus and raise the "target"
local c = fcls[awful.util.cycle(#fcls, idx + i)]
client.focus = c
c:raise()
return
end
end
end
そこで、このようなキーバインドを追加:
awful.key({ modkey }, "j", function() next_client_total(1) end)
awful.key({ modkey }, "k", function() next_client_total(-1) end)
を