From da18d285046bb790012c5d7623cad9e2094ba665 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Pankowski?= Date: Fri, 28 Jun 2024 22:56:39 +0200 Subject: [PATCH] bash (no vi mode at line start), hyperland (term key), yazi (zathura) --- hyprland/.config/hypr/hyprland.conf | 4 ++-- shell/.bashrc | 4 ++++ shell/.inputrc | 4 ++-- yazi/.config/yazi/yazi.toml | 4 ++++ 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/hyprland/.config/hypr/hyprland.conf b/hyprland/.config/hypr/hyprland.conf index 87e0c9f..a1d2455 100644 --- a/hyprland/.config/hypr/hyprland.conf +++ b/hyprland/.config/hypr/hyprland.conf @@ -45,8 +45,8 @@ $mainMod = SUPER bind = $mainMod, P, exec, $menu bind = $mainMod SHIFT, Return, exec, $terminal -bind = $mainMod ALT, Return, exec, $terminal -bind = $mainMod, Return, layoutmsg,swapwithmaster master +bind = $mainMod, Return, exec, $terminal +bind = $mainMod ALT, Return, layoutmsg,swapwithmaster master bind = $mainMod CONTROL SHIFT, Q, exit bind = $mainMod, Q, exec, hyprctl reload bind = $mainMod CONTROL SHIFT, C, killactive diff --git a/shell/.bashrc b/shell/.bashrc index 911ca4d..c904860 100644 --- a/shell/.bashrc +++ b/shell/.bashrc @@ -10,3 +10,7 @@ PS1='\e[34m\u@\h\e[0m \e[32m\W\e[0m \$ ' function before_command() { echo -ne '\e[2 q'; } trap before_command DEBUG + +if [[ -f /usr/share/bash-completion/bash_completion ]]; then + . /usr/share/bash-completion/bash_completion +fi diff --git a/shell/.inputrc b/shell/.inputrc index 7b56e28..02410d1 100644 --- a/shell/.inputrc +++ b/shell/.inputrc @@ -1,7 +1,7 @@ set editing-mode vi set show-mode-in-prompt on -set vi-ins-mode-string \1\e[6 q\2\e[31m[+]\e[0m \2 -set vi-cmd-mode-string \1\e[2 q\2\e[32m[:]\e[0m \2 +set vi-ins-mode-string \1\e[6 q\2 +set vi-cmd-mode-string \1\e[2 q\2 set keymap vi-command "k": history-substring-search-backward diff --git a/yazi/.config/yazi/yazi.toml b/yazi/.config/yazi/yazi.toml index 5ba25fb..193a56d 100644 --- a/yazi/.config/yazi/yazi.toml +++ b/yazi/.config/yazi/yazi.toml @@ -2,6 +2,9 @@ imv = [ { run = 'imv "$@"', orphan = true }, ] +zathura = [ + { run = 'zathura "$@"', orphan = true }, +] nvim_cd = [ { run = 'nvim -c "cd $@"', block = true } ] @@ -9,5 +12,6 @@ nvim_cd = [ [open] prepend_rules = [ { mime = "image/*", use = "imv" }, + { mime = "application/pdf", use = "zathura" }, { mime = "inode/directory", use = "nvim_cd" } ]