Clean up init scripts to avoid issues with new installer changes
This commit is contained in:
parent
c9daae7d28
commit
84e1360ee3
13
base/.vimrc
13
base/.vimrc
@ -1,5 +1,7 @@
|
|||||||
" Sane vim defaults for ArchLabs
|
" Sane vim defaults for ArchLabs
|
||||||
|
|
||||||
|
scriptencoding utf8
|
||||||
|
|
||||||
" Arch defaults
|
" Arch defaults
|
||||||
runtime! archlinux.vim
|
runtime! archlinux.vim
|
||||||
|
|
||||||
@ -94,9 +96,6 @@ nnoremap <leader>r :call <SID>ranger()<CR>
|
|||||||
" match string to switch buffer
|
" match string to switch buffer
|
||||||
nnoremap <Leader>b :let b:buf = input('Match: ')<Bar>call <SID>bufferselect(b:buf)<CR>
|
nnoremap <Leader>b :let b:buf = input('Match: ')<Bar>call <SID>bufferselect(b:buf)<CR>
|
||||||
|
|
||||||
" paste while in insert mode
|
|
||||||
inoremap <silent><C-v> <Esc>:set paste<CR>a<C-r>+<Esc>:set nopaste<CR>a
|
|
||||||
|
|
||||||
" change windows with ctrl+(hjkl)
|
" change windows with ctrl+(hjkl)
|
||||||
nnoremap <C-J> <C-W><C-J>
|
nnoremap <C-J> <C-W><C-J>
|
||||||
nnoremap <C-K> <C-W><C-K>
|
nnoremap <C-K> <C-W><C-K>
|
||||||
@ -108,7 +107,7 @@ nnoremap 0 ^
|
|||||||
nnoremap Y y$
|
nnoremap Y y$
|
||||||
nnoremap n nzzzv
|
nnoremap n nzzzv
|
||||||
nnoremap N Nzzzv
|
nnoremap N Nzzzv
|
||||||
nnoremap <Tab> ==j
|
nnoremap <Tab> ==1j
|
||||||
|
|
||||||
" re-visual text after changing indent
|
" re-visual text after changing indent
|
||||||
vnoremap > >gv
|
vnoremap > >gv
|
||||||
@ -117,9 +116,9 @@ vnoremap < <gv
|
|||||||
" toggle line numbers, nn (no number)
|
" toggle line numbers, nn (no number)
|
||||||
nnoremap <silent> <Leader>nn :set number!
|
nnoremap <silent> <Leader>nn :set number!
|
||||||
|
|
||||||
" j = gj :: k = gk while preserving numbered jumps eg. 12j
|
" gj/k but preserve numbered jumps ie: 12j or 45k
|
||||||
nnoremap <buffer><silent><expr>j v:count ? 'j' : 'gj'
|
nmap <buffer><silent><expr>j v:count ? 'j' : 'gj'
|
||||||
nnoremap <buffer><silent><expr>k v:count ? 'k' : 'gk'
|
nmap <buffer><silent><expr>k v:count ? 'k' : 'gk'
|
||||||
|
|
||||||
" open a terminal in $PWD
|
" open a terminal in $PWD
|
||||||
nnoremap <silent> <Leader>tt :terminal<CR>
|
nnoremap <silent> <Leader>tt :terminal<CR>
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# this file is executed when calling startx
|
# this file is run when calling startx
|
||||||
|
|
||||||
# default arch xinit scripts
|
# default arch init scripts
|
||||||
if [ -d /etc/X11/xinit/xinitrc.d ]; then
|
if [ -d /etc/X11/xinit/xinitrc.d ]; then
|
||||||
for f in /etc/X11/xinit/xinitrc.d/*.sh; do
|
for f in /etc/X11/xinit/xinitrc.d/*.sh; do
|
||||||
[ -x "$f" ] && . "$f"
|
[ -x "$f" ] && . "$f"
|
||||||
@ -10,10 +10,10 @@ if [ -d /etc/X11/xinit/xinitrc.d ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# user init scripts and settings
|
# user init scripts and settings
|
||||||
[ -f /etc/X11/xinit/.Xmodmap ] && xmodmap /etc/X11/xinit/.Xmodmap
|
[ -r /etc/X11/xinit/.Xmodmap ] && xmodmap /etc/X11/xinit/.Xmodmap
|
||||||
[ -f ~/.Xmodmap ] && xmodmap ~/.Xmodmap
|
[ -r ~/.Xmodmap ] && xmodmap ~/.Xmodmap
|
||||||
[ -f ~/.Xresources ] && xrdb -merge ~/.Xresources
|
[ -r ~/.Xresources ] && xrdb -merge ~/.Xresources
|
||||||
[ -f ~/.xprofile ] && . ~/.xprofile
|
[ -r ~/.xprofile ] && . ~/.xprofile
|
||||||
|
|
||||||
# launch the session, don't put commands below the exec line
|
# launch the session, commands below this line will be ignored
|
||||||
exec openbox-session
|
exec openbox-session
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# ~/.xprofile
|
# ~/.xprofile
|
||||||
|
|
||||||
# sourced at boot by both xinit and most display managers like lightdm
|
# sourced at boot by xinit and display managers like lightdm
|
||||||
|
|
||||||
export XDG_CONFIG_HOME="$HOME/.config"
|
export XDG_CONFIG_HOME="$HOME/.config"
|
||||||
|
|
||||||
|
@ -58,6 +58,7 @@
|
|||||||
<property name="names-visible" type="array">
|
<property name="names-visible" type="array">
|
||||||
<value type="string" value="xfce4-power-manager"/>
|
<value type="string" value="xfce4-power-manager"/>
|
||||||
<value type="string" value="network-manager-applet"/>
|
<value type="string" value="network-manager-applet"/>
|
||||||
|
<value type="string" value="volumeicon"/>
|
||||||
<value type="string" value="thunar"/>
|
<value type="string" value="thunar"/>
|
||||||
</property>
|
</property>
|
||||||
</property>
|
</property>
|
||||||
|
Reference in New Issue
Block a user