Let my HOME alone 1/2

This commit is contained in:
Geoffrey Frogeye 2019-04-25 22:54:51 +02:00
parent 2ae37e902e
commit a83e45df5e
94 changed files with 328 additions and 58 deletions

View file

@ -1,4 +0,0 @@
#include ".Xresources.d/xft"
#include ".Xresources.d/theme"
#include ".Xresources.d/xterm"
#include ".Xresources.d/urxvt"

1
bower
View file

@ -1 +0,0 @@
.cache/bower

1
cargo
View file

@ -1 +0,0 @@
.cache/cargo

4
config/Xresources/main Normal file
View file

@ -0,0 +1,4 @@
#include ".config/Xresources/xft"
#include ".config/Xresources/theme"
#include ".config/Xresources/xterm"
#include ".config/Xresources/urxvt"

View file

@ -22,5 +22,5 @@ if [ ! -e "$filepath" ]; then
wget -c "$url" -O "$filepath" wget -c "$url" -O "$filepath"
fi fi
feh --bg-fill "$filepath" feh --no-fehbg --bg-fill "$filepath"

View file

@ -4,7 +4,7 @@
signingkey = D8A7ECA00A8CD3DD signingkey = D8A7ECA00A8CD3DD
[core] [core]
editor = nvim editor = nvim
excludesfile = ~/.gitignore excludesfile = ~/.config/git/gitignore
[push] [push]
default = matching default = matching
[alias] [alias]

62
config/git/gitk Normal file
View file

@ -0,0 +1,62 @@
set mainfont {sans 9}
set textfont {monospace 9}
set uifont {sans 9 bold}
set tabstop 8
set findmergefiles 0
set maxgraphpct 50
set maxwidth 16
set cmitmode patch
set wrapcomment none
set autoselect 1
set autosellen 40
set showneartags 1
set maxrefs 20
set visiblerefs {"master"}
set hideremotes 0
set showlocalchanges 1
set datetimeformat {%Y-%m-%d %H:%M:%S}
set limitdiffs 1
set uicolor grey85
set want_ttk 1
set bgcolor white
set fgcolor black
set uifgcolor black
set uifgdisabledcolor #999
set colors {"#00ff00" red blue magenta darkgrey brown orange}
set diffcolors {red "#00a000" blue}
set mergecolors {red blue "#00ff00" purple brown "#009090" magenta "#808000" "#009000" "#ff0080" cyan "#b07070" "#70b0f0" "#70f0b0" "#f0b070" "#ff70b0"}
set markbgcolor #e0e0ff
set diffcontext 3
set selectbgcolor gray85
set foundbgcolor yellow
set currentsearchhitbgcolor orange
set extdifftool meld
set perfile_attrs 0
set headbgcolor #00ff00
set headfgcolor black
set headoutlinecolor black
set remotebgcolor #ffddaa
set tagbgcolor yellow
set tagfgcolor black
set tagoutlinecolor black
set reflinecolor black
set filesepbgcolor #aaaaaa
set filesepfgcolor black
set linehoverbgcolor #ffff80
set linehoverfgcolor black
set linehoveroutlinecolor black
set mainheadcirclecolor yellow
set workingfilescirclecolor red
set indexcirclecolor #00ff00
set circlecolors {white blue gray blue blue}
set linkfgcolor blue
set circleoutlinecolor black
set geometry(main) 1920x1012+0+18
set geometry(state) normal
set geometry(topwidth) 1920
set geometry(topheight) 225
set geometry(pwsash0) "480 1"
set geometry(pwsash1) "720 1"
set geometry(botwidth) 600
set geometry(botheight) 782
set permviews {}

0
config/pulse/.dfrecur Normal file
View file

2
config/pulse/client.conf Normal file
View file

@ -0,0 +1,2 @@
auth-cookie = .config/pulse/esd-auth-cookie
cookie-file = .config/pulse/pulse-cookie

View file

@ -63,7 +63,7 @@ config = None
def notmuch_new(): def notmuch_new():
close_database() close_database()
log.info("Indexing mails") log.info("Indexing mails")
notmuchConfigPath = os.path.expanduser("~/.notmuchrc") # TODO Better notmuchConfigPath = os.path.expanduser("~/.config/notmuch-config") # TODO Better
cmd = ["notmuch", "--config", notmuchConfigPath, "new"] cmd = ["notmuch", "--config", notmuchConfigPath, "new"]
log.debug(" ".join(cmd)) log.debug(" ".join(cmd))
subprocess.run(cmd) subprocess.run(cmd)
@ -532,7 +532,7 @@ if __name__ == "__main__":
def func_fetch(args): def func_fetch(args):
# Fetch mails # Fetch mails
log.info("Fetching mails") log.info("Fetching mails")
mbsyncConfigPath = os.path.expanduser("~/.mbsyncrc") # TODO Better mbsyncConfigPath = os.path.expanduser("~/.config/mbsyncrc") # TODO Better
cmd = ["mbsync", "--config", mbsyncConfigPath, "--all"] cmd = ["mbsync", "--config", mbsyncConfigPath, "--all"]
subprocess.run(cmd) subprocess.run(cmd)

