Compton 本身不提供自定義快捷鍵功能,需通過窗口管理器或桌面環境實現,具體方法如下:
gsettings 命令或 dconf-editor 工具,在 org.gnome.settings-daemon.plugins.media-keys 路徑下添加自定義快捷鍵,綁定 Compton 啟動/停止命令(如 compton --replace)。~/.i3/config 文件中添加 bindsym 規則,綁定快捷鍵到 Compton 命令(如 bindsym $mod+Shift+t exec compton --config /path/to/config)。注:需確保 Compton 已正確安裝,且快捷鍵組合避免與其他應用沖突。