From b077d1c709e0b1f53893ff2c302a52b822974b8e Mon Sep 17 00:00:00 2001 From: Kevin Mok Date: Tue, 9 Jul 2019 06:47:59 -0400 Subject: [PATCH] Update mGBA config script --- dot_config/i3/config.tmpl | 1 + dot_config/mgba/config-tmpl.ini | 20 ++++++++++---------- dot_config/mgba/qt-tmpl.ini | 16 ++++++++++++++-- dot_config/mgba/update-mgba-config.fish | 7 +++++++ dot_vimrc.tmpl | 11 +++++++++++ key_aliases.tmpl | 2 +- key_dirs.tmpl | 8 ++++---- key_files.tmpl | 1 + 8 files changed, 49 insertions(+), 17 deletions(-) create mode 100755 dot_config/mgba/update-mgba-config.fish diff --git a/dot_config/i3/config.tmpl b/dot_config/i3/config.tmpl index 0eb0342..06ec33d 100755 --- a/dot_config/i3/config.tmpl +++ b/dot_config/i3/config.tmpl @@ -290,6 +290,7 @@ bindsym $mod+F5 workspace $ws5; exec $browser # bindsym Mod4+g workspace $ws5; layout stacking; exec urxvt -e steam # bindsym Mod4+g workspace $ws5; layout tabbed; exec gimp bindsym Mod4+g workspace $ws5; exec mgba-qt +bindsym Mod4+i workspace $ws5; exec idea bindsym Mod4+t workspace $ws5; exec thunderbird bindsym Mod4+5 workspace $ws5; exec godot bindsym Mod4+F5 workspace $ws5; exec cd ~/coding/ada-mario && godot -e diff --git a/dot_config/mgba/config-tmpl.ini b/dot_config/mgba/config-tmpl.ini index 77dddc1..082a288 100755 --- a/dot_config/mgba/config-tmpl.ini +++ b/dot_config/mgba/config-tmpl.ini @@ -19,7 +19,7 @@ logToStdout=0 useDiscordPresence=0 logLevel=7 sampleRate=44100 -mute=0 +mute=1 rewindBufferCapacity=300 allowOpposingDirections=0 suspendScreensaver=1 @@ -44,7 +44,7 @@ cheatAutoload=1 loadStateExtdata=9 gb.bios= videoSync=0 -fastForwardMute=0 +fastForwardMute=1 pauseOnFocusLost=1 showLibrary=0 useCgbColors=1 @@ -86,8 +86,8 @@ axisLeftValue=-12288 keySelect=6 [gba.input.SDLB] -keyR=5 -keyL=4 +keyR=-1 +keyL=-1 axisUpAxis=-1 hat0Right=4 gyroSensitivity=2e+09 @@ -101,11 +101,11 @@ keyUp=-1 hat0Down=7 axisRightValue=12288 axisRightAxis=+0 -axisUpValue=-8297 +axisUpValue=-10593 axisDownAxis=+1 gyroAxisX=0 tiltAxisX=2 -axisDownValue=16279 +axisDownValue=13983 keyA=0 keyRight=-1 device0=Microsoft X-Box 360 pad @@ -128,8 +128,8 @@ keyRight=16777236 keySelect=65 [gba.input-profile.Microsoft X-Box 360 pad] -keyR=5 -keyL=4 +keyR=-1 +keyL=-1 axisUpAxis=-1 hat0Right=4 gyroSensitivity=2e+09 @@ -143,11 +143,11 @@ keyUp=-1 hat0Down=7 axisRightValue=12288 axisRightAxis=+0 -axisUpValue=-8297 +axisUpValue=-10593 axisDownAxis=+1 gyroAxisX=0 tiltAxisX=2 -axisDownValue=16279 +axisDownValue=13983 keyA=0 keyRight=-1 hat0Up=6 diff --git a/dot_config/mgba/qt-tmpl.ini b/dot_config/mgba/qt-tmpl.ini index d876882..bd86baf 100755 --- a/dot_config/mgba/qt-tmpl.ini +++ b/dot_config/mgba/qt-tmpl.ini @@ -27,14 +27,20 @@ scale%5B2%5D=1 [shortcutAxis] autofireA=@String(\0-1) fastForward=@String(\0-1) -holdFastForward=@String(\0-1) +holdFastForward=+2 holdRewind=@String(\0-1) +quickLoad.1=@String(\0-1) +quickSave.1=@String(\0-1) +quickSave.2=@String(\0-1) [shortcutButton] autofireA=2 fastForward=3 holdFastForward=-1 holdRewind=-1 +quickLoad.1=5 +quickSave.1=4 +quickSave.2=-1 [shortcutKey] autofireA=E @@ -44,8 +50,11 @@ holdFastForward=R [shortcutProfileAxis.Microsoft%20X-Box%20360%20pad] autofireA=@String(\0-1) fastForward=@String(\0-1) -holdFastForward=@String(\0-1) +holdFastForward=+2 holdRewind=@String(\0-1) +quickLoad.1=@String(\0-1) +quickSave.1=@String(\0-1) +quickSave.2=@String(\0-1) [shortcutProfileAxis.XInput%20Controller%20%231] autofireA=@String(\0-1) @@ -58,6 +67,9 @@ autofireA=2 fastForward=3 holdFastForward=-1 holdRewind=-1 +quickLoad.1=5 +quickSave.1=4 +quickSave.2=-1 [shortcutProfileButton.XInput%20Controller%20%231] autofireA=2 diff --git a/dot_config/mgba/update-mgba-config.fish b/dot_config/mgba/update-mgba-config.fish new file mode 100755 index 0000000..3e36bca --- /dev/null +++ b/dot_config/mgba/update-mgba-config.fish @@ -0,0 +1,7 @@ +#!/usr/bin/fish + +set mgba_config_dir "/home/kevin/.config/mgba" +set chez_dir "/home/kevin/linux-config/dot_config/mgba" +for ini_file in config qt + cp "$mgba_config_dir/$ini_file.ini" "$chez_dir/$ini_file-tmpl.ini" +end diff --git a/dot_vimrc.tmpl b/dot_vimrc.tmpl index 6a7991c..53b80c8 100755 --- a/dot_vimrc.tmpl +++ b/dot_vimrc.tmpl @@ -13,6 +13,7 @@ set expandtab " set foldmethod=indent set foldmethod=marker set hlsearch +set ignorecase set linebreak set linespace=5 set mouse=a @@ -20,6 +21,7 @@ set mouse=a " set noswapfile set relativenumber set shiftwidth=4 +set smartcase set tabstop=4 " set t_Co=256 " set termguicolors @@ -63,6 +65,8 @@ autocmd Filetype markdown set commentstring= autocmd Filetype markdown map :LivedownToggle autocmd Filetype markdown nnoremap >>A autocmd Filetype markdown inoremap << >>A autocmd Filetype markdown inoremap >> > autocmd FileType markdown,tex,text set spell spelllang=en_us @@ -253,6 +257,12 @@ Plug 'ciaranm/securemodelines/' " different colors for each layer of surrounding brackets Plug 'luochen1990/rainbow' let g:rainbow_active = 1 +" easy custom text objects +Plug 'kana/vim-textobj-user' +" latex custom text objects +Plug 'rbonvall/vim-textobj-latex' +" swap words +Plug 'tommcdo/vim-exchange' " ]]] vim-plug " " Mappings [[[ " @@ -281,6 +291,7 @@ let mapleader="\" " find alias nnoremap a /^ +nnoremap ac :.s/\(\w\w\)/\u\1\U\2/g " replace until end of line nnoremap c c$ " delete until end of line diff --git a/key_aliases.tmpl b/key_aliases.tmpl index 8a0dc25..45be0c2 100755 --- a/key_aliases.tmpl +++ b/key_aliases.tmpl @@ -48,7 +48,7 @@ ctltd "sudo systemctl status dhcpcd" ctlr "sudo systemctl restart" nct "sudo netctl" -nct "sudo netctl" +nctr "sudo systemctl restart netctl-auto@wlp4s0.service" # ]]] systemctl # diff --git a/key_dirs.tmpl b/key_dirs.tmpl index a246708..126a269 100755 --- a/key_dirs.tmpl +++ b/key_dirs.tmpl @@ -68,10 +68,10 @@ sc ~/school lt ~/school/latex-notes 6 ~/school/263 -63 ~/school/263/a3 -631 ~/school/263/a3/q1 -632 ~/school/263/a3/q2 -63t ~/school/latex-notes/263/a3 +63 ~/school/263/a4 +631 ~/school/263/a4/q1 +632 ~/school/263/a4/q2 +63t ~/school/latex-notes/263/a4 al1 ~/school/algorithms/w1-union-find diff --git a/key_files.tmpl b/key_files.tmpl index 0e09bd6..ecd88a0 100755 --- a/key_files.tmpl +++ b/key_files.tmpl @@ -41,6 +41,7 @@ re README.md t todo.md tt txt/todo.md tm ~/.vim/plugged/vim-snippets/UltiSnips/texmath.snippets +tp /tmp/ wh ~/Documents/journal/todo/work-habit.md wt ~/.config/watson/state.tmp