diff options
Diffstat (limited to '.config')
-rw-r--r-- | .config/nvim/init.vim | 6 | ||||
-rw-r--r-- | .config/nvim/plug-config/airline.vim | 12 | ||||
-rw-r--r-- | .config/nvim/plug-config/floaterm.vim | 6 | ||||
-rw-r--r-- | .config/nvim/plug-config/nerd-commenter.vim | 9 | ||||
-rw-r--r-- | .config/nvim/plug-config/org.vim | 3 | ||||
-rw-r--r-- | .config/nvim/plug-config/quickscope.vim | 7 | ||||
-rw-r--r-- | .config/nvim/plug-config/rainbow.vim | 2 | ||||
-rw-r--r-- | .config/nvim/plug-config/startify.vim | 32 | ||||
-rw-r--r-- | .config/nvim/plugins.vim | 46 | ||||
-rw-r--r-- | .config/sxhkd/README.org | 245 |
10 files changed, 76 insertions, 292 deletions
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 6a76026..4c7d5c2 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -18,8 +18,12 @@ source /home/jozan/.config/nvim/plug.vim source /home/jozan/.config/nvim/settings.vim source /home/jozan/.config/nvim/bindings.vim source /home/jozan/.config/nvim/sidebars.vim -source /home/jozan/.config/nvim/plugins.vim source /home/jozan/.config/nvim/langs.vim source /home/jozan/.config/nvim/plug-config/airline.vim source /home/jozan/.config/nvim/plug-config/coc.vim +source /home/jozan/.config/nvim/plug-config/floaterm.vim +source /home/jozan/.config/nvim/plug-config/nerd-commenter.vim +source /home/jozan/.config/nvim/plug-config/org.vim +source /home/jozan/.config/nvim/plug-config/quickscope.vim +source /home/jozan/.config/nvim/plug-config/rainbow.vim source /home/jozan/.config/nvim/plug-config/startify.vim diff --git a/.config/nvim/plug-config/airline.vim b/.config/nvim/plug-config/airline.vim new file mode 100644 index 0000000..868d910 --- /dev/null +++ b/.config/nvim/plug-config/airline.vim @@ -0,0 +1,12 @@ +" Airline +let g:airline#extensions#tabline#enabled = 1 +let g:airline#extensions#tabline#fnamemod = ':t' +let g:airline_detect_modified = 1 +let g:airline_detect_paste = 1 +let g:airline_detect_crypt = 1 +let g:airline_theme = 'base16_default' +let g:airline_powerline_fonts = 1 +let g:airline_symbols_ascii = 1 +let g:airline#parts#ffenc#skip_expected_string = 'utf-8[unix]' +let g:airline#extensions#cursormode#enabled = 1 +let g:airline#extensions#tabline#buffer_idx_mode = 1 diff --git a/.config/nvim/plug-config/floaterm.vim b/.config/nvim/plug-config/floaterm.vim new file mode 100644 index 0000000..346fddc --- /dev/null +++ b/.config/nvim/plug-config/floaterm.vim @@ -0,0 +1,6 @@ +" Floaterm +let g:floaterm_autoinsert = 1 +let g:floaterm_width = 0.85 +let g:floaterm_height = 0.75 +let g:floaterm_wintitle = 0 +let g:floaterm_autoclose = 1 diff --git a/.config/nvim/plug-config/nerd-commenter.vim b/.config/nvim/plug-config/nerd-commenter.vim new file mode 100644 index 0000000..04a942d --- /dev/null +++ b/.config/nvim/plug-config/nerd-commenter.vim @@ -0,0 +1,9 @@ +" NERD Commenter +let g:NERDSpaceDelims = 1 +let g:NERDCompactSexyComs = 1 +let g:NERDDefaultAlign = 'left' +let g:NERDAltDelims_java = 1 +let g:NERDCustomDelimiters = { 'c': { 'left': '/*','right': '*/' } } +let g:NERDCommentEmptyLines = 1 +let g:NERDTrimTrailingWhitespace = 1 +let g:NERDToggleCheckAllLines = 1 diff --git a/.config/nvim/plug-config/org.vim b/.config/nvim/plug-config/org.vim new file mode 100644 index 0000000..bbf7682 --- /dev/null +++ b/.config/nvim/plug-config/org.vim @@ -0,0 +1,3 @@ +" Org-mode +let g:org_todo_keywords = ['TODO', '|', 'DONE', 'CANCELED'] +let g:org_export_emacs = "/usr/local/bin/emacs" diff --git a/.config/nvim/plug-config/quickscope.vim b/.config/nvim/plug-config/quickscope.vim new file mode 100644 index 0000000..3c1eb0a --- /dev/null +++ b/.config/nvim/plug-config/quickscope.vim @@ -0,0 +1,7 @@ +" Quickscope +let g:qs_highlight_on_keys = ['f', 'F', 't', 'T'] + +highlight QuickScopePrimary guifg='#00C7DF' gui=underline ctermfg=155 cterm=underline +highlight QuickScopeSecondary guifg='#afff5f' gui=underline ctermfg=81 cterm=underline + +let g:qs_max_chars=150 diff --git a/.config/nvim/plug-config/rainbow.vim b/.config/nvim/plug-config/rainbow.vim new file mode 100644 index 0000000..461770c --- /dev/null +++ b/.config/nvim/plug-config/rainbow.vim @@ -0,0 +1,2 @@ +" Rainbow +let g:rainbow_active = 1 diff --git a/.config/nvim/plug-config/startify.vim b/.config/nvim/plug-config/startify.vim new file mode 100644 index 0000000..a7c5d50 --- /dev/null +++ b/.config/nvim/plug-config/startify.vim @@ -0,0 +1,32 @@ +" Startify +let g:startify_custom_header = startify#pad([ + \ ' _____________________________________ ', + \ ' / \', + \ ' | Hi, partner, welcome_back to |', + \ ' | _ __ ___ _____ _(_)_ __ ___ |', + \ ' | | ''_ \ / _ \/ _ \ \ / / | ''_ ` _ \ |', + \ ' | | | | | __/ (_) \ V /| | | | | | | |', + \ ' | |_| |_|\___|\___/ \_/ |_|_| |_| |_| |', + \ ' \ /', + \ ' ------------------------------------- ', + \ ' \ ^__^ ', + \ ' \ (oo)\_______ ', + \ ' (__)\ )\/\ ', + \ ' ||----w | ', + \ ' || || ', + \ ]) +let g:startify_lists = [ + \ { 'type': 'sessions', 'header': startify#pad(['Sessions']) }, + \ { 'type': 'files', 'header': startify#pad(['Recent']) }, + \ { 'type': 'bookmarks', 'header': startify#pad(['Bookmarks']) }, + \ { 'type': 'commands', 'header': startify#pad(['Commands']) }, + \ ] +let g:startify_bookmarks = [ + \ { 'b': '~/.config/bspwm/bspwmrc' }, + \ { 'e': '~/.config/env' }, + \ { 'fa': '~/.config/fish/alias.fish' }, + \ { 'fc': '~/.config/fish/config.fish' }, + \ { 'v': '~/.config/nvim/init.vim' }, + \ { 'zc': '~/.config/zsh/.zshrc' }, + \ { 'za': '~/.config/zsh/alias.zsh' }, + \ ] diff --git a/.config/nvim/plugins.vim b/.config/nvim/plugins.vim deleted file mode 100644 index 2237045..0000000 --- a/.config/nvim/plugins.vim +++ /dev/null @@ -1,46 +0,0 @@ -" Rainbow -let g:rainbow_active = 1 - -" NERD Commenter -let g:NERDSpaceDelims = 1 -let g:NERDCompactSexyComs = 1 -let g:NERDDefaultAlign = 'left' -let g:NERDAltDelims_java = 1 -let g:NERDCustomDelimiters = { 'c': { 'left': '/*','right': '*/' } } -let g:NERDCommentEmptyLines = 1 -let g:NERDTrimTrailingWhitespace = 1 -let g:NERDToggleCheckAllLines = 1 - -" Cursor mode -let g:airline#extensions#cursormode#enabled = 1 -" let g:cursormode_color_map = { -" \ "i": "#d79921", -" \ "n": "#d79921", -" \ "R": "#cc241d", -" \ "r": "#cc241d", -" \ "v": "#b06597", -" \ "V": "#b06597", -" \ "\<C-V>": "#b06597", -" \} - -" 10 buffers jump -let g:airline#extensions#tabline#buffer_idx_mode = 1 - -" Org-mode -let g:org_todo_keywords = ['TODO', '|', 'DONE', 'CANCELED'] -let g:org_export_emacs = "/usr/local/bin/emacs" - -" Floaterm -let g:floaterm_autoinsert = 1 -let g:floaterm_width = 0.85 -let g:floaterm_height = 0.75 -let g:floaterm_wintitle = 0 -let g:floaterm_autoclose = 1 - -" Quickscope -let g:qs_highlight_on_keys = ['f', 'F', 't', 'T'] - -highlight QuickScopePrimary guifg='#00C7DF' gui=underline ctermfg=155 cterm=underline -highlight QuickScopeSecondary guifg='#afff5f' gui=underline ctermfg=81 cterm=underline - -let g:qs_max_chars=150 diff --git a/.config/sxhkd/README.org b/.config/sxhkd/README.org deleted file mode 100644 index 17f5edf..0000000 --- a/.config/sxhkd/README.org +++ /dev/null @@ -1,245 +0,0 @@ -#+TITLE: SXHKD config -#+PROPERTY: header-args :tangle sxhkdrc - -* Table of contents :toc: -- [[#about][About]] -- [[#terminal-emulator][Terminal emulator]] -- [[#dmenu][dmenu]] -- [[#restarting-sxhkd][Restarting sxhkd]] -- [[#quitting-and-restarting-bspwm][Quitting and restarting bspwm]] -- [[#closing-and-killing-apps][Closing and killing apps]] -- [[#strange-keys][Strange keys]] - - [[#alternate-between-the-tiled-and-monocle-layout][Alternate between the tiled and monocle layout]] - - [[#send-the-newest-marked-node-to-the-newest-preselected-node][Send the newest marked node to the newest preselected node]] - - [[#swap-the-current-node-and-the-biggest-node][Swap the current node and the biggest node]] -- [[#state-and-flags][State and flags]] - - [[#set-the-window-state][Set the window state]] - - [[#set-the-node-flags][Set the node flags]] -- [[#focus-and-swap][Focus and swap]] - - [[#focusswap-the-node-in-the-given-direction][Focus/swap the node in the given direction]] - - [[#focus-the-node-for-the-given-path-jump][Focus the node for the given path jump]] - - [[#focus-the-nextprevious-node-in-the-current-desktop][Focus the next/previous node in the current desktop]] - - [[#focus-the-nextprevious-desktop-in-the-current-monitor][Focus the next/previous desktop in the current monitor]] - - [[#focus-the-last-nodedesktop][Focus the last node/desktop]] - - [[#focus-the-older-or-newer-node-in-the-focus-history][Focus the older or newer node in the focus history]] - - [[#focus-or-send-to-the-given-desktop][Focus or send to the given desktop]] -- [[#preselect-options][Preselect options]] - - [[#preselect-the-direction][Preselect the direction]] - - [[#preselect-the-ratio][Preselect the ratio]] - - [[#cancel-the-preselection-for-the-focused-node][Cancel the preselection for the focused node]] - - [[#cancel-the-preselection-for-the-focused-desktop][Cancel the preselection for the focused desktop]] -- [[#move-and-resize][Move and resize]] - - [[#expand-a-window-by-moving-one-of-its-side-outward][Expand a window by moving one of its side outward]] - - [[#contract-a-window-by-moving-one-of-its-side-inward][Contract a window by moving one of its side inward]] - - [[#move-a-floating-window][Move a floating window]] -- [[#some-custom-quick-launch-apps][Some custom quick launch apps]] -- [[#xf86-keys][XF86 keys]] - -* About - The following is my ~sxhkd~ configuration file. - -* Terminal emulator - #+BEGIN_SRC text -super + Return - /usr/local/bin/alacritty - #+END_SRC - -* dmenu - #+BEGIN_SRC text -super + p - /usr/local/bin/dmenu_run -c -l 5 -m 0 -fn "mononoki Nerd Font:size=12" -nb "#222222" -nf "#bbbbbb" -sb "#b92121" -sf "#eeeeee" - #+END_SRC - -* Restarting sxhkd - #+BEGIN_SRC text -super + control + r - /bin/pkill -USR1 -x sxhkd - #+END_SRC - -* Quitting and restarting bspwm - #+BEGIN_SRC text -super + shift + {e,r} - /usr/local/bin/bspc {quit,wm -r} - #+END_SRC - -* Closing and killing apps - #+BEGIN_SRC text -super + {_,shift + }q - /usr/local/bin/bspc node -{c,k} - #+END_SRC - -* Strange keys -** Alternate between the tiled and monocle layout - #+BEGIN_SRC text -super + m - /usr/local/bin/bspc desktop -l next - #+END_SRC - -** Send the newest marked node to the newest preselected node - #+BEGIN_SRC text -super + y - /usr/local/bin/bspc node newest.marked.local -n newest.!automatic.local - #+END_SRC - -** Swap the current node and the biggest node - #+BEGIN_SRC text -super + g - /usr/local/bin/bspc node -s biggest - #+END_SRC - -* State and flags -** Set the window state - #+BEGIN_SRC text -super + {s,shift + t,space,f} - /usr/local/bin/bspc node -t {tiled,pseudo_tiled,floating,fullscreen} - #+END_SRC - -** Set the node flags - #+BEGIN_SRC text -super + ctrl + {m,x,y,z} - /usr/local/bin/bspc node -g {marked,locked,sticky,private} - #+END_SRC - -* Focus and swap -** Focus/swap the node in the given direction - #+BEGIN_SRC text -super + {_,shift + }{h,j,k,l} - /usr/local/bin/bspc node -{f,s} {west,south,north,east} - #+END_SRC - -** Focus the node for the given path jump - #+BEGIN_SRC text -super + { ,b,comma,period} - /usr/local/bin/bspc node -f @{parent,brother,first,second} - #+END_SRC - -** Focus the next/previous node in the current desktop - #+BEGIN_SRC text -super + {_,shift + }c - /usr/local/bin/bspc node -f {next,prev}.local - #+END_SRC - -** Focus the next/previous desktop in the current monitor - #+BEGIN_SRC text -super + bracket{left,right} - /usr/local/bin/bspc desktop -f {prev,next}.local - #+END_SRC - -** Focus the last node/desktop - #+BEGIN_SRC text -alt + {grave,Tab} - /usr/local/bin/bspc {node,desktop} -f last - #+END_SRC - -** Focus the older or newer node in the focus history - #+BEGIN_SRC text -super + {o,i} - /usr/local/bin/bspc wm -h off; \ - /usr/local/bin/bspc node {older,newer} -f; \ - /usr/local/bin/bspc wm -h on - #+END_SRC - -** Focus or send to the given desktop - #+BEGIN_SRC text -super + {_,shift + }{F1} - /usr/local/bin/bspc {desktop -f,node -d} 01 -super + {_,shift + }{F2} - /usr/local/bin/bspc {desktop -f,node -d} 02 -super + {_,shift + }{F3} - /usr/local/bin/bspc {desktop -f,node -d} 03 -super + {_,shift + }{F4} - /usr/local/bin/bspc {desktop -f,node -d} 04 -super + {_,shift + }{F5} - /usr/local/bin/bspc {desktop -f,node -d} 05 -super + {_,shift + }{F6} - /usr/local/bin/bspc {desktop -f,node -d} 06 -super + {_,shift + }{F7} - /usr/local/bin/bspc {desktop -f,node -d} 07 -super + {_,shift + }{F8} - /usr/local/bin/bspc {desktop -f,node -d} 08 -super + {_,shift + }{F9} - /usr/local/bin/bspc {desktop -f,node -d} 09 -super + {_,shift + }{F10} - /usr/local/bin/bspc {desktop -f,node -d} 10 -super + {_,shift + }{F11} - /usr/local/bin/bspc {desktop -f,node -d} 11 -super + {_,shift + }{F12} - /usr/local/bin/bspc {desktop -f,node -d} 12 - #+END_SRC - -* Preselect options -** Preselect the direction - #+BEGIN_SRC text -super + ctrl + {h,j,k,l} - /usr/local/bin/bspc node -p {west,south,north,east} - #+END_SRC - -** Preselect the ratio - #+BEGIN_SRC text -super + ctrl + {1-9} - /usr/local/bin/bspc node -o 0.{1-9} - #+END_SRC - -** Cancel the preselection for the focused node - #+BEGIN_SRC text -super + ctrl + {space,Escape} - /usr/local/bin/bspc node -p cancel - #+END_SRC - -** Cancel the preselection for the focused desktop - #+BEGIN_SRC text -super + ctrl + shift + space - /usr/local/bin/bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel - #+END_SRC - -* Move and resize -** Expand a window by moving one of its side outward - #+BEGIN_SRC text -ctrl + alt + {Left,Down,Up,Right} - /usr/local/bin/bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0} - #+END_SRC - -** Contract a window by moving one of its side inward - #+BEGIN_SRC text -super + ctrl + {Left,Down,Up,Right} - /usr/local/bin/bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0} - #+END_SRC - -** Move a floating window - #+BEGIN_SRC text -super + {Left,Down,Up,Right} - /usr/local/bin/bspc node -v {-20 0,0 20,0 -20,20 0} - #+END_SRC - -* Some custom quick launch apps - #+BEGIN_SRC text -super + 1 - /usr/local/bin/alacritty -e vifm -super + 2 - /usr/local/bin/emacsclient -c -super + 3 - /usr/local/bin/firefox --kiosk https://start.duckduckgo.com/ -super + 4 - /usr/local/bin/alacritty -e w3m https://start.duckduckgo.com/ - #+END_SRC - -* XF86 keys - #+BEGIN_SRC text -{XF86AudioRaiseVolume} - /usr/home/jozan/.local/bin/mixer-set raise >/dev/null 2>&1 - -{XF86AudioLowerVolume} - /usr/home/jozan/.local/bin/mixer-set lower >/dev/null 2>&1 - -{XF86AudioMute} - /usr/home/jozan/.local/bin/mixer-set toggle >/dev/null 2>&1 - -{XF86MonBrightnessUp} - /usr/local/bin/xbacklight -inc 4 - -{XF86MonBrightnessDown} - /usr/local/bin/xbacklight -dec 4 - -{XF86Sleep} - /usr/home/jozan/.local/bin/gotosleep - #+END_SRC |