From 6cbf6c2e9a93c5abacf1361d7680ae099bf394d8 Mon Sep 17 00:00:00 2001 From: Vasil Zlatanov Date: Fri, 19 Feb 2016 16:52:52 +0000 Subject: minor changes --- Browser/vimb/config | 18 +++++++------- Browser/vimb/config.static | 2 -- Editor/vimrc | 40 +++++++++++++++++++++++++++---- Panel/lemonbar/batterymon | 4 ++-- Window_Manager/ratpoison/ratpoisonrc.conf | 6 +++-- 5 files changed, 50 insertions(+), 20 deletions(-) diff --git a/Browser/vimb/config b/Browser/vimb/config index d68e2ca..16317d4 100644 --- a/Browser/vimb/config +++ b/Browser/vimb/config @@ -1,5 +1,3 @@ -set useragent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10104; rv:37.0) AppleWebKit/600.6.2 (KHTML like Gecko) Version/7.1.4 Safari/600.6.2 Firefox/37.0 - set spacial-navigation=true shortcut-add wiki=https://en.wikipedia.org/w/index.php?search=$0 @@ -30,11 +28,11 @@ nmap ) nmap S :set scripts=false r :shellcmd mpv --no-terminal "%s" :set scripts=true -set status-color-bg=#170f20 -set status-color-fg=#37c4c8 -set status-ssl-color-bg=#170f20 -set status-ssl-color-fg=#37c4c8 -set completion-bg-active=#170f20 -set completion-bg-normal=#170f20 -set completion-fg-active=#416ca0 -set completion-fg-normal=#37c4c8 +set status-color-bg=#201405 +set status-color-fg=#b3d184 +set status-ssl-color-bg=#201405 +set status-ssl-color-fg=#b3d184 +set completion-bg-active=#201405 +set completion-bg-normal=#201405 +set completion-fg-active=#6faf63 +set completion-fg-normal=#b3d184 diff --git a/Browser/vimb/config.static b/Browser/vimb/config.static index 6912791..fd9a8df 100644 --- a/Browser/vimb/config.static +++ b/Browser/vimb/config.static @@ -1,5 +1,3 @@ -set useragent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10104; rv:37.0) AppleWebKit/600.6.2 (KHTML like Gecko) Version/7.1.4 Safari/600.6.2 Firefox/37.0 - set spacial-navigation=true shortcut-add wiki=https://en.wikipedia.org/w/index.php?search=$0 diff --git a/Editor/vimrc b/Editor/vimrc index 0fee3a2..2dee78d 100644 --- a/Editor/vimrc +++ b/Editor/vimrc @@ -99,10 +99,6 @@ set shiftwidth=2 set softtabstop=2 -let g:ycm_confirm_extra_conf = 0 -let g:ycm_global_ycm_extra_conf = '/usr/share/vim/vimfiles/third_party/ycmd/ycmd/tests/testdata/.ycm_extra_conf.py' - - "Make tab into another escape "nnoremap "vnoremap gV @@ -125,3 +121,39 @@ set mouse= nnoremap o :CtrlP nnoremap w :w + +" +" YouCompleteMe options +" + +let g:ycm_register_as_syntastic_checker = 1 "default 1 +let g:Show_diagnostics_ui = 1 "default 1 + +"will put icons in Vim's gutter on lines that have a diagnostic set. +"Turning this off will also turn off the YcmErrorLine and YcmWarningLine +"highlighting +let g:ycm_enable_diagnostic_signs = 1 +let g:ycm_enable_diagnostic_highlighting = 0 +let g:ycm_always_populate_location_list = 1 "default 0 +let g:ycm_open_loclist_on_ycm_diags = 1 "default 1 + + +let g:ycm_complete_in_strings = 1 "default 1 +let g:ycm_collect_identifiers_from_tags_files = 0 "default 0 +let g:ycm_path_to_python_interpreter = '' "default '' + + +let g:ycm_server_use_vim_stdout = 0 "default 0 (logging to console) +let g:ycm_server_log_level = 'info' "default info + + +let g:ycm_global_ycm_extra_conf = '~/.ycm_extra_conf.py' "where to search for .ycm_extra_conf.py if not found +let g:ycm_confirm_extra_conf = 0 + + +let g:ycm_goto_buffer_command = 'same-buffer' "[ 'same-buffer', 'horizontal-split', 'vertical-split', 'new-tab' ] +let g:ycm_filetype_whitelist = { '*': 1 } +let g:ycm_key_invoke_completion = '' + + +nnoremap r :YcmForceCompileAndDiagnostics diff --git a/Panel/lemonbar/batterymon b/Panel/lemonbar/batterymon index 19a4d5a..efee0a9 100755 --- a/Panel/lemonbar/batterymon +++ b/Panel/lemonbar/batterymon @@ -1,6 +1,6 @@ #!/bin/bash while true;do -if [ `battery -f '%i'` -lt 5 ] && ! [ -z ~/.dontshut ]; then +if [ `battery -f '%i'` -lt 4 ] && ! [ -z ~/.dontshut ]; then touch ~/.dontshut zenity --question --title "Battery" --text "Battery if pretty fucking low, go to sleep?" if [ $? -ne 1 ];then @@ -9,5 +9,5 @@ fi else rm ~/.dontshut fi -sleep 30; +sleep 180; done diff --git a/Window_Manager/ratpoison/ratpoisonrc.conf b/Window_Manager/ratpoison/ratpoisonrc.conf index f2f431a..628c8ae 100644 --- a/Window_Manager/ratpoison/ratpoisonrc.conf +++ b/Window_Manager/ratpoison/ratpoisonrc.conf @@ -247,14 +247,16 @@ definekey top KP_Enter exec ~/Dropbox/speech/run-duplex.sh # Volume Control #------------------------------------------------------------- # Up -alias volup exec amixer -q set Master 5+ && ratpoison -c "echo `$HOME/.config/ratpoison/volind`" & volume -f 'V%i' > /tmp/panel-fifo +#alias volup exec amixer -q set Master 5+ && ratpoison -c "echo `$HOME/.config/ratpoison/volind`" & volume -f 'V%i' > /tmp/panel-fifo +alias volup exec amixer -q set Master 5+ && volume -f 'V%i' > /tmp/panel-fifo definekey top XF86AudioRaiseVolume volup definekey top s-Prior volup definekey top s-q volup # Down -alias voldown exec amixer -q set Master 5- && ratpoison -c "echo `$HOME/.config/ratpoison/volind`" & volume -f 'V%i' > /tmp/panel-fifo +#alias voldown exec amixer -q set Master 5- && ratpoison -c "echo `$HOME/.config/ratpoison/volind`" & volume -f 'V%i' > /tmp/panel-fifo +alias voldown exec amixer -q set Master 5- && volume -f 'V%i' > /tmp/panel-fifo definekey top XF86AudioLowerVolume voldown definekey top s-Next voldown -- cgit v1.2.3-54-g00ecf