Update a few configs

This commit is contained in:
natemaia 2019-03-02 19:32:13 -08:00
parent a8da0480b3
commit 4212dfca4d
4 changed files with 6 additions and 22 deletions

View File

@ -133,7 +133,6 @@ nnoremap <silent> <Leader>tp :tabprevious<CR>
" close current buffer and/or tab " close current buffer and/or tab
nnoremap <silent> <Leader>q :B<CR>:silent tabclose<CR>gT nnoremap <silent> <Leader>q :B<CR>:silent tabclose<CR>gT
nnoremap <silent> <Leader>tl :execute "tabn ".g:lasttab<CR>
" open a new tab in the current directory with netrw " open a new tab in the current directory with netrw
nnoremap <silent> <Leader>- :tabedit <C-R>=expand("%:p:h")<CR><CR> nnoremap <silent> <Leader>- :tabedit <C-R>=expand("%:p:h")<CR><CR>
@ -145,12 +144,6 @@ nnoremap <Bar> <C-W>v<C-W><Right>
" ------ autocmd ------ " ------ autocmd ------
let g:lasttab = 1
augroup save_last_tab
autocmd!
autocmd TabLeave * let g:lasttab = tabpagenr()
augroup END
" Reload changes if file changed outside of vim requires autoread " Reload changes if file changed outside of vim requires autoread
augroup load_changed_file augroup load_changed_file
autocmd! autocmd!

View File

@ -4,7 +4,7 @@
# default arch init 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"
done done
fi fi

View File

@ -1,7 +1,8 @@
#!/bin/sh #!/bin/sh
# ~/.xprofile # ~/.xprofile
# sourced at boot by xinit and display managers like lightdm # sourced at boot by ~/.xinitrc and display managers like lightdm
export XDG_CONFIG_HOME="$HOME/.config" export XDG_CONFIG_HOME="$HOME/.config"
@ -16,13 +17,12 @@ nitrogen --restore &
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
gnome-keyring-daemon --start --components=pkcs11 & gnome-keyring-daemon --start --components=pkcs11 &
# pressing super alone simulates Alt-F1 # super alone simulates Alt-F1
ksuperkey -e 'Super_L=Alt_L|F1' & ksuperkey -e 'Super_L=Alt_L|F1' &
ksuperkey -e 'Super_R=Alt_L|F1' & ksuperkey -e 'Super_R=Alt_L|F1' &
# display timeout and sleep # dpms: timeout sleep off
xset s 1200 1300 xset dpms 600 900 1200
xset dpms 1200 1300 1400
# keyboard repeat rate # keyboard repeat rate
xset r rate 350 60 xset r rate 350 60

View File

@ -1,12 +1,6 @@
# compton # compton
al-compositor --start & al-compositor --start &
# enable numlock, commented out for laptop users
# numlockx &
# restore wallpaper
nitrogen --restore &
# required for xfce settings to work # required for xfce settings to work
xfsettingsd & xfsettingsd &
@ -15,6 +9,3 @@ skippy-xd --config ~/.config/skippy-xd/skippy-xd.rc --start-daemon &
# start the panel # start the panel
al-polybar-session & al-polybar-session &
# start conky
# al-conky-session --autostart &