update to be easier on my rsi.
This commit is contained in:
parent
990c1dd207
commit
dfb3d31a8d
@ -293,23 +293,23 @@ globalkeys = gears.table.join(
|
|||||||
-- Standard program
|
-- Standard program
|
||||||
awful.key({ "Control", "Mod1" }, "k", function () awful.spawn(terminal) end,
|
awful.key({ "Control", "Mod1" }, "k", function () awful.spawn(terminal) end,
|
||||||
{description = "open a terminal", group = "launcher"}),
|
{description = "open a terminal", group = "launcher"}),
|
||||||
awful.key({ modkey, "Control" }, "r", awesome.restart,
|
awful.key({ "Control","Mod1", "Shift", "Mod4" }, "r", awesome.restart,
|
||||||
{description = "reload awesome", group = "awesome"}),
|
{description = "reload awesome", group = "awesome"}),
|
||||||
-- awful.key({ modkey, "Shift" }, "q", awesome.quit,
|
-- awful.key({ modkey, "Shift" }, "q", awesome.quit,
|
||||||
-- {description = "quit awesome", group = "awesome"}),
|
-- {description = "quit awesome", group = "awesome"}),
|
||||||
awful.key({ "Control", "Mod1" }, "q",
|
awful.key({"Control","Mod1", "Shift", "Mod4" }, "q",
|
||||||
function()
|
function()
|
||||||
awful.util.spawn("i3lock --color=000000")
|
awful.util.spawn("i3lock --color=000000")
|
||||||
end),
|
end),
|
||||||
|
|
||||||
-- added by josiah for rofi use
|
-- added by josiah for rofi use
|
||||||
awful.key({ "Control","Mod1" }, "space",
|
awful.key({ "Control","Mod1", "Shift", "Mod4"}, "space",
|
||||||
function()
|
function()
|
||||||
awful.util.spawn("rofi -combi-modi window,drun,ssh -theme purple -font 'hack 10' -show combi")
|
awful.util.spawn("rofi -combi-modi window,drun,ssh -theme purple -font 'hack 10' -show combi")
|
||||||
end),
|
end),
|
||||||
|
|
||||||
-- added by josiah for scrot use
|
-- added by josiah for scrot use
|
||||||
awful.key({ "Control","Mod1" }, "4",
|
awful.key({ "Control","Mod1", "Shift", "Mod4" }, "s",
|
||||||
function()
|
function()
|
||||||
awful.spawn.with_shell("sleep 0.2 && scrot -s -e 'mv $f ~/Pictures/screenshots/'")
|
awful.spawn.with_shell("sleep 0.2 && scrot -s -e 'mv $f ~/Pictures/screenshots/'")
|
||||||
end),
|
end),
|
||||||
@ -364,7 +364,7 @@ end))
|
|||||||
|
|
||||||
-- clientkeys
|
-- clientkeys
|
||||||
clientkeys = gears.table.join(
|
clientkeys = gears.table.join(
|
||||||
awful.key({ modkey, "Shift" }, "c", function (c) c:kill() end,
|
awful.key({ "Control","Mod1", "Shift", "Mod4" }, "c", function (c) c:kill() end,
|
||||||
{description = "close", group = "client"}),
|
{description = "close", group = "client"}),
|
||||||
awful.key({ modkey, "Control" }, "space", awful.client.floating.toggle ,
|
awful.key({ modkey, "Control" }, "space", awful.client.floating.toggle ,
|
||||||
{description = "toggle floating", group = "client"}),
|
{description = "toggle floating", group = "client"}),
|
||||||
@ -374,7 +374,7 @@ clientkeys = gears.table.join(
|
|||||||
{description = "move to screen", group = "client"}),
|
{description = "move to screen", group = "client"}),
|
||||||
awful.key({ modkey, }, "t", function (c) c.ontop = not c.ontop end,
|
awful.key({ modkey, }, "t", function (c) c.ontop = not c.ontop end,
|
||||||
{description = "toggle keep on top", group = "client"}),
|
{description = "toggle keep on top", group = "client"}),
|
||||||
awful.key({ "Mod1", "Control"}, "f",
|
awful.key({ "Control","Mod1", "Shift", "Mod4" }, "f",
|
||||||
function (c)
|
function (c)
|
||||||
c.maximized = not c.maximized
|
c.maximized = not c.maximized
|
||||||
c:raise()
|
c:raise()
|
||||||
@ -400,7 +400,7 @@ clientkeys = gears.table.join(
|
|||||||
for i = 1, 9 do
|
for i = 1, 9 do
|
||||||
globalkeys = gears.table.join(globalkeys,
|
globalkeys = gears.table.join(globalkeys,
|
||||||
-- View tag only.
|
-- View tag only.
|
||||||
awful.key({ modkey }, "#" .. i + 9,
|
awful.key({ "Control","Mod1", "Shift", "Mod4" }, "#" .. i + 9,
|
||||||
function ()
|
function ()
|
||||||
local screen = awful.screen.focused()
|
local screen = awful.screen.focused()
|
||||||
local tag = screen.tags[i]
|
local tag = screen.tags[i]
|
||||||
|
Loading…
Reference in New Issue
Block a user