about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2020-04-09 11:30:57 +0700
committerNguyễn Gia Phong <mcsinyx@disroot.org>2020-04-09 11:30:57 +0700
commit59fb998abb48df972a2ce399a8bacb2a5de06da2 (patch)
tree524c55afcc849475c31e3057482a430d6fadc63a
parent25f162ed00b2676dc521c055545f7ec279332061 (diff)
downloaddotfiles-59fb998abb48df972a2ce399a8bacb2a5de06da2.tar.gz
Update 2020-04-09
-rw-r--r--awesome/.config/awesome/rc.lua11
-rw-r--r--debian/.bashrc1
-rw-r--r--debian/.profile3
-rw-r--r--dev/.gitconfig4
-rw-r--r--dev/.pypirc8
-rw-r--r--emacs/.emacs.d/init.el5
-rwxr-xr-xvim/.vim/gvimrc2
-rwxr-xr-xvim/.vim/vimrc9
8 files changed, 28 insertions, 15 deletions
diff --git a/awesome/.config/awesome/rc.lua b/awesome/.config/awesome/rc.lua
index 1bf8ec3..de0faf8 100644
--- a/awesome/.config/awesome/rc.lua
+++ b/awesome/.config/awesome/rc.lua
@@ -46,17 +46,18 @@ beautiful.init"~/.config/awesome/themes/srcery/theme.lua"
 
 -- This is used later as the default terminal and editor to run.
 local terminal = "urxvt"
-local editor = terminal .. " -e vim"
+local editor = "gvim"
 -- And some additional applications
 local root_terminal = terminal .. " -e su -"
 local pulsemixer = terminal .. " -e pulsemixer"
 local ranger = terminal .. " -e ranger"
+local irc = terminal .. " -e ircII cnx irc.freenode.net"
 local python3 = terminal .. " -e python3"
 local perl6 = terminal .. " -e perl6"
 local octave = terminal .. " -e octave"
 local guile = terminal .. " -e guile"
 local clojure = terminal .. " -e clojure"
-local emacs = terminal .. " -e emacsclient -nw"
+local emacs = "emacsclient -c"
 local slock_suspend = "slock systemctl --ignore-inhibitors suspend"
 
 -- Audacious media player
@@ -67,7 +68,7 @@ local audacious_rewind = "audacious --rew"
 local audacious_forward = "audacious --fwd"
 
 local scrot = "scrot /home/cnx/Desktop/%FT%T.png"
-local scrot_select = "scrot --select /home/cnx/Desktop/%FT%T.png"
+local scrot_select = "scrot --border --select /home/cnx/Desktop/%FT%T.png"
 
 -- Default modkey.
 -- Usually, Mod4 is the key with a logo between Control and Alt.
