added powermenu
This commit is contained in:
@@ -42,9 +42,11 @@ function _M.get(globalkeys)
|
||||
"#" .. i + 9,
|
||||
function()
|
||||
local screen = awful.screen.focused()
|
||||
local tag = screen.tags[i]
|
||||
if tag then
|
||||
client.focus:move_to_tag(tag)
|
||||
if client.focus then
|
||||
local tag = screen.tags[i]
|
||||
if tag then
|
||||
client.focus:move_to_tag(tag)
|
||||
end
|
||||
end
|
||||
end,
|
||||
{description = "Move focused client on tag " .. i, group = "Tag"}
|
||||
|
||||
@@ -25,8 +25,8 @@ function _M.get()
|
||||
{ description = "Close window", group = "Client" }
|
||||
),
|
||||
awful.key(
|
||||
{ modkey, "Control" },
|
||||
"Space",
|
||||
{ modkey },
|
||||
"space",
|
||||
awful.client.floating.toggle,
|
||||
{ description = "Toggle floating window", group = "Client" }
|
||||
),
|
||||
|
||||
@@ -170,14 +170,6 @@ function _M.get()
|
||||
end,
|
||||
{description = "Decrease the number of columns", group = "Layout"}
|
||||
),
|
||||
awful.key(
|
||||
{ modkey },
|
||||
"space",
|
||||
function ()
|
||||
awful.layout.inc( 1)
|
||||
end,
|
||||
{description = "Select next", group = "Layout"}
|
||||
),
|
||||
awful.key(
|
||||
{ modkey, "Shift" },
|
||||
"space",
|
||||
@@ -333,7 +325,7 @@ function _M.get()
|
||||
{ modkey },
|
||||
"F5",
|
||||
function (c)
|
||||
awful.spawn("xbacklight -inc 10")
|
||||
awful.spawn("xbacklight -inc 10%+")
|
||||
awesome.emit_signal("module::brightness_osd:show", true)
|
||||
awesome.emit_signal("module::brightness_slider:update")
|
||||
awesome.emit_signal("widget::brightness_osd:rerun")
|
||||
@@ -343,10 +335,10 @@ function _M.get()
|
||||
{ modkey },
|
||||
"F4",
|
||||
function (c)
|
||||
awful.spawn("xbacklight -dec 10")
|
||||
awful.spawn("xbacklight -dec 10%-")
|
||||
awesome.emit_signal("widget::brightness_osd:rerun")
|
||||
awesome.emit_signal("module::brightness_osd:show", true)
|
||||
awesome.emit_signal("module::brightness_slider:update")
|
||||
awesome.emit_signal("widget::brightness_osd:rerun")
|
||||
end
|
||||
),
|
||||
awful.key(
|
||||
@@ -356,6 +348,13 @@ function _M.get()
|
||||
local t = awful.screen.focused().selected_tag
|
||||
t:delete()
|
||||
end
|
||||
),
|
||||
awful.key(
|
||||
{ },
|
||||
"Escape",
|
||||
function ()
|
||||
awesome.emit_signal("module::powermenu:hide")
|
||||
end
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user