跳转至

设置系统快捷键

设置系统快捷键

更新日期:2020-06-28


rc.lua配置文件中找到Standard program小节,仿照小节里面的默认代码加入自定义快捷键。

例如要配置使用Win + E来启动dolphin文件管理器:

1
2
3
4
5
6
7
8
9
awful.key({modkey,}, "e",
    function()
        awful.util.spawn_with_shell("dolphin")
    end,
    {
        description = "open a dolphin file manager",
        group = "launcher"
    }
),

Note

  • 这里的modkey就是指的Win键,在awesome中又叫Super键。
  • 末尾的,不能少。