View file

@ -183,7 +183,7 @@ for name, account in accounts.items():
secconf += "\nCertificateFile {certificate}".format(**account) secconf += "\nCertificateFile {certificate}".format(**account)
imappassEscaped = account["imappass"].replace("\\", "\\\\") imappassEscaped = account["imappass"].replace("\\", "\\\\")
mbsyncStr += MBSYNC_ACCOUNT.format(**account, secconf=secconf, imappassEscaped=imappassEscaped) mbsyncStr += MBSYNC_ACCOUNT.format(**account, secconf=secconf, imappassEscaped=imappassEscaped)
mbsyncFilepath = os.path.join(os.path.expanduser('~'), '.mbsyncrc') mbsyncFilepath = os.path.join(os.path.expanduser('~'), '.config/mel/mbsyncrc')
with open(mbsyncFilepath, 'w') as f: with open(mbsyncFilepath, 'w') as f:
f.write(mbsyncStr) f.write(mbsyncStr)
@ -208,7 +208,7 @@ tls on
msmtpStr = MSMTP_BEGIN msmtpStr = MSMTP_BEGIN
for name, account in accounts.items(): for name, account in accounts.items():
msmtpStr += MSMTP_ACCOUNT.format(**account) msmtpStr += MSMTP_ACCOUNT.format(**account)
mbsyncFilepath = os.path.join(os.path.expanduser('~'), '.msmtprc') mbsyncFilepath = os.path.join(os.path.expanduser('~'), '.config/msmtp/config')
with open(mbsyncFilepath, 'w') as f: with open(mbsyncFilepath, 'w') as f:
f.write(msmtpStr) f.write(msmtpStr)
@ -241,7 +241,7 @@ other_email = mails.copy()
other_email.remove(general["main"]["from"]) other_email.remove(general["main"]["from"])
other_email = ";".join(other_email) other_email = ";".join(other_email)
notmuchStr = NOTMUCH_BEGIN.format(**general, other_email=other_email) notmuchStr = NOTMUCH_BEGIN.format(**general, other_email=other_email)
mbsyncFilepath = os.path.join(os.path.expanduser('~'), '.notmuchrc') mbsyncFilepath = os.path.join(os.path.expanduser('~'), '.config/notmuch-config')
with open(mbsyncFilepath, 'w') as f: with open(mbsyncFilepath, 'w') as f:
f.write(notmuchStr) f.write(notmuchStr)

View file

@ -29,4 +29,4 @@ FZF_COMPLETION_OPTS="${FZF_CTRL_T_OPTS}"
## FUNCTIONS ## FUNCTIONS
## MISC ## MISC
trysource ~/.gscripts/gprofile trysource ~/.config/gscripts/gprofile

View file

