hyprland: update check for hyprctl to use environment variable

This commit is contained in:
Tigor Hutasuhut 2024-08-19 12:23:24 +07:00
parent 5a24476cf9
commit 9a5e9255a4
2 changed files with 2 additions and 2 deletions

View file

@ -10,6 +10,6 @@ if vim.fn.executable "lazygit" == 1 then
require "config.lazygit"
end
if vim.fn.executable "hyprctl" == 1 and vim.fn.executable "footclient" == 1 then
if vim.env.HYPRLAND_INSTANCE_SIGNATURE ~= nil and vim.fn.executable "footclient" == 1 then
require "config.terminal"
end

View file

@ -13,7 +13,7 @@ if vim.env.ZELLIJ ~= nil and not vim.g.neovide then
"lazygit",
}
end, { desc = "Open Lazygit (Zellij)" })
elseif vim.fn.executable "hyprctl" == 1 and vim.fn.executable "foot" == 1 then
elseif vim.env.HYPRLAND_INSTANCE_SIGNATURE ~= nil and vim.fn.executable "foot" == 1 then
vim.keymap.set("n", "<leader>z", function()
vim.system {
"hyprctl",