merged master into laptop branch
This commit is contained in:
@@ -0,0 +1,78 @@
|
|||||||
|
font:
|
||||||
|
normal:
|
||||||
|
family: UbuntuMonoNerdFont
|
||||||
|
style: Regular
|
||||||
|
|
||||||
|
bold:
|
||||||
|
family: UbuntuMonoNerdFont
|
||||||
|
style: Bold
|
||||||
|
|
||||||
|
italic:
|
||||||
|
family: UbuntuMonoNerdFont
|
||||||
|
style: Italic
|
||||||
|
|
||||||
|
bold_italic:
|
||||||
|
family: UbuntuMonoNerdFont
|
||||||
|
style: Bold Italic
|
||||||
|
|
||||||
|
size: 11
|
||||||
|
|
||||||
|
# Colors (Gruvbox dark)
|
||||||
|
colors:
|
||||||
|
primary:
|
||||||
|
# hard contrast background - '#1d2021'
|
||||||
|
background: &gruvbox_dark_bg '#282828'
|
||||||
|
# soft contrast background - '#32302f'
|
||||||
|
foreground: '#fbf1c7'
|
||||||
|
bright_foreground: '#f9f5d7'
|
||||||
|
dim_foreground: '#f2e5bc'
|
||||||
|
cursor:
|
||||||
|
text: CellBackground
|
||||||
|
cursor: CellForeground
|
||||||
|
vi_mode_cursor:
|
||||||
|
text: CellBackground
|
||||||
|
cursor: CellForeground
|
||||||
|
# search:
|
||||||
|
# matches:
|
||||||
|
# foreground: '#000000'
|
||||||
|
# background: '#ffffff'
|
||||||
|
# focused_match:
|
||||||
|
# foreground: CellBackground
|
||||||
|
# background: CellForeground
|
||||||
|
# bar:
|
||||||
|
# background: ''
|
||||||
|
# foreground: ''
|
||||||
|
# line_indicator:
|
||||||
|
# foreground: None
|
||||||
|
# background: None
|
||||||
|
selection:
|
||||||
|
text: CellBackground
|
||||||
|
background: CellForeground
|
||||||
|
bright:
|
||||||
|
black: '#928374'
|
||||||
|
red: '#fb4934'
|
||||||
|
green: '#b8bb26'
|
||||||
|
yellow: '#fabd2f'
|
||||||
|
blue: '#83a598'
|
||||||
|
magenta: '#d3869b'
|
||||||
|
cyan: '#8ec07c'
|
||||||
|
white: '#ebdbb2'
|
||||||
|
normal:
|
||||||
|
black: *gruvbox_dark_bg
|
||||||
|
red: '#cc241d'
|
||||||
|
green: '#98971a'
|
||||||
|
yellow: '#d79921'
|
||||||
|
blue: '#458588'
|
||||||
|
magenta: '#b16286'
|
||||||
|
cyan: '#689d6a'
|
||||||
|
white: '#a89984'
|
||||||
|
dim:
|
||||||
|
black: '#32302f'
|
||||||
|
red: '#9d0006'
|
||||||
|
green: '#79740e'
|
||||||
|
yellow: '#b57614'
|
||||||
|
blue: '#076678'
|
||||||
|
magenta: '#8f3f71'
|
||||||
|
cyan: '#427b58'
|
||||||
|
white: '#928374'
|
||||||
|
# indexed_colors: []
|
||||||
@@ -0,0 +1,205 @@
|
|||||||
|
let $MYPLUGDIRECTORY = "~/.config/nvim/plugged/"
|
||||||
|
let $MYNVIMINIT = "~/.config/nvim/init.vim"
|
||||||
|
let $MYCOCVIM = "~/.config/nvim/coc.vim"
|
||||||
|
|
||||||
|
"--------------------
|
||||||
|
"plugins
|
||||||
|
"--------------------
|
||||||
|
" autoinstall vim-plug if it is not installed
|
||||||
|
if empty(glob('~/.local/share/nvim/site/autoload/plug.vim'))
|
||||||
|
silent !curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs
|
||||||
|
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
||||||
|
autocmd VimEnter * PlugInstall | source $MYNVIMINIT
|
||||||
|
endif
|
||||||
|
|
||||||
|
call plug#begin($MYPLUGDIRECTORY)
|
||||||
|
" automatically install all plugins that are not already installed
|
||||||
|
if !empty(filter(copy(g:plugs), '!isdirectory(v:val.dir)'))
|
||||||
|
autocmd VimEnter * PlugInstall | q
|
||||||
|
endif
|
||||||
|
Plug 'preservim/nerdtree' " file tree
|
||||||
|
Plug 'Xuyuanp/nerdtree-git-plugin' " git plugin for nerdtree
|
||||||
|
Plug 'PhilRunninger/nerdtree-visual-selection' " file manipulation in nerdtree
|
||||||
|
Plug 'kshenoy/vim-signature' " show marks
|
||||||
|
Plug 'ryanoasis/vim-devicons' " devicons for nerdtree
|
||||||
|
Plug 'vim-airline/vim-airline' " statusline
|
||||||
|
Plug 'preservim/nerdcommenter' " easier comment management
|
||||||
|
Plug 'airblade/vim-gitgutter' " show git changes
|
||||||
|
Plug 'neoclide/coc.nvim', {'branch': 'release'} " code completion
|
||||||
|
Plug 'jiangmiao/auto-pairs' " automatic pairs
|
||||||
|
Plug 'machakann/vim-sandwich' " manipulate elements surrounding other elements
|
||||||
|
Plug 'tpope/vim-fugitive' " git master tool
|
||||||
|
Plug 'vim-scripts/colorizer' " colorize color codes
|
||||||
|
Plug 'honza/vim-snippets' " snippets
|
||||||
|
Plug 'rbonvall/snipmate-snippets-bib' " bib snippets
|
||||||
|
Plug 'lervag/vimtex' " vimtex
|
||||||
|
Plug 'morhetz/gruvbox' " gruvbox colorscheme
|
||||||
|
Plug 'Yggdroot/indentLine' " ident guides
|
||||||
|
Plug 'iamcco/markdown-preview.nvim', { 'do': { -> mkdp#util#install() }, 'for': ['markdown', 'vim-plug']}
|
||||||
|
Plug 'elkowar/yuck.vim', {'for': 'yuck'} " for yuck (eww) configuration
|
||||||
|
call plug#end()
|
||||||
|
|
||||||
|
"--------------------
|
||||||
|
" general settings
|
||||||
|
"--------------------
|
||||||
|
let mapleader=" " " set mapleader to space
|
||||||
|
let maplocalleader=" " " set localleader to space
|
||||||
|
set timeoutlen=1000 " set timeout length
|
||||||
|
set spell " activate spell-checking
|
||||||
|
set nocompatible " disable compatibility to old-time vi
|
||||||
|
let g:indentLine_setConceal = 0 " disable the conceal 'feature' of indentLine plugin
|
||||||
|
set showmatch " show matching brackets.
|
||||||
|
set mouse=v " middle-click paste with mouse
|
||||||
|
set hlsearch " highlight search results
|
||||||
|
set tabstop=4 " number of columns occupied by a tab character
|
||||||
|
set softtabstop=4 " see multiple spaces as tabstops so <BS> does the right thing
|
||||||
|
set expandtab " converts tabs to white space
|
||||||
|
set shiftwidth=4 " width for autoindents
|
||||||
|
set autoindent " indent a new line the same amount as the line just typed
|
||||||
|
set wildmode=longest,list " get bash-like tab completions
|
||||||
|
filetype plugin indent on " allows auto-indenting depending on file type
|
||||||
|
syntax on " syntax highlighting
|
||||||
|
set cc=80 " set an 80 column border for good coding style
|
||||||
|
"toggle cc when reasonable
|
||||||
|
augroup cctoggle
|
||||||
|
autocmd!
|
||||||
|
autocmd BufEnter,FocusGained * set cc=80
|
||||||
|
autocmd BufLeave,FocusLost * set cc=0
|
||||||
|
augroup END
|
||||||
|
|
||||||
|
"--------------------
|
||||||
|
"mappings
|
||||||
|
"--------------------
|
||||||
|
"disable colorizer mappings
|
||||||
|
let g:colorizer_nomap = 1
|
||||||
|
|
||||||
|
" enable copy and past to and fro clipboard
|
||||||
|
vnoremap <leader>y "+y
|
||||||
|
nnoremap <leader>Y "+yg_
|
||||||
|
nnoremap <leader>y "+y
|
||||||
|
nnoremap <leader>p "+p
|
||||||
|
nnoremap <leader>P "+P
|
||||||
|
vnoremap <leader>p "+p
|
||||||
|
vnoremap <leader>P "+P
|
||||||
|
"custom window commands
|
||||||
|
nnoremap <leader>wv <C-W>v
|
||||||
|
nnoremap <leader>ws <C-W>s
|
||||||
|
nnoremap <leader>wc <C-W>c
|
||||||
|
nnoremap <leader>wo <C-W>o
|
||||||
|
nnoremap <C-h> <C-W>h
|
||||||
|
nnoremap <C-l> <C-W>l
|
||||||
|
nnoremap <C-j> <C-W>j
|
||||||
|
nnoremap <C-k> <C-W>k
|
||||||
|
nnoremap öw :w<CR>
|
||||||
|
nnoremap öq :q<CR>
|
||||||
|
"custom tab commands
|
||||||
|
nnoremap <leader>tn :tabnew<space>
|
||||||
|
nnoremap <leader>tc :tabclose<CR>
|
||||||
|
"show buffers
|
||||||
|
nnoremap <Leader>b :buffers<CR>:buffer<Space>
|
||||||
|
" cycle buffers
|
||||||
|
nnoremap <Tab> :bnext<CR>
|
||||||
|
"reload settings
|
||||||
|
nnoremap <leader>rl :source ~/.config/nvim/init.vim<CR>
|
||||||
|
"NERDTree commands
|
||||||
|
nnoremap <leader>nt :NERDTreeToggle<CR>
|
||||||
|
nnoremap <leader>f :NERDTreeFind<CR>
|
||||||
|
"symbol renaming
|
||||||
|
nnoremap <leader>rn <Plug>(coc-reame)
|
||||||
|
|
||||||
|
"--------------------
|
||||||
|
" coc (Conquer of Completion)
|
||||||
|
"--------------------
|
||||||
|
" coc plugins (will automatically install)
|
||||||
|
let g:coc_global_extensions = ['coc-snippets', 'coc-git', 'coc-vimtex', 'coc-python', 'coc-vimlsp', 'coc-json']
|
||||||
|
source $MYCOCVIM
|
||||||
|
"" use <tab> for trigger completion and navigate to the next complete item
|
||||||
|
"function! s:check_back_space() abort
|
||||||
|
"let col = col('.')- 1
|
||||||
|
"return !col || getline('.')[col - 1] =~ '\s'
|
||||||
|
"endfunction
|
||||||
|
|
||||||
|
"" Make <tab> used for trigger completion, completion confirm, snippet expand and jump like VSCode.
|
||||||
|
"inoremap <silent><expr> <TAB>
|
||||||
|
"\ pumvisible() ? coc#_select_confirm() :
|
||||||
|
"\ coc#expandableOrJumpable() ? "\<C-r>=coc#rpc#request('doKeymap', ['snippets-expand-jump',''])\<CR>" :
|
||||||
|
"\ <SID>check_back_space() ? "\<TAB>" :
|
||||||
|
"\ coc#refresh()
|
||||||
|
|
||||||
|
"function! s:check_back_space() abort
|
||||||
|
"let col = col('.') - 1
|
||||||
|
"return !col || getline('.')[col - 1] =~# '\s'
|
||||||
|
"endfunction
|
||||||
|
|
||||||
|
"let g:coc_snippet_next = '<tab>'
|
||||||
|
|
||||||
|
"--------------------
|
||||||
|
" airline
|
||||||
|
"--------------------
|
||||||
|
set laststatus=2 " start in 'normal' mode
|
||||||
|
let g:airline#extensions#tabline#enabled = 1 " enable tabline for buffers
|
||||||
|
let g:airline#extensions#tabline#formatter = 'unique_tail' " set tabline item style
|
||||||
|
|
||||||
|
"--------------------
|
||||||
|
"NERDTree
|
||||||
|
"--------------------
|
||||||
|
set modifiable
|
||||||
|
let NERDTreeShowHidden=1 " show hidden files in NERDTree
|
||||||
|
let NERDTreeAutoDeleteBuffer=1 " automatically delete the buffer of the file deleted with NERDTree
|
||||||
|
let g:NERDTreeGitStatusUseNerdFonts=1 " enable nerdfonts for git status in nerdtree
|
||||||
|
let NERDTreeShowLineNumbers=0 " disable line numbers
|
||||||
|
let g:NERDTreeWinSize=50 " increase the size of the NERDTree window
|
||||||
|
" Start NERDTree when Vim is started without file arguments.
|
||||||
|
autocmd StdinReadPre * let s:std_in=1
|
||||||
|
autocmd VimEnter * if argc() == 0 && !exists('s:std_in') | NERDTree | endif
|
||||||
|
" Exit Vim if NERDTree is the only window left.
|
||||||
|
autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() |
|
||||||
|
\ quit | endif
|
||||||
|
" If another buffer tries to replace NERDTree, put it in the other window, and bring back NERDTree.
|
||||||
|
autocmd BufEnter * if bufname('#') =~ 'NERD_tree_\d\+' && bufname('%') !~ 'NERD_tree_\d\+' && winnr('$') > 1 |
|
||||||
|
\ let buf=bufnr() | buffer# | execute "normal! \<C-W>w" | execute 'buffer'.buf | endif
|
||||||
|
|
||||||
|
|
||||||
|
"--------------------
|
||||||
|
"colors
|
||||||
|
"--------------------
|
||||||
|
" set colorscheme
|
||||||
|
let g:gruvbox_contrast_dark='hard'
|
||||||
|
colorscheme gruvbox
|
||||||
|
set background=dark
|
||||||
|
" extra specified colors
|
||||||
|
highlight ColorColumn ctermbg=236
|
||||||
|
highlight clear SignColumn
|
||||||
|
highlight GitGutterAdd ctermfg=142
|
||||||
|
highlight GitGutterChange ctermfg=208
|
||||||
|
highlight GitGutterDelete ctermfg=124
|
||||||
|
highlight LineNr ctermfg=7
|
||||||
|
highlight CursorLineNr ctermfg=7
|
||||||
|
|
||||||
|
"toggle relativenumber when reasonable
|
||||||
|
set number relativenumber
|
||||||
|
augroup numbertoggle
|
||||||
|
autocmd!
|
||||||
|
autocmd BufEnter,FocusGained,InsertLeave * set relativenumber
|
||||||
|
autocmd BufLeave,FocusLost,InsertEnter * set norelativenumber
|
||||||
|
augroup END
|
||||||
|
|
||||||
|
"--------------------
|
||||||
|
"vimtex
|
||||||
|
"--------------------
|
||||||
|
let g:vimtex_compiler_progname = 'nvr' " neovim-remote for vimtex
|
||||||
|
let g:vimtex_view_method = 'zathura' " set zathura as basic pdf viewer
|
||||||
|
"open TOC
|
||||||
|
nnoremap <leader>toc :VimtexTocToggle<CR>
|
||||||
|
" latexmk parameters
|
||||||
|
let g:vimtex_compiler_latexmk = {
|
||||||
|
\ 'options' : [
|
||||||
|
\ '-pdf',
|
||||||
|
\ '-shell-escape',
|
||||||
|
\ '-verbose',
|
||||||
|
\ '-file-line-error',
|
||||||
|
\ '-synctex=1',
|
||||||
|
\ '-interaction=nonstopmode',
|
||||||
|
\ ],
|
||||||
|
\}
|
||||||
|
|
||||||
@@ -16,7 +16,6 @@ base
|
|||||||
bdf-unifont
|
bdf-unifont
|
||||||
binutils
|
binutils
|
||||||
bison
|
bison
|
||||||
bitwarden-bin
|
|
||||||
bitwarden-rofi
|
bitwarden-rofi
|
||||||
breeze-gtk
|
breeze-gtk
|
||||||
breeze-icons
|
breeze-icons
|
||||||
|
|||||||
@@ -8,12 +8,12 @@ widget_defaults = dict(
|
|||||||
background=base_color,
|
background=base_color,
|
||||||
font='Ubuntu Mono',
|
font='Ubuntu Mono',
|
||||||
fontsize=18,
|
fontsize=18,
|
||||||
padding=3,
|
padding=1,
|
||||||
)
|
)
|
||||||
extension_defaults = widget_defaults.copy()
|
extension_defaults = widget_defaults.copy()
|
||||||
|
|
||||||
main_bar_fontsize=22
|
main_bar_fontsize=22
|
||||||
main_bar_height=28
|
main_bar_height=24
|
||||||
secondary_bar_height=24
|
secondary_bar_height=24
|
||||||
secondary_bar_fontsize=18
|
secondary_bar_fontsize=18
|
||||||
|
|
||||||
|
|||||||
@@ -4,16 +4,18 @@ from libqtile.command import lazy
|
|||||||
from defines import term
|
from defines import term
|
||||||
from Keys import keys
|
from Keys import keys
|
||||||
|
|
||||||
group_names = [("","Home", 'h',{'layout': 'monadtall'}),
|
group_names = [("","Home", 'h',{'layout': 'monadtall'}),
|
||||||
("","Coding", 'c',{'layout': 'monadtall'}),
|
("","Browser", 'f',{'layout': 'monadtall'}),
|
||||||
("","Browser", 'f',{'layout': 'monadtall'}),
|
("","Mail", 'm',{'layout': 'monadtall'}),
|
||||||
("","Mail", 'm',{'layout': 'monadtall'}),
|
("","Coding", 'c',{'layout': 'monadtall'}),
|
||||||
("","Music", 's',{'layout': 'monadtall'}),
|
("","Documents", 'l',{'layout': 'monadtall'}),
|
||||||
("","Video", 'v',{'layout': 'monadtall'}),
|
("ﱘ","Music", 'u',{'layout': 'monadtall'}),
|
||||||
("","Documents", 'l',{'layout': 'monadtall'}),
|
("","Video", 'v',{'layout': 'monadtall'}),
|
||||||
("","Discord", 'd',{'layout': 'monadtall'}),
|
("ﭮ","Discord", 'd',{'layout': 'monadtall'}),
|
||||||
("","VM's", 'o',{'layout': 'monadtall'}),
|
("一","etc1", '1', {'layout': 'monadtall'}),
|
||||||
("","Gaming", 'g',{'layout': 'monadtall'})]
|
("二","etc2", '2', {'layout': 'monadtall'}),
|
||||||
|
("三","etc3", '3', {'layout': 'monadtall'}),
|
||||||
|
("四","etc4", '4', {'layout': 'monadtall'})]
|
||||||
|
|
||||||
groups = [Group(icon, **kwargs) for icon, name, key, kwargs in group_names]
|
groups = [Group(icon, **kwargs) for icon, name, key, kwargs in group_names]
|
||||||
|
|
||||||
@@ -28,8 +30,8 @@ groups.append(
|
|||||||
term + ' -e htop',
|
term + ' -e htop',
|
||||||
),
|
),
|
||||||
DropDown(
|
DropDown(
|
||||||
'sound',
|
'sound',[[elektronik:Protokolle]]
|
||||||
'pavucontrol'
|
'pavucontrol'[[elektronik:Protokolle]]
|
||||||
),
|
),
|
||||||
DropDown(
|
DropDown(
|
||||||
'filemanager',
|
'filemanager',
|
||||||
@@ -37,21 +39,46 @@ groups.append(
|
|||||||
on_focus_lost_hide=False
|
on_focus_lost_hide=False
|
||||||
),
|
),
|
||||||
DropDown(
|
DropDown(
|
||||||
'password manager',
|
'bitwarden',
|
||||||
'keepassxc',
|
'bitwarden-desktop',
|
||||||
on_focus_lost_hide=False,
|
on_focus_lost_hide=False,
|
||||||
),
|
),
|
||||||
DropDown(
|
DropDown(
|
||||||
'WhatsApp',
|
'WhatsApp',
|
||||||
'whatsapp-for-linux',
|
'whatsapp-nativefier',
|
||||||
height = 0.5,
|
height = 0.5,
|
||||||
width = 0.5,
|
width = 0.8,
|
||||||
x = .25
|
x = .1,
|
||||||
|
on_focus_lost_hide=False,
|
||||||
|
opacity=1
|
||||||
),
|
),
|
||||||
DropDown(
|
DropDown(
|
||||||
'Signal',
|
'Signal',
|
||||||
'signal-desktop',
|
'signal-desktop',
|
||||||
|
height = 0.5,
|
||||||
|
width = 0.8,
|
||||||
|
x = .1,
|
||||||
|
on_focus_lost_hide=False,
|
||||||
|
opacity = 1
|
||||||
),
|
),
|
||||||
|
DropDown(
|
||||||
|
'Qalculate!',
|
||||||
|
'qalculate-gtk',
|
||||||
|
height = 0.5,
|
||||||
|
width = 0.5,
|
||||||
|
x = .25,
|
||||||
|
on_focus_lost_hide=True,
|
||||||
|
opacity = 1
|
||||||
|
),
|
||||||
|
DropDown(
|
||||||
|
'Slack',
|
||||||
|
'slack',
|
||||||
|
height = 0.5,
|
||||||
|
width = 0.8,
|
||||||
|
x = 0.1,
|
||||||
|
on_focus_lost_hide=False,
|
||||||
|
opacity=1
|
||||||
|
)
|
||||||
])
|
])
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -73,10 +100,14 @@ keys.extend([
|
|||||||
desc="open the dropdown pavucontrol"),
|
desc="open the dropdown pavucontrol"),
|
||||||
Key(['mod1','control'],'e',lazy.group['scratchpad'].dropdown_toggle('filemanager'),
|
Key(['mod1','control'],'e',lazy.group['scratchpad'].dropdown_toggle('filemanager'),
|
||||||
desc="open the dropdown filemanager"),
|
desc="open the dropdown filemanager"),
|
||||||
Key(['mod1','control'],'p',lazy.group['scratchpad'].dropdown_toggle('password manager'),
|
Key(['mod1','control'],'b',lazy.group['scratchpad'].dropdown_toggle('bitwarden'),
|
||||||
desc="open the dropdown password manager KeePassXC"),
|
desc="open the dropdown password manager KeePassXC"),
|
||||||
Key(['mod1','control'],'w',lazy.group['scratchpad'].dropdown_toggle('WhatsApp'),
|
Key(['mod1','control'],'w',lazy.group['scratchpad'].dropdown_toggle('WhatsApp'),
|
||||||
desc="open the dropdown for WhatsApp"),
|
desc="open the dropdown for WhatsApp"),
|
||||||
Key(['mod1','control'],'i',lazy.group['scratchpad'].dropdown_toggle('Signal'),
|
Key(['mod1','control'],'i',lazy.group['scratchpad'].dropdown_toggle('Signal'),
|
||||||
desc="open the dropdown for Signal"),
|
desc="open the dropdown for Signal"),
|
||||||
|
Key(['mod1','control'],'s',lazy.group['scratchpad'].dropdown_toggle('Slack'),
|
||||||
|
desc="open the dropdown for Slack"),
|
||||||
|
Key(['mod1','control'],'q',lazy.group['scratchpad'].dropdown_toggle('Qalculate!'),
|
||||||
|
desc="open the dropdown for Qalculate!"),
|
||||||
])
|
])
|
||||||
@@ -4,6 +4,9 @@ from libqtile.command import lazy
|
|||||||
from defines import mod, term
|
from defines import mod, term
|
||||||
|
|
||||||
keys = [
|
keys = [
|
||||||
|
#screen lock
|
||||||
|
Key([mod], "End" , lazy.spawn('dm-tool lock'),desc="locks session"),
|
||||||
|
|
||||||
#moving focus aroung
|
#moving focus aroung
|
||||||
Key([mod], "h", lazy.layout.left(),desc="move focus left"),
|
Key([mod], "h", lazy.layout.left(),desc="move focus left"),
|
||||||
Key([mod], "l", lazy.layout.right(),desc="move focus right"),
|
Key([mod], "l", lazy.layout.right(),desc="move focus right"),
|
||||||
@@ -13,12 +16,15 @@ keys = [
|
|||||||
Key([mod,"mod1"], "j", lazy.to_screen(2),desc="move focus to main screen"),
|
Key([mod,"mod1"], "j", lazy.to_screen(2),desc="move focus to main screen"),
|
||||||
Key([mod,"mod1"], "l", lazy.to_screen(2),desc="move focus to main screen"),
|
Key([mod,"mod1"], "l", lazy.to_screen(2),desc="move focus to main screen"),
|
||||||
Key([mod,"mod1"], "h", lazy.to_screen(1),desc="move focus to left screen"),
|
Key([mod,"mod1"], "h", lazy.to_screen(1),desc="move focus to left screen"),
|
||||||
|
Key([mod,"mod1"], "n", lazy.next_screen(),desc="move focus to left screen"),
|
||||||
|
|
||||||
# moving windows around
|
# moving windows around
|
||||||
Key([mod, "shift"], "h", lazy.layout.swap_left(),desc="move focused window left"),
|
Key([mod, "shift"], "h", lazy.layout.swap_left(),desc="move focused window left"),
|
||||||
Key([mod, "shift"], "l", lazy.layout.swap_right(),desc="move focused window right"),
|
Key([mod, "shift"], "l", lazy.layout.swap_right(),desc="move focused window right"),
|
||||||
Key([mod, "shift"], "j", lazy.layout.shuffle_down(),desc="move focused window down"),
|
Key([mod, "shift"], "j", lazy.layout.shuffle_down(),desc="move focused window down"),
|
||||||
Key([mod, "shift"], "k", lazy.layout.shuffle_up(),desc="move focused window up"),
|
Key([mod, "shift"], "k", lazy.layout.shuffle_up(),desc="move focused window up"),
|
||||||
|
Key([mod, "shift", "control"], "h", lazy.layout.swap_column_left(),desc="move focused window one column to the left"),
|
||||||
|
Key([mod, "shift", "control"], "l", lazy.layout.swap_column_right(),desc="move focused window one column to the right"),
|
||||||
|
|
||||||
# resize windows
|
# resize windows
|
||||||
Key([mod], "plus", lazy.layout.grow(),desc="increase window size"),
|
Key([mod], "plus", lazy.layout.grow(),desc="increase window size"),
|
||||||
@@ -32,7 +38,7 @@ keys = [
|
|||||||
Key([mod],"f", lazy.spawn("firefox"),desc="Launch firefox"),
|
Key([mod],"f", lazy.spawn("firefox"),desc="Launch firefox"),
|
||||||
Key([mod],"e", lazy.spawn("pcmanfm"),desc="Launch pcmanfm"),
|
Key([mod],"e", lazy.spawn("pcmanfm"),desc="Launch pcmanfm"),
|
||||||
Key([mod],"c", lazy.spawn("code"),desc="Launch visual studio code"),
|
Key([mod],"c", lazy.spawn("code"),desc="Launch visual studio code"),
|
||||||
Key([mod],"v", lazy.spawn(term + " -e vim"),desc="Launch Vim"),
|
Key([mod],"v", lazy.spawn(term + " -e nvim"),desc="Launch NeoVim"),
|
||||||
Key([mod, "shift"],"s", lazy.spawn('gscreenshot -s -o -f /tmp/screenshots'),desc="take a screenshot"),
|
Key([mod, "shift"],"s", lazy.spawn('gscreenshot -s -o -f /tmp/screenshots'),desc="take a screenshot"),
|
||||||
|
|
||||||
# Toggle between different layouts as defined below
|
# Toggle between different layouts as defined below
|
||||||
@@ -59,6 +65,10 @@ keys = [
|
|||||||
Key([], 'XF86AudioNext', lazy.spawn('playerctl next')),
|
Key([], 'XF86AudioNext', lazy.spawn('playerctl next')),
|
||||||
Key([], 'XF86AudioPrev', lazy.spawn('playerctl previous')),
|
Key([], 'XF86AudioPrev', lazy.spawn('playerctl previous')),
|
||||||
Key([], 'XF86AudioPlay', lazy.spawn('playerctl play-pause')),
|
Key([], 'XF86AudioPlay', lazy.spawn('playerctl play-pause')),
|
||||||
|
|
||||||
|
# backlight keys
|
||||||
|
Key([], 'XF86MonBrightnessUp', lazy.spawn('xbacklight -inc 5')),
|
||||||
|
Key([], 'XF86MonBrightnessDown', lazy.spawn('xbacklight -dec 5')),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,24 +1,34 @@
|
|||||||
from libqtile import layout
|
from libqtile import layout
|
||||||
|
from libqtile.config import Match
|
||||||
|
|
||||||
from defines import focus_color, border_width
|
from defines import focus_color, border_width, window_margin
|
||||||
|
|
||||||
layouts = [
|
layouts = [
|
||||||
layout.MonadTall(
|
layout.MonadTall(
|
||||||
align=1,
|
align=1,
|
||||||
border_focus = focus_color,
|
border_focus = focus_color,
|
||||||
border_width = border_width,
|
border_width = border_width,
|
||||||
new_at_current = True,
|
margin=window_margin,
|
||||||
|
new_client_position = 'after_current',
|
||||||
),
|
),
|
||||||
layout.Floating(
|
layout.Floating(
|
||||||
border_focus = focus_color,
|
border_focus = focus_color,
|
||||||
border_width = border_width,
|
border_width = border_width,
|
||||||
|
margin=window_margin,
|
||||||
),
|
),
|
||||||
layout.Max(),
|
layout.Max(),
|
||||||
layout.MonadWide(
|
layout.MonadWide(
|
||||||
border_focus = focus_color,
|
border_focus = focus_color,
|
||||||
border_width = border_width,
|
border_width = border_width,
|
||||||
new_at_current = True,
|
new_client_position = 'after_current',
|
||||||
|
margin=window_margin,
|
||||||
),
|
),
|
||||||
|
layout.Columns(
|
||||||
|
border_focus = focus_color,
|
||||||
|
border_width = border_width,
|
||||||
|
num_columns = 3,
|
||||||
|
margin = window_margin,
|
||||||
|
)
|
||||||
]
|
]
|
||||||
|
|
||||||
floating_layout = layout.Floating(
|
floating_layout = layout.Floating(
|
||||||
@@ -26,18 +36,14 @@ floating_layout = layout.Floating(
|
|||||||
border_width = border_width,
|
border_width = border_width,
|
||||||
float_rules=[
|
float_rules=[
|
||||||
# Run the utility of `xprop` to see the wm class and name of an X client.
|
# Run the utility of `xprop` to see the wm class and name of an X client.
|
||||||
{'wmclass': 'confirm'},
|
*layout.Floating.default_float_rules,
|
||||||
{'wmclass': 'dialog'},
|
Match(wm_class='confirmreset'), # gitk
|
||||||
{'wmclass': 'download'},
|
Match(wm_class='makebranch'), # gitk
|
||||||
{'wmclass': 'error'},
|
Match(wm_class='maketag'), # gitk
|
||||||
{'wmclass': 'file_progress'},
|
Match(title='branchdialog'), # gitk
|
||||||
{'wmclass': 'notification'},
|
Match(title='pinentry'), # GPG key password entry
|
||||||
{'wmclass': 'splash'},
|
Match(wm_class='ssh-askpass'), # ssh-askpass
|
||||||
{'wmclass': 'toolbar'},
|
Match(wm_class='sun-awt-X11-XWindowPeer'), #matlab
|
||||||
{'wmclass': 'confirmreset'}, # gitk
|
Match(wm_class='sun-awt-X11-XDialogPeer'), #matlab
|
||||||
{'wmclass': 'makebranch'}, # gitk
|
Match(wm_class='Nitrogen'),
|
||||||
{'wmclass': 'maketag'}, # gitk
|
|
||||||
{'wname': 'branchdialog'}, # gitk
|
|
||||||
{'wname': 'pinentry'}, # GPG key password entry
|
|
||||||
{'wmclass': 'ssh-askpass'}, # ssh-askpass
|
|
||||||
])
|
])
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
from libqtile import widget
|
from libqtile import widget
|
||||||
|
|
||||||
from defines import base_color, term
|
from defines import base_color, term
|
||||||
from defines import blue_color, light_foreground_color, dark_foreground_color, red_color, light_purple_color, purple_color, green_color, orange_color, magenta_color
|
from defines import blue_color, light_foreground_color, dark_foreground_color, red_color, light_purple_color, purple_color, green_color, orange_color, magenta_color, yellow_color
|
||||||
from Custom_Widgets import MemoryC, Mic
|
from Custom_Widgets import MemoryC, Mic
|
||||||
|
|
||||||
#region Powerline
|
#region Powerline
|
||||||
@@ -34,16 +34,20 @@ def powerline_arrow(direction, color1, color2,size):
|
|||||||
#region Left_widgets
|
#region Left_widgets
|
||||||
def Left_widgets(size,fontsize,prompt=False):
|
def Left_widgets(size,fontsize,prompt=False):
|
||||||
return [
|
return [
|
||||||
widget.CurrentLayoutIcon(),
|
widget.CurrentLayoutIcon(
|
||||||
|
scale = 0.9,
|
||||||
|
),
|
||||||
*powerline_arrow('r',base_color,blue_color,size),
|
*powerline_arrow('r',base_color,blue_color,size),
|
||||||
widget.Image(
|
widget.TextBox(
|
||||||
filename='~/.config/qtile/icons/archlinux-logo-small.png',
|
text='',
|
||||||
|
foreground=light_foreground_color,
|
||||||
|
fontsize=fontsize+14,
|
||||||
margin=5,
|
margin=5,
|
||||||
background=blue_color
|
background=blue_color
|
||||||
),
|
),
|
||||||
*powerline_arrow('r',blue_color,base_color,size),
|
*powerline_arrow('r',blue_color,base_color,size),
|
||||||
widget.GroupBox(
|
widget.GroupBox(
|
||||||
fontsize=fontsize,
|
fontsize=fontsize+10,
|
||||||
rounded=False,
|
rounded=False,
|
||||||
active=light_foreground_color,
|
active=light_foreground_color,
|
||||||
inactive=dark_foreground_color,
|
inactive=dark_foreground_color,
|
||||||
@@ -56,7 +60,9 @@ def Left_widgets(size,fontsize,prompt=False):
|
|||||||
urgent_alert_method='block',
|
urgent_alert_method='block',
|
||||||
urgent_border = red_color,
|
urgent_border = red_color,
|
||||||
),
|
),
|
||||||
|
widget.Spacer(),
|
||||||
widget.WindowName(fontsize=fontsize-2),
|
widget.WindowName(fontsize=fontsize-2),
|
||||||
|
widget.Spacer(),
|
||||||
]
|
]
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
@@ -65,25 +71,25 @@ def volume_widget(prev_color,color,size,fontsize):
|
|||||||
return[
|
return[
|
||||||
*powerline_arrow('l',prev_color,color,size),
|
*powerline_arrow('l',prev_color,color,size),
|
||||||
widget.Volume(
|
widget.Volume(
|
||||||
foreground=dark_foreground_color,
|
foreground=light_foreground_color,
|
||||||
background=color,
|
background=color,
|
||||||
emoji=True,
|
emoji=True,
|
||||||
fontsize=fontsize,
|
fontsize=fontsize,
|
||||||
),
|
),
|
||||||
widget.Volume(
|
widget.Volume(
|
||||||
foreground=dark_foreground_color,
|
foreground=light_foreground_color,
|
||||||
background=color,
|
background=color,
|
||||||
fontsize=fontsize,
|
fontsize=fontsize,
|
||||||
padding=0
|
padding=0
|
||||||
),
|
),
|
||||||
Mic(
|
Mic(
|
||||||
foreground=dark_foreground_color,
|
foreground=light_foreground_color,
|
||||||
background=color,
|
background=color,
|
||||||
emoji=True,
|
emoji=True,
|
||||||
fontsize=fontsize,
|
fontsize=fontsize + 6,
|
||||||
),
|
),
|
||||||
Mic(
|
Mic(
|
||||||
foreground=dark_foreground_color,
|
foreground=light_foreground_color,
|
||||||
background=color,
|
background=color,
|
||||||
fontsize=fontsize,
|
fontsize=fontsize,
|
||||||
padding=0
|
padding=0
|
||||||
@@ -99,58 +105,58 @@ launch_htop= {'Button1': launch_htop}
|
|||||||
|
|
||||||
def System_widgets(prev_color,last_color,size,fontsize):
|
def System_widgets(prev_color,last_color,size,fontsize):
|
||||||
return [
|
return [
|
||||||
*powerline_arrow('l',prev_color,red_color,size),
|
*powerline_arrow('l',prev_color,orange_color,size),
|
||||||
widget.Image(
|
widget.TextBox(
|
||||||
filename='~/.config/qtile/icons/temp.png',
|
text='',
|
||||||
margin=5,
|
foreground=light_foreground_color,
|
||||||
background=red_color,
|
background=orange_color,
|
||||||
mouse_callbacks = launch_htop,
|
fontsize=fontsize+6
|
||||||
),
|
),
|
||||||
widget.ThermalSensor(
|
widget.ThermalSensor(
|
||||||
foreground=dark_foreground_color,
|
foreground=light_foreground_color,
|
||||||
background=red_color,
|
background=orange_color,
|
||||||
fontsize=fontsize,
|
fontsize=fontsize,
|
||||||
tag_sensor='Tctl',
|
tag_sensor='Tctl',
|
||||||
mouse_callbacks = launch_htop,
|
mouse_callbacks = launch_htop,
|
||||||
),
|
),
|
||||||
*powerline_arrow('l',red_color,green_color,size),
|
*powerline_arrow('l',orange_color,green_color,size),
|
||||||
widget.Image(
|
widget.TextBox(
|
||||||
filename='~/.config/qtile/icons/cpu.png',
|
text='',
|
||||||
margin=5,
|
foreground=light_foreground_color,
|
||||||
background=green_color,
|
background=green_color,
|
||||||
mouse_callbacks = launch_htop,
|
fontsize=fontsize+6
|
||||||
),
|
),
|
||||||
widget.CPU(
|
widget.CPU(
|
||||||
foreground=dark_foreground_color,
|
foreground=light_foreground_color,
|
||||||
background=green_color,
|
background=green_color,
|
||||||
fontsize=fontsize,
|
fontsize=fontsize,
|
||||||
format='{load_percent}% @ {freq_current}GHz',
|
format='{load_percent}% @ {freq_current}GHz',
|
||||||
mouse_callbacks = launch_htop,
|
mouse_callbacks = launch_htop,
|
||||||
),
|
),
|
||||||
*powerline_arrow('l',green_color,orange_color,size),
|
*powerline_arrow('l',green_color,yellow_color,size),
|
||||||
widget.Image(
|
widget.TextBox(
|
||||||
filename='~/.config/qtile/icons/ram.png',
|
text='',
|
||||||
background=orange_color,
|
foreground=light_foreground_color,
|
||||||
margin=-10,
|
background=yellow_color,
|
||||||
mouse_callbacks = launch_htop,
|
fontsize=fontsize+6
|
||||||
),
|
),
|
||||||
MemoryC(
|
MemoryC(
|
||||||
foreground=dark_foreground_color,
|
foreground=light_foreground_color,
|
||||||
background=orange_color,
|
background=yellow_color,
|
||||||
fontsize=fontsize,
|
fontsize=fontsize,
|
||||||
format=" {MemUsed}GB({MemPercent}%) | {SwapUsed}GB({SwapPercent}%)",
|
format=" {MemUsed}GB({MemPercent}%) | {SwapUsed}GB({SwapPercent}%)",
|
||||||
mouse_callbacks = launch_htop,
|
mouse_callbacks = launch_htop,
|
||||||
),
|
),
|
||||||
*powerline_arrow('l',orange_color,last_color,size),
|
*powerline_arrow('l',yellow_color,last_color,size),
|
||||||
widget.Image(
|
widget.TextBox(
|
||||||
filename='~/.config/qtile/icons/network.png',
|
text='',
|
||||||
|
foreground=light_foreground_color,
|
||||||
background=blue_color,
|
background=blue_color,
|
||||||
margin=5,
|
fontsize=fontsize+6
|
||||||
mouse_callbacks = launch_htop,
|
|
||||||
),
|
),
|
||||||
widget.Net(
|
widget.Net(
|
||||||
background=last_color,
|
background=last_color,
|
||||||
foreground=dark_foreground_color,
|
foreground=light_foreground_color,
|
||||||
fontsize=fontsize,
|
fontsize=fontsize,
|
||||||
fmt='{:.9}',
|
fmt='{:.9}',
|
||||||
format='{down}↓',
|
format='{down}↓',
|
||||||
@@ -158,7 +164,7 @@ def System_widgets(prev_color,last_color,size,fontsize):
|
|||||||
),
|
),
|
||||||
widget.Net(
|
widget.Net(
|
||||||
background=last_color,
|
background=last_color,
|
||||||
foreground=dark_foreground_color,
|
foreground=light_foreground_color,
|
||||||
fontsize=fontsize,
|
fontsize=fontsize,
|
||||||
fmt='{:.9}',
|
fmt='{:.9}',
|
||||||
format='{up}↑',
|
format='{up}↑',
|
||||||
@@ -170,19 +176,20 @@ def System_widgets(prev_color,last_color,size,fontsize):
|
|||||||
#region End_widgets
|
#region End_widgets
|
||||||
def end_widgets(prev_color,size,fontsize):
|
def end_widgets(prev_color,size,fontsize):
|
||||||
return [
|
return [
|
||||||
*powerline_arrow('l',prev_color,magenta_color,size),
|
*powerline_arrow('l',prev_color,purple_color,size),
|
||||||
widget.Image(
|
widget.TextBox(
|
||||||
filename='~/.config/qtile/icons/calendar.png',
|
text='ﭷ',
|
||||||
margin=5,
|
foreground=light_foreground_color,
|
||||||
background=magenta_color,
|
background=purple_color,
|
||||||
|
fontsize=fontsize+6
|
||||||
),
|
),
|
||||||
widget.Clock(
|
widget.Clock(
|
||||||
foreground=dark_foreground_color,
|
foreground=light_foreground_color,
|
||||||
background=magenta_color,
|
background=purple_color,
|
||||||
fontsize=fontsize,
|
fontsize=fontsize,
|
||||||
format='%Y-%m-%d'
|
format='%Y-%m-%d'
|
||||||
),
|
),
|
||||||
*powerline_arrow('l',magenta_color,base_color,size),
|
*powerline_arrow('l',purple_color,base_color,size),
|
||||||
widget.Clock(
|
widget.Clock(
|
||||||
font='dseg7 classic bold',
|
font='dseg7 classic bold',
|
||||||
fontsize=16,
|
fontsize=16,
|
||||||
@@ -194,52 +201,55 @@ def end_widgets(prev_color,size,fontsize):
|
|||||||
#region Laptop widgets
|
#region Laptop widgets
|
||||||
def Laptop_widgets(prev_color,last_color,size,fontsize):
|
def Laptop_widgets(prev_color,last_color,size,fontsize):
|
||||||
return [
|
return [
|
||||||
*powerline_arrow('l',prev_color,red_color,size),
|
*powerline_arrow('l',prev_color,orange_color,size),
|
||||||
widget.Battery(
|
widget.Battery(
|
||||||
foreground=dark_foreground_color,
|
foreground=light_foreground_color,
|
||||||
background=red_color,
|
background=orange_color,
|
||||||
fontsize=fontsize,
|
fontsize=fontsize,
|
||||||
update_interval=1,
|
update_interval=1,
|
||||||
format="{percent:2.0%}",
|
format="{char} {percent:2.0%}",
|
||||||
|
low_percentage=0.2,
|
||||||
|
notify_below=True,
|
||||||
|
low_foreground=red_color,
|
||||||
),
|
),
|
||||||
*powerline_arrow('l',red_color,green_color,size),
|
*powerline_arrow('l',orange_color,green_color,size),
|
||||||
widget.Image(
|
widget.TextBox(
|
||||||
filename='~/.config/qtile/icons/cpu.png',
|
text='',
|
||||||
margin=5,
|
foreground=light_foreground_color,
|
||||||
background=green_color,
|
background=green_color,
|
||||||
mouse_callbacks = launch_htop,
|
fontsize=fontsize+6
|
||||||
),
|
),
|
||||||
widget.CPU(
|
widget.CPU(
|
||||||
foreground=dark_foreground_color,
|
foreground=light_foreground_color,
|
||||||
background=green_color,
|
background=green_color,
|
||||||
fontsize=fontsize,
|
fontsize=fontsize,
|
||||||
format='{load_percent}%',
|
format='{load_percent}% @ {freq_current}GHz',
|
||||||
mouse_callbacks = launch_htop,
|
mouse_callbacks = launch_htop,
|
||||||
),
|
),
|
||||||
*powerline_arrow('l',green_color,orange_color,size),
|
*powerline_arrow('l',green_color,yellow_color,size),
|
||||||
widget.Image(
|
widget.TextBox(
|
||||||
filename='~/.config/qtile/icons/ram.png',
|
text='',
|
||||||
background=orange_color,
|
foreground=light_foreground_color,
|
||||||
margin=-10,
|
background=yellow_color,
|
||||||
mouse_callbacks = launch_htop,
|
fontsize=fontsize+6
|
||||||
),
|
),
|
||||||
MemoryC(
|
MemoryC(
|
||||||
foreground=dark_foreground_color,
|
foreground=light_foreground_color,
|
||||||
background=orange_color,
|
background=yellow_color,
|
||||||
fontsize=fontsize,
|
fontsize=fontsize,
|
||||||
format=" {MemUsed}GB|{SwapUsed}GB",
|
format=" {MemUsed}GB|{SwapUsed}GB",
|
||||||
mouse_callbacks = launch_htop,
|
mouse_callbacks = launch_htop,
|
||||||
),
|
),
|
||||||
*powerline_arrow('l',orange_color,last_color,size),
|
*powerline_arrow('l',yellow_color,last_color,size),
|
||||||
widget.Image(
|
widget.TextBox(
|
||||||
filename='~/.config/qtile/icons/network.png',
|
text='',
|
||||||
|
foreground=light_foreground_color,
|
||||||
background=blue_color,
|
background=blue_color,
|
||||||
margin=5,
|
fontsize=fontsize+6
|
||||||
mouse_callbacks = launch_htop,
|
|
||||||
),
|
),
|
||||||
widget.Net(
|
widget.Net(
|
||||||
background=last_color,
|
background=last_color,
|
||||||
foreground=dark_foreground_color,
|
foreground=light_foreground_color,
|
||||||
fontsize=fontsize,
|
fontsize=fontsize,
|
||||||
fmt='{:.9}',
|
fmt='{:.9}',
|
||||||
format='{down}↓',
|
format='{down}↓',
|
||||||
@@ -247,7 +257,7 @@ def Laptop_widgets(prev_color,last_color,size,fontsize):
|
|||||||
),
|
),
|
||||||
widget.Net(
|
widget.Net(
|
||||||
background=last_color,
|
background=last_color,
|
||||||
foreground=dark_foreground_color,
|
foreground=light_foreground_color,
|
||||||
fontsize=fontsize,
|
fontsize=fontsize,
|
||||||
fmt='{:.9}',
|
fmt='{:.9}',
|
||||||
format='{up}↑',
|
format='{up}↑',
|
||||||
|
|||||||
Executable
+15
@@ -0,0 +1,15 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
sleep 1&
|
||||||
|
setxkbmap de&
|
||||||
|
nitrogen --restore &
|
||||||
|
bash .screenlayout/layout.sh &
|
||||||
|
pulseaudio-ctl set 50 &
|
||||||
|
dunst &
|
||||||
|
nextcloud &
|
||||||
|
timeshift &
|
||||||
|
numlockx &
|
||||||
|
redshift-gtk -t 6500:3600 &
|
||||||
|
udiskie -t &
|
||||||
|
picom -b --experimental-backend &
|
||||||
|
cbatticon &
|
||||||
|
nm-applet &
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
let g:netrw_dirhistmax =10
|
|
||||||
let g:netrw_dirhistcnt =1
|
|
||||||
let g:netrw_dirhist_1='/home/paul/.config'
|
|
||||||
File diff suppressed because it is too large
Load Diff
Submodule vim/.vim/plugged/lightline.vim deleted from 709b2d8dc8
Submodule vim/.vim/plugged/nerdcommenter deleted from f02686f2f6
Submodule vim/.vim/plugged/nerdtree deleted from 14af89743a
Submodule vim/.vim/plugged/rainbow deleted from 4d15633cda
Submodule vim/.vim/plugged/vim-fugitive deleted from 7bcfe539be
-45
@@ -1,45 +0,0 @@
|
|||||||
let $MYPLUGDIRECTORY = "~/.vim/plugged"
|
|
||||||
|
|
||||||
call plug#begin($MYPLUGDIRECTORY)
|
|
||||||
|
|
||||||
Plug 'scrooloose/nerdtree'
|
|
||||||
|
|
||||||
Plug 'luochen1990/rainbow'
|
|
||||||
|
|
||||||
Plug 'itchyny/lightline.vim'
|
|
||||||
|
|
||||||
Plug 'preservim/nerdcommenter'
|
|
||||||
|
|
||||||
Plug 'tpope/vim-fugitive'
|
|
||||||
|
|
||||||
call plug#end()
|
|
||||||
|
|
||||||
"line numbering
|
|
||||||
set relativenumber
|
|
||||||
set number
|
|
||||||
|
|
||||||
"cursor
|
|
||||||
autocmd InsertEnter * set cul
|
|
||||||
autocmd InsertLeave * set nocul
|
|
||||||
|
|
||||||
"lightline
|
|
||||||
set laststatus=2
|
|
||||||
|
|
||||||
"NERDTree
|
|
||||||
map <C-n> :NERDTreeToggle<CR>
|
|
||||||
autocmd StdinReadPre * let s:std_in=1
|
|
||||||
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
|
|
||||||
autocmd VimEnter * if argc() == 1 && isdirectory(argv()[0]) && !exists("s:std_in") | exe 'NERDTree' argv()[0] | wincmd p | ene | exe 'cd '.argv()[0] | endif
|
|
||||||
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
|
|
||||||
|
|
||||||
"set UTF-8
|
|
||||||
setglobal termencoding=utf-8 fileencodings=
|
|
||||||
scriptencoding utf-8
|
|
||||||
set encoding=utf-8
|
|
||||||
|
|
||||||
autocmd BufNewFile,BufRead * try
|
|
||||||
autocmd BufNewFile,BufRead * set encoding=utf-8
|
|
||||||
autocmd BufNewFile,BufRead * endtry
|
|
||||||
|
|
||||||
"convert to UNIX fileformat
|
|
||||||
set fileformat=unix
|
|
||||||
+145
@@ -0,0 +1,145 @@
|
|||||||
|
#
|
||||||
|
# ~/.zshrc
|
||||||
|
#
|
||||||
|
|
||||||
|
# Path to your oh-my-zsh installation.
|
||||||
|
export ZSH="/home/paul/.oh-my-zsh"
|
||||||
|
|
||||||
|
# set default text editor
|
||||||
|
export EDITOR="nvim"
|
||||||
|
|
||||||
|
# Set name of the theme to load --- if set to "random", it will
|
||||||
|
# load a random theme each time oh-my-zsh is loaded, in which case,
|
||||||
|
# to know which specific one was loaded, run: echo $RANDOM_THEME
|
||||||
|
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
|
||||||
|
ZSH_THEME="robbyrussell"
|
||||||
|
function powerline_precmd() {
|
||||||
|
PS1="$(powerline-shell --shell zsh $?)"
|
||||||
|
}
|
||||||
|
|
||||||
|
function install_powerline_precmd() {
|
||||||
|
for s in "${precmd_functions[@]}"; do
|
||||||
|
if [ "$s" = "powerline_precmd" ]; then
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
precmd_functions+=(powerline_precmd)
|
||||||
|
}
|
||||||
|
|
||||||
|
if [ "$TERM" != "linux" ]; then
|
||||||
|
install_powerline_precmd
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Uncomment the following line to use case-sensitive completion.
|
||||||
|
CASE_SENSITIVE="false"
|
||||||
|
|
||||||
|
# Uncomment the following line to use hyphen-insensitive completion.
|
||||||
|
# Case-sensitive completion must be off. _ and - will be interchangeable.
|
||||||
|
HYPHEN_INSENSITIVE="true"
|
||||||
|
|
||||||
|
# Uncomment the following line to change how often to auto-update (in days).
|
||||||
|
export UPDATE_ZSH_DAYS=3
|
||||||
|
|
||||||
|
# Uncomment the following line to enable command auto-correction.
|
||||||
|
ENABLE_CORRECTION="true"
|
||||||
|
|
||||||
|
# Uncomment the following line to display red dots whilst waiting for completion.
|
||||||
|
# Caution: this setting can cause issues with multiline prompts (zsh 5.7.1 and newer seem to work)
|
||||||
|
# See https://github.com/ohmyzsh/ohmyzsh/issues/5765
|
||||||
|
COMPLETION_WAITING_DOTS="true"
|
||||||
|
|
||||||
|
# Which plugins would you like to load?
|
||||||
|
# Standard plugins can be found in $ZSH/plugins/
|
||||||
|
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
|
||||||
|
# Example format: plugins=(rails git textmate ruby lighthouse)
|
||||||
|
# Add wisely, as too many plugins slow down shell startup.
|
||||||
|
plugins=(
|
||||||
|
git
|
||||||
|
svn
|
||||||
|
themes
|
||||||
|
command-not-found
|
||||||
|
vi-mode
|
||||||
|
extract
|
||||||
|
# non oh-my-zsh plugins
|
||||||
|
zsh-autosuggestions
|
||||||
|
zsh-syntax-highlighting
|
||||||
|
)
|
||||||
|
|
||||||
|
source $ZSH/oh-my-zsh.sh
|
||||||
|
|
||||||
|
# additional path variables
|
||||||
|
export PATH=$PATH:~/.local/bin
|
||||||
|
|
||||||
|
### ALIAS' ###
|
||||||
|
#jokes
|
||||||
|
alias dog='cat'
|
||||||
|
alias rr='curl -s -L https://raw.githubusercontent.com/keroserene/rickrollrc/master/roll.sh | bash' #rickroll
|
||||||
|
|
||||||
|
#shutdown and reboot
|
||||||
|
alias sn='shutdown now'
|
||||||
|
alias rb='reboot'
|
||||||
|
|
||||||
|
# navigation
|
||||||
|
alias ..='cd ..'
|
||||||
|
alias ...='cd ../..'
|
||||||
|
alias .3='cd ../../..'
|
||||||
|
alias .4='cd ../../../..'
|
||||||
|
alias .5='cd ../../../../..'
|
||||||
|
|
||||||
|
#libreoffice
|
||||||
|
alias writer='libreoffice --writer'
|
||||||
|
alias calc='libreoffice --calc'
|
||||||
|
alias impress='libreoffice --impress'
|
||||||
|
|
||||||
|
# pacman and pikaur
|
||||||
|
alias install='sudo pacman -S'
|
||||||
|
alias uninstall='sudo pacman -Rns'
|
||||||
|
alias search='sudo pacman -Ss'
|
||||||
|
alias install-all='sudo pikaur'
|
||||||
|
alias update='sudo pacman -Syyu' # update only standard pkgs
|
||||||
|
alias update-all="pikaur -Syu" # update standard pkgs and AUR pkgs
|
||||||
|
alias cleanup='sudo pacman -Rns $(pacman -Qtdq)' # remove orphaned packages
|
||||||
|
|
||||||
|
# Changing "ls" to "exa"
|
||||||
|
alias ls='exa --icons -lF --color=always --group-directories-first --git' # my preferred listing
|
||||||
|
alias la='exa --icons -aF --color=always --group-directories-first --git' # all files and dirs
|
||||||
|
alias ll='exa --icons -alF --color=always --group-directories-first --git' # long format
|
||||||
|
alias lt='exa --icons -aTF --color=always --group-directories-first --git' # tree listing
|
||||||
|
alias lx='exa --icons -lF --color=always --group-directories-first --git --extended' # extended info
|
||||||
|
alias l.='exa -a | egrep "^\."' # list dotfiles
|
||||||
|
|
||||||
|
|
||||||
|
# Colorize grep output (good for log files)
|
||||||
|
alias grep='grep --color=auto'
|
||||||
|
alias egrep='egrep --color=auto'
|
||||||
|
alias fgrep='fgrep --color=auto'
|
||||||
|
|
||||||
|
# confirm before overwriting something
|
||||||
|
alias cp="cp -i"
|
||||||
|
alias mv='mv -i'
|
||||||
|
alias rm='rm -i'
|
||||||
|
|
||||||
|
# git
|
||||||
|
alias add='git add'
|
||||||
|
alias addup='git add -u'
|
||||||
|
alias addall='git add .'
|
||||||
|
alias branch='git branch'
|
||||||
|
alias checkout='git checkout'
|
||||||
|
alias co='git checkout'
|
||||||
|
alias clone='git clone'
|
||||||
|
alias commit='git commit -m'
|
||||||
|
alias fetch='git fetch'
|
||||||
|
alias pull='git pull origin'
|
||||||
|
alias push='git push origin'
|
||||||
|
alias status='git status'
|
||||||
|
alias diff='git diff'
|
||||||
|
alias remote='git remote'
|
||||||
|
alias ftemplate='git fetch template'
|
||||||
|
alias mtemplate='git merge template/master --allow-unrelated-histories'
|
||||||
|
alias log='git log'
|
||||||
|
|
||||||
|
### AUTOSTART ###
|
||||||
|
|
||||||
|
#neofetch
|
||||||
|
neofetch
|
||||||
|
|
||||||
Reference in New Issue
Block a user