Compare commits
5 Commits
819a5e9dab
...
90d822437a
Author | SHA1 | Date | |
---|---|---|---|
90d822437a | |||
30bfc5db28 | |||
1ca050d4b2 | |||
2bc158c35e | |||
5193cecb81 |
@ -1,27 +1,38 @@
|
|||||||
|
# improve commands
|
||||||
alias cp="cp -iv" # confirm before overwriting something
|
alias cp="cp -iv" # confirm before overwriting something
|
||||||
alias df='df -h' # human-readable sizes
|
alias df='df -h' # human-readable sizes
|
||||||
alias free='free -m' # show sizes in mb
|
alias free='free -m' # show sizes in mb
|
||||||
alias np='nano -w pkgbuild'
|
alias np='nano -w pkgbuild'
|
||||||
alias more=less
|
alias more=less
|
||||||
|
alias rm='rm -i'
|
||||||
|
alias cp='cp -i'
|
||||||
|
alias mv='mv -i'
|
||||||
|
|
||||||
|
# useful commands
|
||||||
alias p="sudo pacman"
|
alias p="sudo pacman"
|
||||||
alias y="yay"
|
alias y="yay"
|
||||||
alias upgrade="sudo pacman -Syyu && yay -Syyu"
|
alias upgrade="sudo pacman -Syyu && yay -Syyu"
|
||||||
alias ls="exa --group-directories-first -lh"
|
alias ls="exa --group-directories-first -lh"
|
||||||
alias l="exa --group-directories-first -lh"
|
alias l="exa --group-directories-first -lh"
|
||||||
alias la="exa --group-directories-first -alh"
|
alias la="exa --group-directories-first -alh"
|
||||||
alias e="nvim"
|
|
||||||
alias print="printf"
|
alias print="printf"
|
||||||
|
alias q="exit"
|
||||||
|
|
||||||
|
# nvim edits
|
||||||
alias cfi3="nvim ~/.config/i3/config"
|
alias cfi3="nvim ~/.config/i3/config"
|
||||||
alias cfi3s="nvim ~/.config/i3status/config"
|
alias cfi3s="nvim ~/.config/i3status/config"
|
||||||
alias c="cd ~/.config"
|
alias cfn="nvim ~/.config/nvim/init.vim"
|
||||||
|
alias e="nvim ."
|
||||||
|
|
||||||
|
# cd commands
|
||||||
|
alias c="cd ~/.config"
|
||||||
|
alias cuni="cd ~/Documents/Uni/CS && l"
|
||||||
|
# cli applications
|
||||||
alias yt="youtube-viewer"
|
alias yt="youtube-viewer"
|
||||||
|
|
||||||
# Git Stuff!
|
# git stuff!
|
||||||
alias gs="git status"
|
alias gs="git status"
|
||||||
alias gp="git push"
|
alias gp="git push"
|
||||||
alias ga="git add"
|
alias ga="git add"
|
||||||
|
|
||||||
alias e="nvim ."
|
|
||||||
|
3
.bashrc
3
.bashrc
@ -10,6 +10,9 @@ export BROWSER=brave
|
|||||||
#export GNUPGHOME="${XDG_DATA_HOME:-$HOME/.local/share}/gnupg"
|
#export GNUPGHOME="${XDG_DATA_HOME:-$HOME/.local/share}/gnupg"
|
||||||
# - Ui4axsk9mwfw? -
|
# - Ui4axsk9mwfw? -
|
||||||
|
|
||||||
|
set -o vi
|
||||||
|
bind -m vi-command 'Control-l: clear-screen'
|
||||||
|
bind -m vi-insert 'Control-l: clear-screen'
|
||||||
#ufetch
|
#ufetch
|
||||||
#(cat $HOME/.config/wpg/sequences &)
|
#(cat $HOME/.config/wpg/sequences &)
|
||||||
function lazygit() {
|
function lazygit() {
|
||||||
|
@ -104,7 +104,8 @@ font:
|
|||||||
normal:
|
normal:
|
||||||
#family: IBM Plex Mono
|
#family: IBM Plex Mono
|
||||||
#family: Source Code Pro
|
#family: Source Code Pro
|
||||||
family: BlexMono Nerd Font
|
#family: BlexMono Nerd Font
|
||||||
|
family: Fira Code
|
||||||
style:
|
style:
|
||||||
size: 6.95
|
size: 6.95
|
||||||
|
|
||||||
|
19
i3/config
19
i3/config
@ -19,7 +19,8 @@ set_from_resource $split i3wm.color10 "#9E664B0"
|
|||||||
#font pango: Source Code Pro 12px
|
#font pango: Source Code Pro 12px
|
||||||
#font pango: IBM Plex Mono 11px
|
#font pango: IBM Plex Mono 11px
|
||||||
#font pango: JetBrains Mono 8
|
#font pango: JetBrains Mono 8
|
||||||
font pango: BlexMono Nerd Font 11px
|
#font pango: BlexMono Nerd Font 11px
|
||||||
|
font pango: Fira Code 11px
|
||||||
|
|
||||||
# This font is widely installed, provides lots of unicode glyphs, right-to-left
|
# This font is widely installed, provides lots of unicode glyphs, right-to-left
|
||||||
# text rendering and scalability on retina/hidpi displays (thanks to pango).
|
# text rendering and scalability on retina/hidpi displays (thanks to pango).
|
||||||
@ -64,7 +65,7 @@ client.background #ffffff
|
|||||||
# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
|
# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
|
||||||
# screen before suspend. Use loginctl lock-session to lock your screen.
|
# screen before suspend. Use loginctl lock-session to lock your screen.
|
||||||
exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
|
exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
|
||||||
|
exec --no-startup-id setxkbmap -option
|
||||||
# NetworkManager is the most popular way to manage wireless networks on Linux,
|
# NetworkManager is the most popular way to manage wireless networks on Linux,
|
||||||
# and nm-applet is a desktop environment-independent system tray GUI for it.
|
# and nm-applet is a desktop environment-independent system tray GUI for it.
|
||||||
exec --no-startup-id nm-applet
|
exec --no-startup-id nm-applet
|
||||||
@ -85,6 +86,12 @@ set $refresh_i3status killall -SIGUSR1 i3status
|
|||||||
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status
|
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status
|
||||||
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status
|
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status
|
||||||
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
|
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
|
||||||
|
|
||||||
|
# Binds for - and + for volume
|
||||||
|
bindsym $mod+KP_Add exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status
|
||||||
|
bindsym $mod+KP_Subtract exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status
|
||||||
|
bindsym $mod+KP_Multiply exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
|
||||||
|
|
||||||
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
|
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
|
||||||
|
|
||||||
# Use Mouse+$mod to drag floating windows to their wanted position
|
# Use Mouse+$mod to drag floating windows to their wanted position
|
||||||
@ -123,6 +130,10 @@ bindsym $mod+Ctrl+Up resize grow height 1 px or 1 ppt
|
|||||||
bindsym $mod+Ctrl+Down resize shrink height 1 px or 1 ppt
|
bindsym $mod+Ctrl+Down resize shrink height 1 px or 1 ppt
|
||||||
bindsym $mod+Ctrl+Left resize grow width 1 px or 1 ppt
|
bindsym $mod+Ctrl+Left resize grow width 1 px or 1 ppt
|
||||||
|
|
||||||
|
# multi moniter support
|
||||||
|
bindsym $mod+greater move workspace to output right
|
||||||
|
bindsym $mod+less move workspace to output left
|
||||||
|
|
||||||
|
|
||||||
# split in horizontal orientation
|
# split in horizontal orientation
|
||||||
bindsym $mod+semicolon split h
|
bindsym $mod+semicolon split h
|
||||||
@ -183,7 +194,7 @@ bindsym $mod+Shift+b exec blueman-manager
|
|||||||
bindsym $mod+Shift+t exec lyx &
|
bindsym $mod+Shift+t exec lyx &
|
||||||
bindsym $mod+p exec passmenu -l 30
|
bindsym $mod+p exec passmenu -l 30
|
||||||
bindsym $mod+Shift+p exec gpodder
|
bindsym $mod+Shift+p exec gpodder
|
||||||
bindsym $mod+Shift+f exec --no-startup-id pcmanfm
|
bindsym $mod+Shift+f exec --no-startup-id nautilus
|
||||||
bindsym $mod+Ctrl+f exec --no-startup-id alacritty -e ranger
|
bindsym $mod+Ctrl+f exec --no-startup-id alacritty -e ranger
|
||||||
|
|
||||||
#WHOLE SCREEN
|
#WHOLE SCREEN
|
||||||
@ -328,7 +339,7 @@ bar {
|
|||||||
status_command i3status
|
status_command i3status
|
||||||
tray_output primary
|
tray_output primary
|
||||||
i3bar_command i3bar
|
i3bar_command i3bar
|
||||||
position top
|
position bottom
|
||||||
separator_symbol "|"
|
separator_symbol "|"
|
||||||
|
|
||||||
colors {
|
colors {
|
||||||
|
@ -58,7 +58,7 @@ load {
|
|||||||
}
|
}
|
||||||
|
|
||||||
memory {
|
memory {
|
||||||
format = " %used"
|
format = "</> %used"
|
||||||
}
|
}
|
||||||
|
|
||||||
cpu_temperature 0 {
|
cpu_temperature 0 {
|
||||||
|
@ -6,13 +6,14 @@ Plug 'editorconfig/editorconfig-vim'
|
|||||||
" Fzf
|
" Fzf
|
||||||
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
|
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
|
||||||
Plug 'junegunn/fzf.vim'
|
Plug 'junegunn/fzf.vim'
|
||||||
Plug 'mattn/emmet-vim'
|
|
||||||
|
" LimeLight
|
||||||
|
Plug 'junegunn/limelight.vim'
|
||||||
|
|
||||||
" NERDTree
|
" NERDTree
|
||||||
Plug 'scrooloose/nerdtree'
|
Plug 'scrooloose/nerdtree'
|
||||||
|
|
||||||
" Improvements
|
" Improvements Plug 'terryma/vim-multiple-cursors'
|
||||||
Plug 'terryma/vim-multiple-cursors'
|
|
||||||
Plug 'tpope/vim-eunuch'
|
Plug 'tpope/vim-eunuch'
|
||||||
Plug 'tpope/vim-surround'
|
Plug 'tpope/vim-surround'
|
||||||
Plug 'scrooloose/syntastic'
|
Plug 'scrooloose/syntastic'
|
||||||
@ -32,14 +33,22 @@ Plug 'joshdick/onedark.vim'
|
|||||||
" Lang. Support
|
" Lang. Support
|
||||||
Plug 'fatih/vim-go'
|
Plug 'fatih/vim-go'
|
||||||
Plug 'artur-shaik/vim-javacomplete2'
|
Plug 'artur-shaik/vim-javacomplete2'
|
||||||
Plug 'Valloric/YouCompleteMe', { 'do': './install.py' }
|
"Plug 'Valloric/YouCompleteMe', { 'do': './install.py' }
|
||||||
|
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
|
||||||
|
Plug 'zchee/deoplete-jedi'
|
||||||
|
Plug 'davidhalter/jedi-vim'
|
||||||
Plug 'rust-lang/rust.vim'
|
Plug 'rust-lang/rust.vim'
|
||||||
Plug 'preservim/nerdcommenter'
|
Plug 'preservim/nerdcommenter'
|
||||||
|
Plug 'mattn/emmet-vim'
|
||||||
|
|
||||||
|
" Code Folding
|
||||||
|
Plug 'tmhedberg/SimpylFold'
|
||||||
|
|
||||||
" Writing
|
" Writing
|
||||||
Plug 'junegunn/goyo.vim'
|
Plug 'junegunn/goyo.vim'
|
||||||
Plug 'lervag/vimtex'
|
Plug 'lervag/vimtex'
|
||||||
Plug 'xuhdev/vim-latex-live-preview', { 'for': 'tex' }
|
Plug 'xuhdev/vim-latex-live-preview', { 'for': 'tex' }
|
||||||
|
" Plug 'conornewton/vim-latex-preview'
|
||||||
|
|
||||||
"Zoxide
|
"Zoxide
|
||||||
Plug 'nanotee/zoxide.vim'
|
Plug 'nanotee/zoxide.vim'
|
||||||
@ -49,7 +58,7 @@ Plug 'vimwiki/vimwiki'
|
|||||||
Plug 'mattn/calendar-vim'
|
Plug 'mattn/calendar-vim'
|
||||||
|
|
||||||
" Animate
|
" Animate
|
||||||
Plug 'camspiers/animate.vim'
|
" Plug 'camspiers/animate.vim'
|
||||||
Plug 'camspiers/lens.vim'
|
Plug 'camspiers/lens.vim'
|
||||||
|
|
||||||
" Better Syntax Support
|
" Better Syntax Support
|
||||||
@ -59,6 +68,7 @@ Plug 'sheerun/vim-polyglot'
|
|||||||
Plug 'airblade/vim-gitgutter'
|
Plug 'airblade/vim-gitgutter'
|
||||||
Plug 'tpope/vim-fugitive'
|
Plug 'tpope/vim-fugitive'
|
||||||
|
|
||||||
|
" Icons
|
||||||
Plug 'ryanoasis/vim-devicons'
|
Plug 'ryanoasis/vim-devicons'
|
||||||
|
|
||||||
call plug#end()
|
call plug#end()
|
||||||
@ -77,8 +87,8 @@ set number relativenumber
|
|||||||
colorscheme onedark
|
colorscheme onedark
|
||||||
set nocompatible
|
set nocompatible
|
||||||
set encoding=UTF-8
|
set encoding=UTF-8
|
||||||
|
set clipboard+=unnamedplus
|
||||||
|
|
||||||
let g:livepreview_previewer = 'zathura'
|
|
||||||
set mouse=a
|
set mouse=a
|
||||||
" Map Leader
|
" Map Leader
|
||||||
let mapleader = ","
|
let mapleader = ","
|
||||||
@ -93,14 +103,45 @@ au BufNewFile ~/vimwiki/diary/*.md :silent 0r !~/.config/nvim/generate-vimwiki-d
|
|||||||
|
|
||||||
let NERDTreeMapOpenInTab='<ENTER>'
|
let NERDTreeMapOpenInTab='<ENTER>'
|
||||||
|
|
||||||
|
" Insert Date
|
||||||
|
nnoremap <silent><leader>d :put=system('date +%d/%b/%Y')<CR>
|
||||||
|
|
||||||
|
" Tex
|
||||||
|
let g:vimtex_complete_enabled = 1
|
||||||
|
let g:livepreview_previewer = 'zathura'
|
||||||
|
autocmd Filetype tex setl updatetime=1
|
||||||
|
|
||||||
|
" Fzf
|
||||||
let g:fzf_nvim_statusline = 0 " disable statusline overwriting
|
let g:fzf_nvim_statusline = 0 " disable statusline overwriting
|
||||||
|
|
||||||
"remaps for fzf
|
"remaps for fzf
|
||||||
nnoremap <silent> <leader><space> :Files<CR>
|
nnoremap <silent> <leader><space> :Files<CR>
|
||||||
nnoremap <silent> <leader>w :Windows<CR>
|
nnoremap <silent> <leader>w :Windows<CR>
|
||||||
nnoremap <silent> <leader>h :History<CR>
|
nnoremap <silent> <leader>h :History<CR>
|
||||||
nnoremap <silent> <leader>g<space> :GFiles<CR>
|
nnoremap <silent> <leader>G<space> :GFiles<CR>
|
||||||
nnoremap <silent> <leader>gs :GFiles?<CR>
|
nnoremap <silent> <leader>GS :GFiles?<CR>
|
||||||
|
|
||||||
|
" Easy to update and reload nvim init file
|
||||||
|
nnoremap <Leader>e :e $MYVIMRC<CR>
|
||||||
|
nnoremap <Leader>S :source $MYVIMRC<CR>
|
||||||
|
|
||||||
|
" Deoplete
|
||||||
|
let g:deoplete#enable_at_startup = 1
|
||||||
|
autocmd InsertLeave,CompleteDone * if pumvisible() == 0 | pclose | endif
|
||||||
|
let g:jedi#completions_enabled = 0
|
||||||
|
let g:jedi#use_splits_not_buffers = "right"
|
||||||
|
|
||||||
|
" Limeligt Binds
|
||||||
|
nnoremap <Leader>l :Limelight!!<CR>
|
||||||
|
let g:limelight_conceal_guifg = 'DarkGray'
|
||||||
|
let g:limelight_conceal_guifg = '#777777'
|
||||||
|
let g:limelight_conceal_ctermfg = 'gray'
|
||||||
|
let g:limelight_conceal_ctermfg = 240
|
||||||
|
autocmd! User GoyoEnter Limelight
|
||||||
|
autocmd! User GoyoLeave Limelight!
|
||||||
|
|
||||||
|
" <TAB>: completion.
|
||||||
|
inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
|
||||||
|
|
||||||
" Switching windows
|
" Switching windows
|
||||||
nnoremap <A-h> <C-w>h
|
nnoremap <A-h> <C-w>h
|
||||||
@ -109,12 +150,12 @@ nnoremap <A-k> <C-w>k
|
|||||||
nnoremap <A-l> <C-w>l
|
nnoremap <A-l> <C-w>l
|
||||||
|
|
||||||
" Move tabs
|
" Move tabs
|
||||||
nnoremap <A-J> :tabp<CR>
|
nnoremap <A-Down> :tabp<CR>
|
||||||
nnoremap <A-K> :tabn<CR>
|
nnoremap <A-Up> :tabn<CR>
|
||||||
|
|
||||||
" Basic cmd commands
|
" Basic cmd commands
|
||||||
nnoremap <A-o> :!touch<Space>
|
nnoremap <A-n> :!touch<Space>
|
||||||
nnoremap <A-e> :tabe<Space>
|
nnoremap <A-o> :tabe<Space>
|
||||||
nnoremap <A-v> :vsplit<Space>
|
nnoremap <A-v> :vsplit<Space>
|
||||||
|
|
||||||
" Screenshot command
|
" Screenshot command
|
||||||
@ -130,7 +171,7 @@ vmap < <gv
|
|||||||
vmap > >gv
|
vmap > >gv
|
||||||
|
|
||||||
" Open NERDTree
|
" Open NERDTree
|
||||||
nnoremap <leader>n :NERDTreeToggle<CR>
|
nnoremap <leader>N :NERDTreeToggle<CR>
|
||||||
|
|
||||||
" Vimwiki md2html
|
" Vimwiki md2html
|
||||||
let g:vimwiki_list = [{
|
let g:vimwiki_list = [{
|
||||||
@ -143,6 +184,6 @@ let g:vimwiki_list = [{
|
|||||||
\ 'custom_wiki2html': 'vimwiki_markdown',
|
\ 'custom_wiki2html': 'vimwiki_markdown',
|
||||||
\ 'template_ext': '.tpl'}]
|
\ 'template_ext': '.tpl'}]
|
||||||
|
|
||||||
|
" Vimwiki
|
||||||
|
nnoremap <leader>T :VimwikiTable<CR>
|
||||||
|
|
||||||
|
@ -28,3 +28,35 @@ nvim
|
|||||||
config
|
config
|
||||||
lol
|
lol
|
||||||
CSCU9A3
|
CSCU9A3
|
||||||
|
CSCU9B3
|
||||||
|
OOB
|
||||||
|
titlepage
|
||||||
|
toc
|
||||||
|
NF
|
||||||
|
phpMyAdmin
|
||||||
|
csv
|
||||||
|
Menstrie
|
||||||
|
Kathryn
|
||||||
|
Sze
|
||||||
|
Nabozny
|
||||||
|
Halverson
|
||||||
|
Alloa
|
||||||
|
Robert
|
||||||
|
Dunblane
|
||||||
|
un
|
||||||
|
logN
|
||||||
|
log2
|
||||||
|
P2
|
||||||
|
C2
|
||||||
|
Preorder
|
||||||
|
Postorder
|
||||||
|
subtree
|
||||||
|
Hashtables
|
||||||
|
etc
|
||||||
|
Inorder
|
||||||
|
inorder
|
||||||
|
PantomimeID
|
||||||
|
loadpantomime
|
||||||
|
PlayID
|
||||||
|
AgentID
|
||||||
|
WAMP
|
||||||
|
Binary file not shown.
@ -22,10 +22,10 @@ settings:
|
|||||||
scrolling.smooth:
|
scrolling.smooth:
|
||||||
global: true
|
global: true
|
||||||
statusbar.show:
|
statusbar.show:
|
||||||
global: never
|
global: always
|
||||||
tabs.position:
|
tabs.position:
|
||||||
global: left
|
global: left
|
||||||
tabs.show:
|
tabs.show:
|
||||||
global: never
|
global: always
|
||||||
tabs.width:
|
tabs.width:
|
||||||
global: 2%
|
global: 2%
|
||||||
|
Loading…
x
Reference in New Issue
Block a user