about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNguyễn Gia Phong <vn.mcsinyx@gmail.com>2019-09-20 22:13:46 +0700
committerNguyễn Gia Phong <vn.mcsinyx@gmail.com>2019-09-20 22:13:46 +0700
commit6b9a1b1a3de10899b87a8a2c6e4074341d29cd02 (patch)
tree0d6c6924434be153eb09dd81886f5218244d09c3
parent3030db8ff09ab6da0f1f941518ef5c071053c5f8 (diff)
downloaddotfiles-6b9a1b1a3de10899b87a8a2c6e4074341d29cd02.tar.gz
Update 2019-09-20
-rw-r--r--awesome/.config/awesome/rc.lua9
-rwxr-xr-xvim/.vim/gvimrc2
-rwxr-xr-xvim/.vim/vimrc4
3 files changed, 10 insertions, 5 deletions
diff --git a/awesome/.config/awesome/rc.lua b/awesome/.config/awesome/rc.lua
index 2aa8d00..08a2b8c 100644
--- a/awesome/.config/awesome/rc.lua
+++ b/awesome/.config/awesome/rc.lua
@@ -480,8 +480,6 @@ local globalkeys = awful.util.table.join(
             {description = "open Thunderbird", group = "launcher"}),
   awful.key({modkey, "Shift"}, "g", spawner"gimp",
             {description = "open GIMP", group = "launcher"}),
-  awful.key({modkey, "Shift"}, "m", spawner"moodledesktop",
-            {description = "open Moodle Desktop", group = "launcher"}),
   awful.key({modkey}, "r", spawner(ranger),
             {description = "open ranger file manager", group = "launcher"}),
   awful.key({modkey, "Shift"}, "r", spawner(ranger .. " Documents/B2"),
@@ -524,6 +522,13 @@ local globalkeys = awful.util.table.join(
             {description = "Audacious: next track", group = "multimedia"}),
   awful.key({}, "XF86Display", spawner"arandr",
             {description = "open Arandr", group = "multimedia"}),
+  awful.key({modkey},
+            "XF86Display",
+            function ()
+              awful.spawn".screenlayout/single.sh"
+              awesome.restart()
+            end,
+            {description = "switch to single display", group = "multimedia"}),
   awful.key({}, "Print", nil, spawner(scrot_select),
             {description = "shoot a window or rectangle selected with a mouse",
              group = "multimedia"}),
diff --git a/vim/.vim/gvimrc b/vim/.vim/gvimrc
index cdefc17..50c7b2d 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=Pc
+set guioptions=ci
 set guicursor+=a:blinkon0
diff --git a/vim/.vim/vimrc b/vim/.vim/vimrc
index b8c5ed3..782786c 100755
--- a/vim/.vim/vimrc
+++ b/vim/.vim/vimrc
@@ -3,7 +3,7 @@ set undodir=~/.cache/vim/undo
 set directory=~/.cache/vim/swap
 set backupdir=~/.cache/vim/backup
 set viminfo+=n~/.cache/vim/viminfo
-set clipboard=exclude:cons\|linux autochdir
+set clipboard=unnamedplus autochdir
 set showcmd noshowmode ruler wildmenu confirm number relativenumber
 set nostartofline
 if has("patch-7.4.710")
@@ -21,7 +21,6 @@ autocmd FileType c,h,go,glsl setlocal cindent cinoptions=(0 noexpandtab shiftwid
 autocmd FileType rst setlocal shiftwidth=3
 autocmd FileType css,javascript,python,perl6 setlocal shiftwidth=4
 autocmd FileType python syntax keyword pythonBoolean False True None
-let g:gruvbox_italic=1
 let g:jedi#popup_on_dot = 0
 let g:jedi#popup_select_first = 0
 let g:jedi#show_call_signatures = 2
@@ -35,6 +34,7 @@ call plug#begin('~/.vim/plugged')
 Plug 'https://github.com/sheerun/vim-polyglot.git'
 Plug 'https://github.com/srcery-colors/srcery-vim.git'
 Plug 'https://github.com/tpope/vim-abolish.git'
+Plug 'https://github.com/alx741/vinfo.git'
 Plug 'https://github.com/drmikehenry/vim-fontsize.git'
 Plug 'https://github.com/lervag/vimtex.git', {'for': 'tex'}
 Plug 'https://github.com/kovisoft/slimv', {'for': 'lisp'}