From b77579d0726b839f73486e15ed0bf4a7ce744c4f Mon Sep 17 00:00:00 2001 From: Dhanus M Lal Date: Mon, 11 Dec 2023 22:55:42 +0530 Subject: [PATCH] Switching to minimalism vimrc: Using only the essential plugins .bash_profile: Using uim for multilingual input, which gets loaded in bash_profile i3config and picom config: Changed font size in i3 config Added transparency for commandline dictionary in picom Signed-off-by: Dhanus M Lal --- .bash_profile | 5 ++++ .gitignore | 1 + .vimrc | 68 +++++++++++++++++++++++++++++++++--------------- i3/config | 2 +- picom/picom.conf | 4 ++- 5 files changed, 57 insertions(+), 23 deletions(-) create mode 100644 .gitignore diff --git a/.bash_profile b/.bash_profile index 8ee29f2..8de8036 100644 --- a/.bash_profile +++ b/.bash_profile @@ -6,5 +6,10 @@ if [ $(basename $(exec tty)) == tty1 ] then + export GTK_IM_MODULE='uim' + export QT_IM_MODULE='uim' + uim-xim & + export XMODIFIERS='@im=uim' + exec startx >/dev/null 2>&1 fi diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..718acbd --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +commit-message diff --git a/.vimrc b/.vimrc index 66853a7..8884cd1 100644 --- a/.vimrc +++ b/.vimrc @@ -1,26 +1,52 @@ -"file created by dhanus on 21-July-2021 syntax on -set nu rnu -set clipboard=unnamedplus -set encoding=utf-8 -set tabstop=4 softtabstop=4 +let mapleader = " " +inoremap jk +nnoremap l l +nnoremap h h +nnoremap j j +nnoremap k k +nnoremap sv :source $MYVIMRC +nnoremap ev :edit $MYVIMRC + +set laststatus=2 +set relativenumber number +set expandtab +set tabstop=4 +set shiftwidth=4 +set softtabstop=4 set autoindent -set incsearch + +set statusline=%f +set statusline+=\ %y +set statusline+=%= +set statusline+=C:%c\ +set statusline+=L:%l/%L\ +set statusline+=%p%% + +" Vimscript file settings ------------- {{{ +augroup filetype_vim + autocmd! + autocmd FileType vim setlocal foldmethod=marker +augroup END +" }}} + +"set statusline+="=%{wordcount().words}\ words" +autocmd FileType tex setlocal statusline+="=%{wordcount().words}\ words" +autocmd FileType text setlocal statusline+="=%{wordcount().words}\ words" +autocmd FileType markdown setlocal statusline+="=%{wordcount().words}\ words" + +nnoremap n :NerdTreeToggle +nnoremap doc :YcmCompleter GetDoc +nnoremap f :NERDTreeToggle +nnoremap def :YcmCompleter GoToDefinition +nnoremap :!(alacritty --working-directory $(pwd) & disown) +noremap :!pdflatex main.tex +noremap :!zathura main.pdf & disown +colorscheme torte call plug#begin('~/.vim/plugged') - Plug 'tpope/vim-fugitive' - Plug 'vim-airline/vim-airline' - Plug '/vim-airline/vim-airline-themes' - Plug 'Raimondi/delimitMate' - Plug 'vim-syntastic/syntastic' - Plug 'ryanoasis/vim-devicons' - Plug 'sheerun/vim-polyglot' - Plug 'ycm-core/YouCompleteMe' + Plug 'ycm-core/YouCompleteMe' + Plug 'Raimondi/delimitMate' + Plug 'airblade/vim-gitgutter' + Plug 'preservim/NerdTree' call plug#end() - -let g:airline#extensions#tabline#enabled = 1 -let g:airline_powerline_fonts = 1 - -map :!pdflatex main.tex -map :!zathura main.pdf & disown -map :!(alacritty --working-directory $(pwd) & disown) diff --git a/i3/config b/i3/config index 1b9b2fd..3f90306 100644 --- a/i3/config +++ b/i3/config @@ -22,7 +22,7 @@ set $mod Mod4 # Font for window titles. Will also be used by the bar unless a different font # is used in the bar {} block below. -font pango:monospace 8 +font pango:monospace 5 # This font is widely installed, provides lots of unicode glyphs, right-to-left # text rendering and scalability on retina/hidpi displays (thanks to pango). diff --git a/picom/picom.conf b/picom/picom.conf index f8a758f..bccf9d0 100644 --- a/picom/picom.conf +++ b/picom/picom.conf @@ -136,7 +136,9 @@ focus-exclude = [ "class_g = 'Cairo-clock'" ]; opacity-rule = ["90:class_g = 'Alacritty' && focused", "80:class_g = 'Alacritty' && !focused", "70:class_g = 'ncmpcpp' && focused", - "60:class_g = 'ncmpcpp' && !focused"]; + "60:class_g = 'ncmpcpp' && !focused", + "80:class_g = 'dict' && focused", + "70:class_g = 'dict' && !focused"]; # opacity-rule = []