Move X files to .config, add .zshrc

This commit is contained in:
Riyyi
2018-01-02 00:30:29 +01:00
parent 75a46e2791
commit ea7807fcc1
5 changed files with 106 additions and 31 deletions
+82
View File
@@ -0,0 +1,82 @@
! Colors
! special
*.foreground: #c5c8c6
*.background: #1d1f21
*.cursorColor: #c5c8c6
! black
*.color0: #282a2e
*.color8: #373b41
! red
*.color1: #a54242
*.color9: #cc6666
! green
*.color2: #8c9440
*.color10: #b5bd68
! yellow
*.color3: #de935f
*.color11: #f0c674
! blue
*.color4: #5f819d
*.color12: #81a2be
! magenta
*.color5: #85678f
*.color13: #b294bb
! cyan
*.color6: #5e8d87
*.color14: #8abeb7
! white
*.color7: #707880
*.color15: #c5c8c6
Xcursor.theme: capitaine-cursors
! Font config
*dpi: 192
Xft.dpi: 192
Xft.autohint: 0
Xft.lcdfilter: lcddefault
Xft.hintstyle: hintslight
Xft.hinting: 1
Xft.antialias: 1
Xft.rgba: rgb
! Terminal config
URxvt*font: xft:DejaVu Sans Mono:size=9:antialias=true
URxvt*boltfont: xft:DejaVu Sans Mono:bold:size=9:antialias=true
URxvt*letterSpace: -1
URxvt*scrollBar: false
URxvt*saveLines: 2000
! Extensions
URxvt.perl-ext-common: default,matcher,eval
URxvt.url-launcher: /usr/bin/xdg-open
URxvt.matcher.button: 1
URxvt.matcher.rend.0: Uline Bold fg5
! Copy / paste keybinds
URxvt.keysym.Shift-Control-C: eval:selection_to_clipboard
URxvt.keysym.Shift-Control-V: eval:paste_clipboard
! Disable Ctrl+Shift feature
URxvt.iso14755: false
URxvt.iso14755_52: false
! Rofi
! bg fg bgalt hlbg hlfg
!rofi.color-normal: #FFFFFF, #58637B, #F5F5F5, #5294E2, #F3F4F5
!rofi.color-active: #
!rofi.color-urgent: #
! bg border seperator
!rofi.color-window: #FFFFFF, #434A59, #434A59
rofi.color-normal: #404552, #D3DAE3, #3F4350, #5294E2, #D3DAE3
rofi.color-window: #404552, #2B2E39, #2B2E39
+13
View File
@@ -0,0 +1,13 @@
#!/bin/sh
xrdb "$XDG_CONFIG_HOME/xorg/Xresources"
# GTK application scaling
export GDK_SCALE=2
export GDK_DPI_SCALE=0.5
# Screensaver
xset s off
xset -dmps
exec i3
+92
View File
@@ -0,0 +1,92 @@
## Settings
# Directories
export XDG_CACHE_HOME="$HOME/.cache"
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share"
# X11
export XINITRC="$XDG_CONFIG_HOME/xorg/xinitrc"
export XAUTHORITY="$XDG_DATA_HOME/xorg/Xauthority"
## ZSH
autoload -Uz promptinit colors vcs_info compinit
# Prompt
promptinit
colors
setopt INTERACTIVE_COMMENTS
setopt PROMPT_SUBST
precmd() {
vcs_info
}
USR_HOST="$fg[cyan]%n$reset_color@$fg[cyan]%m$reset_color"
DIRECTORY="$fg[green]%~$reset_color"
ARROW="%(?::$fg[red])➤$reset_color"
PROMPT='╭─${USR_HOST} ${DIRECTORY} ${vcs_info_msg_0_}
╰─${ARROW} '
RPROMPT='%t'
# Git
zstyle ':vcs_info:*' enable git
zstyle ':vcs_info:*' check-for-changes true
zstyle ':vcs_info:*' stagedstr "$fg[green]A$reset_color"
zstyle ':vcs_info:*' unstagedstr "$fg[red]M$reset_color"
zstyle ':vcs_info:*' formats "$fg[cyan]($fg[red]%b$fg[cyan])$reset_color %c%u"
# Autocompletion
compinit -d $XDG_CACHE_HOME/zcompdump
zstyle ':completion::complete:*' use-cache 1
zstyle ':completion::complete:*' cache-path $XDG_CACHE_HOME/zcache
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|=*' 'l:|=* r:|=*'
zstyle ':completion:*' list-colors ''
zstyle ':completion:*' menu select
# History
setopt APPEND_HISTORY
setopt EXTENDED_HISTORY
setopt HIST_FIND_NO_DUPS
setopt HIST_IGNORE_ALL_DUPS
setopt HIST_IGNORE_DUPS
setopt HIST_REDUCE_BLANKS
setopt HIST_SAVE_NO_DUPS
HISTFILE=$ZDOTDIR/.zsh_history
HISTSIZE=10000
SAVEHIST=10000
## Aliases
alias la='ls -laGh --color'
alias ls='ls --color'
alias rm='rm -i'
alias zrc='nano $ZDOTDIR/.zshrc'
alias lzrc='source $ZDOTDIR/.zshrc'
alias install='sudo pacman -S'
alias remove='sudo pacman -Rns'
alias update='sudo pacman -Syy; sudo pacman -Syu'
alias clean='sudo pacman -Rns $(pacman -Qtdq)'
alias poweroff='systemctl poweroff'
alias reboot='systemctl reboot'
alias upl='platformio run --target=upload'
alias ser='platformio serialports monitor --baud 9600'
# Git
alias gl="git log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d %C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all"
# Laptop
alias offtouchpad='sudo rmmod i2c_hid'
alias ontouchpad='sudo modprobe i2c_hid'
alias homenetwork='sudo netctl start wlan0-merlin-router5GHz'
# Other
source $ZDOTDIR/.zshrc_extended
## Login
[[ $USER == "rick" ]] && [ "$(tty)" = "/dev/tty1" ] && exec xinit -- vt1 &> /dev/null