kde
Konsole
Section titled “Konsole”配置文件位置
Section titled “配置文件位置”~/.config/konsolerc # 主配置文件~/.local/share/konsole/*.profile # Profile 配置文件Ctrl+C 智能复制
Section titled “Ctrl+C 智能复制”Konsole 默认支持智能复制:有选中文字时用 Ctrl+C 复制,无选中时发送中断信号。
在 ~/.local/share/konsole/<profile>.profile 中添加:
[Interaction Options]AutoCopySelectedText=trueCopyOnControlShiftDrag=trueMiddleClickPasteMode=1TrimLeadingSpacesInSelectedText=trueTrimTrailingSpacesInSelectedText=trueUnderlineFilesEnabled=true关键设置说明:
AutoCopySelectedText=true:选中即复制(自动复制选中的文本到剪贴板)CopyOnControlShiftDrag=true:Ctrl+Shift+拖动时复制MiddleClickPasteMode=1:中键粘贴
Ctrl+C 行为逻辑:
| 状态 | Ctrl+C 行为 |
|---|---|
| 有选中文字 | 复制到剪贴板 |
| 无选中文字 | 发送中断信号 (SIGINT) |
# 重新加载配置(需重启 Konsole)kquitapp6 konsole || killall konsole#kscreen-doctor --helpkscreen-doctor -okscreen-doctor --dpms show# 重新唤醒所有显示器kscreen-doctor --dpms on
# 当屏幕卡住时的恢复命令# 强制重新激活所有显示器kscreen-doctor --dpms off && sleep 1 && kscreen-doctor --dpms on
# 重置显示器配置kscreen-doctor --output eDP-1 --enable --output HDMI-A-1 --enable
# 如果还不行,重启 KWin 混成器systemctl --user restart plasma-kwin_wayland.service