Add non-debian default support

This commit is contained in:
Augusto Gunsch 2022-01-23 11:23:31 -03:00
parent 948c182139
commit f328b00d93
No known key found for this signature in database
GPG Key ID: F7EEFE29825C72DC
1 changed files with 9 additions and 2 deletions

View File

@ -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