@ -13,13 +13,34 @@ export BROWSER=firefox
# Program-specific # Program-specific
[ -z "$SSH_AUTH_SOCK" ] && [ -x "$(command -v ssh-agent)" ] && eval "$(ssh-agent -s)" [ -z "$SSH_AUTH_SOCK" ] && [ -x "$(command -v ssh-agent)" ] && eval "$(ssh-agent -s)"
export GOPATH=$HOME/.cache/go
# export JAVA_FONTS=/usr/share/fonts/TTF direnv() { # environment variable name, path
export "$1"="$2"
mkdir -p "$2"
}
export JAVA_FONTS=/usr/share/fonts/TTF # 2019-04-25 Attempt to remove .java/fonts remove if it didn't work
# export ANDROID_HOME=/opt/android-sdk # export ANDROID_HOME=/opt/android-sdk
# export ARDUINO=/usr/share/arduino # export ARDUINO=/usr/share/arduino
# export ARDUINO_DIR=$ARDUINO # export ARDUINO_DIR=$ARDUINO
# export ARDMK_VENDOR=archlinux-arduino # export ARDMK_VENDOR=archlinux-arduino
direnv GOPATH "$HOME/.cache/go"
direnv CARGOHOME "$HOME/.cache/cargo" # There are config in there that we can version if one want
direnv CCACHE_BASEDIR "$HOME/.cache/ccache"
export CCACHE_CONFIGPATH="$HOME/.config/ccache.conf"
direnv GNUPGHOME "$HOME/.config/gnupg"
export INPUTRC="$HOME/.config/inputrc"
export LESSHISTFILE="$HOME/.cache/lesshst"
direnv MONO_GAC_PREFIX "$HOME/.cache/mono"
export NODE_REPL_HISTORY="$HOME/.cache/node_repl_history"
direnv npm_config_cache "$HOME/.cache/npm"
direnv PARALLEL_HOME "$HOME/.cache/parallel"
# For programs that think $HOME is a reasonable place to put their junk
direnv JUNKHOME "$HOME/.cache/junkhome"
# Path # Path
# Function stolen from Arch Linux /etc/profile # Function stolen from Arch Linux /etc/profile
@ -40,7 +61,7 @@ appendpath() {
appendpath '/usr/lib/ccache/bin' appendpath '/usr/lib/ccache/bin'
appendpath "${GOPATH}/bin" appendpath "${GOPATH}/bin"
appendpath "$HOME/.local/bin" appendpath "$HOME/.local/bin"
appendpath "$HOME/.scripts" appendpath "$HOME/.config/scripts"
# If running on termux, load those extra scripts # If running on termux, load those extra scripts
[ -d /data/data/com.termux/ ] && ( [ -d /data/data/com.termux/ ] && (

View file

@ -35,6 +35,24 @@ alias n='urxvtc &'
alias x='startx; logout' alias x='startx; logout'
alias nx='nvidia-xrun; logout' alias nx='nvidia-xrun; logout'
# For programs that think $HOME is a reasonable place to put their junk
alias adb='HOME=$JUNKHOME adb'
alias audacity='HOME=$JUNKHOME audacity'
alias binwalk='HOME=$JUNKHOME binwalk' # Should use .config according to the GitHub code though
alias cabal='HOME=$JUNKHOME cabal' # TODO May have options but last time I tried it it crashed
alias cmake='HOME=$JUNKHOME cmake'
alias ddd='HOME=$JUNKHOME ddd'
alias ghidra='HOME=$JUNKHOME ghidra'
alias itch='HOME=$JUNKHOME itch'
# TODO Maybe we can do something about node-gyp
alias bower='bower --config.storage.packages=~/.cache/bower/packages --config.storage.registry=~/.cache/bower/registry --config.storage.links=~/.cache/bower/links'
alias gdb='gdb -x $HOME/.config/gdbinit'
alias iftop='iftop -c $HOME/.config/iftoprc'
alias lmms='lmms --config $HOME/.config/lmmsrc.xml'
# TODO ruby's gem when I find a use for it
# FUNCTIONS # FUNCTIONS
trysource() { trysource() {
if [ -f "$1" ] if [ -f "$1" ]

View file

@ -3,4 +3,4 @@ Description=Meh mail client new mail fetcher
[Service] [Service]
Type=oneshot Type=oneshot
ExecStart=/home/geoffrey/.scripts/mel fetch ExecStart=/home/geoffrey/.config/scripts/mel fetch

199
config/typescript Normal file

File diff suppressed because one or more lines are too long

3
dmrc
View file

@ -1,3 +0,0 @@
[Desktop]
Language=fr_FR.utf8
Session=i3

View file

@ -1 +0,0 @@
.face

1
gem
View file

@ -1 +0,0 @@
.cache/gem

View file

@ -1,19 +0,0 @@
# DO NOT EDIT! This file will be overwritten by LXAppearance.
# Any customization should be done in ~/.gtkrc-2.0.mine instead.
include "/home/geoffrey/.gtkrc-2.0.mine"
gtk-theme-name="Greenbird"
gtk-icon-theme-name="Faenza-Green"
gtk-font-name="Sans 10"
gtk-cursor-theme-name="Menda-Cursor"
gtk-cursor-theme-size=0
gtk-toolbar-style=GTK_TOOLBAR_BOTH
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
gtk-button-images=1
gtk-menu-images=1
gtk-enable-event-sounds=1
gtk-enable-input-feedback-sounds=1
gtk-xft-antialias=1
gtk-xft-hinting=1
gtk-xft-hintstyle="hintslight"
gtk-xft-rgba="rgb"

1
icon
View file

@ -1 +0,0 @@
.face

1
m2
View file

@ -1 +0,0 @@
.cache/m2

View file

@ -1,3 +0,0 @@
# Write your default config options here!

1
npm
View file

@ -1 +0,0 @@
.cache/npm

1
nv
View file

@ -1 +0,0 @@
.cache/nv

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/bin/sh
# #
# ~/.xinitrc # ~/.xinitrc
# #
@ -11,6 +11,6 @@ if [ -d /etc/X11/xinit/xinitrc.d ]; then
unset f unset f
fi fi
[ -f /etc/xprofile ] && source /etc/xprofile [ -f /etc/xprofile ] && . /etc/xprofile
[ -f ~/.xprofile ] && source ~/.xprofile [ -f ~/.xprofile ] && . ~/.xprofile

View file

@ -7,7 +7,7 @@
# #
[ -f ~/.Xresources ] && xrdb ~/.Xresources [ -f ~/.config/Xresources/main ] && xrdb -I"$HOME" ~/.config/Xresources/main
xset b off xset b off
export GTK2_RC_FILES="$HOME/.gtkrc-2.0" export GTK2_RC_FILES="$HOME/.gtkrc-2.0"
@ -40,16 +40,17 @@ tryDM() {
xmonad ) executable=xmonad;; xmonad ) executable=xmonad;;
*) executable=$1;; *) executable=$1;;
esac esac
path=$(which $executable 2> /dev/null) if commannd -v "$executable"
if [ $? -eq 0 ]; then then
found=1 found=1
exec $path $parameters exec "$executable" $parameters
fi fi
fi fi
} }
if [ ! -z $1 ]; then if [ -n "$1" ]
tryDM $1 then
tryDM "$1"
fi fi
tryDM i3 tryDM i3
tryDM xfce4 tryDM xfce4