aboutsummaryrefslogtreecommitdiff
path: root/awesome
diff options
context:
space:
mode:
Diffstat (limited to 'awesome')
-rwxr-xr-xawesome/rc.lua52
1 files changed, 25 insertions, 27 deletions
diff --git a/awesome/rc.lua b/awesome/rc.lua
index a7d518ec..086c0d33 100755
--- a/awesome/rc.lua
+++ b/awesome/rc.lua
@@ -270,18 +270,30 @@ globalkeys = gears.table.join(
awful.key({ "Mod1", }, "Tab", awful.tag.history.restore,
{description = "go back", group = "tag"}),
- awful.key({ "Mod4", }, "j",
- function ()
- awful.client.focus.byidx( 1)
- end,
- {description = "focus next by index", group = "client"}
- ),
- awful.key({ "Mod4", }, "k",
- function ()
- awful.client.focus.byidx(-1)
- end,
- {description = "focus previous by index", group = "client"}
- ),
+-- awful.key({ "Mod4", }, "j",
+-- function ()
+-- awful.client.focus.byidx( 1)
+-- end,
+-- {description = "focus next by index", group = "client"}
+-- ),
+-- awful.key({ "Mod4", }, "k",
+-- function ()
+-- awful.client.focus.byidx(-1)
+-- end,
+-- {description = "focus previous by index", group = "client"}
+-- ),
+ awful.key({ "Mod4" }, "j", function () awful.client.focus.bydirection("down")
+ if client.focus then client.focus:raise() end
+ end),
+ awful.key({ "Mod4" }, "k", function () awful.client.focus.bydirection("up")
+ if client.focus then client.focus:raise() end
+ end),
+ awful.key({ "Mod4" }, "h", function () awful.client.focus.bydirection("left")
+ if client.focus then client.focus:raise() end
+ end),
+ awful.key({ "Mod4" }, "l", function () awful.client.focus.bydirection("right")
+ if client.focus then client.focus:raise() end
+ end),
awful.key({ "Mod1", }, "j",
function ()
awful.client.focus.byidx( 1)
@@ -317,21 +329,6 @@ globalkeys = gears.table.join(
end,
{description = "go back", group = "client"}),
- -- custom hotkeys
-
- awful.key({ modkey, "Shift" }, "Return", function () awful.spawn.with_shell("pcmanfm") end,
- {description = "open file manager", group = "custom"}),
-
- awful.key({ modkey, "Shift" }, "m", function () awful.spawn.with_shell("betterlockscreen -s ") end,
- {description = "lock screen", group = "custom"}),
-
- awful.key({ "Mod1", }, "s", function () awful.spawn.with_shell("scrot /zt/Screenshots/%Y-%d-%m-%T-screenshot.png") end,
- {description = "take a screenshot", group = "custom"}),
-
-
- -- Standard program
- awful.key({ modkey, }, "Return", function () awful.spawn(terminal) end,
- {description = "open a terminal", group = "launcher"}),
awful.key({ modkey, "Control" }, "r", awesome.restart,
{description = "reload awesome", group = "awesome"}),
awful.key({ modkey, "Shift" }, "q", awesome.quit,
@@ -632,3 +629,4 @@ client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_n
awful.spawn.with_shell("nitrogen --restore")
awful.spawn.with_shell("picom")
awful.spawn.with_shell("firefox")
+awful.spawn.with_shell("sxhkd")