diff options
author | ensa <@> | 2023-02-04 20:03:47 -0800 |
---|---|---|
committer | ensa <@> | 2023-02-04 20:52:52 -0800 |
commit | 75ee668954833ab6ba9287ed5eb16a9957edcac2 (patch) | |
tree | 07d9f88939ab0fd93d93c6f4ddbbc7b548a812f0 /etc/shrc | |
parent | ebae3707b36e9a83014ef08271d75bd9826bb999 (diff) | |
download | cfg-75ee668954833ab6ba9287ed5eb16a9957edcac2.tar.gz |
restructure, cleanups, greener pastures, new additions
config and data are now etc and share, to better match my homedir bin: generally, shellcheck errors (where there's actually a problem) have been fixed bother now includes alternate support for libnotify as well as my notif comm-sel now loops, so spawning programs doesn't require multiple runs fcard: my flashcard script accepts a tsv's path on $1, expecting: the word on column 1 the defintion on column 2 (optional) the section on column 3 if $2 is specified, only runs through lines with that string as its section fl: added aesgcm to the url detector string, because of profanity cleaned up urlparse now outputs the urls, one per line, making it more unixy flc: a quick script. uses fl's output to do what fl once did on its own. kbsetup now lacks escape xcape magic, qmk does that for me now. lh: general cleanup. added and removed a site for the video extract section metamv: gives arguments self-describing names based off metadata. mainly just for sorting FLACs off bandcamp this might not be entirely safe. use your own discretion. notif: xnotify wasn't happy with the previous design. it was sending notifications in pieces. this new one's an absolute mess but it works well, is smaller, and faster op: changed the pdf bit to allow variants smv: file is self-explanatory applies the pipeline specified in "$1" to every file name specified after it xbg: contains a fallback if xwallpaper isn't downloaded or its path is empty. yw: just a quick and dirty line for watching things in mpv using yt-dlp. etc: X11/: xprofile now includes the latest xnotify initialization. xresources prevents a variable collision also updates new xnotify resource names and changes which program to pipe the screen to. mpd/mpd.conf just updates to path structure. yt-dlp/* too many changes to describe. should be fairly self-explanatory. ksh/: prompt.ksh: the $ is green now. hooray! lf/lfrc: removed ttmsh function. i use my server for that now. newsboat/config: external-url-viewer is now non-python. zathura/zathurarc: font is now hermit. aliasrc: exa is no more. vis is also no more. youtube-dl is dead. long live yt-dlp. shrc: locale vars changed to ones than glibc is ok with
Diffstat (limited to 'etc/shrc')
-rw-r--r-- | etc/shrc | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/etc/shrc b/etc/shrc new file mode 100644 index 0000000..9da8cef --- /dev/null +++ b/etc/shrc @@ -0,0 +1,62 @@ +#!/bin/sh +# cleaner shell environment than .profile, used with shenv +export HOME_ETC="$HOME/etc" +export HOME_DATA="$HOME/share" +export HOME_LOG="$HOME/var/log" +export HOME_CACHE="$HOME/var/cache" +export HOME_BIN="$HOME/bin" +export HOME_EXT="$HOME/local" +export HOME_EXT_DATA="$HOME_EXT/share" +export HOME_EXT_BIN="$HOME_EXT/bin" +export HOME_EXT_SRC="$HOME_EXT/src" + +export XDG_CACHE_HOME="$HOME_CACHE" +export XDG_CONFIG_HOME="$HOME_ETC" +export XDG_DATA_HOME="$HOME_DATA" + +export PATH="$HOME_BIN:$HOME_EXT_BIN:$PATH" + +export LAUNCHER="dmenu_run" +export EDITOR="vi" +export FILE="lf" +export PAGER="less" +export TERMINAL="xterm" +export OPENER="op" +export BROWSER="firefox" +export COMM="comm-sel" +export READER="zathura" +export MAILER="neomutt" +export MUSIC="ncmpcpp" +export RSS="newsboat" +export SCR="maim" +export LOCK="xlock" +#less args +export LESS='-iFMRX~ -x2' +#locale info +export LANGUAGE="en" +export LANG="C.UTF-8" +export LC_ALL="C.UTF-8" +#lscolor +export CLICOLOR=1 +#todo(1) +export TODO="$HOME_DATA/xdg/doc/todo" +#ksh +export ENV="$HOME_ETC/ksh/kshrc" +#vi +export EXINIT="set ai extended iclower sm sw=4 ts=4 smd +map gg 1G +map gx !'mxsel -b -i +map gp :r!xsel -b -o" + +#cleanup paths +export GTK2_RC_FILES="$HOME_ETC/gtk-2.0/gtkrc-2.0" +export LESSHISTFILE="-" +export GOPATH="$HOME_EXT/go" +export GOCACHE="$HOME_CACHE/go" +export GOBIN="$HOME_EXT_BIN" +export CARGO_HOME="$HOME_EXT/rust" +export PYTHONUSERBASE="$HOME_EXT/python" +export MEDNAFEN_HOME="$HOME_EXT/mednafen" +export _JAVA_OPTIONS="-Djava.util.prefs.userRoot=$HOME_ETC/java" +export TERMINFO="$HOME_DATA/terminfo" +export MAILCAPS="$HOME_ETC/mailcap" |