feat: use fish_vi_key_bindings

keyring
anemofilia 2023-08-07 16:55:37 -03:00
parent d4a238f01e
commit 7e032905da
2 changed files with 5 additions and 4 deletions

View File

@ -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,

View File

@ -52,8 +52,9 @@ function fish_prompt
function fish_right_prompt function fish_right_prompt
fish_git_prompt fish_git_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 '+'