Skip to content

kde

~/.config/konsolerc # 主配置文件
~/.local/share/konsole/*.profile # Profile 配置文件

Konsole 默认支持智能复制:有选中文字时用 Ctrl+C 复制,无选中时发送中断信号

~/.local/share/konsole/<profile>.profile 中添加:

[Interaction Options]
AutoCopySelectedText=true
CopyOnControlShiftDrag=true
MiddleClickPasteMode=1
TrimLeadingSpacesInSelectedText=true
TrimTrailingSpacesInSelectedText=true
UnderlineFilesEnabled=true

关键设置说明:

  • AutoCopySelectedText=true:选中即复制(自动复制选中的文本到剪贴板)
  • CopyOnControlShiftDrag=true:Ctrl+Shift+拖动时复制
  • MiddleClickPasteMode=1:中键粘贴

Ctrl+C 行为逻辑:

状态Ctrl+C 行为
有选中文字复制到剪贴板
无选中文字发送中断信号 (SIGINT)
Terminal window
# 重新加载配置(需重启 Konsole)
kquitapp6 konsole || killall konsole
Terminal window
#
kscreen-doctor --help
kscreen-doctor -o
kscreen-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
t1