Adds keyboard shortcuts for non numpad keyboards
This commit is contained in:
parent
75851ccff1
commit
49aee3f1ec
28
rc.lua
28
rc.lua
|
@ -495,30 +495,58 @@ globalkeys = awful.util.table.join(
|
||||||
awful.spawn.easy_async("tvrs enable left --sound", function() end)
|
awful.spawn.easy_async("tvrs enable left --sound", function() end)
|
||||||
end, {description="Sets the second screen to the left of the main screen", group="screen control"}),
|
end, {description="Sets the second screen to the left of the main screen", group="screen control"}),
|
||||||
|
|
||||||
|
awful.key({modkey, "Ctrl"}, "Left", function()
|
||||||
|
awful.spawn.easy_async("tvrs enable left --sound", function() end)
|
||||||
|
end, {description="Sets the second screen to the left of the main screen", group="screen control"}),
|
||||||
|
|
||||||
awful.key({modkey}, "#84", function()
|
awful.key({modkey}, "#84", function()
|
||||||
awful.spawn.easy_async("tvrs duplicate --sound", function() end)
|
awful.spawn.easy_async("tvrs duplicate --sound", function() end)
|
||||||
end, {description="Sets the second screen to copy the main screen", group="screen control"}),
|
end, {description="Sets the second screen to copy the main screen", group="screen control"}),
|
||||||
|
|
||||||
|
awful.key({modkey, "Ctrl"}, "Return", function()
|
||||||
|
awful.spawn.easy_async("tvrs duplicate --sound", function() end)
|
||||||
|
end, {description="Sets the second screen to copy the main screen", group="screen control"}),
|
||||||
|
|
||||||
awful.key({modkey}, "#85", function()
|
awful.key({modkey}, "#85", function()
|
||||||
awful.spawn.easy_async("tvrs enable right --sound", function() end)
|
awful.spawn.easy_async("tvrs enable right --sound", function() end)
|
||||||
end, {description="Sets the second screen to the right of the main screen", group="screen control"}),
|
end, {description="Sets the second screen to the right of the main screen", group="screen control"}),
|
||||||
|
|
||||||
|
awful.key({modkey, "Ctrl"}, "Right", function()
|
||||||
|
awful.spawn.easy_async("tvrs enable right --sound", function() end)
|
||||||
|
end, {description="Sets the second screen to the right of the main screen", group="screen control"}),
|
||||||
|
|
||||||
awful.key({modkey}, "#80", function()
|
awful.key({modkey}, "#80", function()
|
||||||
awful.spawn.easy_async("tvrs enable above --sound", function() end)
|
awful.spawn.easy_async("tvrs enable above --sound", function() end)
|
||||||
end, {description="Sets the second screen above the main screen", group="screen control"}),
|
end, {description="Sets the second screen above the main screen", group="screen control"}),
|
||||||
|
|
||||||
|
awful.key({modkey, "Ctrl"}, "Up", function()
|
||||||
|
awful.spawn.easy_async("tvrs enable above --sound", function() end)
|
||||||
|
end, {description="Sets the second screen above the main screen", group="screen control"}),
|
||||||
|
|
||||||
awful.key({modkey}, "#88", function()
|
awful.key({modkey}, "#88", function()
|
||||||
awful.spawn.easy_async("tvrs enable below --sound", function() end)
|
awful.spawn.easy_async("tvrs enable below --sound", function() end)
|
||||||
end, {description="Sets the second screen below the main screen", group="screen control"}),
|
end, {description="Sets the second screen below the main screen", group="screen control"}),
|
||||||
|
|
||||||
|
awful.key({modkey, "Ctrl"}, "Down", function()
|
||||||
|
awful.spawn.easy_async("tvrs enable below --sound", function() end)
|
||||||
|
end, {description="Sets the second screen below the main screen", group="screen control"}),
|
||||||
|
|
||||||
awful.key({modkey}, "#90", function()
|
awful.key({modkey}, "#90", function()
|
||||||
awful.spawn.easy_async("tvrs disable --sound", function() end)
|
awful.spawn.easy_async("tvrs disable --sound", function() end)
|
||||||
end, {description="Disable the second screen", group="screen control"}),
|
end, {description="Disable the second screen", group="screen control"}),
|
||||||
|
|
||||||
|
awful.key({modkey, "Ctrl"}, "#22", function()
|
||||||
|
awful.spawn.easy_async("tvrs disable --sound", function() end)
|
||||||
|
end, {description="Disable the second screen", group="screen control"}),
|
||||||
|
|
||||||
awful.key({modkey, "Shift"}, "#90", function()
|
awful.key({modkey, "Shift"}, "#90", function()
|
||||||
awful.spawn.easy_async("tvrs only-secondary --sound", function() end)
|
awful.spawn.easy_async("tvrs only-secondary --sound", function() end)
|
||||||
end, {description="Disable the primary screen, using only the second", group="screen control"}),
|
end, {description="Disable the primary screen, using only the second", group="screen control"}),
|
||||||
|
|
||||||
|
awful.key({modkey, "Ctrl", "Shift"}, "#22", function()
|
||||||
|
awful.spawn.easy_async("tvrs only-secondary --sound", function() end)
|
||||||
|
end, {description="Disable the primary screen, using only the second", group="screen control"}),
|
||||||
|
|
||||||
awful.key({modkey}, "d", function()
|
awful.key({modkey}, "d", function()
|
||||||
if naughty_suspended then
|
if naughty_suspended then
|
||||||
naughty.resume()
|
naughty.resume()
|
||||||
|
|
Loading…
Reference in New Issue