diff options
author | Nguyễn Gia Phong <vn.mcsinyx@gmail.com> | 2018-01-18 21:34:52 +0700 |
---|---|---|
committer | Nguyễn Gia Phong <vn.mcsinyx@gmail.com> | 2018-01-18 21:34:52 +0700 |
commit | a3d27283799fcce68209e24905f5f12eed2c3cd6 (patch) | |
tree | 183fcacc4efd2607772a83d8a4e486ab837a299f /awesome | |
parent | 874e00f040d1c3a1e787b08c4ee4daf73d678fae (diff) | |
download | dotfiles-a3d27283799fcce68209e24905f5f12eed2c3cd6.tar.gz |
Update 2018-01-18
Diffstat (limited to 'awesome')
-rw-r--r-- | awesome/.config/awesome/rc.lua | 14 |
1 files changed, 6 insertions, 8 deletions
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} |