summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shell/.bash_logout6
-rw-r--r--shell/.bash_profile7
-rw-r--r--shell/.config/shell/aliasrc4
-rw-r--r--shell/.config/shell/profile39
-rwxr-xr-xstow-sys-conf.sh4
-rwxr-xr-xstow-user-conf.sh (renamed from stow.sh)2
-rw-r--r--x11/.config/x11/xprofile9
7 files changed, 45 insertions, 26 deletions
diff --git a/shell/.bash_logout b/shell/.bash_logout
new file mode 100644
index 0000000..44b6f79
--- /dev/null
+++ b/shell/.bash_logout
@@ -0,0 +1,6 @@
+# /etc/skel/.bash_logout
+
+# This file is sourced when a login shell terminates.
+
+# Clear the screen for security's sake.
+clear
diff --git a/shell/.bash_profile b/shell/.bash_profile
new file mode 100644
index 0000000..1de05a4
--- /dev/null
+++ b/shell/.bash_profile
@@ -0,0 +1,7 @@
+# /etc/skel/.bash_profile
+
+# This file is sourced by bash for login shells. The following line
+# runs your .bashrc and is recommended by the bash info pages.
+if [[ -f ~/.bashrc ]] ; then
+ . ~/.bashrc
+fi
diff --git a/shell/.config/shell/aliasrc b/shell/.config/shell/aliasrc
index 95c35c6..1902c50 100644
--- a/shell/.config/shell/aliasrc
+++ b/shell/.config/shell/aliasrc
@@ -11,6 +11,10 @@ done; unset command
# allow calls of aliases by xargs
alias xargs='xargs '
+# workaround sudo's PATH change
+# https://stackoverflow.com/questions/257616/why-does-sudo-change-the-path
+alias sudo='sudo env PATH=$PATH'
+
# Verbosity and settings that you pretty much just always are going to want.
alias \
cp='cp -iv' \
diff --git a/shell/.config/shell/profile b/shell/.config/shell/profile
index e9c7b4e..f3b251d 100644
--- a/shell/.config/shell/profile
+++ b/shell/.config/shell/profile
@@ -10,20 +10,12 @@
# for ssh logins, install and configure the libpam-umask package.
#umask 022
-# if running bash
-#if [ -n "$BASH_VERSION" ]; then
-# # include .bashrc if it exists
-# if [ -f "$HOME/.bashrc" ]; then
-# . "$HOME/.bashrc"
-# fi
-#fi
[ -f "${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutrc" ] && source "${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutrc"
[ -f "${XDG_CONFIG_HOME:-$HOME/.config}/shell/aliasrc" ] && source "${XDG_CONFIG_HOME:-$HOME/.config}/shell/aliasrc"
[ -f "${XDG_CONFIG_HOME:-$HOME/.config}/shell/zshnameddirrc" ] && source "${XDG_CONFIG_HOME:-$HOME/.config}/shell/zshnameddirrc"
export PATH="$PATH:$(du -L "$HOME/.local/bin" | cut -f2 | paste -sd ':')"
-#export PATH="$PATH:$HOME/.local/bin"
# automatically logout after some time
#export TMOUT=300
@@ -36,7 +28,9 @@ export TERMINAL="st"
export BROWSER="firefox"
export READER="zathura"
-export XDG_CACHE_HOME="$HOME/.cache"
+#export XDG_CACHE_HOME="$HOME/.cache"
+# EXPERIMENTAL
+export XDG_CACHE_HOME="$XDG_RUNTIME_DIR/.cache"
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share"
@@ -66,7 +60,6 @@ export USERXSESSIONRC="$XDG_CONFIG_HOME/x11/xsessionrc"
export ALTUSERXSESSION="$XDG_CONFIG_HOME/x11/Xsession"
export ERRFILE="$XDG_CACHE_HOME/x11/xsession-errors"
# it is more trouble than it's worth
-#export XAUTHORITY="$XDG_RUNTIME_DIR"/Xauthority
#export XAUTHORITY="$XDG_CACHE_HOME"/Xauthority
# libx11
export XCOMPOSEFILE="$XDG_CONFIG_HOME/x11/xcompose"
@@ -75,22 +68,31 @@ export XCOMPOSECACHE="$XDG_CACHE_HOME/x11/xcompose"
export NPM_CONFIG_USERCONFIG=$XDG_CONFIG_HOME/npm/npmrc
export MBSYNCRC="${XDG_CONFIG_HOME:-$HOME/.config}/mbsync/config"
export NOTMUCH_CONFIG="${XDG_CONFIG_HOME:-$HOME/.config}/notmuch-config"
-#export TMUX_TMPDIR="$XDG_RUNTIME_DIR"
export TMUX_TMPDIR="$XDG_CACHE_DIR"
export CARGO_HOME="${XDG_DATA_HOME:-$HOME/.local/share}/cargo"
export GOPATH="${XDG_DATA_HOME:-$HOME/.local/share}/go"
# I don't need history from less
export LESSHISTFILE="-"
+# retain color (maybe useless, most commands remove color when outputting to pipe, which is reasonable)
export LESS=-R
+# but we can counter that with highlight
+export LESSOPEN="| /usr/bin/highlight -O ansi %s 2>/dev/null"
+# colorize special text:
+# begin blinking
export LESS_TERMCAP_mb="$(printf '%b' '')"
+# begin bold
export LESS_TERMCAP_md="$(printf '%b' '')"
+# end mode
export LESS_TERMCAP_me="$(printf '%b' '')"
+# begin standout-mode
export LESS_TERMCAP_so="$(printf '%b' '')"
+# end standout-mode
export LESS_TERMCAP_se="$(printf '%b' '')"
+# begin underline
export LESS_TERMCAP_us="$(printf '%b' '')"
+# end underline
export LESS_TERMCAP_ue="$(printf '%b' '')"
-export LESSOPEN="| /usr/bin/highlight -O ansi %s 2>/dev/null"
# Have QT use gtk2 theme.
export QT_QPA_PLATFORMTHEME="gtk2"
@@ -106,22 +108,22 @@ export NNN_TRASH=1
export NNN_SSHFS="sshfs -o follow_symlinks"
export NNN_FIFO=/tmp/nnn.fifo
export NNN_ARCHIVE="\\.(7z|a|ace|alz|arc|arj|bz|bz2|cab|cpio|deb|gz|jar|lha|lz|lzh|lzma|lzo|rar|rpm|rz|t7z|tar|tbz|tbz2|tgz|tlz|txz|tZ|tzo|war|xpi|xz|Z|zip)$"
-
-
+# for nnn's fzf plugin
export FZF_DEFAULT_OPTS="--layout=reverse --height 40%"
-
# fix for Java applications in dwm
export _JAVA_AWT_WM_NONREPARENTING=1
-# fixing VapourSynth problem
+# fixing SVP won't picking up vapoursynth library
# TODO change 3.9 to whatever may be later
export PYTHONPATH=/usr/local/lib/python3.9/site-packages
+# possibly Android stuff? why can't they honor XDG??
if [ -d "$HOME/platform-tools" ] ; then
export PATH="$HOME/platform-tools:$PATH"
fi
+# variable for vim's quick access to bibliography
export BIB="$HOME/dox/phd/bibliography.bib"
# Changing pinentry for SSH logins
@@ -133,9 +135,4 @@ fi
# start graphical server on user's current tty if not already running.
#[ "$(tty)" = "/dev/tty1" ] && ! pidof -s Xorg >/dev/null 2>&1 && exec startx "$XINITRC"
-
source "${XDG_CONFIG_HOME:-$HOME/.config}/shell/pass-completion"
-
-# workaround sudo's PATH change
-# https://stackoverflow.com/questions/257616/why-does-sudo-change-the-path
-alias sudo='sudo env PATH=$PATH'
diff --git a/stow-sys-conf.sh b/stow-sys-conf.sh
new file mode 100755
index 0000000..3553cba
--- /dev/null
+++ b/stow-sys-conf.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+echo "Installing ProtonMail Bridge OpenRC service file"
+ln -s "$HOME/.local/bin/protonmail-bridge" "/etc/init.d/protonmail-bridge"
diff --git a/stow.sh b/stow-user-conf.sh
index aa9fa82..53145b7 100755
--- a/stow.sh
+++ b/stow-user-conf.sh
@@ -9,4 +9,4 @@ echo "Stowing configs"
stow -R $(ls -d */)
echo "Installing ProtonMail Bridge OpenRC service file"
-doas ln -s "$HOME/.local/bin/protonmail-bridge" "/etc/init.d/protonmail-bridge"
+sudo ln -s "$HOME/.local/bin/protonmail-bridge" "/etc/init.d/protonmail-bridge"
diff --git a/x11/.config/x11/xprofile b/x11/.config/x11/xprofile
index 8907cd8..65d1fb1 100644
--- a/x11/.config/x11/xprofile
+++ b/x11/.config/x11/xprofile
@@ -7,6 +7,10 @@
# generate .Xresources
$HOME/.local/bin/genxresources > $HOME/.Xresources
xrdb $HOME/.Xresources
+xrdbpid=$!
+
+# Ensure that xrdb has finished running before using xrdb and moving on to WM/DE
+[ -n "$xrdbpid" ] && wait "$xrdbpid"
# generate zathura config with colors from .Xresources
mkdir -pv $HOME/.config/zathura && $HOME/.local/bin/genzathurarc > $HOME/.config/zathura/zathurarc
@@ -15,6 +19,7 @@ mkdir -pv $HOME/.config/zathura && $HOME/.local/bin/genzathurarc > $HOME/.config
mkdir -pv $HOME/.config/dunst && $HOME/.local/bin/gendunstrc > $HOME/.config/dunst/dunstrc
$HOME/.local/bin/setbg
+
$HOME/.local/bin/remaps
autostart=(
@@ -35,7 +40,3 @@ done >$XDG_CACHE_HOME/xprofile.errors 2>&1
if [ -x /usr/bin/gpg-agent ]; then
eval "$(/usr/bin/gpg-agent --daemon)"
fi
-
-
-# Ensure that xrdb has finished running before moving on to start the WM/DE.
-[ -n "$xrdbpid" ] && wait "$xrdbpid"