X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/0f3c5be8e79d77ab166da0f238ab12c9f7b05765..e6bc974151466b5f1119a9e3b651e207edcb5714:/awesome/rc.lua diff --git a/awesome/rc.lua b/awesome/rc.lua index 7448eb1..cd9fb2d 100644 --- a/awesome/rc.lua +++ b/awesome/rc.lua @@ -67,6 +67,12 @@ end -- }}} -- {{{ Menu +-- Setup global menu keys +awful.menu.menu_keys.up = { "k", "Up"} +awful.menu.menu_keys.down = { "j", "Down"} +awful.menu.menu_keys.enter = { "l", "Right"} +awful.menu.menu_keys.back = { "h", "Left"} + -- Create a laucher widget and a main menu myawesomemenu = { { "manual", terminal .. " -e man awesome" }, @@ -83,6 +89,12 @@ mymainmenu = awful.menu({ items = { { "awesome", myawesomemenu, beautiful.awesom mylauncher = awful.widget.launcher({ image = beautiful.awesome_icon, menu = mymainmenu }) +myshutdownmenu = awful.menu({ items = { { "shutdown", "systemctl poweroff" }, + { "restart", "systemctl restart" }, + { "suspend", "systemctl suspend" }, + } + }) + -- Menubar configuration menubar.utils.terminal = terminal -- Set the terminal for applications that require it -- }}} @@ -122,6 +134,7 @@ mytasklist.buttons = awful.util.table.join( c:raise() end end), + awful.button({ }, 2, function (c) c:kill() end), awful.button({ }, 3, function () if instance then instance:hide()