Adds keyboard shortcuts for non numpad keyboards

This commit is contained in:
Thomas Forgione 2020-03-09 11:41:19 +01:00
parent 75851ccff1
commit 49aee3f1ec
1 changed files with 28 additions and 0 deletions

28
rc.lua
View File

@ -495,30 +495,58 @@ globalkeys = awful.util.table.join(
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, "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.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, "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.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, "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.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, "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.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, "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.spawn.easy_async("tvrs disable --sound", function() end)
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.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, "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()
if naughty_suspended then
naughty.resume()