From acaa73ce6e1fe3612f1019b5537f454a9820a453 Mon Sep 17 00:00:00 2001 From: Cian Bagshaw Date: Thu, 29 Jun 2023 01:19:07 +0100 Subject: [PATCH] Xinitrc Stopped using the login manager, and thus manually configure X11. Also, sourced .bashrc for login TTY. --- .bashrc | 11 ++++++++++- .config/xinitrc | 11 +++++++++++ .profile | 4 ++++ 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100755 .config/xinitrc diff --git a/.bashrc b/.bashrc index f59cbd0..c68d549 100644 --- a/.bashrc +++ b/.bashrc @@ -1,3 +1,9 @@ +#!/bin/bash +# ~/.bashrc - run on each bash session + +# quit if non-interactive +[[ $- != *i* ]] && return + # used cached pywal colorscheme (cat ~/.cache/wal/sequences &) @@ -18,7 +24,10 @@ man() { # vim mode set -o vi -# ailiases +# disable history +unset HISTFILE + +# aliases alias v="vim" alias r="ranger" alias z="zathura" diff --git a/.config/xinitrc b/.config/xinitrc new file mode 100755 index 0000000..9117051 --- /dev/null +++ b/.config/xinitrc @@ -0,0 +1,11 @@ +#!/bin/sh +# ~/.config/xinitrc - run on startx + +# set error file +ERRFILE="$XDG_CACHE_HOME/X11/xsession-errors" + +# start programs +dunst & + +# start i3wm +i3 diff --git a/.profile b/.profile index bb278dc..3dc79d0 100644 --- a/.profile +++ b/.profile @@ -1,6 +1,9 @@ #!/bin/sh # ~/.profile - run on login +# run ~/.bashrc if it exists +[ -f "$HOME/.bashrc" ] && . "$HOME/.bashrc" + # add ~/.local/bin to path export PATH="$PATH:$HOME/.local/bin" @@ -20,6 +23,7 @@ export XDG_RUNTIME_DIR="/run/user/$UID" # config file locations export VIMINIT="source $XDG_CONFIG_HOME/vim/vimrc" +export XINITRC="$XDG_CONFIG_HOME/xinitrc" export NOTMUCH_CONFIG="$XDG_CONFIG_HOME/notmuch" export GTK2_RC_FILES="$XDG_CONFIG_HOME/gtkrc" export PYTHONSTARTUP="$XDG_CONFIG_HOME/pythonrc.py" -- 2.20.1