@@ -483,7 +484,9 @@ local globalkeys = awful.util.table.join(
   awful.key({modkey}, "r", spawner(ranger),
             {description = "open ranger file manager", group = "launcher"}),
   awful.key({modkey, "Shift"}, "r", spawner(ranger .. " /data"),
-            {description = "open Riboflavin", group = "launcher"}),
+            {description = "open ranger at /data", group = "launcher"}),
+  awful.key({modkey}, "i", spawner(irc),
+            {description = "open Freenode", group = "launcher"}),
   awful.key({modkey}, "p", spawner(python3),
             {description = "open Python 3 interpreter", group = "launcher"}),
   awful.key({modkey, "Shift"}, "p", spawner(perl6),
diff --git a/debian/.bashrc b/debian/.bashrc
index d53d110..eaef3c6 100644
--- a/debian/.bashrc
+++ b/debian/.bashrc
@@ -127,3 +127,4 @@ set -o emacs
 
 export EDITOR=vim
 export PAGER=less
+export IRCSERVER=irc.freenode.net
diff --git a/debian/.profile b/debian/.profile
index 6c8b86e..d7f8549 100644
--- a/debian/.profile
+++ b/debian/.profile
@@ -12,8 +12,7 @@ export GOPATH="$HOME/.local/share/go"
 export PATH="$HOME/.local/bin:$GOPATH/bin:$HOME/.cargo/bin:$HOME/.luarocks/bin:$PATH"
 export MANPATH="$HOME/.local/share/man:$MANPATH"
 export XMODIFIERS=@im=ibus
-#export WEBKIT_DISABLE_COMPOSITING_MODE=1
-export NLTK_DATA="$HOME/Sources/nlp/nltk_data"
+export QT_QPA_PLATFORMTHEME=qt5ct
 
 # if running bash
 if [ -n "$BASH_VERSION" ]; then
diff --git a/dev/.gitconfig b/dev/.gitconfig
index cacb6a2..46a58ed 100644
--- a/dev/.gitconfig
+++ b/dev/.gitconfig
@@ -1,5 +1,5 @@
 [user]
-	email = vn.mcsinyx@gmail.com
+	email = mcsinyx@disroot.org
 	name = Nguyễn Gia Phong
 [diff]
 	tool = vimdiff
@@ -12,3 +12,5 @@
 	smudge = git-lfs smudge -- %f
 	process = git-lfs filter-process
 	required = true
+[color]
+	ui = auto
diff --git a/dev/.pypirc b/dev/.pypirc
index 7a3ed4b..8a93dfa 100644
--- a/dev/.pypirc
+++ b/dev/.pypirc
@@ -1,6 +1,12 @@
 [distutils]
-index-servers=pypi
+index-servers =
+    pypi
+    testpypi
 
 [pypi]
 repository = https://upload.pypi.org/legacy/
 username = McSinyx
+
+[testpypi]
+repository = https://test.pypi.org/legacy/
+username = McSinyx
diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el
index 74b4e69..031dbca 100644
--- a/emacs/.emacs.d/init.el
+++ b/emacs/.emacs.d/init.el
@@ -32,8 +32,9 @@
  '(erc-nick "cnx")
  '(package-selected-packages
    (quote
-    (sane-term fireplace wordnut magit smart-tabs-mode yaml-mode glsl-mode
-     nix-mode perl6-mode lua-mode markdown-mode geiser slime auctex pdf-tools)))
+    (cython-mode glsl-mode lua-mode markdown-mode nix-mode perl6-mode yaml-mode
+     auctex geiser slime pdf-tools
+     fireplace magit sane-term smart-tabs-mode wordnut)))
  '(safe-local-variable-values (quote ((Syntax . Common-Lisp))))
  '(scroll-bar-mode nil)
  '(show-paren-mode t)
diff --git a/vim/.vim/gvimrc b/vim/.vim/gvimrc
index 50c7b2d..16e63eb 100755
--- a/vim/.vim/gvimrc
+++ b/vim/.vim/gvimrc
@@ -1,5 +1,5 @@
 runtime ftplugin/man.vim
 nmap K :Man <cword><CR>
 set guifont=Latin\ Modern\ Mono\ 12
-set guioptions=ci
+set guioptions=cdi
 set guicursor+=a:blinkon0
diff --git a/vim/.vim/vimrc b/vim/.vim/vimrc
index 5f5751b..56a99fe 100755
--- a/vim/.vim/vimrc
+++ b/vim/.vim/vimrc
@@ -19,14 +19,15 @@ autocmd!
 autocmd BufNewFile,BufRead *.PAS setlocal filetype=pascal
 autocmd BufNewFile,BufRead *.m setlocal filetype=octave
 autocmd FileType asm,c,h,go,glsl
-\ setlocal cindent cinoptions=(0 noexpandtab shiftwidth=8
-autocmd FileType vim,sh,lua,tex,cpp,html,octave,pascal setlocal shiftwidth=2
+      \ setlocal cindent cinoptions=(0 noexpandtab shiftwidth=8
+autocmd FileType vim,sh,lua,tex,cmake,cpp,html,octave,pascal
+      \ setlocal shiftwidth=2
 autocmd FileType rst setlocal shiftwidth=3
 autocmd FileType java setlocal omnifunc=javacomplete#Complete
 autocmd FileType python,cython
-\ let w:m1=matchadd('ColorColumn', '\%<80v.\%>73v', -1)
+      \ let w:m1=matchadd('ColorColumn', '\%<80v.\%>73v', -1)
 autocmd BufWinEnter * if !exists('w:m1') |
-\ let w:m1=matchadd('ColorColumn', '\%<81v.\%>80v', -1) | endif
+      \ let w:m1=matchadd('ColorColumn', '\%<81v.\%>80v', -1) | endif
 
 let g:srcery_italic=1
 let g:jedi#popup_on_dot = 0