Add non-debian default support
This commit is contained in:
parent
948c182139
commit
f328b00d93
|
@ -19,7 +19,7 @@ local hotkeys_popup = require("awful.hotkeys_popup")
|
||||||
require("awful.hotkeys_popup.keys")
|
require("awful.hotkeys_popup.keys")
|
||||||
|
|
||||||
-- Load Debian menu entries
|
-- Load Debian menu entries
|
||||||
local debian = require("debian.menu")
|
local is_deb, debian = pcall(require, "debian.menu")
|
||||||
local has_fdo, freedesktop = pcall(require, "freedesktop")
|
local has_fdo, freedesktop = pcall(require, "freedesktop")
|
||||||
|
|
||||||
-- awesome-wm-widgets
|
-- awesome-wm-widgets
|
||||||
|
@ -118,7 +118,7 @@ if has_fdo then
|
||||||
before = { menu_awesome },
|
before = { menu_awesome },
|
||||||
after = { menu_terminal }
|
after = { menu_terminal }
|
||||||
})
|
})
|
||||||
else
|
elseif is_deb then
|
||||||
mymainmenu = awful.menu({
|
mymainmenu = awful.menu({
|
||||||
items = {
|
items = {
|
||||||
menu_awesome,
|
menu_awesome,
|
||||||
|
@ -126,6 +126,13 @@ else
|
||||||
menu_terminal,
|
menu_terminal,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
else
|
||||||
|
mymainmenu = awful.menu({
|
||||||
|
items = {
|
||||||
|
menu_awesome,
|
||||||
|
menu_terminal,
|
||||||
|
}
|
||||||
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue