mirror of
https://github.com/elenapan/dotfiles.git
synced 2025-12-26 15:14:58 +08:00
Fix rofi window switcher bug when a client has no class
This commit is contained in:
parent
c545ea70e8
commit
11bb0c8632
1 changed files with 3 additions and 1 deletions
|
|
@ -15,7 +15,9 @@ awesome_get_client_list() {
|
|||
local list = '\n'
|
||||
local capi = { screen = screen, client = client }
|
||||
for _, c in ipairs(capi.client.get()) do
|
||||
list = list..c.window..' ['..c.first_tag.index..'] ~ '..c.class..' ~ '..c.name..'\n'
|
||||
if c.class then
|
||||
list = list..c.window..' ['..c.first_tag.index..'] ~ '..c.class..' ~ '..c.name..'\n'
|
||||
end
|
||||
end
|
||||
return list
|
||||
" | sed '1,1d; $d'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue