mirror of
https://github.com/harivansh-afk/nix.git
synced 2026-04-17 04:02:24 +00:00
cleanup
This commit is contained in:
parent
fc8675e1b0
commit
550fca2383
13 changed files with 151 additions and 163 deletions
|
|
@ -1,16 +1,4 @@
|
|||
{lib, ...}: {
|
||||
home.activation.removeLegacyTmuxLink = lib.hm.dag.entryBefore ["checkLinkTargets"] ''
|
||||
path="$HOME/.config/tmux/tmux.conf"
|
||||
if [ -L "$path" ]; then
|
||||
target="$(readlink "$path")"
|
||||
case "$target" in
|
||||
../../dots/tmux/*|dots/tmux/*|"$HOME"/dots/tmux/*)
|
||||
rm -f "$path"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
'';
|
||||
|
||||
programs.tmux = {
|
||||
enable = true;
|
||||
extraConfig = ''
|
||||
|
|
@ -40,12 +28,6 @@
|
|||
bind K switch-client -p
|
||||
bind L switch-client -n
|
||||
|
||||
# Switch sessions with prefix + H/J/K/L (capital)
|
||||
bind J switch-client -n
|
||||
bind K switch-client -p
|
||||
bind H switch-client -p
|
||||
bind L switch-client -n
|
||||
|
||||
# fzf pane switcher
|
||||
bind f display-popup -w 80% -h 80% -E "\
|
||||
tmux list-panes -a -F '#{session_name}:#{window_index}.#{pane_index} #{session_name}/#{window_name} [#{pane_current_command}] #{pane_current_path}' \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue