summaryrefslogtreecommitdiffstats
path: root/.config
diff options
context:
space:
mode:
authorYigit Sever2020-01-04 16:21:34 +0300
committerYigit Sever2020-01-04 16:21:34 +0300
commitec041431da07ece93a258674191ee8b16befcca6 (patch)
treea9a1de2111f3aef153c84cb0cdd161b3f8530218 /.config
parent3cd07e80c97a6c9f9a7283b384da52d681824ec3 (diff)
parentb7382c651d7246c1e0f17c42434ee30dd72ec017 (diff)
downloaddotfiles-ec041431da07ece93a258674191ee8b16befcca6.tar.gz
dotfiles-ec041431da07ece93a258674191ee8b16befcca6.tar.bz2
dotfiles-ec041431da07ece93a258674191ee8b16befcca6.zip
Merge branch 'master' of 207.154.210.186:/home/yigit/dots
Diffstat (limited to '.config')
-rwxr-xr-x.config/dunst/dunstrc4
-rw-r--r--.config/i3/config##c.desktop,h.Lowe8
-rwxr-xr-x.config/nvim/init.vim96
-rwxr-xr-x.config/polybar/focus12
4 files changed, 69 insertions, 51 deletions
diff --git a/.config/dunst/dunstrc b/.config/dunst/dunstrc
index e1d2052..523d3ba 100755
--- a/.config/dunst/dunstrc
+++ b/.config/dunst/dunstrc
@@ -57,3 +57,7 @@ timeout = 0
57[Spotify] 57[Spotify]
58appname = Spotify 58appname = Spotify
59format = "<b>Now Playing</b>\n%s\n%b" 59format = "<b>Now Playing</b>\n%s\n%b"
60
61[spliff]
62appname = "spliff"
63format = "<b>ready for printing</b>\n%s\n%b"
diff --git a/.config/i3/config##c.desktop,h.Lowe b/.config/i3/config##c.desktop,h.Lowe
index 30692e1..2e5a8c4 100644
--- a/.config/i3/config##c.desktop,h.Lowe
+++ b/.config/i3/config##c.desktop,h.Lowe
@@ -8,6 +8,9 @@ set $alt Mod1
8# launch polybar 8# launch polybar
9exec --no-startup-id $HOME/.config/polybar/launch.sh & 9exec --no-startup-id $HOME/.config/polybar/launch.sh &
10 10
11# launch spliffer + notification
12exec --no-startup-id $HOME/bin/watch_incoming.sh
13
11# start the screensaver, '' at the end is not a typo 14# start the screensaver, '' at the end is not a typo
12exec --no-startup-id xidlehook --not-when-fullscreen --not-when-audio --timer normal 300 'betterlockscreen -l dimblur -t "Welcome Back"' '' 15exec --no-startup-id xidlehook --not-when-fullscreen --not-when-audio --timer normal 300 'betterlockscreen -l dimblur -t "Welcome Back"' ''
13 16
@@ -105,11 +108,14 @@ bindsym $mod+e layout toggle split
105# toggle tiling / floating 108# toggle tiling / floating
106bindsym $mod+Shift+space floating toggle 109bindsym $mod+Shift+space floating toggle
107 110
111# toggle sticky floating window
112bindsym $mod+a sticky toggle
113
108# change focus between tiling / floating windows 114# change focus between tiling / floating windows
109bindsym $mod+space focus mode_toggle 115bindsym $mod+space focus mode_toggle
110 116
111# focus the parent container 117# focus the parent container
112bindsym $mod+a focus parent 118# bindsym $mod+a focus parent
113 119
114# Define names for default workspaces for which we configure key bindings later on. 120# Define names for default workspaces for which we configure key bindings later on.
115# We use variables to avoid repeating the names in multiple places. 121# We use variables to avoid repeating the names in multiple places.
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim
index fab8f58..9d52e0c 100755
--- a/.config/nvim/init.vim
+++ b/.config/nvim/init.vim
@@ -1,100 +1,102 @@
1"{{{ Plugs 1"{{{ Plugs
2call plug#begin('~/.local/share/nvim/plugged') 2call plug#begin('~/.local/share/nvim/plugged')
3 3
4"completion 4" completion
5Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } 5Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
6Plug 'lionawurscht/deoplete-biblatex' 6Plug 'lionawurscht/deoplete-biblatex'
7Plug 'deoplete-plugins/deoplete-jedi' 7Plug 'deoplete-plugins/deoplete-jedi'
8 8
9" ledger 9" ledger
10Plug 'ledger/vim-ledger' 10Plug 'ledger/vim-ledger'
11"language packs 11" language packs
12Plug 'sheerun/vim-polyglot' 12Plug 'sheerun/vim-polyglot'
13"syntax checking 13" syntax checking
14Plug 'dense-analysis/ale' 14Plug 'dense-analysis/ale'
15"manages tag files 15" manages tag files
16Plug 'ludovicchabant/vim-gutentags' 16Plug 'ludovicchabant/vim-gutentags'
17"run your tests 17" run your tests
18Plug 'janko/vim-test' 18" Plug 'janko/vim-test' " TODO benched for now but should be useful later
19" latex 19" open a floating terminal
20Plug 'lervag/vimtex' 20Plug 'voldikss/vim-floaterm'
21 21
22"snippet solution 22" snippets to expand
23Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets' 23Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets'
24"autopair plugin 24" autopair plugin
25Plug 'tmsvg/pear-tree' 25Plug 'tmsvg/pear-tree'
26"colored brackets
27Plug 'luochen1990/rainbow'
28 26
29" Plugin outside ~/.vim/plugged with post-update hook 27" Plugin outside ~/.vim/plugged with post-update hook
30Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } 28Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
31Plug 'junegunn/fzf.vim' 29Plug 'junegunn/fzf.vim'
32 30
33"tree explorer 31" tree explorer
34Plug 'scrooloose/nerdtree' 32" Plug 'scrooloose/nerdtree' TODO benched for now, use netrw
35"displays tags ordered by scope 33" displays tags ordered by scope
36Plug 'majutsushi/tagbar' 34Plug 'majutsushi/tagbar'
37"status/tabline 35" status/tabline
38Plug 'bling/vim-airline' 36Plug 'bling/vim-airline'
37" floating terminal
38Plug 'voldikss/vim-floaterm'
39 39
40" " color theme 40" color theme of $CURRENT_YEAR
41Plug 'joshdick/onedark.vim' 41Plug 'joshdick/onedark.vim'
42 42
43"Personal wiki 43" Personal wiki
44Plug 'vimwiki/vimwiki' 44Plug 'vimwiki/vimwiki'
45"distraction-free writing 45" centers the writing
46Plug 'junegunn/goyo.vim' 46Plug 'junegunn/goyo.vim'
47" highlights the current parapraph
47Plug 'junegunn/limelight.vim' 48Plug 'junegunn/limelight.vim'
49" latex
50Plug 'lervag/vimtex'
48 51
49"text alignment 52" text alignment
50Plug 'godlygeek/tabular' 53Plug 'godlygeek/tabular'
51"color code highlight 54" color code highlight
52Plug 'chrisbra/Colorizer' 55" Plug 'chrisbra/Colorizer' " TODO benched for now, can't remember the last
53"move selections up and down 56" time this was useful
57" move selections up and down
54Plug 'matze/vim-move' 58Plug 'matze/vim-move'
55" search/select/edit sandwiched textobjects (vim-surround) 59" search/select/edit sandwiched textobjects
56Plug 'machakann/vim-sandwich' 60Plug 'machakann/vim-sandwich'
57" provide additional text objects 61" provide additional text objects
58Plug 'wellle/targets.vim' 62Plug 'wellle/targets.vim'
59" indentation level text object 63" indentation level text object
60Plug 'michaeljsmith/vim-indent-object' 64Plug 'michaeljsmith/vim-indent-object'
61" undo history visualizer
62Plug 'mbbill/undotree'
63 65
64"reopen files at your last edit position 66" reopen files at your last edit position
65Plug 'farmergreg/vim-lastplace' 67Plug 'farmergreg/vim-lastplace'
66"toggle, display and navigate marks 68" toggle, display and navigate marks
67Plug 'kshenoy/vim-signature' 69" Plug 'kshenoy/vim-signature' TODO benched for now, never used
68"git diff in the sign column 70" git diff in the sign column
69Plug 'airblade/vim-gitgutter' 71Plug 'airblade/vim-gitgutter'
70"jump to location by 2 characters 72" jump to location by 2 characters
71Plug 'justinmk/vim-sneak' 73Plug 'justinmk/vim-sneak'
72 74
73"splits delete into cut and delete 75" splits delete into cut and delete
74Plug 'svermeulen/vim-cutlass' 76Plug 'svermeulen/vim-cutlass'
75"change text with yank 77" change text with yank
76Plug 'svermeulen/vim-subversive' 78Plug 'svermeulen/vim-subversive'
77"yank history 79" yank history
78Plug 'svermeulen/vim-yoink' 80Plug 'svermeulen/vim-yoink'
79 81
80"enable repeating supported plugin maps with '.' 82" enable repeating supported plugin maps with '.'
81Plug 'tpope/vim-repeat' 83Plug 'tpope/vim-repeat'
82"pairs of handy bracket mappings 84" pairs of handy bracket mappings
83Plug 'tpope/vim-unimpaired' 85Plug 'tpope/vim-unimpaired'
84"git wrapper 86" git wrapper
85Plug 'tpope/vim-fugitive' 87Plug 'tpope/vim-fugitive'
86"increment dates, times & more 88" increment dates, times & more
87Plug 'tpope/vim-speeddating' 89Plug 'tpope/vim-speeddating'
88"search, substitute and abbreviate 90" search, substitute and abbreviate
89Plug 'tpope/vim-abolish' 91Plug 'tpope/vim-abolish'
90"provides ga, show unicode stuff of char under cursor 92" provides ga, show unicode stuff of char under cursor
91Plug 'tpope/vim-characterize' 93Plug 'tpope/vim-characterize'
92"comment helper 94" comment helper
93Plug 'tpope/vim-commentary' 95Plug 'tpope/vim-commentary'
94"asynchronous build and test dispatcher 96" asynchronous build and test dispatcher
95Plug 'tpope/vim-dispatch' 97Plug 'tpope/vim-dispatch'
96 98
97"fancy start screen 99" fancy start screen
98Plug 'mhinz/vim-startify' 100Plug 'mhinz/vim-startify'
99Plug 'ryanoasis/vim-devicons' " asks to be placed last, sure 101Plug 'ryanoasis/vim-devicons' " asks to be placed last, sure
100 102
@@ -112,6 +114,9 @@ autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isT
112" Resize all windows proportionally when the terminal is resized 114" Resize all windows proportionally when the terminal is resized
113" let terminal resize scale the internal windows 115" let terminal resize scale the internal windows
114autocmd VimResized * :wincmd = 116autocmd VimResized * :wincmd =
117
118" Set spell for prose
119autocmd FileType markdown,tex setlocal spell
115"}}} 120"}}}
116 121
117"{{{Misc Settings 122"{{{Misc Settings
@@ -152,6 +157,8 @@ set splitbelow " new split panes will split to below and right
152set splitright 157set splitright
153set cursorline 158set cursorline
154 159
160set thesaurus+=~/.local/share/thesaurus.txt
161
155" persistent undo 162" persistent undo
156set undodir=~/.vim/undodir 163set undodir=~/.vim/undodir
157set undofile 164set undofile
@@ -185,7 +192,8 @@ colorscheme onedark
185" Open the TagBar Plugin <F3> 192" Open the TagBar Plugin <F3>
186nnoremap <silent> <F3> :TagbarToggle<CR> 193nnoremap <silent> <F3> :TagbarToggle<CR>
187" Open NERDTree <F4> 194" Open NERDTree <F4>
188nnoremap <silent> <F4> :NERDTreeToggle<CR> 195" nnoremap <silent> <F4> :NERDTreeToggle<CR>
196let g:floaterm_keymap_toggle = '<F4>'
189" Fix whole buffer via ALE 197" Fix whole buffer via ALE
190nmap <F9> <Plug>(ale_fix) 198nmap <F9> <Plug>(ale_fix)
191 199
diff --git a/.config/polybar/focus b/.config/polybar/focus
index 8eeb92a..17c9862 100755
--- a/.config/polybar/focus
+++ b/.config/polybar/focus
@@ -34,10 +34,10 @@ $active_task_maybe =~ s/^\s+|\s+$//g;
34my @lines = split /\n/, $active_task_maybe; 34my @lines = split /\n/, $active_task_maybe;
35 35
36my $task = $lines[2]; 36my $task = $lines[2];
37$task =~ s/^\s+|\s+$//g; 37$task =~ s/^\s+|\s+$//g; # left and right trim
38$task =~ s/\s+/ /g; 38$task =~ s/\s+/ /g; # reduce multiple whitespace into one
39 39
40# if ($task =~ m/.*?next (.*)$/) { 40if ($task =~ m/^(.*)?\s(\d+\w+)$/g) {
41# print "$1"; 41 print "$1 | $2";
42# } 42}
43print $task; 43# print $task;