feat: misc configs

This commit is contained in:
Barrett Ruth 2026-02-18 10:20:00 -05:00
parent 15a876e975
commit efb515d76c
Signed by: barrett
GPG key ID: A6C96C9349D2FC81
9 changed files with 91 additions and 48 deletions

View file

@ -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