Commit: 60dd4b73646a81ff73b97e3ba7823e63ea21c295
Parent: 718f1e096093ba2c70474287780473fe3306d612
Author: Randy Palamar
Date: Fri, 5 Mar 2021 16:59:02 -0700
move some things(env variables, keybinds) around
Diffstat:
4 files changed, 21 insertions(+), 12 deletions(-)
diff --git a/.config/ksh/kshenv b/.config/ksh/kshenv
@@ -0,0 +1,14 @@
+#export MPD_HOST=~/.config/mpd/socket
+export MPD_HOST="localhost"
+export LESSHISTFILE="-"
+export HISTFILE=~/.config/ksh/history
+export HISTSIZE=10000
+export HISTCONTROL=ignoredups:ignorespace
+export EDITOR=vis
+export VISUAL=vis
+
+# these programs like to make a mess of ~
+export GNUPGHOME=$XDG_DATA_HOME/gnupg
+export TEXMFHOME=$XDG_DATA_HOME/texmf
+export TEXMFVAR=$XDG_CACHE_HOME/texlive/texmf-var
+export TEXMFCONFIG=$XDG_CONFIG_HOME/texlive/texmf-config
diff --git a/.config/ksh/kshrc b/.config/ksh/kshrc
@@ -9,20 +9,12 @@ KSHDIR=~/.config/ksh
# Environment Variables #
#########################
[ -f $KSHDIR/secrets ] && . $KSHDIR/secrets
+[ -f $KSHDIR/kshenv ] && . $KSHDIR/kshenv
PS1='$(tput bold)\W \$$(tput sgr0) '
if [ -n "$SSH_CONNECTION" ]; then
PS1="$(hostname) $PS1"
fi
-#MPD_HOST="$HOME/.config/mpd/socket"
-MPD_HOST="localhost"
-LESSHISTFILE="-"
-HISTFILE=$KSHDIR/history
-HISTSIZE=10000
-HISTCONTROL=ignoredups:ignorespace
-EDITOR="vis"
-VISUAL="vis"
-export MPD_HOST LESSHISTFILE HISTCONTROL HISTFILE HISTSIZE EDITOR VISUAL
if [ $UNAME == "OpenBSD" ]; then
ulimit -c 0
@@ -50,7 +42,7 @@ alias page='zathura --fork'
alias tmux='tmux -2u'
# managing dotfiles
-alias rice='git --git-dir=~/.dotfiles --work-tree=~'
+alias rice='git --git-dir=~/.local/repos/dotfiles --work-tree=~'
# git
alias ga='git apply'
diff --git a/.config/mpv/input.conf b/.config/mpv/input.conf
@@ -3,6 +3,9 @@ k add volume 1
J add sub-font-size -1
K add sub-font-size 1
+h script-binding chapter_prev
+l script-binding chapter_next
+
r script-message rotate-video 90
R script-message rotate-video -90
diff --git a/.config/mpv/scripts/chapters.lua b/.config/mpv/scripts/chapters.lua
@@ -15,5 +15,5 @@ function chapter_seek(direction)
mp.commandv("script-message", "osc-chapterlist")
end
end
-mp.add_key_binding("h", "chapter_prev", function() chapter_seek(-1) end)
-mp.add_key_binding("l", "chapter_next", function() chapter_seek(1) end)
+mp.add_key_binding(nil, "chapter_next", function() chapter_seek(1) end)
+mp.add_key_binding(nil, "chapter_prev", function() chapter_seek(-1) end)