mirror of
https://github.com/elenapan/dotfiles.git
synced 2026-01-08 09:47:23 +08:00
Add elemental::dismiss signal for hiding various elements
This commit is contained in:
parent
67e39c6623
commit
a6d84d3ad5
2 changed files with 8 additions and 1 deletions
|
|
@ -135,6 +135,11 @@ awful.screen.connect_for_each_screen(function(s)
|
|||
|
||||
end)
|
||||
|
||||
awesome.connect_signal("elemental::dismiss", function()
|
||||
local s = mouse.screen
|
||||
s.mywibox.visible = false
|
||||
end)
|
||||
|
||||
-- Every bar theme should provide these fuctions
|
||||
function wibars_toggle()
|
||||
local s = awful.screen.focused()
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ shiftkey = "Shift"
|
|||
keys.desktopbuttons = gears.table.join(
|
||||
awful.button({ }, 1, function ()
|
||||
-- Single tap
|
||||
awesome.emit_signal("elemental::dismiss")
|
||||
naughty.destroy_all_notifications()
|
||||
if mymainmenu then
|
||||
mymainmenu:hide()
|
||||
|
|
@ -332,9 +333,10 @@ keys.globalkeys = gears.table.join(
|
|||
end,
|
||||
{description = "activate sidebar web search prompt", group = "awesome"}),
|
||||
|
||||
-- Dismiss notifications
|
||||
-- Dismiss notifications and elements that connect to the dismiss signal
|
||||
awful.key( { ctrlkey }, "space",
|
||||
function()
|
||||
awesome.emit_signal("elemental::dismiss")
|
||||
naughty.destroy_all_notifications()
|
||||
end,
|
||||
{description = "dismiss notification", group = "notifications"}),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue