Update 2020-09-04

This commit is contained in:
Nguyễn Gia Phong 2020-09-04 15:30:05 +07:00
parent 8a170f7951
commit 21e8582106
5 changed files with 39 additions and 32 deletions

View file

@ -57,7 +57,7 @@ local python2 = terminal .. " -e python2"
local guile = terminal .. " -e guile" local guile = terminal .. " -e guile"
local clojure = terminal .. " -e clojure" local clojure = terminal .. " -e clojure"
local emacs = "emacs" local emacs = "emacs"
local netrw = terminal .. " -e vim -cEx" local netrw = terminal .. " -e vim"
local slock_suspend = "slock systemctl --ignore-inhibitors suspend" local slock_suspend = "slock systemctl --ignore-inhibitors suspend"
-- Audacious media player -- Audacious media player
@ -477,6 +477,8 @@ local globalkeys = awful.util.table.join(
{description = "open Tor Browser", group = "launcher"}), {description = "open Tor Browser", group = "launcher"}),
awful.key({modkey}, "t", spawner"thunderbird", awful.key({modkey}, "t", spawner"thunderbird",
{description = "open Thunderbird", group = "launcher"}), {description = "open Thunderbird", group = "launcher"}),
awful.key({modkey}, "m", spawner"nheko",
{description = "open nheko", group = "launcher"}),
awful.key({modkey, "Shift"}, "g", spawner"gimp", awful.key({modkey, "Shift"}, "g", spawner"gimp",
{description = "open GIMP", group = "launcher"}), {description = "open GIMP", group = "launcher"}),
awful.key({modkey}, "r", spawner(ranger), awful.key({modkey}, "r", spawner(ranger),
@ -491,8 +493,6 @@ local globalkeys = awful.util.table.join(
{description = "open Clojure interpreter", group = "launcher"}), {description = "open Clojure interpreter", group = "launcher"}),
awful.key({modkey}, "g", spawner(guile), awful.key({modkey}, "g", spawner(guile),
{description = "open Guile interpreter", group = "launcher"}), {description = "open Guile interpreter", group = "launcher"}),
awful.key({modkey}, "z", spawner"zathura",
{description = "open zathura document viewer", group = "launcher"}),
awful.key({modkey}, "d", spawner"diodon", awful.key({modkey}, "d", spawner"diodon",
{description = "open clipboard manager", group = "launcher"}), {description = "open clipboard manager", group = "launcher"}),
awful.key({modkey}, "s", spawner"slock", awful.key({modkey}, "s", spawner"slock",
@ -586,6 +586,8 @@ local clientkeys = awful.util.table.join(
c:raise() c:raise()
end, end,
{description = "toggle fullscreen", group = "client"}), {description = "toggle fullscreen", group = "client"}),
awful.key({modkey, "Control"}, "d", spawner"kdocker",
{description = "select a window to be docked", group = "client"}),
awful.key({modkey}, "q", function (c) c:kill() end, awful.key({modkey}, "q", function (c) c:kill() end,
{description = "close", group = "client"}), {description = "close", group = "client"}),
awful.key({modkey, "Control"}, "q", spawner"xkill", awful.key({modkey, "Control"}, "q", spawner"xkill",

6
debian/.bashrc vendored
View file

@ -82,9 +82,8 @@ fi
export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
# some more ls aliases # some more ls aliases
alias ll='ls -l' alias ll='exa -l'
alias la='ls -A' alias la='exa -a'
#alias l='ls -CF'
# Alias definitions. # Alias definitions.
# You may want to put all your additions into a separate file like # You may want to put all your additions into a separate file like
@ -93,6 +92,7 @@ alias la='ls -A'
alias l='$(fc -ln -1) | less -r' alias l='$(fc -ln -1) | less -r'
alias r=ranger alias r=ranger
alias v='vim $(fzf)' alias v='vim $(fzf)'
alias fd=fdfind
alias cdid='cd $HOME/Sources/pip/src/pip/_internal' alias cdid='cd $HOME/Sources/pip/src/pip/_internal'
alias pwip='python3 $HOME/Sources/pip/src/pip' alias pwip='python3 $HOME/Sources/pip/src/pip'
alias gcc='gcc -Wall -Wextra -pedantic -O2 -lm' alias gcc='gcc -Wall -Wextra -pedantic -O2 -lm'

1
debian/.profile vendored
View file

@ -11,6 +11,7 @@
export GOPATH="$HOME/.local/share/go" export GOPATH="$HOME/.local/share/go"
export PATH="$HOME/.local/bin:$GOPATH/bin:$HOME/.cargo/bin:$HOME/.luarocks/bin:$PATH" export PATH="$HOME/.local/bin:$GOPATH/bin:$HOME/.cargo/bin:$HOME/.luarocks/bin:$PATH"
export MANPATH="$HOME/.local/share/man:$MANPATH" export MANPATH="$HOME/.local/share/man:$MANPATH"
export RUST_SRC_PATH="$(rustc --print sysroot)/lib/rustlib/src/rust/src"
export XMODIFIERS=@im=ibus export XMODIFIERS=@im=ibus
export QT_QPA_PLATFORMTHEME=qt5ct export QT_QPA_PLATFORMTHEME=qt5ct

View file

@ -16,3 +16,5 @@
ui = auto ui = auto
[pull] [pull]
rebase = true rebase = true
[init]
defaultBranch = main

View file

@ -15,22 +15,24 @@ set keymap=vietnamese-telex imdisable iminsert=0 imsearch=-1
set omnifunc=syntaxcomplete#Complete set omnifunc=syntaxcomplete#Complete
set diffopt+=algorithm:patience set diffopt+=algorithm:patience
autocmd! augroup vimrc
autocmd BufNewFile,BufRead *.PAS setlocal filetype=pascal autocmd!
autocmd BufNewFile,BufRead *.sql setlocal filetype=mysql autocmd BufNewFile,BufRead *.PAS setlocal filetype=pascal
autocmd BufNewFile,BufRead *.m setlocal filetype=octave autocmd BufNewFile,BufRead *.sql setlocal filetype=mysql
autocmd FileType asm,c,h,go,glsl autocmd BufNewFile,BufRead *.m setlocal filetype=octave
\ setlocal cindent cinoptions=(0 noexpandtab shiftwidth=8 autocmd FileType asm,c,h,go,glsl
autocmd FileType vim,sh,lua,tex,cmake,cpp,mysql,html,octave,pascal \ setlocal cindent cinoptions=(0 noexpandtab shiftwidth=8
\ setlocal shiftwidth=2 autocmd FileType vim,sh,lua,tex,cmake,cpp,mysql,html,octave,pascal
autocmd FileType rst setlocal shiftwidth=3 \ setlocal shiftwidth=2
autocmd FileType java setlocal omnifunc=javacomplete#Complete autocmd FileType rst setlocal shiftwidth=3
autocmd BufWinEnter * autocmd FileType java setlocal omnifunc=javacomplete#Complete
\ if &filetype ==# 'python' || &filetype ==# 'cython' autocmd BufWinEnter *
\ | let w:m1=matchadd('ColorColumn', '\%<80v.\%>73v', -1) | \ if &filetype ==# 'python' || &filetype ==# 'cython'
\ else \ | let w:m1=matchadd('ColorColumn', '\%<80v.\%>73v', -1) |
\ | let w:m1=matchadd('ColorColumn', '\%<81v.\%>80v', -1) | \ else
\ endif \ | let w:m1=matchadd('ColorColumn', '\%<81v.\%>80v', -1) |
\ endif
augroup END
let g:netrw_banner = 0 let g:netrw_banner = 0
let g:netrw_liststyle = 3 let g:netrw_liststyle = 3
@ -42,16 +44,16 @@ let g:jedi#smart_auto_mappings = 0
let g:polyglot_disabled = ['latex'] let g:polyglot_disabled = ['latex']
call plug#begin('~/.vim/plugged') call plug#begin('~/.vim/plugged')
Plug 'https://github.com/vim/killersheep.git' Plug 'https://github.com/vim/killersheep'
Plug 'https://github.com/sheerun/vim-polyglot.git' Plug 'https://github.com/francoiscabrol/ranger.vim'
Plug 'https://github.com/srcery-colors/srcery-vim.git' Plug 'https://github.com/sheerun/vim-polyglot'
Plug 'https://github.com/knsh14/vim-github-link.git' Plug 'https://github.com/srcery-colors/srcery-vim'
Plug 'https://github.com/tpope/vim-abolish.git' Plug 'https://github.com/knsh14/vim-github-link'
Plug 'https://github.com/alx741/vinfo.git' Plug 'https://github.com/lervag/vimtex', {'for': 'tex'}
Plug 'https://github.com/lervag/vimtex.git', {'for': 'tex'} Plug 'https://github.com/kovisoft/slimv', {'for': 'lisp'}
Plug 'https://github.com/kovisoft/slimv.git', {'for': 'lisp'} Plug 'https://github.com/anntzer/vim-cython', {'for': 'cython'}
Plug 'https://github.com/anntzer/vim-cython.git', {'for': 'cython'} Plug 'https://github.com/racer-rust/vim-racer', {'for': 'rust'}
Plug 'https://github.com/artur-shaik/vim-javacomplete2.git', {'for': 'java'} Plug 'https://github.com/rhysd/rust-doc.vim', {'for': 'rust'}
call plug#end() call plug#end()
source /usr/share/doc/fzf/examples/fzf.vim source /usr/share/doc/fzf/examples/fzf.vim