一键导入
add-keyboard-shortcut
Use this skill to add a keyboard shortcut/keybind to the user's computer
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use this skill to add a keyboard shortcut/keybind to the user's computer
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | add-keyboard-shortcut |
| description | Use this skill to add a keyboard shortcut/keybind to the user's computer |
Look in @home-manager/modules/hyprland.nix for potential existing keybinds conflicting with the new one. If yes, ask the user what they want to do:
Query the nixos mcp server for home-manager hyprland configuration. Bind-specific documentation is available in docs/Hyprland-Binds.md
If the action requires more than a single command execution or the command is complex, write a script into @home-manager/scripts The script template:
{
pkgs,
...
}: {
rebuild =
pkgs.writeShellScript "[ACTION-NAME]"
''
echo "Hello World"
''
}
If the action is simple (or can be done without exec), continue without a script.
If the action is probably best done by hyprland itself, look at docs/Hyprland-Dispatchers.md for a list of hyprland dispatchers.
Now edit @home-manager/modules/hyprland.nix to add the keybind based on the users inputs. Remember to always add a description.
Run the rebuild command (yes, simply rebuild as that is our custom script for rebuilding the nixos config).