mirror of
https://github.com/frebib/dotfiles.git
synced 2024-06-14 12:57:23 +00:00
Reorganise many directories into XDG dirs
This commit is contained in:
parent
ae1acb194c
commit
1c297d3a77
@ -19,4 +19,22 @@ xrandr --dpi $(xrdb -query | grep -i xft.dpi | cut -d: -f2)
|
|||||||
setxkbmap -option caps:none
|
setxkbmap -option caps:none
|
||||||
xset r rate 200 18
|
xset r rate 200 18
|
||||||
|
|
||||||
|
|
||||||
|
export TERMINAL="termite"
|
||||||
|
export BROWSER="chromium"
|
||||||
|
export _JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=on -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel"
|
||||||
|
export QT_QPA_PLATFORMTHEME=gtk2
|
||||||
|
export XDG_CURRENT_DESKTOP="GNOME" # Fixes xdg-open
|
||||||
|
|
||||||
|
# Merge system clipboards
|
||||||
|
if [ -n "$DISPLAY" ] && exists autocutsel && ! pidof autocutsel 1>/dev/null; then
|
||||||
|
autocutsel -fork
|
||||||
|
autocutsel -selection PRIMARY -fork
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Start the gnome-keyring if it's installed
|
||||||
|
if exists gnome-keyring-daemon; then
|
||||||
|
export $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh,gnupg)
|
||||||
|
fi
|
||||||
|
|
||||||
exec i3
|
exec i3
|
||||||
|
24
.config/gopass/config.yml
Normal file
24
.config/gopass/config.yml
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
root:
|
||||||
|
askformore: false
|
||||||
|
autoimport: true
|
||||||
|
autosync: true
|
||||||
|
cliptimeout: 45
|
||||||
|
noconfirm: false
|
||||||
|
nopager: false
|
||||||
|
path: /home/frebib/.local/share/pass
|
||||||
|
safecontent: false
|
||||||
|
usesymbols: false
|
||||||
|
nocolor: false
|
||||||
|
mounts:
|
||||||
|
spritsail:
|
||||||
|
askformore: false
|
||||||
|
autoimport: true
|
||||||
|
autosync: true
|
||||||
|
cliptimeout: 45
|
||||||
|
noconfirm: false
|
||||||
|
nopager: false
|
||||||
|
path: /home/frebib/.local/share/pass-spritsail
|
||||||
|
safecontent: false
|
||||||
|
usesymbols: false
|
||||||
|
nocolor: false
|
||||||
|
version: 1.6.10
|
43
.profile
43
.profile
@ -6,7 +6,8 @@ export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
|
|||||||
export XDG_CACHE_HOME="${XDG_CACHE_HOME:-$HOME/.cache}"
|
export XDG_CACHE_HOME="${XDG_CACHE_HOME:-$HOME/.cache}"
|
||||||
export XDG_DATA_HOME="${XDG_DATA_HOME:-$HOME/.local/share}"
|
export XDG_DATA_HOME="${XDG_DATA_HOME:-$HOME/.local/share}"
|
||||||
export XDG_LOCAL_HOME="$HOME/.local"
|
export XDG_LOCAL_HOME="$HOME/.local"
|
||||||
export XDG_CURRENT_DESKTOP="GNOME" # Fixes xdg-open
|
|
||||||
|
mkdir -p "$XDG_CONFIG_HOME" "$XDG_CACHE_HOME" "$XDG_DATA_HOME" "$XDG_LOCAL_HOME"
|
||||||
|
|
||||||
case "$(basename "$(readlink -f /proc/$$/exe)")" in
|
case "$(basename "$(readlink -f /proc/$$/exe)")" in
|
||||||
zsh) thisfile="$(readlink -f "${(%):-%N}")";;
|
zsh) thisfile="$(readlink -f "${(%):-%N}")";;
|
||||||
@ -16,25 +17,27 @@ esac
|
|||||||
export DOTFILES="$(dirname "${thisfile:-$XDG_CONFIG_HOME/dotfiles}")"
|
export DOTFILES="$(dirname "${thisfile:-$XDG_CONFIG_HOME/dotfiles}")"
|
||||||
export PATH="${PATH}:$DOTFILES/scripts"
|
export PATH="${PATH}:$DOTFILES/scripts"
|
||||||
|
|
||||||
# Allow Vim to load from ~/.config/vim
|
# Override paths for non-compliant programs
|
||||||
|
# https://wiki.archlinux.org/index.php/XDG_Base_Directory_support
|
||||||
|
# Vim
|
||||||
export VIMDIR="$XDG_CONFIG_HOME/vim"
|
export VIMDIR="$XDG_CONFIG_HOME/vim"
|
||||||
export VIMRC="$VIMDIR/vimrc"
|
export VIMRC="$VIMDIR/vimrc"
|
||||||
export VIMINIT=":so $VIMRC"
|
export VIMINIT=":so $VIMRC"
|
||||||
export EDITOR="vim"
|
export EDITOR="vim"
|
||||||
export VISUAL="vim"
|
export VISUAL="vim"
|
||||||
|
# ZSH
|
||||||
# Allow ZSH to load from ~/.config/zsh
|
|
||||||
export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
|
export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
|
||||||
|
# Gnupg
|
||||||
# Configure X11 config file paths
|
export GNUPGHOME="$XDG_CONFIG_HOME/gnupg"
|
||||||
|
# X11
|
||||||
export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority"
|
export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority"
|
||||||
export XINITRC="$XDG_CONFIG_HOME/X11/xinitrc"
|
export XINITRC="$XDG_CONFIG_HOME/X11/xinitrc"
|
||||||
|
# GTK2
|
||||||
export MANPAGER="less -+N"
|
export GTK2_RC_FILES="$XDG_CONFIG_HOME"/gtk-2.0/settings.ini
|
||||||
export TERMINAL="termite"
|
# Cargo/Rust
|
||||||
export BROWSER="chromium"
|
export CARGO_HOME="$XDG_DATA_HOME/cargo"
|
||||||
export _JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=on -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel"
|
# Pass
|
||||||
export QT_QPA_PLATFORMTHEME=gtk2
|
export PASSWORD_STORE_DIR="$XDG_DATA_HOME/pass"
|
||||||
|
|
||||||
# Go configuration
|
# Go configuration
|
||||||
export GOPATH="$XDG_DATA_HOME/go"
|
export GOPATH="$XDG_DATA_HOME/go"
|
||||||
@ -42,8 +45,13 @@ export PATH="$PATH:$GOPATH/bin"
|
|||||||
|
|
||||||
exists() { which $@ 0<&- 1>/dev/null 2>/dev/null; }
|
exists() { which $@ 0<&- 1>/dev/null 2>/dev/null; }
|
||||||
|
|
||||||
|
# Configure less and add colours
|
||||||
export LESS="-RI"
|
export LESS="-RI"
|
||||||
export PAGER="less $LESS"
|
export PAGER="less $LESS"
|
||||||
|
export MANPAGER="less -+N"
|
||||||
|
# Disable histfile
|
||||||
|
export LESSHISTFILE=-
|
||||||
|
|
||||||
if exists tput; then
|
if exists tput; then
|
||||||
export LESS_TERMCAP_mb=$(tput bold; tput setaf 2) # green
|
export LESS_TERMCAP_mb=$(tput bold; tput setaf 2) # green
|
||||||
export LESS_TERMCAP_md=$(tput bold; tput setaf 6) # cyan
|
export LESS_TERMCAP_md=$(tput bold; tput setaf 6) # cyan
|
||||||
@ -67,18 +75,9 @@ if [ -f "$XDG_CONFIG_HOME/secrets" ]; then
|
|||||||
set +o allexport
|
set +o allexport
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Merge system clipboards
|
# Start a dbus session daemon for programs that require it
|
||||||
if [ -n "$DISPLAY" ] && exists autocutsel && ! pidof autocutsel 1>/dev/null; then
|
|
||||||
autocutsel -fork
|
|
||||||
autocutsel -selection PRIMARY -fork
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "$DBUS_SESSION_BUS_ADDRESS" ] && exists dbus-launch; then
|
if [ -z "$DBUS_SESSION_BUS_ADDRESS" ] && exists dbus-launch; then
|
||||||
eval $(dbus-launch --sh-syntax --exit-with-session)
|
eval $(dbus-launch --sh-syntax --exit-with-session)
|
||||||
dbus-update-activation-environment --systemd DISPLAY
|
dbus-update-activation-environment --systemd DISPLAY
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Start the gnome-keyring if it's installed
|
|
||||||
if exists gnome-keyring-daemon; then
|
|
||||||
export $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh,gnupg)
|
|
||||||
fi
|
|
||||||
|
@ -23,27 +23,3 @@ echo cd `pwd`
|
|||||||
for file in $conffiles; do
|
for file in $conffiles; do
|
||||||
ln -sfv $confpath/.config/$file .
|
ln -sfv $confpath/.config/$file .
|
||||||
done
|
done
|
||||||
|
|
||||||
cd $HOME
|
|
||||||
mkdir -p .local/share/ && cd .local/share
|
|
||||||
echo cd `pwd`
|
|
||||||
ln -sfv $DOTFILES/fonts .
|
|
||||||
|
|
||||||
sudo -s << EOF
|
|
||||||
cd ~
|
|
||||||
echo -n "cd "
|
|
||||||
pwd
|
|
||||||
|
|
||||||
ln -sfv $DOTFILES .config/
|
|
||||||
ln -sfv $userhome/.zshrc .
|
|
||||||
ln -sfv $userhome/.profile .
|
|
||||||
ln -sfv $userhome/.zprofile .
|
|
||||||
ln -sfv $userhome/.vimrc .
|
|
||||||
ln -sfv $userhome/.vim/ .
|
|
||||||
ln -sfv $userhome/.gtkrc-2.0 .
|
|
||||||
|
|
||||||
mkdir -p .config && cd .config/
|
|
||||||
echo -n "cd "
|
|
||||||
pwd
|
|
||||||
ln -sfv $userhome/.config/gtk-3.0 .
|
|
||||||
EOF
|
|
||||||
|
Loading…
Reference in New Issue
Block a user