Awesome 是什麼?linux
Awesome用戶配置文件:~/.config/awesome/rc.lua
系統默認配置文件在:/etc/xdg/awesome/rc.luashell
-- This is used later as the default terminal and editor to run. -- 這裏設置默認的編輯器和終端 terminal = "urxvt" editor = os.getenv("EDITOR") or "emacs" editor_cmd = terminal .. " -e " .. editor -- 自定義快捷鍵: -- Win + p 打開 dmenu : awful.key({modkey}, "p", function () awful.util.spawn('dmenu_run') end), -- Ctrl + Atl + l 鎖屏: -- 由於 Windows 中是 Win + L ,但在 awesome 中 Win + L 已經被用來幹其餘事情了 awful.key({"Mod1", "Control"}, "l", function () awful.util.spawn('xscreensaver-command -lock') end), -- 取消 Win + Shift + q 的退出, -- 退出的時候用菜單,由於我總是不當心按了... -- awful.key({modkey, "Shift"}, "q", awesome.quit), -- Autorun programs autorun = true autorunApps = { "firefox", "thunderbird", "amarok", "linux-fetion", "amule", } if autorun then for app = 1, #autorunApps do awful.util.spawn_with_shell(autorunApps[app]) end end
問:裏面不少layout我用不到,怎麼給弄掉?
答:註釋掉就能夠了,「--」 就是註釋符,例如個人習慣:segmentfault
-- Table of layouts to cover with awful.layout.inc, order matters. layouts = { -- awful.layout.suit.floating, awful.layout.suit.tile, -- awful.layout.suit.tile.left, -- awful.layout.suit.tile.bottom, -- awful.layout.suit.tile.top, -- awful.layout.suit.fair, -- awful.layout.suit.fair.horizontal, -- awful.layout.suit.spiral, -- awful.layout.suit.spiral.dwindle, awful.layout.suit.max, -- awful.layout.suit.max.fullscreen, awful.layout.suit.magnifier } --自定義快捷鍵 awful.key({ modkey, }, "e", function ()awful.util.spawn('emacs') end), awful.key({ modkey, }, "o", function ()awful.util.spawn('opera') end), awful.key({ modkey, }, "c", function () awful.util.spawn('chromium') end), awful.key({ modkey, }, "p", function () awful.util.spawn('evince') end), awful.key({ modkey, }, "f", function () awful.util.spawn('pcmanfm') end),
Awesome 的壁紙配置默認是 /usr/share/awesome/themes/default 目錄下的 background.png,要替換桌面壁紙的話,替換background.png便可。app