Xinitrc
authorCian Bagshaw <cian@cianb.xyz>
Thu, 29 Jun 2023 00:19:07 +0000 (01:19 +0100)
committerCian Bagshaw <cian@cianb.xyz>
Thu, 29 Jun 2023 00:19:07 +0000 (01:19 +0100)
Stopped using the login manager, and thus manually configure X11. Also, sourced
.bashrc for login TTY.

.bashrc
.config/xinitrc [new file with mode: 0755]
.profile

diff --git a/.bashrc b/.bashrc
index f59cbd0..c68d549 100644 (file)
--- 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 (executable)
index 0000000..9117051
--- /dev/null
@@ -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
index bb278dc..3dc79d0 100644 (file)
--- 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"