dotfiles

My dotfiles for Arch Linux
git clone git://git.janispagel.de/dotfiles.git
Log | Files | Refs | README

commit bdceedd040ff548612ee283fbf71834714c2ead4
parent 2585d6190dc53cded905f0c1ae1e250ad42c8013
Author: Janis Pagel <janis.pagel@ims.uni-stuttgart.de>
Date:   Thu,  8 Oct 2020 01:57:15 +0200

Change config file location for most programs

Diffstat:
Rabook/.abook/abookrc -> abook/.config/abook/abookrc | 0
Abash/dot-bash_profile | 5+++++
Abash/dot-bashrc | 9+++++++++
Mbin/.local/bin/mbsync-hooks | 4++--
Remacs/dot-emacs -> emacs/.config/emacs/init.el | 0
Mmpd/.config/mpd/mpd.conf | 14+++++++-------
Mncmpcpp/.config/ncmpcpp/config | 4++--
Msuckless/build/suckless/surf/config.h | 8++++----
Mvim/.config/vim/vimrc | 5+++--
Rxinit/dot-xinitrc -> xinit/.config/X11/xinitrc | 0
Mzsh/.config/zsh/dot-zsh_aliases | 4+++-
Mzsh/.config/zsh/dot-zshrc | 4++--
Mzsh/dot-zshenv | 22++++++++++++++++++++--
13 files changed, 57 insertions(+), 22 deletions(-)

