]> git.rmz.io Git - dotfiles.git/blobdiff - awesome/rc.lua
add a shutdown menu
[dotfiles.git] / awesome / rc.lua
index 4e080f3609ec7c5aab514a4f3e15bcce4c90ca72..cd9fb2d64919d7e2d94dbf7be2d0f74c236745ae 100644 (file)
@@ -89,6 +89,12 @@ mymainmenu = awful.menu({ items = { { "awesome", myawesomemenu, beautiful.awesom
 mylauncher = awful.widget.launcher({ image = beautiful.awesome_icon,
                                      menu = mymainmenu })
 
 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
 -- }}}
 -- Menubar configuration
 menubar.utils.terminal = terminal -- Set the terminal for applications that require it
 -- }}}