diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-08-14 05:17:54 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-08-14 05:17:54 +0800 |
| commit | bc8a5889c4bb52405f2ac73d18a42ab43e93e867 (patch) | |
| tree | 02eef02c4ce2de03d841e605440e0890f1ec8f9e /permissions.lua | |
| parent | 25c5e0b1704b7d7cc4a37619a508c592f6a794c0 (diff) | |
feat: add Lua config modules for Hyprland
Split the monolithic Hyprland config into modular Lua files covering
appearance, input, keybindings, monitors, startup, window rules, and
workspace settings.
Diffstat (limited to 'permissions.lua')
| -rw-r--r-- | permissions.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/permissions.lua b/permissions.lua new file mode 100644 index 0000000..c6b9363 --- /dev/null +++ b/permissions.lua @@ -0,0 +1,13 @@ +-- 权限配置(对应 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") |
