hyprland: update check for hyprctl to use environment variable
This commit is contained in:
parent
5a24476cf9
commit
9a5e9255a4
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue