dotfiles

Obligatory dotfiles repo
git clone git://git.danielmoch.com/dotfiles.git
Log | Files | Refs

commit 9aa917f77adef2bb3b7aaeee7cc57fa67be70a7f
parent 3fabe5452179e9cfa91a1539af997866492a4a3e
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Fri, 20 Nov 2020 13:52:18 -0500

Move Xresources out of home

Diffstat:
M.profile | 1+
M.xinitrc | 8+++-----
M.xsession | 3++-
R.Xresources -> etc/Xresources | 0
Mlib/profile | 1+
5 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/.profile b/.profile @@ -28,6 +28,7 @@ case $HOSTNAME in HISTCONTROL=erasedups; export HISTCONTROL VISUAL=vi; export VISUAL MOZ_ACCELERATED=1; export MOZ_ACCELERATED + XAUTHORITY="$XDG_CACHE_HOME/Xauthority"; export XAUTHORITY wsconsctl mouse.reverse_scrolling=1 >/dev/null ;; esac diff --git a/.xinitrc b/.xinitrc @@ -1,6 +1,4 @@ -# -# ~/.xinitrc -# -exec 2>"$HOME/.xinit-errors" -[ -r "$HOME/.Xresources" ] && xrdb "$HOME/.Xresources" +#!/bin/sh + +exec 2>"$XDG_DATA_HOME/log/xinit-errors" exec "$HOME/.xsession" diff --git a/.xsession b/.xsession @@ -1,6 +1,7 @@ #!/bin/sh echo "Running $HOME/.xsession as PID $$" >&2 -[ -r "$HOME/.Xresources.local" ] && xrdb -merge "$HOME/.Xresources.local" +[ -r "$XDG_CONFIG_HOME/Xresources" ] && xrdb -merge "$XDG_CONFIG_HOME/Xresources" +[ -r "$XDG_CONFIG_HOME/Xresources.local" ] && xrdb -merge "$XDG_CONFIG_HOME/Xresources.local" date +'%m/%d/%Y %H:%M:%S' >&2 env >&2 diff --git a/.Xresources b/etc/Xresources diff --git a/lib/profile b/lib/profile @@ -30,6 +30,7 @@ case carbon gpg-connect-agent updatestartuptty /bye >/dev/null >[2=1] PKG_PATH=https://cdn.openbsd.org/pub/OpenBSD/snapshots/packages/amd64 MOZ_ACCELERATED=1 + XAUTHORITY=$XDG_CACHE_HOME/Xauthority wsconsctl mouse.reverse_scrolling=1 >/dev/null if(~ $#DISPLAY 0) { exec startx