Browse Source

Let my HOME alone 1/2

crash2
Geoffrey Frogeye 3 years ago
parent
commit
a83e45df5e
  1. 4
      Xresources
  2. 1
      bower
  3. 1
      cargo
  4. 0
      config/Xresources/.gitignore
  5. 0
      config/Xresources/configure
  6. 4
      config/Xresources/main
  7. 0
      config/Xresources/urxvt
  8. 0
      config/Xresources/xft
  9. 0
      config/Xresources/xterm
  10. 2
      config/autorandr/postswitch
  11. 0
      config/gdbinit
  12. 2
      config/git/config
  13. 0
      config/git/gitignore
  14. 62
      config/git/gitk
  15. 0
      config/iftoprc
  16. 0
      config/inputrc
  17. 0
      config/pulse/.dfrecur
  18. 2
      config/pulse/client.conf
  19. 0
      config/scripts/.gitignore
  20. 0
      config/scripts/arch-kexec
  21. 0
      config/scripts/archive
  22. 0
      config/scripts/beep
  23. 0
      config/scripts/changeColors
  24. 0
      config/scripts/cleandev
  25. 0
      config/scripts/compressPictureMovies
  26. 0
      config/scripts/cudarun
  27. 0
      config/scripts/dafont
  28. 0
      config/scripts/debloc
  29. 0
      config/scripts/docker-image-childs
  30. 0
      config/scripts/docker-rm
  31. 0
      config/scripts/dotfiles
  32. 0
      config/scripts/dummy
  33. 0
      config/scripts/emergency-clean
  34. 0
      config/scripts/gitCheckoutModes
  35. 0
      config/scripts/gitghost
  36. 0
      config/scripts/heavyPackages
  37. 0
      config/scripts/html2pdf
  38. 0
      config/scripts/install-arch
  39. 0
      config/scripts/install-prefs
  40. 0
      config/scripts/install-termux
  41. 0
      config/scripts/install-wsl
  42. 0
      config/scripts/logstasync
  43. 0
      config/scripts/lorem
  44. 0
      config/scripts/machines
  45. 0
      config/scripts/md2html
  46. 4
      config/scripts/mel
  47. 6
      config/scripts/melConf
  48. 0
      config/scripts/musiqueBof
  49. 0
      config/scripts/newestFile
  50. 0
      config/scripts/o
  51. 0
      config/scripts/oldestFile
  52. 0
      config/scripts/optimize
  53. 0
      config/scripts/package-lock.json
  54. 0
      config/scripts/package.json
  55. 0
      config/scripts/pdfpages
  56. 0
      config/scripts/pdfrename
  57. 0
      config/scripts/proxy
  58. 0
      config/scripts/pushToTalk
  59. 0
      config/scripts/pw
  60. 0
      config/scripts/rankmirrors
  61. 0
      config/scripts/remcrlf
  62. 0
      config/scripts/rep
  63. 0
      config/scripts/replayGain
  64. 0
      config/scripts/rmf
  65. 0
      config/scripts/rms
  66. 0
      config/scripts/sedrename
  67. 0
      config/scripts/showKeyboardLayout
  68. 0
      config/scripts/syncthingRestore
  69. 0
      config/scripts/tagCreatorPhotos
  70. 0
      config/scripts/ter
  71. 0
      config/scripts/totask
  72. 0
      config/scripts/tracefiles
  73. 0
      config/scripts/transfer
  74. 0
      config/scripts/tunnel
  75. 0
      config/scripts/unziptree
  76. 0
      config/scripts/updateCompressedMusic
  77. 0
      config/scripts/updatedate
  78. 0
      config/scripts/vidcmp
  79. 2
      config/shell/commonrc
  80. 27
      config/shell/shenv
  81. 18
      config/shell/shrc
  82. 2
      config/systemd/user/melfetch.service
  83. 199
      config/typescript
  84. 3
      dmrc
  85. 1
      face.icon
  86. 1
      gem
  87. 19
      gtkrc-2.0
  88. 1
      icon
  89. 1
      m2
  90. 3
      mplayer/config
  91. 1
      npm
  92. 1
      nv
  93. 6
      xinitrc
  94. 13
      xprofile

4
Xresources

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

1
bower

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

1
cargo

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

0
Xresources.d/.gitignore → config/Xresources/.gitignore

0
Xresources.d/configure → config/Xresources/configure

4
config/Xresources/main

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

0
Xresources.d/urxvt → config/Xresources/urxvt

0
Xresources.d/xft → config/Xresources/xft

0
Xresources.d/xterm → config/Xresources/xterm

2
config/autorandr/postswitch

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

0
gdbinit → config/gdbinit

2
gitconfig → config/git/config

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

0
gitignore → config/git/gitignore

62
config/git/gitk

@ -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
iftoprc → config/iftoprc

0
inputrc → config/inputrc

0
config/pulse/.dfrecur

2
config/pulse/client.conf

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

0
scripts/.gitignore → config/scripts/.gitignore

0
scripts/arch-kexec → config/scripts/arch-kexec

0
scripts/archive → config/scripts/archive

0
scripts/beep → config/scripts/beep

0
scripts/changeColors → config/scripts/changeColors

0
scripts/cleandev → config/scripts/cleandev

