-- 权限配置(对应 permissions.conf) -- 注意:出于安全原因,此处的权限更改需要重启 Hyprland 才能生效,且不会实时应用 -- 参考 https://wiki.hypr.land/Configuring/Advanced-and-Cool/Permissions/ -- hl.config({ -- ecosystem = { -- enforce_permissions = true, -- }, -- }) -- hl.permission("/usr/(bin|local/bin)/grim", "screencopy", "allow") -- hl.permission("/usr/(lib|libexec|lib64)/xdg-desktop-portal-hyprland", "screencopy", "allow") -- hl.permission("/usr/(bin|local/bin)/hyprpm", "plugin", "allow")