Update awesomerc.lua
Alternative fix for hotkey_popup via awful menu showing on wrong screen
This commit is contained in:
parent
c20573e6dd
commit
cf5b0b51ef
|
@ -14,7 +14,7 @@ local beautiful = require("beautiful")
|
||||||
-- Notification library
|
-- Notification library
|
||||||
local naughty = require("naughty")
|
local naughty = require("naughty")
|
||||||
local menubar = require("menubar")
|
local menubar = require("menubar")
|
||||||
local hotkeys_popup = require("awful.hotkeys_popup").widget
|
local hotkeys_popup = require("awful.hotkeys_popup")
|
||||||
-- Enable hotkeys help widget for VIM and other apps
|
-- Enable hotkeys help widget for VIM and other apps
|
||||||
-- when client with a matching name is opened:
|
-- when client with a matching name is opened:
|
||||||
require("awful.hotkeys_popup.keys")
|
require("awful.hotkeys_popup.keys")
|
||||||
|
@ -104,7 +104,7 @@ end
|
||||||
-- @DOC_MENU@
|
-- @DOC_MENU@
|
||||||
-- Create a launcher widget and a main menu
|
-- Create a launcher widget and a main menu
|
||||||
myawesomemenu = {
|
myawesomemenu = {
|
||||||
{ "hotkeys", function() return false, hotkeys_popup.show_help end},
|
{ "hotkeys", function() hotkeys_popup.show_help(nil, awful.screen.focused()) end },
|
||||||
{ "manual", terminal .. " -e man awesome" },
|
{ "manual", terminal .. " -e man awesome" },
|
||||||
{ "edit config", editor_cmd .. " " .. awesome.conffile },
|
{ "edit config", editor_cmd .. " " .. awesome.conffile },
|
||||||
{ "restart", awesome.restart },
|
{ "restart", awesome.restart },
|
||||||
|
|
|
@ -6,10 +6,20 @@
|
||||||
-- @module awful.hotkeys_popup
|
-- @module awful.hotkeys_popup
|
||||||
---------------------------------------------------------------------------
|
---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
local hotkeys_popup = {
|
local hotkeys_popup = {
|
||||||
widget = require("awful.hotkeys_popup.widget"),
|
widget = require("awful.hotkeys_popup.widget"),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
--- This is the same as awful.hotkeys_popup.widget.show_help
|
||||||
|
--
|
||||||
|
-- example usage:
|
||||||
|
-- local hotkeys_popup = require("awful.hotkeys_popup")
|
||||||
|
-- myawesomemenu = {{ "hotkeys", function() hotkeys_popup.show_help() end },
|
||||||
|
-- -- <more entries>
|
||||||
|
-- }
|
||||||
|
--
|
||||||
|
-- see `awful.hotkeys_popup.widget.show_help` for more information
|
||||||
|
|
||||||
hotkeys_popup.show_help = hotkeys_popup.widget.show_help
|
hotkeys_popup.show_help = hotkeys_popup.widget.show_help
|
||||||
return hotkeys_popup
|
return hotkeys_popup
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue