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"
|
require "config.lazygit"
|
||||||
end
|
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"
|
require "config.terminal"
|
||||||
end
|
end
|
||||||
|
|
|
@ -13,7 +13,7 @@ if vim.env.ZELLIJ ~= nil and not vim.g.neovide then
|
||||||
"lazygit",
|
"lazygit",
|
||||||
}
|
}
|
||||||
end, { desc = "Open Lazygit (Zellij)" })
|
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.keymap.set("n", "<leader>z", function()
|
||||||
vim.system {
|
vim.system {
|
||||||
"hyprctl",
|
"hyprctl",
|
||||||
|
|
Loading…
Reference in a new issue