From 6ccdf81e34db06f0dca6ae22900636a24bd421c3 Mon Sep 17 00:00:00 2001 From: Mike Vink Date: Sun, 22 Oct 2023 16:49:06 +0200 Subject: add some config to change folders --- mut/bin/nvim-server-or-client | 7 +++---- profiles/core/home.nix | 3 +-- profiles/email/neomutt.nix | 4 +++- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/mut/bin/nvim-server-or-client b/mut/bin/nvim-server-or-client index 08c01cb..01d79eb 100755 --- a/mut/bin/nvim-server-or-client +++ b/mut/bin/nvim-server-or-client @@ -1,7 +1,6 @@ #!/bin/sh -if ! test -S /tmp/nvimsocket +if ! tmux has-session -t nvim then - echo starting server - setsid nvim --listen /tmp/nvimsocket --headless & + tmux new -s nvim -- $SHELL \; send nvim C-m fi -setsid nvim --server /tmp/nvimsocket --remote-ui +tmux attach -t nvim diff --git a/profiles/core/home.nix b/profiles/core/home.nix index 198e5a7..d332469 100644 --- a/profiles/core/home.nix +++ b/profiles/core/home.nix @@ -97,6 +97,7 @@ enable = true; extraConfig = '' set-option -g default-shell ${pkgs.bashInteractive}/bin/bash + set -g status off set -s set-clipboard on setw -g mouse on set -g default-terminal "st-256color" @@ -107,8 +108,6 @@ # set -g prefix C-space # bind C-space send-prefix - bind-key R source ${config.hm.xdg.configHome}/tmux/tmux.conf; display-message "sourced ${config.hm.xdg.configHome}/tmux/tmux.conf!" - set-window-option -g mode-keys vi bind-key -T copy-mode-vi v send -X begin-selection bind-key -T copy-mode-vi V send -X select-line diff --git a/profiles/email/neomutt.nix b/profiles/email/neomutt.nix index da81207..144c244 100644 --- a/profiles/email/neomutt.nix +++ b/profiles/email/neomutt.nix @@ -190,7 +190,9 @@ { map = ["index"]; key = "A"; action = "+archive -unread -inboxz^'z"; } { map = ["index"]; key = "D"; action = ""; } { map = ["index" "pager"]; key = "S"; action = "!notmuch-hookz^'z"; } - { map = ["index"]; key = "h"; action = "?h"; } + { map = ["index"]; key = "hi"; action = "~/.local/share/mail/ivi/InboxInbox"; } + { map = ["index"]; key = "hg"; action = "~/.local/share/mail/gmail/InboxInbox"; } + { map = ["index"]; key = "hf"; action = "~/.local/share/mail/family/InboxInbox"; } { map = ["index"]; key = "\\\\"; action = ""; } { map = ["browser"]; key = "h"; action = ".."; } ]; -- cgit v1.2.3