feat: misc configs
This commit is contained in:
parent
15a876e975
commit
efb515d76c
9 changed files with 91 additions and 48 deletions
|
|
@ -10,9 +10,16 @@ vim.keymap.set('n', '<leader>t', function()
|
|||
local ret = vim.system({ 'hyprctl', 'clients', '-j' }):wait()
|
||||
if ret.code == 0 then
|
||||
for _, c in ipairs(vim.json.decode(ret.stdout)) do
|
||||
if (c.class or ''):lower():find('sioyek')
|
||||
and (c.title or ''):find(basename, 1, true) then
|
||||
vim.system({ 'hyprctl', 'dispatch', 'closewindow', 'address:' .. c.address })
|
||||
if
|
||||
(c.class or ''):lower():find('sioyek')
|
||||
and (c.title or ''):find(basename, 1, true)
|
||||
then
|
||||
vim.system({
|
||||
'hyprctl',
|
||||
'dispatch',
|
||||
'closewindow',
|
||||
'address:' .. c.address,
|
||||
})
|
||||
return
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue