Browse Source

Update mGBA config script

red-hat-laptop
Kevin Mok 5 years ago
parent
commit
b077d1c709
Signed by: Kevin-Mok GPG Key ID: AEA75288DC135CF5
  1. 1
      dot_config/i3/config.tmpl
  2. 20
      dot_config/mgba/config-tmpl.ini
  3. 16
      dot_config/mgba/qt-tmpl.ini
  4. 7
      dot_config/mgba/update-mgba-config.fish
  5. 11
      dot_vimrc.tmpl
  6. 2
      key_aliases.tmpl
  7. 8
      key_dirs.tmpl
  8. 1
      key_files.tmpl

1
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

20
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

16
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

7
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

11
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=<!---\ %s\ -->
autocmd Filetype markdown map <F8> :LivedownToggle<CR>
autocmd Filetype markdown nnoremap <Tab> <Esc>>>A
autocmd Filetype markdown inoremap <S-Tab> <Esc><<A
autocmd Filetype markdown inoremap < <Esc><<A
autocmd Filetype markdown inoremap << <
autocmd Filetype markdown inoremap > <Esc>>>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="\<Space>"
" find alias
nnoremap <leader>a /^ <Left>
nnoremap <leader>ac :.s/\(\w\w\)/\u\1\U\2/g<CR>
" replace until end of line
nnoremap <leader>c c$
" delete until end of line

2
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 #

8
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

1
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

Loading…
Cancel
Save