0
scripts/compressPictureMovies → config/scripts/compressPictureMovies

0
scripts/cudarun → config/scripts/cudarun

0
scripts/dafont → config/scripts/dafont

0
scripts/debloc → config/scripts/debloc

0
scripts/docker-image-childs → config/scripts/docker-image-childs

0
scripts/docker-rm → config/scripts/docker-rm

0
scripts/dotfiles → config/scripts/dotfiles

0
scripts/dummy → config/scripts/dummy

0
scripts/emergency-clean → config/scripts/emergency-clean

0
scripts/gitCheckoutModes → config/scripts/gitCheckoutModes

0
scripts/gitghost → config/scripts/gitghost

0
scripts/heavyPackages → config/scripts/heavyPackages

0
scripts/html2pdf → config/scripts/html2pdf

0
scripts/install-arch → config/scripts/install-arch

0
scripts/install-prefs → config/scripts/install-prefs

0
scripts/install-termux → config/scripts/install-termux

0
scripts/install-wsl → config/scripts/install-wsl

0
scripts/logstasync → config/scripts/logstasync

0
scripts/lorem → config/scripts/lorem

0
scripts/machines → config/scripts/machines

0
scripts/md2html → config/scripts/md2html

4
scripts/mel → config/scripts/mel

@ -63,7 +63,7 @@ config = None
def notmuch_new():
close_database()
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"]
log.debug(" ".join(cmd))
subprocess.run(cmd)
@ -532,7 +532,7 @@ if __name__ == "__main__":
def func_fetch(args):
# Fetch 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"]
subprocess.run(cmd)

6
scripts/melConf → config/scripts/melConf

@ -183,7 +183,7 @@ for name, account in accounts.items():
secconf += "\nCertificateFile {certificate}".format(**account)
imappassEscaped = account["imappass"].replace("\\", "\\\\")
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:
f.write(mbsyncStr)
@ -208,7 +208,7 @@ tls on
msmtpStr = MSMTP_BEGIN
for name, account in accounts.items():
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:
f.write(msmtpStr)
@ -241,7 +241,7 @@ other_email = mails.copy()
other_email.remove(general["main"]["from"])
other_email = ";".join(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:
f.write(notmuchStr)

0
scripts/musiqueBof → config/scripts/musiqueBof

0
scripts/newestFile → config/scripts/newestFile

0
scripts/o → config/scripts/o

0
scripts/oldestFile → config/scripts/oldestFile

0
scripts/optimize → config/scripts/optimize

0
scripts/package-lock.json → config/scripts/package-lock.json

0
scripts/package.json → config/scripts/package.json

0
scripts/pdfpages → config/scripts/pdfpages

0
scripts/pdfrename → config/scripts/pdfrename

0
scripts/proxy → config/scripts/proxy

0
scripts/pushToTalk → config/scripts/pushToTalk

0
scripts/pw → config/scripts/pw

0
scripts/rankmirrors → config/scripts/rankmirrors

0
scripts/remcrlf → config/scripts/remcrlf

0
scripts/rep → config/scripts/rep

0
scripts/replayGain → config/scripts/replayGain

0
scripts/rmf → config/scripts/rmf

0
scripts/rms → config/scripts/rms

0
scripts/sedrename → config/scripts/sedrename

0
scripts/showKeyboardLayout → config/scripts/showKeyboardLayout

0
scripts/syncthingRestore → config/scripts/syncthingRestore

0
scripts/tagCreatorPhotos → config/scripts/tagCreatorPhotos

0
scripts/ter → config/scripts/ter

0
scripts/totask → config/scripts/totask

0
scripts/tracefiles → config/scripts/tracefiles

0
scripts/transfer → config/scripts/transfer

0
scripts/tunnel → config/scripts/tunnel

0
scripts/unziptree → config/scripts/unziptree

0
scripts/updateCompressedMusic → config/scripts/updateCompressedMusic

0
scripts/updatedate → config/scripts/updatedate

0
scripts/vidcmp → config/scripts/vidcmp

2
config/shell/commonrc

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

27
config/shell/shenv

@ -13,13 +13,34 @@ export BROWSER=firefox
# Program-specific
[ -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 ARDUINO=/usr/share/arduino
# export ARDUINO_DIR=$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
# Function stolen from Arch Linux /etc/profile
@ -40,7 +61,7 @@ appendpath() {
appendpath '/usr/lib/ccache/bin'
appendpath "${GOPATH}/bin"
appendpath "$HOME/.local/bin"
appendpath "$HOME/.scripts"
appendpath "$HOME/.config/scripts"
# If running on termux, load those extra scripts
[ -d /data/data/com.termux/ ] && (

18
config/shell/shrc

@ -35,6 +35,24 @@ alias n='urxvtc &'
alias x='startx; 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
trysource() {
if [ -f "$1" ]

2
config/systemd/user/melfetch.service

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

199
config/typescript
File diff suppressed because it is too large
View File

3
dmrc

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

1
face.icon

@ -1 +0,0 @@
.face

1
gem

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

19
gtkrc-2.0

@ -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

@ -1 +0,0 @@
.face

1
m2

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

3
mplayer/config

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

1
npm

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

1
nv

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

6
xinitrc

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

13
xprofile

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

Loading…
Cancel
Save