From a3d27283799fcce68209e24905f5f12eed2c3cd6 Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Thu, 18 Jan 2018 21:34:52 +0700 Subject: Update 2018-01-18 --- awesome/.config/awesome/rc.lua | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'awesome/.config') diff --git a/awesome/.config/awesome/rc.lua b/awesome/.config/awesome/rc.lua index 806d753..4c9aa10 100644 --- a/awesome/.config/awesome/rc.lua +++ b/awesome/.config/awesome/rc.lua @@ -4,6 +4,8 @@ local awful = require"awful" require"awful.autofocus" -- Widget and layout library local wibox = require"wibox" +-- Menu library +local freedesktop = require"freedesktop" -- Theme handling library local beautiful = require"beautiful" -- Notification library @@ -13,9 +15,6 @@ local hotkeys_popup = require"awful.hotkeys_popup".widget -- System data library local vicious = require"vicious" --- Load Debian menu entries -require"debian.menu" - -- {{{ Error handling -- Check if awesome encountered an error during startup and fell back to -- another config (This code will only ever execute for the fallback config) @@ -121,11 +120,10 @@ myawesomemenu = { {"quit", function() awesome.quit() end} } -mymainmenu = awful.menu{items = { - {"awesome", myawesomemenu, beautiful.awesome_icon}, - {"debian", debian.menu.Debian_menu.Debian}, - {"open terminal", terminal} -}} +mymainmenu = freedesktop.menu.build{ + before = {{"Awesome", myawesomemenu, beautiful.awesome_icon}}, + after = {{"Open terminal", terminal}} +} -- mylauncher = awful.widget.launcher{image = beautiful.awesome_icon, -- menu = mymainmenu} -- cgit 1.4.1