feat(key): Better qwerty switch

This commit is contained in:
js0ny 2025-04-07 08:46:31 +01:00
parent b0610adaae
commit c86b0606d3
4 changed files with 87 additions and 10 deletions

View file

@ -1,74 +0,0 @@
# $DOTFILES/common/tmux.conf
# Date: 2024-12-22
# Author: js0ny
# `tmux` - Terminal Multiplexer
# Location:
# $XDG_CONFIG_HOME/tmux/tmux.conf
# Linking:
# ln -sf $DOTFILES/common/tmux.conf $XDG_CONFIG_HOME/tmux/tmux.conf
# Theme
# -----------------
set -g @catppuccin_flavor "mocha"
run ~/.config/tmux/plugins/catppuccin/tmux/catppuccin.tmux
# Prefix
# -----------------
set-option -g prefix C-a
unbind C-b
bind C-a send-prefix
# Options
set-option -g mouse on
set-option -g default-terminal "tmux-256color"
set-option -g allow-rename on
set-option -g alternate-screen on
set-option -g visual-activity on
set-option -g pane-border-style fg=colour244
# set-option -g pane-activity-border-style fg=colour239
# Index
# -----------------
set -g base-index 1
set -g pane-base-index 1
# History
# -----------------
set -g history-limit 4096
# Reload Config
# -----------------
bind r source-file ~/.config/tmux/tmux.conf \; display "Reloaded Config"
# Vi Mode
# -----------------
set -g status-keys vi
set-window-option -g mode-keys vi
# Windows Management
# -----------------
bind | split-window -h
unbind '"'
bind - split-window -v
unbind %
bind h select-pane -L
bind n select-pane -D
bind e select-pane -U
bind i select-pane -R
bind -r H resize-pane -L 5
bind -r N resize-pane -D 5
bind -r E resize-pane -U 5
bind -r I resize-pane -R 5
bind C-h select-window -t :-
bind C-i select-window -t :+
bind ` resize-pane -Z
# Status Bar
# -----------------
# set -g status-position top
# set-option -g status-bg black
# set-option -g status-fg white
# set-option -g status-left '#[fg=green][#S] '
# setw -g window-status-current-format '#[fg=colour236,bg=colour39] #I #W '

60
common/vimrc+qwerty.vimrc Normal file
View file

@ -0,0 +1,60 @@
" $XDG_CONFIG_HOME/vim/vimrc
" This is a minimal setup of vimrc
" ln -sf $DOTFILES/.config/vim/vimrc $XDG_CONFIG_HOME/vim/vimrc
" Colemak Keys
" Arrow remap
nnoremap J 5j
nnoremap K 5k
vnoremap H ^
xnoremap H ^
onoremap H ^
vnoremap L $
xnoremap L $
onoremap L $
" Normal minimal setup
noremap Y y$
set expandtab
set tabstop=4
set shiftwidth=4
set autoindent
set smartindent
set wrap
set scrolloff=3
set hlsearch
set incsearch
set ignorecase
set smartcase
set number
set relativenumber
set laststatus=2
set showcmd
set statusline=%<%f\ %h%m%r\ %=\ [%l,%v]\ [%p%%]\ [\ %Y]\ [󱑉\ %{strftime('%H:%M:%S')}]
" XDG Directory Specifications
" Reference to https://jorenar.com/blog/vim-xdg
if empty($XDG_CACHE_HOME) | let $XDG_CACHE_HOME = $HOME."/.cache" | endif
if empty($XDG_CONFIG_HOME) | let $XDG_CONFIG_HOME = $HOME."/.config" | endif
if empty($XDG_DATA_HOME) | let $XDG_DATA_HOME = $HOME."/.local/share" | endif
if empty($XDG_STATE_HOME) | let $XDG_STATE_HOME = $HOME."/.local/state" | endif
set viminfo+=n$XDG_STATE_HOME/vim/viminfo
set packpath^=$XDG_DATA_HOME/vim
set packpath+=$XDG_DATA_HOME/vim/after
set backupdir=$XDG_STATE_HOME/vim/backup
set directory=$XDG_STATE_HOME/vim/swap
set undodir=$XDG_STATE_HOME/vim/undo
set viewdir=$XDG_STATE_HOME/vim/view
" set shada+=n$XDG_STATE_HOME/vim/shada
" Leader
let mapleader = "\<Space>"
nnoremap <leader><leader> :FZF<CR>
" Misc
syntax on