diff options
-rw-r--r-- | config/essentials/nvim/after/plugin/pantran.lua | 18 | ||||
-rw-r--r-- | config/essentials/zsh/aliases.zsh | 2 | ||||
-rw-r--r-- | config/hyprland/hypr/hyprland.conf | 26 |
3 files changed, 32 insertions, 14 deletions
diff --git a/config/essentials/nvim/after/plugin/pantran.lua b/config/essentials/nvim/after/plugin/pantran.lua new file mode 100644 index 0000000..a7aab19 --- /dev/null +++ b/config/essentials/nvim/after/plugin/pantran.lua @@ -0,0 +1,18 @@ +require("pantran").setup{ + controls = { + mappings = { + edit = { + n = { + ["j"] = "gj", + ["k"] = "gk", + } + } + } + } +} +local pantran = require('pantran') +local opts = {noremap = true, silent = true, expr = true} +vim.keymap.set("n", "<leader>tr", pantran.motion_translate, opts) + +vim.keymap.set("n", "<leader>trr", function() return pantran.motion_translate() .. "_" end, opts) +vim.keymap.set("x", "<leader>tr", pantran.motion_translate, opts) diff --git a/config/essentials/zsh/aliases.zsh b/config/essentials/zsh/aliases.zsh index 22d06cf..b6b4da8 100644 --- a/config/essentials/zsh/aliases.zsh +++ b/config/essentials/zsh/aliases.zsh @@ -66,7 +66,7 @@ alias dopacs='dopac -S' alias dopacc='dopac -Sc' alias doprm='dopac -Rns' -test which pikaur > /dev/null 2>&1 && +which pikaur > /dev/null 2>&1 && alias yay='pikaur' alias yup='yay -Syu' alias ysi='yay -Si' diff --git a/config/hyprland/hypr/hyprland.conf b/config/hyprland/hypr/hyprland.conf index 89e1f43..72e6ec8 100644 --- a/config/hyprland/hypr/hyprland.conf +++ b/config/hyprland/hypr/hyprland.conf @@ -104,7 +104,9 @@ bind = $mainMod, H, movefocus, l bind = $mainMod, J, movefocus, d bind = $mainMod, K, movefocus, u bind = $mainMod, L, movefocus, r -bind = $mainMod , SPACE, swapnext +bind = $mainMod, SPACE, swapnext +bind = $mainMod SHIFT, E, movewindow, mon:+1 +bind = $mainMod SHIFT, W, movewindow, mon:-1 binde = $mainMod SHIFT, H, resizeactive, -60 0 binde = $mainMod SHIFT, J, resizeactive, 0 60 @@ -142,30 +144,28 @@ bindm = $mainMod, mouse:273, resizewindow bind = $mainMod, M, submap, menuscripts submap = menuscripts -bind=, M, exec, dmpass bind=, A, exec, dmapimg bind=, C, exec, dmclip -bind=, C, submap, reset bind=, D, exec, dmdsktp -bind=, D, submap, reset bind=, F, exec, dmfm -bind=, F, submap, reset bind=, G, exec, passgen -bind=, G, submap, reset bind=, H, exec, dmhelp -bind=, H, submap, reset bind=, L, exec, dmlang +bind=, M, exec, dmpass +bind=, P, exec, dmpdf +bind=, O, exec, dmpower +bind=, V, exec, dmvid +bind=, A, submap, reset +bind=, C, submap, reset +bind=, D, submap, reset +bind=, F, submap, reset +bind=, G, submap, reset +bind=, H, submap, reset bind=, L, submap, reset -bind=, M, exec, passmenu bind=, M, submap, reset -bind=, P, exec, dmpdf bind=, P, submap, reset -bind=, O, exec, dmpower bind=, O, submap, reset -bind=, V, exec, dmvid bind=, V, submap, reset -# , ("M-<Insert>", spawn "dmpsbm") -# , ("M-S-<Insert>", spawn "dmpsclip") submap = reset bind=, XF86AudioLowerVolume, exec, pamixer -d 5 |