Debian 下 Compton 快捷键的正确做法
核心原则
i3 窗口管理器的实用示例
bindsym $mod+Shift+t exec --no-startup-id compton --config ~/.config/compton/compton.conf --backend glx --alpha-threshold 1 --opacity 0.5
说明:$mod 通常是 Mod1(Alt) 或 Mod4(Super);上述命令中的 –opacity 0.5 表示窗口不透明度为 50%(可按需改为 0.8、1.0 等)。保存后执行 Alt+Shift+R 或 i3-msg reload 使配置生效。bindsym $mod+Shift+c exec --no-startup-id pkill compton
bindsym $mod+Shift+r exec --no-startup-id compton -b 0.5
其他窗口管理器的思路
bindsym $mod+Shift+t exec --no-startup-id compton --config ~/.config/compton/compton.conf
bindsym $mod+Shift+c exec --no-startup-id pkill compton
awful.key({ modkey, "Shift" }, "t", function () awful.spawn("compton --config ~/.config/compton/compton.conf") end),
awful.key({ modkey, "Shift" }, "c", function () awful.spawn("pkill compton") end),
常见问题与排查