0
A
回答
0
有內建沒有這樣的功能,但以下可能工作(未經測試):
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)
相關問題
- 1. 令人敬畏的WM發射棒
- 2. 在令人敬畏的WM中,有可能有不同的菜單,具體取決於您所在的標籤?
- 3. 令人敬畏的WM:在兩臺顯示器上自動顯示客戶端
- 4. 令人敬畏的WM:標籤作爲m-by-n矩陣? (更多標籤!)
- 5. 令人敬畏的WM 3.5獨立配置文件
- 6. jQuery的 - 遍歷所有的XML標籤
- 7. 令人敬畏的嵌套集訂購
- 8. 令人敬畏的WM,爲應用程序保持焦點異常
- 9. 如何遍歷組件內的所有img標籤?
- 10. 如何遍歷terraform中的所有aws_instances?
- 11. 遍歷靜態表格視圖中的所有標籤
- 12. Python的 - 遍歷所有類
- 13. 遍歷所有SimpleTextBox的
- 14. 如何遍歷樹的所有節點?
- 15. 如何遍歷UIImage的所有像素?
- 16. 遍歷glibc malloc中的所有區塊中的所有區塊
- 17. 如何遍歷所有標籤的所有子項以使用Python中的lxml獲取數據?
- 18. 聽我的客戶端機器對服務器所做的所有Perforce命令
- 19. Nightwatch:使用自定義命令遍歷所有選擇的標籤
- 20. Doctrine findby遍歷所有行以顯示所有用戶
- 21. 如何遍歷所有Bundle對象
- 22. android - 如何遍歷所有活動?
- 23. 如何遍歷所有wx.CheckBox實例?
- 24. 如何循環遍歷所有路線?
- 25. 令人敬畏的WM 4中間對齊無法在水平佈局中工作
- 26. OSM - 遍歷所有像素
- 27. 遍歷所有輸入值
- 28. 循環遍歷所有值
- 29. 循環遍歷UITableView中的所有UITextFields
- 30. jQuery:遍歷json中的所有元素