From 7e032905da8b8b77f6d11c0ddc9a3d59b900bbb7 Mon Sep 17 00:00:00 2001 From: anemofilia Date: Mon, 7 Aug 2023 16:55:37 -0300 Subject: [PATCH] feat: use fish_vi_key_bindings --- files/awesome/rc.lua | 6 +++--- files/fish/functions/fish_prompt.fish | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/files/awesome/rc.lua b/files/awesome/rc.lua index 3d7bdb4..825b5fa 100644 --- a/files/awesome/rc.lua +++ b/files/awesome/rc.lua @@ -536,7 +536,7 @@ awful.keyboard.append_global_keybindings({ awful.spawn("keepassxc") end, {description = "run keepassxc", group = "launcher"}), awful.key({ modkey, }, "a", function () - awful.spawn.raise_or_spawn("telegram-desktop") end, + awful.spawn("telegram-desktop") end, {description = "run telegram-desktop", group = "launcher"}), awful.key({ modkey, }, "r", function () awful.spawn.with_shell("notify-send $(rem)") end, @@ -624,7 +624,7 @@ awful.keyboard.append_global_keybindings({ awful.key({ modkey, "Control" }, "l", function () awful.screen.focus_relative(-1) end, {description = "focus the previous screen", group = "screen"}), - awful.key({ modkey, "Control" }, "n", function () + awful.key({ modkey, "Control" }, ".", function () local c = awful.client.restore() -- Focus restored client if c then @@ -840,7 +840,7 @@ client.connect_signal("request::default_keybindings", function() awful.key({ modkey, }, "t", function (c) c.ontop = not c.ontop end, {description = "toggle keep on top", group = "client"}), - awful.key({ modkey, }, "n", function (c) + awful.key({ modkey, }, ".", function (c) c.minimized = true end , {description = "minimize", group = "client"}), awful.key({ modkey, }, "m", lain.util.magnify_client, diff --git a/files/fish/functions/fish_prompt.fish b/files/fish/functions/fish_prompt.fish index 651a6e5..c9db7aa 100644 --- a/files/fish/functions/fish_prompt.fish +++ b/files/fish/functions/fish_prompt.fish @@ -52,8 +52,9 @@ function fish_prompt function fish_right_prompt fish_git_prompt end - end + end + set -g fish_key_bindings fish_vi_key_bindings switch "$fish_key_bindings" case fish_vi_key_bindings fish_hybrid_key_bindings test $fish_bind_mode = 'default' && normal ':' || normal '+'