about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--awesome/.config/awesome/rc.lua18
-rw-r--r--ranger/.config/ranger/rifle.conf2
-rwxr-xr-xvim/.vim/vimrc4
3 files changed, 19 insertions, 5 deletions
diff --git a/awesome/.config/awesome/rc.lua b/awesome/.config/awesome/rc.lua
index ba9b0cb..0175440 100644
--- a/awesome/.config/awesome/rc.lua
+++ b/awesome/.config/awesome/rc.lua
@@ -55,6 +55,10 @@ beautiful.init("/home/cnx/.config/awesome/themes/gruvbox/theme.lua")
 terminal = "x-terminal-emulator"
 editor = "gvim"
 editor_cmd = terminal .. " -e vim"
+cmus = terminal .. " -e cmus"
+cmus_pause = "cmus-remote -u"
+cmus_prev = "cmus-remote -r"
+cmus_next = "cmus-remote -n"
 
 -- Default modkey.
 -- Usually, Mod4 is the key with a logo between Control and Alt.
@@ -482,12 +486,22 @@ globalkeys = awful.util.table.join(
     awful.key(
         {modkey},
         "c",
-        function() awful.util.spawn(terminal .. " -e cmus") end
+        function() awful.util.spawn(cmus) end
     ),
     awful.key(
         {modkey, "Shift"},
         "c",
-        function() awful.util.spawn("cmus-remote -u") end
+        function() awful.util.spawn(cmus_pause) end
+    ),
+    awful.key(
+        {modkey, "Control"},
+        "c",
+        function() awful.util.spawn(cmus_prev) end
+    ),
+    awful.key(
+        {modkey, "Mod1"},
+        "c",
+        function() awful.util.spawn(cmus_next) end
     ),
     awful.key(
         {modkey},
diff --git a/ranger/.config/ranger/rifle.conf b/ranger/.config/ranger/rifle.conf
index e111852..33cc939 100644
--- a/ranger/.config/ranger/rifle.conf
+++ b/ranger/.config/ranger/rifle.conf
@@ -147,7 +147,7 @@ ext pdf, has okular,   X, flag f = okular -- "$@"
 ext pdf, has epdfview, X, flag f = epdfview -- "$@"
 ext pdf, has qpdfview, X, flag f = qpdfview "$@"
 
-ext docx?, has catdoc,       terminal = catdoc -- "$@" | "$PAGER"
+#ext docx?, has catdoc,       terminal = catdoc -- "$@" | "$PAGER"
 
 ext                        sxc|xlsx?|xlt|xlw|gnm|gnumeric, has gnumeric,    X, flag f = gnumeric -- "$@"
 ext                        sxc|xlsx?|xlt|xlw|gnm|gnumeric, has kspread,     X, flag f = kspread -- "$@"
diff --git a/vim/.vim/vimrc b/vim/.vim/vimrc
index b6caf91..8a3a409 100755
--- a/vim/.vim/vimrc
+++ b/vim/.vim/vimrc
@@ -22,9 +22,9 @@ set tabstop=8 expandtab shiftwidth=4 softtabstop=4 smarttab
 set omnifunc=syntaxcomplete#Complete
 set dictionary=/usr/share/dict/words
 set keymap=vietnamese-telex imdisable iminsert=0 imsearch=-1
-autocmd BufNewFile,BufRead *.PAS set filetype=pascal
+autocmd BufNewFile,BufRead *.PAS setlocal filetype=pascal
 autocmd FileType vim,pascal,html setlocal shiftwidth=2 tabstop=2
-autocmd FileType c setlocal noexpandtab shiftwidth=8 tabstop=8
+autocmd FileType c,h,cpp,arduino setlocal noexpandtab shiftwidth=8 tabstop=8
 autocmd FileType markdown setlocal textwidth=79
 autocmd FileType python syntax keyword pythonBoolean False True None
 autocmd BufWinEnter * let w:m1=matchadd('ColorColumn', '\%<81v.\%>80v', -1)