Skip to content

Commit

Permalink
Implement XDG Base Directory standard for Vim, Remove dependence on ~…
Browse files Browse the repository at this point in the history
…/.fehbg script in {dual,single}-monitor.sh
  • Loading branch information
pngdeity committed Nov 1, 2020
1 parent ded16a0 commit 5b83cf4
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -169,3 +169,9 @@ export LESSHISTFILE="-"

# Default Programs
export EDITOR=/usr/share/vim

# Following line taken from tlvince.com/vim-respect-xdg
export VIMINIT='let $MYVIMRC="$XDG_CONFIG_HOME/vim/vimrc" | source $MYVIMRC'

export XAUTHORITY="$XDG_RUNTIME_DIR"/Xauthority
export HISTFILE="$XDG_DATA_HOME"/bash/history
4 changes: 2 additions & 2 deletions .config/vim/vimrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
" Welcome to your .vimrc!

set nocompatible

" Make Vim conform to the XDG Home Directory Standard
set undodir=$XDG_DATA_HOME/vim/undo
set directory=$XDG_DATA_HOME/vim/swap
Expand All @@ -20,13 +22,11 @@ Plug 'tpope/vim-commentary'
Plug 'christoomey/vim-system-copy'
Plug 'mattn/vim-starwars'
" Plug 'lervag/vimtex'
" Plug 'vim-scripts/TetrIs.vim'

call plug#end()

" This section configures the Pencil plugin.
" See https://github.com/reedes/vim-pencil for more information.
set nocompatible
filetype plugin on

" Set the default wrap mode to soft, as in MS Word.
Expand Down
5 changes: 5 additions & 0 deletions .xinitrc
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,9 @@ exec wal -n -R
# turn on Num Lock
numlockx &

USERXSESSION="$XDG_CACHE_HOME/x11/xsession"
USERXSESSIONRC="$XDG_CACHE_HOME/x11/xsessionrc"
ALTUSERXSESSION="$XDG_CACHE_HOME/x11/Xsession"
ERRFILE="$XDG_CACHE_HOME/x11/xsession-errors"

exec $(get_session)
2 changes: 1 addition & 1 deletion scripts/dual-monitor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
xrandr --output DP1 --right-of eDP1
xrandr --output DP1 --scale 2x2
. ~/.config/polybar/launch.sh
. ~/.fehbg
. ~/github/customization-automation/wal.sh
g610-led -a 10
xset -b
2 changes: 1 addition & 1 deletion scripts/single-monitor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ xrandr --output DP1 --scale 2x2
xrandr --output eDP1 --left-of DP1 # why set eDP1 to be left-of, when it will be turned off?
. ~/.config/polybar/launch.sh
xrandr --output eDP1 --off
. ~/.fehbg
. ~/github/customization-automation/wal.sh
xset -b
g610-led -a 10
2 changes: 1 addition & 1 deletion scripts/update.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

# This script gathers the various configuration files littered around my machine into
# my github repo
# my GitHub repo

# TODO
# Write a script to gather a list of all files in the Github directory
Expand Down

0 comments on commit 5b83cf4

Please sign in to comment.