diff --git a/abook/.abook/abookrc b/abook/.config/abook/abookrc diff --git a/bash/dot-bash_profile b/bash/dot-bash_profile @@ -0,0 +1,5 @@ +# +# ~/.bash_profile +# + +[[ -f ~/.bashrc ]] && . ~/.bashrc diff --git a/bash/dot-bashrc b/bash/dot-bashrc @@ -0,0 +1,9 @@ +# +# ~/.bashrc +# + +# If not running interactively, don't do anything +[[ $- != *i* ]] && return + +alias ls='ls --color=auto' +PS1='[\u@\h \W]\$ ' diff --git a/bin/.local/bin/mbsync-hooks b/bin/.local/bin/mbsync-hooks @@ -1,5 +1,5 @@ #!/bin/sh -imapfilter -v -c /home/janis/.config/imapfilter/config.lua && \ -mbsync "$@" +imapfilter -v -c /home/janis/.config/imapfilter/config.lua +mbsync -c "$XDG_CONFIG_HOME/isync/mbsyncrc" "$@" notmuch new diff --git a/emacs/dot-emacs b/emacs/.config/emacs/init.el diff --git a/mpd/.config/mpd/mpd.conf b/mpd/.config/mpd/mpd.conf @@ -17,7 +17,7 @@ music_directory "~/music" # playlist files not created by the server but only if they are in the MPD # format. This setting defaults to playlist saving being disabled. # -playlist_directory "~/.mpd/playlists" +playlist_directory "~/.local/share/mpd/playlists" # # This setting sets the location of the MPD database. This file is used to # load the database at server start up and store the database while the @@ -25,7 +25,7 @@ playlist_directory "~/.mpd/playlists" # MPD to accept files over ipc socket (using file:// protocol) or streaming # files over an accepted protocol. # -db_file "~/.mpd/database" +db_file "~/.local/share/mpd/database" # # These settings are the locations for the daemon log files for the daemon. # These logs are great for troubleshooting, depending on your log_level @@ -34,25 +34,25 @@ db_file "~/.mpd/database" # The special value "syslog" makes MPD use the local syslog daemon. This # setting defaults to logging to syslog, otherwise logging is disabled. # -log_file "~/.mpd/log" +log_file "~/.local/share/mpd/log" # # This setting sets the location of the file which stores the process ID # for use of mpd --kill and some init scripts. This setting is disabled by # default and the pid file will not be stored. # -pid_file "~/.mpd/pid" +pid_file "~/.cache/mpd/pid" # # This setting sets the location of the file which contains information about # most variables to get MPD back into the same general shape it was in before # it was brought down. This setting is disabled by default and the server # state will be reset on server start up. # -state_file "~/.mpd/state" +state_file "~/.cache/mpd/state" # # The location of the sticker database. This is a database which # manages dynamic information attached to songs. # -sticker_file "~/.mpd/sticker.sql" +sticker_file "~/.local/share/mpd/sticker.sql" # ############################################################################### @@ -82,7 +82,7 @@ sticker_file "~/.mpd/sticker.sql" bind_to_address "localhost" # # And for Unix Socket -bind_to_address "~/.mpd/socket" +bind_to_address "~/.cache/mpd/socket" # # This setting is the TCP port that is desired for the daemon to get assigned # to. diff --git a/ncmpcpp/.config/ncmpcpp/config b/ncmpcpp/.config/ncmpcpp/config @@ -1,5 +1,5 @@ -ncmpcpp_directory = "~/.ncmpcpp" -lyrics_directory = "~/.ncmpcpp/lyrics" +ncmpcpp_directory = "~/.local/share/ncmpcpp" +lyrics_directory = "~/.local/share/ncmpcpp/lyrics" mpd_host = "localhost" mpd_port = "6600" mpd_music_dir = "~/music" diff --git a/suckless/build/suckless/surf/config.h b/suckless/build/suckless/surf/config.h @@ -1,10 +1,10 @@ /* modifier 0 means no modifier */ static int surfuseragent = 1; /* Append Surf version to default WebKit user agent */ static char *fulluseragent = ""; /* Or override the whole user agent string */ -static char *scriptfile = "~/.surf/script.js"; -static char *styledir = "~/.surf/styles/"; -static char *cachedir = "~/.surf/cache/"; -static char *cookiefile = "~/.surf/cookies.txt"; +static char *scriptfile = "~/.local/share/surf/script.js"; +static char *styledir = "~/.local/share/surf/styles/"; +static char *cachedir = "~/.cache/surf/"; +static char *cookiefile = "~/.local/share/surf/cookies.txt"; /* Webkit default features */ static Parameter defconfig[ParameterLast] = { diff --git a/vim/.config/vim/vimrc b/vim/.config/vim/vimrc @@ -174,10 +174,11 @@ nnoremap <Leader>m :Make<CR> " }}} " autocmds {{{ -" reopening a file at same position if has("autocmd") + " reopening a file at same position au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif - autocmd BufRead,BufNewFile ~/.mutt/temp/mutt* :Goyo 80 | set linebreak | set spell + " Set settings for use in mutt + autocmd BufRead,BufNewFile $XDG_CONFIG_HOME/mutt/temp/mutt* :Goyo 80 | set linebreak | set spell " automatically deletes all trailing whitespace on save " autocmd BufWritePre * %s/\s\+$//e endif diff --git a/xinit/dot-xinitrc b/xinit/.config/X11/xinitrc diff --git a/zsh/.config/zsh/dot-zsh_aliases b/zsh/.config/zsh/dot-zsh_aliases @@ -24,6 +24,8 @@ alias sudo='sudo -H' # Default opener alias o='xdg-open' +alias abook='abook --config "$XDG_CONFIG_HOME"/abook/abookrc --datafile "$XDG_DATA_HOME"/abook/addressbook' + # mupdf alias function __mupdf_start { mupdf 2>/dev/null "$1" & } alias mu='__mupdf_start' @@ -72,7 +74,7 @@ alias c='clear && printf "\033c"' alias ct='clear && printf "\033c" && tmux clearhist' # startx -alias x='startx' +alias x='startx "$XDG_CONFIG_HOME/X11/xinitrc"' # aliases for tar alias targz='tar -czf' diff --git a/zsh/.config/zsh/dot-zshrc b/zsh/.config/zsh/dot-zshrc @@ -42,7 +42,7 @@ zstyle ':completion:*' verbose yes zstyle ':completion:*' rehash true # Speed up completion by setting cache zstyle ':completion:*' use-cache on -zstyle ':completion:*' cache-path ~/.zsh/cache +zstyle ':completion:*' cache-path $XDG_CACHE_HOME/zsh ####################### ### Options ########### @@ -157,7 +157,7 @@ export LESS_TERMCAP_us=$'\E[01;36m' export LESS=-r # Load DIRCOLORS -test -r "~/.dir_colors" && eval $(dircolors ~/.dir_colors) +test -r "$XDG_DATA_HOME/dir_colors" && eval $(dircolors $XDG_DATA_HOME/dir_colors) # Add support for GnuPG export GPG_TTY=$(tty) diff --git a/zsh/dot-zshenv b/zsh/dot-zshenv @@ -29,12 +29,30 @@ export RSSREADER="newsboat" # Program-specific variables mkdir -p $XDG_CACHE_HOME/zsh export ZDOTDIR=$XDG_CONFIG_HOME/zsh +export HISTFILE=$XDG_DATA_HOME/bash/history +export XINITRC=$XDG_CONFIG_HOME/X11/xinitrc +export GNUPGHOME=$XDG_DATA_HOME/gnupg +export RANDFILE=$XDG_DATA_HOME/openssl/rnd mkdir -p $XDG_DATA_HOME/vim/{undo,swap,backup} #export VIMINIT='source "$XDG_CONFIG_HOME/vim/vimrc"' +export CCACHE_DIR=$XDG_CACHE_HOME/ccache +export GEM_HOME=$XDG_DATA_HOME/gem +export GEM_SPEC_CACHE=$XDG_CACHE_HOME/gem +export _JAVA_OPTIONS=-Djava.util.prefs.userRoot="$XDG_CONFIG_HOME"/java +export IPYTHONDIR=$XDG_CONFIG_HOME/jupyter +export JUPYTER_CONFIG_DIR=$XDG_CONFIG_HOME/jupyter +export PYLINTHOME=$XDG_CACHE_HOME/pylint export TASKDATA=$XDG_DATA_HOME/task export TASKRC=$XDG_CONFIG_HOME/task/taskrc -export WEECHAT_HOME=$XDG_CONFIG_HOME/weechat # weechat -export IMAPFILTER_HOME=$XDG_CONFIG_HOME/imapfilter # imapfilter +export PASSWORD_STORE_DIR=$XDG_DATA_HOME/pass +export PARALLEL_HOME=$XDG_CONFIG_HOME/parallel +export WEECHAT_HOME=$XDG_CONFIG_HOME/weechat +mkdir -p $XDG_CONFIG_HOME/simplescreenrecorder +export IMAPFILTER_HOME=$XDG_CONFIG_HOME/imapfilter +export NOTMUCH_CONFIG=$XDG_CONFIG_HOME/notmuch/notmuchrc +export BOGOFILTER_DIR=$XDG_DATA_HOME/bogofilter +export NMBGIT=$XDG_DATA_HOME/notmuch/nmbug mkdir -p $XDG_CACHE_HOME/less export LESSKEY=$XDG_CONFIG_HOME/less/lesskey export LESSHISTFILE=$XDG_CACHE_HOME/less/history +export GTK2_RC_FILES=$XDG_CONFIG_HOME/gtk-2.0/gtkrc