mirror of
https://github.com/foo-dogsquared/dotfiles.git
synced 2025-02-07 12:19:02 +00:00
Update alacritty, xorg, and zsh config
This commit is contained in:
parent
ea2e5e8c91
commit
74e0a0b11e
@ -272,7 +272,7 @@ visual_bell:
|
|||||||
#
|
#
|
||||||
# Window opacity as a floating point number from `0.0` to `1.0`.
|
# Window opacity as a floating point number from `0.0` to `1.0`.
|
||||||
# The value `0.0` is completely transparent and `1.0` is opaque.
|
# The value `0.0` is completely transparent and `1.0` is opaque.
|
||||||
background_opacity: 1.0
|
background_opacity: 0.875
|
||||||
|
|
||||||
# Mouse bindings
|
# Mouse bindings
|
||||||
#
|
#
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
*foreground: #e5e3e3
|
*foreground: #e5e3e3
|
||||||
*background: #221e21
|
*background: #eeeeee
|
||||||
*cursor: #e5e3e3
|
*cursor: #e5e3e3
|
||||||
|
|
||||||
*color0: #0c080b
|
*color0: #0c080b
|
||||||
@ -26,6 +26,6 @@
|
|||||||
*color7: #d1cfcf
|
*color7: #d1cfcf
|
||||||
*color15: #eceaea
|
*color15: #eceaea
|
||||||
|
|
||||||
URxvt.font: xft:Iosevka:size=12
|
URxvt.font: xft:FiraCode Nerd Font:size=12
|
||||||
URxvt.secondaryWheel: 1
|
URxvt.secondaryWheel: 1
|
||||||
|
|
||||||
|
@ -1,4 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
# Loading the xprofile since display managers also needs the said file.
|
||||||
|
# This prevents duplicating needed code.
|
||||||
|
[ -f ~/.xprofile ] && . ~/.xprofile
|
||||||
|
|
||||||
userresources=$HOME/.Xresources
|
userresources=$HOME/.Xresources
|
||||||
usermodmap=$HOME/.Xmodmap
|
usermodmap=$HOME/.Xmodmap
|
||||||
@ -23,8 +27,4 @@ if [ -f "$usermodmap" ]; then
|
|||||||
xmodmap "$usermodmap"
|
xmodmap "$usermodmap"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
/usr/bin/lxsession &
|
exec bspwm
|
||||||
compton &
|
|
||||||
dunst &
|
|
||||||
udiskie &
|
|
||||||
exec i3
|
|
||||||
|
18
xorg/.xprofile
Normal file
18
xorg/.xprofile
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
# Activate the LXSessions for mounting external filesystems.
|
||||||
|
# This is pretty much only used for accessing external filesystems
|
||||||
|
# from Thunar as far as practical application is concerned.
|
||||||
|
/usr/bin/lxsession &
|
||||||
|
|
||||||
|
# Run the compositor and enable more advanced graphical effects.
|
||||||
|
picom &
|
||||||
|
|
||||||
|
# Activate the notification server.
|
||||||
|
dunst &
|
||||||
|
|
||||||
|
# Boot the mount filesystem helper.
|
||||||
|
udiskie &
|
||||||
|
|
||||||
|
# Run the hotkey daemon.
|
||||||
|
sxhkd &
|
23
zsh/.profile
Normal file
23
zsh/.profile
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
# This is where environmental variables are set.
|
||||||
|
# If you're looking for the aliases, keybindings, and prompts, they are in the equivalent `.rc` (i.e., `.zshrc`, `.bashrc`) file.
|
||||||
|
|
||||||
|
# For more information, see the following Unix Exchange thread (https://unix.stackexchange.com/q/71253).
|
||||||
|
# Or the Arch Linux Wiki on zsh (https://wiki.archlinux.org/index.php/Zsh#Startup/Shutdown_files).
|
||||||
|
# Also check the manual pages for `zshall` (i.e., `man zshall`).
|
||||||
|
|
||||||
|
# My custom variables (only applicable at user level)
|
||||||
|
export PICTURES_DIRECTORY=$HOME/Pictures
|
||||||
|
export DOCUMENTS_DIRECTORY=$HOME/Documents
|
||||||
|
export BIN_DIRECTORY=$HOME/bin
|
||||||
|
export VIDEO_DIRECTORY=$HOME/recordings
|
||||||
|
|
||||||
|
# If you come from bash you might have to change your $PATH.
|
||||||
|
export PATH="$BIN_DIRECTORY:/usr/local/bin:$HOME/.cargo/bin:$PATH"
|
||||||
|
|
||||||
|
# Common environmental variables.
|
||||||
|
# Or at least that'll be used by my setup.
|
||||||
|
export EDITOR="vim"
|
||||||
|
export TERMINAL="alacritty"
|
||||||
|
export BROWSER="firefox"
|
||||||
|
export READ="zathura"
|
||||||
|
export FILE="ranger"
|
@ -1,7 +1,6 @@
|
|||||||
#
|
if [[ -f $HOME/.profile ]]; then
|
||||||
# ~/.zprofile
|
source $HOME/.profile
|
||||||
#
|
fi
|
||||||
|
|
||||||
[[ -f ~/.bashrc ]] && . ~/.bashrc
|
# This is a program that `sudo -a` needs for prompting the user and password.
|
||||||
|
export SUDO_ASKPASS="$HOME/bin/askpass"
|
||||||
export PATH="$HOME/.cargo/bin:$PATH"
|
|
||||||
|
169
zsh/.zshrc
169
zsh/.zshrc
@ -1,111 +1,95 @@
|
|||||||
# My custom variables (only applicable at user level)
|
# This is the part that configures the interactive shell.
|
||||||
PICTURES_DIRECTORY=$HOME/Pictures
|
|
||||||
DOCUMENTS_DIRECTORY=$HOME/Documents
|
|
||||||
BIN_DIRECTORY=$HOME/bin
|
|
||||||
SCRIPTS_DIRECTORY=$HOME/.scripts/
|
|
||||||
|
|
||||||
# If you come from bash you might have to change your $PATH.
|
export function git_directory() {
|
||||||
export PATH=$BIN_DIRECTORY:$SCRIPTS_DIRECTORY:/usr/local/bin:$PATH
|
git_branch=$(git branch --show-current 2>/dev/null)
|
||||||
|
|
||||||
# Path to your oh-my-zsh installation.
|
return "$git_branch"
|
||||||
export ZSH="/home/foo-dogsquared/.oh-my-zsh"
|
}
|
||||||
|
|
||||||
# Set name of the theme to load --- if set to "random", it will
|
# Add pywal to the bootup of the interactive shell
|
||||||
# load a random theme each time oh-my-zsh is loaded, in which case,
|
cat ~/.cache/wal/sequences
|
||||||
# to know which specific one was loaded, run: echo $RANDOM_THEME
|
|
||||||
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
|
|
||||||
ZSH_THEME="robbyrussell"
|
|
||||||
|
|
||||||
# Set list of themes to pick from when loading at random
|
# The prompt.
|
||||||
# Setting this variable when ZSH_THEME=random will cause zsh to load
|
# This is based from Luke Smith's setup.
|
||||||
# a theme from this variable instead of looking in ~/.oh-my-zsh/themes/
|
# https://github.com/LukeSmithxyz/voidrice/blob/master/.config/zsh/.zshrc
|
||||||
# If set to an empty array, this variable will have no effect.
|
autoload -U colors && colors
|
||||||
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
|
PS1="%F%(0?.%{$fg[red](T%}.%{$fg[green](F%})) %B%{$fg[magenta]%}%~%{$reset_color%} $%f%b "
|
||||||
|
|
||||||
# Uncomment the following line to use case-sensitive completion.
|
# Configuring the command history.
|
||||||
# CASE_SENSITIVE="true"
|
HISTSIZE=1000
|
||||||
|
SAVEHIST=1000
|
||||||
|
HISTFILE=~/.cache/zsh/history
|
||||||
|
|
||||||
# Uncomment the following line to use hyphen-insensitive completion.
|
# Shell keybindings in Vim mode.
|
||||||
# Case-sensitive completion must be off. _ and - will be interchangeable.
|
# bindkey -v
|
||||||
# HYPHEN_INSENSITIVE="true"
|
|
||||||
|
|
||||||
# Uncomment the following line to disable bi-weekly auto-update checks.
|
# Keybindings.
|
||||||
# DISABLE_AUTO_UPDATE="true"
|
# create a zkbd compatible hash;
|
||||||
|
# to add other keys to this hash, see: man 5 terminfo
|
||||||
|
typeset -g -A key
|
||||||
|
|
||||||
# Uncomment the following line to automatically update without prompting.
|
key[Home]="${terminfo[khome]}"
|
||||||
# DISABLE_UPDATE_PROMPT="true"
|
key[End]="${terminfo[kend]}"
|
||||||
|
key[Insert]="${terminfo[kich1]}"
|
||||||
|
key[Backspace]="${terminfo[kbs]}"
|
||||||
|
key[Delete]="${terminfo[kdch1]}"
|
||||||
|
key[Up]="${terminfo[kcuu1]}"
|
||||||
|
key[Down]="${terminfo[kcud1]}"
|
||||||
|
key[Left]="${terminfo[kcub1]}"
|
||||||
|
key[Right]="${terminfo[kcuf1]}"
|
||||||
|
key[PageUp]="${terminfo[kpp]}"
|
||||||
|
key[PageDown]="${terminfo[knp]}"
|
||||||
|
key[ShiftTab]="${terminfo[kcbt]}"
|
||||||
|
|
||||||
# Uncomment the following line to change how often to auto-update (in days).
|
# setup key accordingly
|
||||||
# export UPDATE_ZSH_DAYS=13
|
[[ -n "${key[Home]}" ]] && bindkey -- "${key[Home]}" beginning-of-line
|
||||||
|
[[ -n "${key[End]}" ]] && bindkey -- "${key[End]}" end-of-line
|
||||||
|
[[ -n "${key[Insert]}" ]] && bindkey -- "${key[Insert]}" overwrite-mode
|
||||||
|
[[ -n "${key[Backspace]}" ]] && bindkey -- "${key[Backspace]}" backward-delete-char
|
||||||
|
[[ -n "${key[Delete]}" ]] && bindkey -- "${key[Delete]}" delete-char
|
||||||
|
[[ -n "${key[Up]}" ]] && bindkey -- "${key[Up]}" up-line-or-history
|
||||||
|
[[ -n "${key[Down]}" ]] && bindkey -- "${key[Down]}" down-line-or-history
|
||||||
|
[[ -n "${key[Left]}" ]] && bindkey -- "${key[Left]}" backward-char
|
||||||
|
[[ -n "${key[Right]}" ]] && bindkey -- "${key[Right]}" forward-char
|
||||||
|
[[ -n "${key[PageUp]}" ]] && bindkey -- "${key[PageUp]}" beginning-of-buffer-or-history
|
||||||
|
[[ -n "${key[PageDown]}" ]] && bindkey -- "${key[PageDown]}" end-of-buffer-or-history
|
||||||
|
[[ -n "${key[ShiftTab]}" ]] && bindkey -- "${key[ShiftTab]}" reverse-menu-complete
|
||||||
|
|
||||||
# Uncomment the following line if pasting URLs and other text is messed up.
|
# Finally, make sure the terminal is in application mode, when zle is
|
||||||
# DISABLE_MAGIC_FUNCTIONS=true
|
# active. Only then are the values from $terminfo valid.
|
||||||
|
if (( ${+terminfo[smkx]} && ${+terminfo[rmkx]} )); then
|
||||||
|
autoload -Uz add-zle-hook-widget
|
||||||
|
function zle_application_mode_start {
|
||||||
|
echoti smkx
|
||||||
|
}
|
||||||
|
function zle_application_mode_stop {
|
||||||
|
echoti rmkx
|
||||||
|
}
|
||||||
|
add-zle-hook-widget -Uz zle-line-init zle_application_mode_start
|
||||||
|
add-zle-hook-widget -Uz zle-line-finish zle_application_mode_stop
|
||||||
|
fi
|
||||||
|
|
||||||
# Uncomment the following line to disable colors in ls.
|
# History searching.
|
||||||
# DISABLE_LS_COLORS="true"
|
autoload -Uz up-line-or-beginning-search down-line-or-beginning-search
|
||||||
|
zle -N up-line-or-beginning-search
|
||||||
|
zle -N down-line-or-beginning-search
|
||||||
|
|
||||||
# Uncomment the following line to disable auto-setting terminal title.
|
[[ -n "${key[Up]}" ]] && bindkey -- "${key[Up]}" up-line-or-beginning-search
|
||||||
# DISABLE_AUTO_TITLE="true"
|
[[ -n "${key[Down]}" ]] && bindkey -- "${key[Down]}" down-line-or-beginning-search
|
||||||
|
|
||||||
# Uncomment the following line to enable command auto-correction.
|
# Enable prompts
|
||||||
# ENABLE_CORRECTION="true"
|
autoload -Uz promptinit
|
||||||
|
promptinit
|
||||||
|
|
||||||
# Uncomment the following line to display red dots whilst waiting for completion.
|
# Loading completion feature.
|
||||||
# COMPLETION_WAITING_DOTS="true"
|
autoload -Uz compinit
|
||||||
|
zstyle ':completion:*' menu select
|
||||||
|
zstyle ':completion::complete:*' gain-prvileges 1
|
||||||
|
compinit
|
||||||
|
|
||||||
# Uncomment the following line if you want to disable marking untracked files
|
setopt COMPLETE_ALIASES
|
||||||
# under VCS as dirty. This makes repository status check for large repositories
|
|
||||||
# much, much faster.
|
|
||||||
# DISABLE_UNTRACKED_FILES_DIRTY="true"
|
|
||||||
|
|
||||||
# Uncomment the following line if you want to change the command execution time
|
# This block is managed by conda.
|
||||||
# stamp shown in the history command output.
|
|
||||||
# You can set one of the optional three formats:
|
|
||||||
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
|
|
||||||
# or set a custom format using the strftime function format specifications,
|
|
||||||
# see 'man strftime' for details.
|
|
||||||
# HIST_STAMPS="mm/dd/yyyy"
|
|
||||||
|
|
||||||
# Would you like to use another custom folder than $ZSH/custom?
|
|
||||||
# ZSH_CUSTOM=/path/to/new-custom-folder
|
|
||||||
|
|
||||||
# Which plugins would you like to load?
|
|
||||||
# Standard plugins can be found in ~/.oh-my-zsh/plugins/*
|
|
||||||
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
|
|
||||||
# Example format: plugins=(rails git textmate ruby lighthouse)
|
|
||||||
# Add wisely, as too many plugins slow down shell startup.
|
|
||||||
plugins=(git)
|
|
||||||
|
|
||||||
source $ZSH/oh-my-zsh.sh
|
|
||||||
|
|
||||||
# User configuration
|
|
||||||
|
|
||||||
# export MANPATH="/usr/local/man:$MANPATH"
|
|
||||||
|
|
||||||
# You may need to manually set your language environment
|
|
||||||
# export LANG=en_US.UTF-8
|
|
||||||
|
|
||||||
# Preferred editor for local and remote sessions
|
|
||||||
# if [[ -n $SSH_CONNECTION ]]; then
|
|
||||||
# export EDITOR='vim'
|
|
||||||
# else
|
|
||||||
# export EDITOR='mvim'
|
|
||||||
# fi
|
|
||||||
|
|
||||||
# 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.
|
|
||||||
# For a full list of active aliases, run `alias`.
|
|
||||||
#
|
|
||||||
# Example aliases
|
|
||||||
# alias zshconfig="mate ~/.zshrc"
|
|
||||||
# alias ohmyzsh="mate ~/.oh-my-zsh"
|
|
||||||
|
|
||||||
# >>> conda initialize >>>
|
|
||||||
# !! Contents within this block are managed by 'conda init' !!
|
|
||||||
__conda_setup="$('/home/foo-dogsquared/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
|
__conda_setup="$('/home/foo-dogsquared/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
eval "$__conda_setup"
|
eval "$__conda_setup"
|
||||||
@ -117,4 +101,3 @@ else
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
unset __conda_setup
|
unset __conda_setup
|
||||||
# <<< conda initialize <<<
|
|
||||||
|
Loading…
Reference in New Issue
Block a user