Debian 下 Compton 快捷键配置技巧
核心原则
i3 与 Sway 的实用快捷键示例
# 切换(若未运行则启动,已运行则终止)
bindsym $mod+Shift+t exec --no-startup-id killall -q compton || compton --config ~/.config/compton.conf
# 仅重启
bindsym $mod+Shift+r exec --no-startup-id killall -q compton; compton --config ~/.config/compton.conf
bindsym $mod+Shift+o exec --no-startup-id compton --config ~/.config/compton.conf --opacity 0.8
bindsym $mod+Shift+s exec --no-startup-id compton --config ~/.config/compton.conf --shadow toggle
bindsym $mod+Shift+b exec --no-startup-id compton --config ~/.config/compton.conf --backend glx
bindsym $mod+Ctrl+e exec --no-startup-id $EDITOR ~/.config/compton.conf
Awesome WM 的绑定示例
awful.key({ "Mod1" }, "t", function ()
awful.spawn("killall -q compton || compton --config ~/.config/compton.conf")
end, {description = "toggle compton", group = "launcher"}),
awful.key({ "Mod1", "Shift" }, "o", function ()
awful.spawn("compton --config ~/.config/compton.conf --opacity 0.8")
end, {description = "set opacity 80%", group = "launcher"})
进阶技巧与排错