Make further adjustments

This commit is contained in:
David Holland 2019-10-20 17:47:29 +02:00
parent 3aaa130385
commit c7fa14d370
Signed by: DustVoice
GPG key ID: 47068995A14EDCA9
8 changed files with 81 additions and 10 deletions

3
.Xmodmap Normal file
View file

@ -0,0 +1,3 @@
remove Lock = Caps_Lock
keysym Caps_Lock = Escape
add Lock = Caps_Lock

View file

@ -116,14 +116,15 @@ if ! shopt -oq posix; then
fi
fi
gpgconf --kill gpg-agent
gpg-agent --daemon
export SSH_AUTH_SOCK=~/.gnupg/S.gpg-agent.ssh
export SSH_AUTH_SOCK="$(gpgconf --list-dir socketdir)/S.gpg-agent.ssh"
export GPG_TTY=$(tty)
export EDITOR=nvim
export TERMINAL=gnome-terminal
export PATH=$HOME/bin:$HOME/.local/bin:$PATH:~/JUCE
export JUCE_PATH=~/JUCE
export FRUT_PATH=~/FRUT
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH
export CXXFLAGS='-std=c++14'

1
.config/polybar/i3 Symbolic link
View file

@ -0,0 +1 @@
/home/dustvoice/Projects/dotfiles/.config/i3

1
.config/polybar/nitrogen Symbolic link
View file

@ -0,0 +1 @@
/home/dustvoice/Projects/dotfiles/.config/nitrogen

View file

@ -8,3 +8,5 @@
default = simple
[commit]
gpgsign = true
[gpg]
program = gpg2

1
.gnupg/sshcontrol Normal file
View file

@ -0,0 +1 @@
26AACF211BE8A6FB4383ACF626B1D4394551CB84

14
.xinitrc Normal file
View file

@ -0,0 +1,14 @@
#!/bin/sh
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
setxkbmap de nodeadkeys
[ -f ~/.Xmodmap ] && xmodmap ~/.Xmodmap
exec i3

62
.zshrc
View file

@ -3,18 +3,63 @@ HISTSIZE=1000
SAVEHIST=10000
setopt appendhistory
source .vim.zsh
bindkey -v
# export MANPATH="/usr/local/man:$MANPATH"
terminfo_down_sc=$terminfo[cud1]$terminfo[cud1]$terminfo[cuu1]$terminfo[cuu1]$terminfo[sc]$terminfo[cud1]$terminfo[cud1]
#terminfo_down_sc=$terminfo[cud1]$terminfo[cuu1]$terminfo[sc]$terminfo[cud1]
function insert-mode () { echo "%S%F{cyan} -- INSERT -- %f%s" }
function normal-mode () { echo "%S%F{green} -- NORMAL -- %f%s" }
precmd () {
PS1="%{$terminfo_down_sc$VI_MODE$terminfo[rc]%}%F{magenta}%n%f@%F{yellow}%m%f %F{green}%~%f %(!.#.$) "
}
function zle-keymap-select () {
VI_KEYMAP=$KEYMAP
case ${VI_KEYMAP} in
(vicmd) VI_MODE="$(normal-mode)" ;;
(main|viins) VI_MODE="$(insert-mode)" ;;
(*) VI_MODE="$(insert-mode)" ;;
esac
[[ -n "$VI_MODE_KEEP_CURSOR" ]] || if [[ "$VI_KEYMAP" == "vicmd" ]]; then
print -n '\e[1 q'
else
print -n '\e[5 q'
fi
PS1="%{$terminfo_down_sc$VI_MODE$terminfo[rc]%}%F{magenta}%n%f@%F{yellow}%m%f %B%F{cyan}%~%f%b %(!.#.$) "
zle reset-prompt
zle -R
}
function zle-line-init() {
zle -K viins
}
preexec () { print -rn -- $terminfo[el]; }
zle -N zle-line-init
zle -N zle-keymap-select
function _vi_mode_reset_cursor() {
[[ -n "$VI_MODE_KEEP_CURSOR" ]] || print -n '\e[1 q'
}
autoload -U add-zsh-hook
add-zsh-hook preexec _vi_mode_reset_cursor
export KEYTIMEOUT=1
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
# You may need to manually set your language environment
# export LANG=en_US.UTF-8
export EDITOR='nvim'
# Compilation flags
export ARCHFLAGS="-arch x86_64"
# Set personal aliases, overriding those provided by oh-my-zsh libs,
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
@ -26,11 +71,14 @@ export ARCHFLAGS="-arch x86_64"
export SSH_AUTH_SOCK="$(gpgconf --list-dir socketdir)/S.gpg-agent.ssh"
export GPG_TTY=$(tty)
gpg-connect-agent updatestartuptty /bye
export EDITOR=nvim
export TERMINAL=gnome-terminal
export PATH=$HOME/bin:$HOME/.local/bin:$PATH:~/JUCE
export JUCE_PATH=~/JUCE
export FRUT_PATH=~/FRUT
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH
export CXXFLAGS='-std=c++14'