feat: use fish_vi_key_bindings
parent
d4a238f01e
commit
7e032905da
|
@ -536,7 +536,7 @@ awful.keyboard.append_global_keybindings({
|
||||||
awful.spawn("keepassxc") end,
|
awful.spawn("keepassxc") end,
|
||||||
{description = "run keepassxc", group = "launcher"}),
|
{description = "run keepassxc", group = "launcher"}),
|
||||||
awful.key({ modkey, }, "a", function ()
|
awful.key({ modkey, }, "a", function ()
|
||||||
awful.spawn.raise_or_spawn("telegram-desktop") end,
|
awful.spawn("telegram-desktop") end,
|
||||||
{description = "run telegram-desktop", group = "launcher"}),
|
{description = "run telegram-desktop", group = "launcher"}),
|
||||||
awful.key({ modkey, }, "r", function ()
|
awful.key({ modkey, }, "r", function ()
|
||||||
awful.spawn.with_shell("notify-send $(rem)") end,
|
awful.spawn.with_shell("notify-send $(rem)") end,
|
||||||
|
@ -624,7 +624,7 @@ awful.keyboard.append_global_keybindings({
|
||||||
awful.key({ modkey, "Control" }, "l", function ()
|
awful.key({ modkey, "Control" }, "l", function ()
|
||||||
awful.screen.focus_relative(-1) end,
|
awful.screen.focus_relative(-1) end,
|
||||||
{description = "focus the previous screen", group = "screen"}),
|
{description = "focus the previous screen", group = "screen"}),
|
||||||
awful.key({ modkey, "Control" }, "n", function ()
|
awful.key({ modkey, "Control" }, ".", function ()
|
||||||
local c = awful.client.restore()
|
local c = awful.client.restore()
|
||||||
-- Focus restored client
|
-- Focus restored client
|
||||||
if c then
|
if c then
|
||||||
|
@ -840,7 +840,7 @@ client.connect_signal("request::default_keybindings", function()
|
||||||
awful.key({ modkey, }, "t", function (c)
|
awful.key({ modkey, }, "t", function (c)
|
||||||
c.ontop = not c.ontop end,
|
c.ontop = not c.ontop end,
|
||||||
{description = "toggle keep on top", group = "client"}),
|
{description = "toggle keep on top", group = "client"}),
|
||||||
awful.key({ modkey, }, "n", function (c)
|
awful.key({ modkey, }, ".", function (c)
|
||||||
c.minimized = true end ,
|
c.minimized = true end ,
|
||||||
{description = "minimize", group = "client"}),
|
{description = "minimize", group = "client"}),
|
||||||
awful.key({ modkey, }, "m", lain.util.magnify_client,
|
awful.key({ modkey, }, "m", lain.util.magnify_client,
|
||||||
|
|
|
@ -54,6 +54,7 @@ function fish_prompt
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
set -g fish_key_bindings fish_vi_key_bindings
|
||||||
switch "$fish_key_bindings"
|
switch "$fish_key_bindings"
|
||||||
case fish_vi_key_bindings fish_hybrid_key_bindings
|
case fish_vi_key_bindings fish_hybrid_key_bindings
|
||||||
test $fish_bind_mode = 'default' && normal ':' || normal '+'
|
test $fish_bind_mode = 'default' && normal ':' || normal '+'
|
||||||
|
|
Loading…
Reference in New Issue