Cleaning house
This commit is contained in:
parent
17be0441c5
commit
af1f0bc926
110 changed files with 50 additions and 6585 deletions
25
.Xmodmap
25
.Xmodmap
|
@ -1,25 +0,0 @@
|
|||
keysym semicolon = semicolon colon odiaeresis Odiaeresis
|
||||
keysym apostrophe = apostrophe quotedbl adiaeresis Adiaeresis
|
||||
keysym bracketleft = bracketleft braceleft aring Aring
|
||||
|
||||
remove Lock = Caps_Lock
|
||||
!remove Control = Control_L
|
||||
!keysym Control_L = Caps_Lock
|
||||
keysym Caps_Lock = Control_L
|
||||
!add Lock = Caps_Lock
|
||||
add Control = Control_L
|
||||
|
||||
|
||||
remove Control = Control_R
|
||||
clear mod5
|
||||
clear mod1
|
||||
add mod1 = Alt_L
|
||||
add mod4 = Control_R
|
||||
add mod3 = Alt_R
|
||||
|
||||
keysym Alt_R = Mode_switch
|
||||
|
||||
! Pgup/Down on dell
|
||||
keycode 112 = Left
|
||||
keycode 117 = Right
|
||||
|
15
.agignore
15
.agignore
|
@ -1,15 +0,0 @@
|
|||
*~
|
||||
*.a
|
||||
*.class
|
||||
*.iml
|
||||
*.ipr
|
||||
*.iwr
|
||||
*.iws
|
||||
*.la
|
||||
*.min.css
|
||||
*.min.js
|
||||
*.o
|
||||
*.out
|
||||
*.pyc
|
||||
*.so
|
||||
*.swp
|
|
@ -1,24 +0,0 @@
|
|||
alias ag='ag --pager less'
|
||||
alias cdiff='colordiff -u'
|
||||
alias dotgit='git --work-tree $HOME --git-dir $HOME/.dot_git'
|
||||
alias hs='history -a; history -n'
|
||||
alias l='less -nS'
|
||||
alias lower="tr '[:upper:]' '[:lower:]'"
|
||||
alias pstree="pstree -Auh | less"
|
||||
alias tail='tail -n $LINES'
|
||||
alias timestamp='TZ=Z date "+%Y%m%dT%H%M%SZ"'
|
||||
alias tree='tree -C'
|
||||
alias upper="tr '[:lower:]' '[:upper:]'"
|
||||
alias vimdiff='vimdiff -R'
|
||||
alias vim=nvim
|
||||
alias v='nvim $(fzf-tmux)'
|
||||
|
||||
ls --group-directories-first >/dev/null 2>&1
|
||||
if [ $? -gt 0 ] ; then
|
||||
alias ls='ls --color=auto'
|
||||
else
|
||||
alias ls='ls --color=auto --group-directories-first'
|
||||
fi
|
||||
alias lsc='ls -C'
|
||||
|
||||
# vim: ft=sh
|
|
@ -1,24 +0,0 @@
|
|||
function _src {
|
||||
[ -f $1 ] && source $1
|
||||
}
|
||||
|
||||
# Bash
|
||||
_src /etc/bash_completion
|
||||
|
||||
# Bazel
|
||||
_src /usr/local/lib/bazel/bin/bazel-complete.bash
|
||||
|
||||
# Rust
|
||||
_src /usr/local/etc/bash_completion.d/cargo
|
||||
|
||||
# fzf
|
||||
_src /usr/share/fzf/completion.bash
|
||||
_src /usr/share/fzf/key-bindings.bash
|
||||
|
||||
# Kubernetes
|
||||
source <(kubectl completion bash)
|
||||
source <(kops completion bash)
|
||||
|
||||
# kops
|
||||
[ -f $HOME/bin/kops ] && source <($HOME/bin/kops completion bash)
|
||||
|
|
@ -1,85 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
mylib=$HOME/lib
|
||||
|
||||
export REALNAME="Daniel Lundin"
|
||||
export EMAIL="dln@eintr.org"
|
||||
|
||||
export SSH_AUTH_SOCK=$HOME/.ssh/ssh_auth_sock
|
||||
|
||||
## Shell stuff
|
||||
export PATH=$HOME/bin:$PATH:/bin:/sbin:/usr/sbin:/usr/local/sbin
|
||||
export LANG=en_US.UTF-8
|
||||
export HISTCONTROL=ignoreboth
|
||||
export HISTSIZE=3000
|
||||
export WORDCHARS='*?_[]~=&;!#$%^(){}'
|
||||
export EDITOR=nvim
|
||||
export VISUAL=nvim
|
||||
|
||||
# ssh
|
||||
export SSH_AUTH_SOCK=$HOME/.ssh/ssh_auth_sock
|
||||
|
||||
## fzf
|
||||
export FZF_DEFAULT_COMMAND='ag --hidden --ignore .git -l -g ""'
|
||||
|
||||
## Parquet
|
||||
export PATH=$mylib/parquet-tools:$PATH
|
||||
|
||||
## Packer
|
||||
export PATH=$mylib/packer:$PATH
|
||||
|
||||
## Terraform
|
||||
export PATH=$mylib/terraform:$PATH
|
||||
|
||||
## Pager
|
||||
export LESS='-BNJFXRgiM -h512 -x2'
|
||||
export PAGER='less -nL'
|
||||
export ACK_PAGER='less -nLR'
|
||||
|
||||
## fzf
|
||||
export FZF_TMUX=1
|
||||
export FZF_COMPLETION_TRIGGER="."
|
||||
|
||||
## Git
|
||||
export GIT_AUTHOR_NAME=$REALNAME
|
||||
export GIT_COMMITTER_NAME=$GIT_AUTHOR_NAME
|
||||
export GIT_PAGER='/usr/share/git/diff-highlight/diff-highlight | less -+F -x8 -nBJXRgiM -h512'
|
||||
|
||||
## Java
|
||||
export IDEA_VM_OPTIONS="$HOME/Dropbox/dotfiles/idea.vmoptions"
|
||||
export IDEA_JDK=$HOME/lib/jdk-8u5-tuxjdk-b08
|
||||
|
||||
## CMake
|
||||
export CTEST_OUTPUT_ON_FAILURE=1
|
||||
|
||||
## GTest
|
||||
export GTEST_COLOR=1
|
||||
|
||||
## GCC
|
||||
export CGCC_FORCE_COLOR=1
|
||||
|
||||
## Go
|
||||
export GOPATH=$HOME
|
||||
|
||||
## Rust
|
||||
export PATH=$HOME/.vim/bundle/racer/target/release:$PATH
|
||||
export RUST_SRC_PATH=$HOME/src/github.com/rust-lang/rust/src
|
||||
|
||||
## grep
|
||||
export GREP_COLOR='38;5;232;48;5;214;1'
|
||||
|
||||
export TERM=st-256color
|
||||
|
||||
if [ "$TERM" != "dumb" ]; then
|
||||
if [ -x /usr/bin/pygmentize ]; then
|
||||
export LESSOPEN="|/usr/bin/pygmentize -f terminal256 -O style=tango %s"
|
||||
elif [ -x /usr/local/bin/lesspipe.sh ]; then
|
||||
export LESSOPEN="|/usr/local/bin/lesspipe.sh %s"
|
||||
elif [ -x /usr/bin/lesspipe.sh ]; then
|
||||
export LESSOPEN="|/usr/local/bin/lesspipe.sh %s"
|
||||
fi
|
||||
fi
|
||||
|
||||
# local exports
|
||||
[ -f $HOME/.bash_exports_local ] && source <($HOME/.bash_exports_local)
|
||||
|
73
.bash_prompt
73
.bash_prompt
|
@ -1,73 +0,0 @@
|
|||
#!/bin/sh
|
||||
# Fancy prompt
|
||||
|
||||
export GIT_PS1_SHOWDIRTYSTATE=1
|
||||
unset GIT_PS1_SHOWUPSTREAM
|
||||
export GIT_PS1_SHOWSTASHSTATE=1
|
||||
|
||||
if [ -f "$HOME/.bash_completion" ] ; then
|
||||
source ~/.bash_completion
|
||||
fi
|
||||
|
||||
if [ -f "/usr/share/git/completion/git-completion.bash" ] ; then
|
||||
source /usr/share/git/completion/git-completion.bash
|
||||
elif [ -f "/etc/bash_completion.d/git" ] ; then
|
||||
source /etc/bash_completion.d/git
|
||||
fi
|
||||
|
||||
if [ -f "/usr/share/git/git-prompt.sh" ] ; then
|
||||
source /usr/share/git/git-prompt.sh
|
||||
elif [ -f "/usr/share/git/completion/git-prompt.sh" ] ; then
|
||||
source /usr/share/git/completion/git-prompt.sh
|
||||
elif [ -f "/etc/bash_completion.d/git-prompt" ] ; then
|
||||
source /etc/bash_completion.d/git-prompt
|
||||
fi
|
||||
|
||||
function short_pwd {
|
||||
echo $PWD | sed "s:${HOME}:~:" | sed "s:/\(.\)[^/]*:/\1:g" | sed "s:/[^/]*$:/$(basename $PWD):"
|
||||
}
|
||||
|
||||
function prompt_command {
|
||||
banner="$HOSTNAME"
|
||||
let prompt_x=$(tput cols)-$(expr length ${banner})-3
|
||||
tput sc
|
||||
tput cup 0 ${prompt_x}
|
||||
if [ "$USER" = "root" ]; then
|
||||
echo -ne " \e[38;5;228;48;5;160m ${banner} \e[0m"
|
||||
else
|
||||
echo -ne " \e[38;5;195;48;5;33m ${banner} \e[0m"
|
||||
fi
|
||||
tput rc
|
||||
#tmux rename-window `basename $PWD`
|
||||
tmux rename-window $(short_pwd) 2>/dev/null
|
||||
eval $(tmux switch-client \; show-environment -s 2>/dev/null)
|
||||
}
|
||||
|
||||
export PROMPT_COMMAND=prompt_command
|
||||
|
||||
#PS1_EXTRA=";38;5;22"
|
||||
PS1_EXTRA=""
|
||||
PS1_TITLE="\[\e]2;\w\a\e[0m\]"
|
||||
if [ "$SSH_TTY" ]; then
|
||||
HOST_NAME=$(hostname -f | sed 's/.tvoli.com//')
|
||||
PS1_PREFIX="\u@${HOST_NAME}: "
|
||||
PS1_TITLE="\[\e]2;\u@\h : \w\a\e[0m\]"
|
||||
fi
|
||||
# Root has red inverse prompt
|
||||
PS1_ROOT="\[\e[38;5;228;48;5;196m\] ### ROOT ### "
|
||||
|
||||
case "$TERM" in
|
||||
putty|putty*|xterm|xterm*|screen|screen.xterm|screen-bce|rxvt|rxvt-unicode|st|st-*)
|
||||
PS1="\[\e[1${PS1_EXTRA}m\]\$(__git_ps1 2>/dev/null)\$([ "\$USER" = "root" ] && echo -e \"$PS1_ROOT\") ${PS1_PREFIX}\W\\$\[\e[0m\]${PS1_TITLE} "
|
||||
;;
|
||||
*)
|
||||
PS1="${PS1_PREFIX}\w\\$ "
|
||||
;;
|
||||
esac
|
||||
|
||||
export PS1
|
||||
|
||||
#export PROMPT_COMMAND='echo -ne "\033]0;${PWD}\007"'
|
||||
|
||||
# Automatically update DISPLAY, ssh agent
|
||||
tmux_env() { $(tmux show-env 2>/dev/null | grep '^SSH_AUTH_SOCK\|DISPLAY' | xargs echo export); }
|
116
.bashrc
116
.bashrc
|
@ -1,116 +0,0 @@
|
|||
export DOTFILES="$(cd "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")" && pwd)"
|
||||
export PATH=$DOTFILES/bin:$PATH
|
||||
|
||||
|
||||
# make less more friendly for non-text input files, see lesspipe(1)
|
||||
[ -x /usr/bin/lesspipe ] && eval "$(lesspipe)"
|
||||
export LESSCLOSE=''
|
||||
export LESSOPEN="|/usr/local/bin/lesspipe.sh %s"
|
||||
#export LESSOPEN="|less-pygmentize %s"
|
||||
|
||||
export LESS_TERMCAP_mb=$'\E[01;34PS1_PREFIX="\u@\h:"m'
|
||||
export LESS_TERMCAP_md=$'\E[01;34m'
|
||||
export LESS_TERMCAP_me=$'\E[0m'
|
||||
export LESS_TERMCAP_se=$'\E[0m'
|
||||
export LESS_TERMCAP_so=$'\E[01;44;33m'
|
||||
export LESS_TERMCAP_ue=$'\E[0m'
|
||||
export LESS_TERMCAP_us=$'\E[01;32m'
|
||||
|
||||
# git
|
||||
export GIT_PS1_SHOWDIRTYSTATE=1
|
||||
if [ -f "$HOME/.bash_completion_git" ] ; then
|
||||
source ~/.bash_completion_git
|
||||
fi
|
||||
|
||||
unset bash bminor bmajor
|
||||
|
||||
# Bash settings
|
||||
export IGNOREEOF=1
|
||||
# bind '"\t":menu-complete' # cycle completion
|
||||
# set -o ignoreeof # don't exit on C-d
|
||||
shopt -s cdspell # spellcheck cd
|
||||
|
||||
shopt -s histappend # Save history
|
||||
PROMPT_COMMAND='history -a ; ${PROMPT_COMMAND}'
|
||||
|
||||
# check the window size after each command and, if necessary,
|
||||
# update the values of LINES and COLUMNS.
|
||||
shopt -s checkwinsize
|
||||
|
||||
|
||||
# acd_func 1.0.5, 10-nov-2004
|
||||
# petar marinov, http:/geocities.com/h2428, this is public domain
|
||||
|
||||
cd_func ()
|
||||
{
|
||||
local x2 the_new_dir adir index
|
||||
local -i cnt
|
||||
|
||||
if [[ $1 == "--" ]]; then
|
||||
dirs -v
|
||||
return 0
|
||||
fi
|
||||
|
||||
the_new_dir=$1
|
||||
[[ -z $1 ]] && the_new_dir=$HOME
|
||||
|
||||
if [[ ${the_new_dir:0:1} == '-' ]]; then
|
||||
# Extract dir N from dirs
|
||||
index=${the_new_dir:1}
|
||||
[[ -z $index ]] && index=1
|
||||
adir=$(dirs +$index)
|
||||
[[ -z $adir ]] && return 1
|
||||
the_new_dir=$adir
|
||||
fi
|
||||
|
||||
# '~' has to be substituted by ${HOME}
|
||||
[[ ${the_new_dir:0:1} == '~' ]] && the_new_dir="${HOME}${the_new_dir:1}"
|
||||
|
||||
# Now change to the new dir and add to the top of the stack
|
||||
pushd "${the_new_dir}" > /dev/null
|
||||
[[ $? -ne 0 ]] && return 1
|
||||
the_new_dir=$(pwd)
|
||||
|
||||
# Trim down everything beyond 11th entry
|
||||
popd -n +11 2>/dev/null 1>/dev/null
|
||||
|
||||
# Remove any other occurence of this dir, skipping the top of the stack
|
||||
for ((cnt=1; cnt <= 10; cnt++)); do
|
||||
x2=$(dirs +${cnt} 2>/dev/null)
|
||||
[[ $? -ne 0 ]] && return 0
|
||||
[[ ${x2:0:1} == '~' ]] && x2="${HOME}${x2:1}"
|
||||
if [[ "${x2}" == "${the_new_dir}" ]]; then
|
||||
popd -n +$cnt 2>/dev/null 1>/dev/null
|
||||
cnt=cnt-1
|
||||
fi
|
||||
done
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
alias cd=cd_func
|
||||
|
||||
umask 2
|
||||
stty speed 115200 >> /dev/null 2>&1
|
||||
|
||||
# Terminal setup
|
||||
tput smkx
|
||||
|
||||
|
||||
# OpenPGP applet support for YubiKey NEO
|
||||
#if [ ! -f /tmp/gpg-agent.env ]; then
|
||||
# killall gpg-agent;
|
||||
# eval $(gpg-agent --daemon --enable-ssh-support > /tmp/gpg-agent.env);
|
||||
#fi
|
||||
#. /tmp/gpg-agent.env
|
||||
|
||||
# Check for interactive shell.
|
||||
if [ -n "$PS1" ]; then
|
||||
source $HOME/.bash_completion
|
||||
fi
|
||||
|
||||
source $HOME/.bash_aliases
|
||||
source $HOME/.bash_exports
|
||||
source $HOME/.bash_prompt
|
||||
|
||||
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
|
|
@ -1,5 +0,0 @@
|
|||
auto_close=2
|
||||
ssh_args=-o StrictHostKeyChecking=no -o ForwardAgent=yes
|
||||
terminal=xterm
|
||||
terminal_args=-fa "xft:Pragmata Pro Mono:size=7"
|
||||
terminal_bg_style=dark
|
|
@ -1,498 +0,0 @@
|
|||
# Configuration for Alacritty, the GPU enhanced terminal emulator.
|
||||
|
||||
# Any items in the `env` entry below will be added as
|
||||
# environment variables. Some entries may override variables
|
||||
# set by alacritty itself.
|
||||
#env:
|
||||
# TERM variable
|
||||
#
|
||||
# This value is used to set the `$TERM` environment variable for
|
||||
# each instance of Alacritty. If it is not present, alacritty will
|
||||
# check the local terminfo database and use 'alacritty' if it is
|
||||
# available, otherwise 'xterm-256color' is used.
|
||||
#TERM: xterm-256color
|
||||
|
||||
window:
|
||||
# Window dimensions (changes require restart)
|
||||
#
|
||||
# Specified in number of columns/lines, not pixels.
|
||||
# If both are `0`, this setting is ignored.
|
||||
dimensions:
|
||||
columns: 119
|
||||
lines: 41
|
||||
|
||||
# Window padding (changes require restart)
|
||||
#
|
||||
# Blank space added around the window in pixels. This padding is scaled
|
||||
# by DPI and the specified value is always added at both opposing sides.
|
||||
padding:
|
||||
x: 10
|
||||
y: 10
|
||||
|
||||
# Spread additional padding evenly around the terminal content.
|
||||
dynamic_padding: true
|
||||
|
||||
# Window decorations
|
||||
#
|
||||
# Values for `decorations`:
|
||||
# - full: Borders and title bar
|
||||
# - none: Neither borders nor title bar
|
||||
decorations: none
|
||||
|
||||
scrolling:
|
||||
# Maximum number of lines in the scrollback buffer.
|
||||
# Specifying '0' will disable scrolling.
|
||||
history: 10000
|
||||
|
||||
# Number of lines the viewport will move for every line scrolled when
|
||||
# scrollback is enabled (history > 0).
|
||||
multiplier: 3
|
||||
|
||||
# Font configuration (changes require restart)
|
||||
#
|
||||
# Important font attributes like antialiasing, subpixel aa, and hinting can be
|
||||
# controlled through fontconfig. Specifically, the following attributes should
|
||||
# have an effect:
|
||||
# - hintstyle
|
||||
# - antialias
|
||||
# - lcdfilter
|
||||
# - rgba
|
||||
#
|
||||
# For instance, if you wish to disable subpixel antialiasing, you might set the
|
||||
# rgba property to `none`. If you wish to completely disable antialiasing, you
|
||||
# can set antialias to `false`.
|
||||
#
|
||||
# Please see these resources for more information on how to use fontconfig:
|
||||
# - https://wiki.archlinux.org/index.php/font_configuration#Fontconfig_configuration
|
||||
# - file:///usr/share/doc/fontconfig/fontconfig-user.html
|
||||
font:
|
||||
size: 13.0
|
||||
normal:
|
||||
family: IBM Plex Mono
|
||||
# family: Source Code Pro
|
||||
style: Regular
|
||||
bold:
|
||||
family: IBM Plex Mono
|
||||
# family: Source Code Pro
|
||||
style: SemiBold
|
||||
italic:
|
||||
family: IBM Plex Mono
|
||||
# family: Source Code Pro
|
||||
style: Italic
|
||||
|
||||
# Offset is the extra space around each character. `offset.y` can be thought of
|
||||
# as modifying the line spacing, and `offset.x` as modifying the letter spacing.
|
||||
offset:
|
||||
x: 0
|
||||
y: 3
|
||||
|
||||
# Glyph offset determines the locations of the glyphs within their cells with
|
||||
# the default being at the bottom. Increasing `x` moves the glyph to the right,
|
||||
# increasing `y` moves the glyph upwards.
|
||||
glyph_offset:
|
||||
x: 0
|
||||
y: 1
|
||||
|
||||
# If `true`, bold text is drawn using the bright color variants.
|
||||
draw_bold_text_with_bright_colors: false
|
||||
|
||||
colors:
|
||||
# Default colors
|
||||
primary:
|
||||
#background: '0x000000'
|
||||
background: '0x121212'
|
||||
#background: '0x202020'
|
||||
foreground: '0xa1b0b8'
|
||||
#foreground: '0xb8b0a1'
|
||||
|
||||
# Normal colors
|
||||
normal:
|
||||
black: '0x252525'
|
||||
red: '0xff443e'
|
||||
green: '0xc3d82c'
|
||||
yellow: '0xffc135'
|
||||
blue: '0x42a5f5'
|
||||
magenta: '0xd81b60'
|
||||
cyan: '0x00acc1'
|
||||
white: '0xf5f5f5'
|
||||
|
||||
# Bright colors
|
||||
bright:
|
||||
black: '0x252525'
|
||||
red: '0xff443e'
|
||||
green: '0xc3d82c'
|
||||
yellow: '0xffc135'
|
||||
blue: '0x42a5f5'
|
||||
magenta: '0xd81b60'
|
||||
cyan: '0x00acc1'
|
||||
white: '0xf5f5f5'
|
||||
|
||||
# Cursor colors
|
||||
#
|
||||
# Colors which should be used to draw the terminal cursor.
|
||||
#
|
||||
# Allowed values are CellForeground and CellBackground, which reference the
|
||||
# affected cell, or hexadecimal colors like #ff00ff.
|
||||
cursor:
|
||||
cursor: '0xaa0000'
|
||||
# text: CellBackground
|
||||
|
||||
# Vi mode cursor colors
|
||||
#
|
||||
# Colors for the cursor when the vi mode is active.
|
||||
#
|
||||
# Allowed values are CellForeground and CellBackground, which reference the
|
||||
# affected cell, or hexadecimal colors like #ff00ff.
|
||||
#vi_mode_cursor:
|
||||
# text: CellBackground
|
||||
# cursor: CellForeground
|
||||
|
||||
# Selection colors
|
||||
#
|
||||
# Colors which should be used to draw the selection area.
|
||||
#
|
||||
# Allowed values are CellForeground and CellBackground, which reference the
|
||||
# affected cell, or hexadecimal colors like #ff00ff.
|
||||
#selection:
|
||||
# text: CellBackground
|
||||
# background: CellForeground
|
||||
|
||||
# Search colors
|
||||
#
|
||||
# Colors used for the search bar and match highlighting.
|
||||
#
|
||||
# Allowed values are CellForeground and CellBackground, which reference the
|
||||
# affected cell, or hexadecimal colors like #ff00ff.
|
||||
#search:
|
||||
# matches:
|
||||
# foreground: '#000000'
|
||||
# background: '#ffffff'
|
||||
#
|
||||
# bar:
|
||||
# background: CellForeground
|
||||
# foreground: CellBackground
|
||||
|
||||
|
||||
# Bell
|
||||
#
|
||||
# The bell is rung every time the BEL control character is received.
|
||||
#bell:
|
||||
# Visual Bell Animation
|
||||
#
|
||||
# Animation effect for flashing the screen when the visual bell is rung.
|
||||
#
|
||||
# Values for `animation`:
|
||||
# - Ease
|
||||
# - EaseOut
|
||||
# - EaseOutSine
|
||||
# - EaseOutQuad
|
||||
# - EaseOutCubic
|
||||
# - EaseOutQuart
|
||||
# - EaseOutQuint
|
||||
# - EaseOutExpo
|
||||
# - EaseOutCirc
|
||||
# - Linear
|
||||
#animation: EaseOutExpo
|
||||
|
||||
# Duration of the visual bell flash. A `duration` of `0` will disable the
|
||||
# visual bell animation.
|
||||
#duration: 0
|
||||
|
||||
# Visual bell animation color.
|
||||
#color: '#ffffff'
|
||||
|
||||
# Bell Command
|
||||
#
|
||||
# This program is executed whenever the bell is rung.
|
||||
#
|
||||
# When set to `command: None`, no command will be executed.
|
||||
#
|
||||
# Example:
|
||||
# command:
|
||||
# program: notify-send
|
||||
# args: ["Hello, World!"]
|
||||
#
|
||||
#command: None
|
||||
|
||||
# Background opacity
|
||||
#
|
||||
# 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.
|
||||
background_opacity: 1.0
|
||||
|
||||
# Mouse bindings
|
||||
#
|
||||
# Available fields:
|
||||
# - mouse
|
||||
# - action
|
||||
# - mods (optional)
|
||||
#
|
||||
# Values for `mouse`:
|
||||
# - Middle
|
||||
# - Left
|
||||
# - Right
|
||||
# - Numeric identifier such as `5`
|
||||
#
|
||||
# All available `mods` and `action` values are documented in the key binding
|
||||
# section.
|
||||
mouse_bindings:
|
||||
- { mouse: Middle, action: PasteSelection }
|
||||
|
||||
mouse:
|
||||
# Click settings
|
||||
#
|
||||
# The `double_click` and `triple_click` settings control the time
|
||||
# alacritty should wait for accepting multiple clicks as one double
|
||||
# or triple click.
|
||||
double_click: { threshold: 300 }
|
||||
triple_click: { threshold: 300 }
|
||||
|
||||
# If this is `true`, the cursor is temporarily hidden when typing.
|
||||
hide_when_typing: true
|
||||
|
||||
url:
|
||||
# URL launcher
|
||||
#
|
||||
# This program is executed when clicking on a text which is recognized as a URL.
|
||||
# The URL is always added to the command as the last parameter.
|
||||
launcher: xdg-open
|
||||
|
||||
# URL modifiers
|
||||
#
|
||||
# These are the modifiers that need to be held down for opening URLs when clicking
|
||||
# on them. The available modifiers are documented in the key binding section.
|
||||
#modifiers: Control|Shift
|
||||
|
||||
selection:
|
||||
semantic_escape_chars: ",│`|:\"' ()[]{}<>\t"
|
||||
|
||||
# When set to `true`, selected text will be copied to both the primary and
|
||||
# the selection clipboard. Otherwise, it will only be copied to the selection
|
||||
# clipboard.
|
||||
save_to_clipboard: false
|
||||
|
||||
cursor:
|
||||
# Cursor style
|
||||
#
|
||||
# Values for 'style':
|
||||
# - ▇ Block
|
||||
# - _ Underline
|
||||
# - | Beam
|
||||
style: Block
|
||||
|
||||
# Vi mode cursor style
|
||||
#
|
||||
# If the vi mode cursor style is `None` or not specified, it will fall back to
|
||||
# the style of the active value of the normal cursor.
|
||||
#
|
||||
# See `cursor.style` for available options.
|
||||
#vi_mode_style: None
|
||||
|
||||
# If this is `true`, the cursor will be rendered as a hollow box when the
|
||||
# window is not focused.
|
||||
unfocused_hollow: true
|
||||
|
||||
# Thickness of the cursor relative to the cell width as floating point number
|
||||
# from `0.0` to `1.0`.
|
||||
thickness: 0.55
|
||||
|
||||
# Live config reload (changes require restart)
|
||||
live_config_reload: true
|
||||
|
||||
# Shell
|
||||
#
|
||||
# You can set `shell.program` to the path of your favorite shell, e.g. `/bin/fish`.
|
||||
# Entries in `shell.args` are passed unmodified as arguments to the shell.
|
||||
#shell:
|
||||
# program: /bin/bash
|
||||
# args:
|
||||
# - --login
|
||||
|
||||
# Key bindings
|
||||
#
|
||||
# Key bindings are specified as a list of objects. Each binding will specify
|
||||
# a key and modifiers required to trigger it, terminal modes where the binding
|
||||
# is applicable, and what should be done when the key binding fires. It can
|
||||
# either send a byte sequnce to the running application (`chars`), execute
|
||||
# a predefined action (`action`) or fork and execute a specified command plus
|
||||
# arguments (`command`).
|
||||
#
|
||||
# Example:
|
||||
# `- { key: V, mods: Command, action: Paste }`
|
||||
#
|
||||
# Available fields:
|
||||
# - key
|
||||
# - mods (optional)
|
||||
# - chars | action | command (exactly one required)
|
||||
# - mode (optional)
|
||||
#
|
||||
# Values for `key`:
|
||||
# - `A` -> `Z`
|
||||
# - `F1` -> `F12`
|
||||
# - `Key1` -> `Key0`
|
||||
#
|
||||
# A full list with available key codes can be found here:
|
||||
# https://docs.rs/glutin/*/glutin/enum.VirtualKeyCode.html#variants
|
||||
#
|
||||
# Instead of using the name of the keys, the `key` field also supports using
|
||||
# the scancode of the desired key. Scancodes have to be specified as a
|
||||
# decimal number.
|
||||
# This command will allow you to display the hex scancodes for certain keys:
|
||||
# `showkey --scancodes`
|
||||
#
|
||||
# Values for `mods`:
|
||||
# - Command
|
||||
# - Control
|
||||
# - Shift
|
||||
# - Alt
|
||||
#
|
||||
# Multiple `mods` can be combined using `|` like this: `mods: Control|Shift`.
|
||||
# Whitespace and capitalization is relevant and must match the example.
|
||||
#
|
||||
# Values for `chars`:
|
||||
# The `chars` field writes the specified string to the terminal. This makes
|
||||
# it possible to pass escape sequences.
|
||||
# To find escape codes for bindings like `PageUp` ("\x1b[5~"), you can run
|
||||
# the command `showkey -a` outside of tmux.
|
||||
# Note that applications use terminfo to map escape sequences back to
|
||||
# keys. It is therefore required to update the terminfo when
|
||||
# changing an escape sequence.
|
||||
#
|
||||
# Values for `action`:
|
||||
# - Paste
|
||||
# - PasteSelection
|
||||
# - Copy
|
||||
# - IncreaseFontSize
|
||||
# - DecreaseFontSize
|
||||
# - ResetFontSize
|
||||
# - ScrollPageUp
|
||||
# - ScrollPageDown
|
||||
# - ScrollToTop
|
||||
# - ScrollToBottom
|
||||
# - ClearHistory
|
||||
# - Hide
|
||||
# - Quit
|
||||
# - ClearLogNotice
|
||||
#
|
||||
# Values for `command`:
|
||||
# The `command` field must be a map containing a `program` string and
|
||||
# an `args` array of command line parameter strings.
|
||||
#
|
||||
# Example:
|
||||
# `command: { program: "alacritty", args: ["-e", "vttest"] }`
|
||||
#
|
||||
# Values for `mode`:
|
||||
# - ~AppCursor
|
||||
# - AppCursor
|
||||
# - ~AppKeypad
|
||||
# - AppKeypad
|
||||
key_bindings:
|
||||
- { key: V, mods: Alt|Shift, action: Paste }
|
||||
- { key: C, mods: Alt|Shift, action: Copy }
|
||||
- { key: V, mods: Control|Shift, action: Paste }
|
||||
- { key: C, mods: Control|Shift, action: Copy }
|
||||
- { key: Paste, action: Paste }
|
||||
- { key: Copy, action: Copy }
|
||||
- { key: Q, mods: Command, action: Quit }
|
||||
- { key: W, mods: Command, action: Quit }
|
||||
- { key: Insert, mods: Shift, action: PasteSelection }
|
||||
- { key: Key0, mods: Control, action: ResetFontSize }
|
||||
- { key: Equals, mods: Control, action: IncreaseFontSize }
|
||||
- { key: Subtract, mods: Control, action: DecreaseFontSize }
|
||||
- { key: L, mods: Control, action: ClearLogNotice }
|
||||
- { key: L, mods: Control, chars: "\x0c" }
|
||||
- { key: Home, chars: "\x1bOH", mode: AppCursor }
|
||||
- { key: Home, chars: "\x1b[H", mode: ~AppCursor }
|
||||
- { key: End, chars: "\x1bOF", mode: AppCursor }
|
||||
- { key: End, chars: "\x1b[F", mode: ~AppCursor }
|
||||
- { key: PageUp, mods: Shift, chars: "\x1b[5;2~" }
|
||||
- { key: PageUp, mods: Control, chars: "\x1b[5;5~" }
|
||||
- { key: PageUp, chars: "\x1b[5~" }
|
||||
- { key: PageDown, mods: Shift, chars: "\x1b[6;2~" }
|
||||
- { key: PageDown, mods: Control, chars: "\x1b[6;5~" }
|
||||
- { key: PageDown, chars: "\x1b[6~" }
|
||||
- { key: Tab, mods: Shift, chars: "\x1b[Z" }
|
||||
- { key: Back, chars: "\x7f" }
|
||||
- { key: Back, mods: Alt, chars: "\x1b\x7f" }
|
||||
- { key: Insert, chars: "\x1b[2~" }
|
||||
- { key: Delete, chars: "\x1b[3~" }
|
||||
- { key: Left, mods: Shift, chars: "\x1b[1;2D" }
|
||||
- { key: Left, mods: Control, chars: "\x1b[1;5D" }
|
||||
- { key: Left, mods: Alt, chars: "\x1b[1;3D" }
|
||||
- { key: Left, chars: "\x1b[D", mode: ~AppCursor }
|
||||
- { key: Left, chars: "\x1bOD", mode: AppCursor }
|
||||
- { key: Right, mods: Shift, chars: "\x1b[1;2C" }
|
||||
- { key: Right, mods: Control, chars: "\x1b[1;5C" }
|
||||
- { key: Right, mods: Alt, chars: "\x1b[1;3C" }
|
||||
- { key: Right, chars: "\x1b[C", mode: ~AppCursor }
|
||||
- { key: Right, chars: "\x1bOC", mode: AppCursor }
|
||||
- { key: Up, mods: Shift, chars: "\x1b[1;2A" }
|
||||
- { key: Up, mods: Control, chars: "\x1b[1;5A" }
|
||||
- { key: Up, mods: Alt, chars: "\x1b[1;3A" }
|
||||
- { key: Up, chars: "\x1b[A", mode: ~AppCursor }
|
||||
- { key: Up, chars: "\x1bOA", mode: AppCursor }
|
||||
- { key: Down, mods: Shift, chars: "\x1b[1;2B" }
|
||||
- { key: Down, mods: Control, chars: "\x1b[1;5B" }
|
||||
- { key: Down, mods: Alt, chars: "\x1b[1;3B" }
|
||||
- { key: Down, chars: "\x1b[B", mode: ~AppCursor }
|
||||
- { key: Down, chars: "\x1bOB", mode: AppCursor }
|
||||
- { key: F1, chars: "\x1bOP" }
|
||||
- { key: F2, chars: "\x1bOQ" }
|
||||
- { key: F3, chars: "\x1bOR" }
|
||||
- { key: F4, chars: "\x1bOS" }
|
||||
- { key: F5, chars: "\x1b[15~" }
|
||||
- { key: F6, chars: "\x1b[17~" }
|
||||
- { key: F7, chars: "\x1b[18~" }
|
||||
- { key: F8, chars: "\x1b[19~" }
|
||||
- { key: F9, chars: "\x1b[20~" }
|
||||
- { key: F10, chars: "\x1b[21~" }
|
||||
- { key: F11, chars: "\x1b[23~" }
|
||||
- { key: F12, chars: "\x1b[24~" }
|
||||
- { key: F1, mods: Shift, chars: "\x1b[1;2P" }
|
||||
- { key: F2, mods: Shift, chars: "\x1b[1;2Q" }
|
||||
- { key: F3, mods: Shift, chars: "\x1b[1;2R" }
|
||||
- { key: F4, mods: Shift, chars: "\x1b[1;2S" }
|
||||
- { key: F5, mods: Shift, chars: "\x1b[15;2~" }
|
||||
- { key: F6, mods: Shift, chars: "\x1b[17;2~" }
|
||||
- { key: F7, mods: Shift, chars: "\x1b[18;2~" }
|
||||
- { key: F8, mods: Shift, chars: "\x1b[19;2~" }
|
||||
- { key: F9, mods: Shift, chars: "\x1b[20;2~" }
|
||||
- { key: F10, mods: Shift, chars: "\x1b[21;2~" }
|
||||
- { key: F11, mods: Shift, chars: "\x1b[23;2~" }
|
||||
- { key: F12, mods: Shift, chars: "\x1b[24;2~" }
|
||||
- { key: F1, mods: Control, chars: "\x1b[1;5P" }
|
||||
- { key: F2, mods: Control, chars: "\x1b[1;5Q" }
|
||||
- { key: F3, mods: Control, chars: "\x1b[1;5R" }
|
||||
- { key: F4, mods: Control, chars: "\x1b[1;5S" }
|
||||
- { key: F5, mods: Control, chars: "\x1b[15;5~" }
|
||||
- { key: F6, mods: Control, chars: "\x1b[17;5~" }
|
||||
- { key: F7, mods: Control, chars: "\x1b[18;5~" }
|
||||
- { key: F8, mods: Control, chars: "\x1b[19;5~" }
|
||||
- { key: F9, mods: Control, chars: "\x1b[20;5~" }
|
||||
- { key: F10, mods: Control, chars: "\x1b[21;5~" }
|
||||
- { key: F11, mods: Control, chars: "\x1b[23;5~" }
|
||||
- { key: F12, mods: Control, chars: "\x1b[24;5~" }
|
||||
- { key: F1, mods: Alt, chars: "\x1b[1;6P" }
|
||||
- { key: F2, mods: Alt, chars: "\x1b[1;6Q" }
|
||||
- { key: F3, mods: Alt, chars: "\x1b[1;6R" }
|
||||
- { key: F4, mods: Alt, chars: "\x1b[1;6S" }
|
||||
- { key: F5, mods: Alt, chars: "\x1b[15;6~" }
|
||||
- { key: F6, mods: Alt, chars: "\x1b[17;6~" }
|
||||
- { key: F7, mods: Alt, chars: "\x1b[18;6~" }
|
||||
- { key: F8, mods: Alt, chars: "\x1b[19;6~" }
|
||||
- { key: F9, mods: Alt, chars: "\x1b[20;6~" }
|
||||
- { key: F10, mods: Alt, chars: "\x1b[21;6~" }
|
||||
- { key: F11, mods: Alt, chars: "\x1b[23;6~" }
|
||||
- { key: F12, mods: Alt, chars: "\x1b[24;6~" }
|
||||
- { key: F1, mods: Super, chars: "\x1b[1;3P" }
|
||||
- { key: F2, mods: Super, chars: "\x1b[1;3Q" }
|
||||
- { key: F3, mods: Super, chars: "\x1b[1;3R" }
|
||||
- { key: F4, mods: Super, chars: "\x1b[1;3S" }
|
||||
- { key: F5, mods: Super, chars: "\x1b[15;3~" }
|
||||
- { key: F6, mods: Super, chars: "\x1b[17;3~" }
|
||||
- { key: F7, mods: Super, chars: "\x1b[18;3~" }
|
||||
- { key: F8, mods: Super, chars: "\x1b[19;3~" }
|
||||
- { key: F9, mods: Super, chars: "\x1b[20;3~" }
|
||||
- { key: F10, mods: Super, chars: "\x1b[21;3~" }
|
||||
- { key: F11, mods: Super, chars: "\x1b[23;3~" }
|
||||
- { key: F12, mods: Super, chars: "\x1b[24;3~" }
|
|
@ -1,477 +0,0 @@
|
|||
# Configuration for Alacritty, the GPU enhanced terminal emulator.
|
||||
|
||||
# Any items in the `env` entry below will be added as
|
||||
# environment variables. Some entries may override variables
|
||||
# set by alacritty itself.
|
||||
#env:
|
||||
# TERM variable
|
||||
#
|
||||
# This value is used to set the `$TERM` environment variable for
|
||||
# each instance of Alacritty. If it is not present, alacritty will
|
||||
# check the local terminfo database and use 'alacritty' if it is
|
||||
# available, otherwise 'xterm-256color' is used.
|
||||
#TERM: xterm-256color
|
||||
|
||||
window:
|
||||
# Window dimensions (changes require restart)
|
||||
#
|
||||
# Specified in number of columns/lines, not pixels.
|
||||
# If both are `0`, this setting is ignored.
|
||||
dimensions:
|
||||
columns: 119
|
||||
lines: 41
|
||||
|
||||
# Window padding (changes require restart)
|
||||
#
|
||||
# Blank space added around the window in pixels. This padding is scaled
|
||||
# by DPI and the specified value is always added at both opposing sides.
|
||||
padding:
|
||||
x: 0
|
||||
y: 0
|
||||
|
||||
# Spread additional padding evenly around the terminal content.
|
||||
dynamic_padding: true
|
||||
|
||||
# Window decorations
|
||||
#
|
||||
# Values for `decorations`:
|
||||
# - full: Borders and title bar
|
||||
# - none: Neither borders nor title bar
|
||||
decorations: full
|
||||
|
||||
scrolling:
|
||||
# Maximum number of lines in the scrollback buffer.
|
||||
# Specifying '0' will disable scrolling.
|
||||
history: 10000
|
||||
|
||||
# Number of lines the viewport will move for every line scrolled when
|
||||
# scrollback is enabled (history > 0).
|
||||
multiplier: 3
|
||||
|
||||
# Scroll to the bottom when new text is written to the terminal.
|
||||
auto_scroll: false
|
||||
|
||||
# Spaces per Tab (changes require restart)
|
||||
#
|
||||
# This setting defines the width of a tab in cells.
|
||||
#
|
||||
# Some applications, like Emacs, rely on knowing about the width of a tab.
|
||||
# To prevent unexpected behavior in these applications, it's also required to
|
||||
# change the `it` value in terminfo when altering this setting.
|
||||
tabspaces: 8
|
||||
|
||||
# Font configuration (changes require restart)
|
||||
#
|
||||
# Important font attributes like antialiasing, subpixel aa, and hinting can be
|
||||
# controlled through fontconfig. Specifically, the following attributes should
|
||||
# have an effect:
|
||||
# - hintstyle
|
||||
# - antialias
|
||||
# - lcdfilter
|
||||
# - rgba
|
||||
#
|
||||
# For instance, if you wish to disable subpixel antialiasing, you might set the
|
||||
# rgba property to `none`. If you wish to completely disable antialiasing, you
|
||||
# can set antialias to `false`.
|
||||
#
|
||||
# Please see these resources for more information on how to use fontconfig:
|
||||
# - https://wiki.archlinux.org/index.php/font_configuration#Fontconfig_configuration
|
||||
# - file:///usr/share/doc/fontconfig/fontconfig-user.html
|
||||
font:
|
||||
# Normal (roman) font face
|
||||
normal:
|
||||
family: IBM Plex Mono
|
||||
style: Regular
|
||||
|
||||
# Bold font face
|
||||
bold:
|
||||
family: IBM Plex Mono
|
||||
style: SemiBold
|
||||
|
||||
# Italic font face
|
||||
italic:
|
||||
family: IBM Plex Mono
|
||||
style: Italic
|
||||
|
||||
# Point size
|
||||
size: 28
|
||||
|
||||
# Offset is the extra space around each character. `offset.y` can be thought of
|
||||
# as modifying the line spacing, and `offset.x` as modifying the letter spacing.
|
||||
offset:
|
||||
x: 0
|
||||
y: 2
|
||||
|
||||
# Glyph offset determines the locations of the glyphs within their cells with
|
||||
# the default being at the bottom. Increasing `x` moves the glyph to the right,
|
||||
# increasing `y` moves the glyph upwards.
|
||||
glyph_offset:
|
||||
x: 0
|
||||
y: 0
|
||||
|
||||
# If `true`, bold text is drawn using the bright color variants.
|
||||
draw_bold_text_with_bright_colors: true
|
||||
|
||||
# Colors (Tomorrow Night Bright)
|
||||
colors:
|
||||
# Default colors
|
||||
primary:
|
||||
background: '0xffffff'
|
||||
foreground: '0x000000'
|
||||
|
||||
# Bright and dim foreground colors
|
||||
#
|
||||
# The dimmed foreground color is calculated automatically if it is not present.
|
||||
# If the bright foreground color is not set, or `draw_bold_text_with_bright_colors`
|
||||
# is `false`, the normal foreground color will be used.
|
||||
#dim_foreground: '0x9a9a9a'
|
||||
#bright_foreground: '0xffffff'
|
||||
|
||||
# Cursor colors
|
||||
#
|
||||
# Colors which should be used to draw the terminal cursor. If these are unset,
|
||||
# the cursor color will be the inverse of the cell color.
|
||||
#cursor:
|
||||
# text: '0x000000'
|
||||
# cursor: '0xffffff'
|
||||
|
||||
# Normal colors
|
||||
normal:
|
||||
black: '0x000000'
|
||||
red: '0xd54e53'
|
||||
green: '0xb9ca4a'
|
||||
yellow: '0xe6c547'
|
||||
blue: '0x7aa6da'
|
||||
magenta: '0xc397d8'
|
||||
cyan: '0x70c0ba'
|
||||
white: '0xffffff'
|
||||
|
||||
# Bright colors
|
||||
bright:
|
||||
black: '0x666666'
|
||||
red: '0xff3334'
|
||||
green: '0x9ec400'
|
||||
yellow: '0xe7c547'
|
||||
blue: '0x7aa6da'
|
||||
magenta: '0xb77ee0'
|
||||
cyan: '0x54ced6'
|
||||
white: '0xffffff'
|
||||
|
||||
# Dim colors
|
||||
#
|
||||
# If the dim colors are not set, they will be calculated automatically based
|
||||
# on the `normal` colors.
|
||||
dim:
|
||||
black: '0x333333'
|
||||
red: '0xf2777a'
|
||||
green: '0x99cc99'
|
||||
yellow: '0xffcc66'
|
||||
blue: '0x6699cc'
|
||||
magenta: '0xcc99cc'
|
||||
cyan: '0x66cccc'
|
||||
white: '0xdddddd'
|
||||
|
||||
# Indexed Colors
|
||||
#
|
||||
# The indexed colors include all colors from 16 to 256.
|
||||
# When these are not set, they're filled with sensible defaults.
|
||||
#indexed_colors:
|
||||
# - { index: 16, color: '0x000000' }
|
||||
|
||||
# Visual Bell
|
||||
#
|
||||
# Any time the BEL code is received, Alacritty "rings" the visual bell. Once
|
||||
# rung, the terminal background will be set to white and transition back to the
|
||||
# default background color. You can control the rate of this transition by
|
||||
# setting the `duration` property (represented in milliseconds). You can also
|
||||
# configure the transition function by setting the `animation` property.
|
||||
#
|
||||
# Values for `animation`:
|
||||
# - Ease
|
||||
# - EaseOut
|
||||
# - EaseOutSine
|
||||
# - EaseOutQuad
|
||||
# - EaseOutCubic
|
||||
# - EaseOutQuart
|
||||
# - EaseOutQuint
|
||||
# - EaseOutExpo
|
||||
# - EaseOutCirc
|
||||
# - Linear
|
||||
#
|
||||
# Specifying a `duration` of `0` will disable the visual bell.
|
||||
visual_bell:
|
||||
animation: EaseOutExpo
|
||||
duration: 0
|
||||
|
||||
# Background opacity
|
||||
#
|
||||
# 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.
|
||||
background_opacity: 1.0
|
||||
|
||||
# Mouse bindings
|
||||
#
|
||||
# Available fields:
|
||||
# - mouse
|
||||
# - action
|
||||
# - mods (optional)
|
||||
#
|
||||
# Values for `mouse`:
|
||||
# - Middle
|
||||
# - Left
|
||||
# - Right
|
||||
# - Numeric identifier such as `5`
|
||||
#
|
||||
# All available `mods` and `action` values are documented in the key binding
|
||||
# section.
|
||||
mouse_bindings:
|
||||
- { mouse: Middle, action: PasteSelection }
|
||||
|
||||
mouse:
|
||||
# Click settings
|
||||
#
|
||||
# The `double_click` and `triple_click` settings control the time
|
||||
# alacritty should wait for accepting multiple clicks as one double
|
||||
# or triple click.
|
||||
double_click: { threshold: 300 }
|
||||
triple_click: { threshold: 300 }
|
||||
|
||||
# If this is `true`, the cursor is temporarily hidden when typing.
|
||||
hide_when_typing: true
|
||||
|
||||
url:
|
||||
# URL launcher
|
||||
#
|
||||
# This program is executed when clicking on a text which is recognized as a URL.
|
||||
# The URL is always added to the command as the last parameter.
|
||||
launcher: xdg-open
|
||||
|
||||
# URL modifiers
|
||||
#
|
||||
# These are the modifiers that need to be held down for opening URLs when clicking
|
||||
# on them. The available modifiers are documented in the key binding section.
|
||||
#modifiers: Control|Shift
|
||||
|
||||
selection:
|
||||
semantic_escape_chars: ",│`|:\"' ()[]{}<>"
|
||||
|
||||
# When set to `true`, selected text will be copied to both the primary and
|
||||
# the selection clipboard. Otherwise, it will only be copied to the selection
|
||||
# clipboard.
|
||||
save_to_clipboard: false
|
||||
|
||||
dynamic_title: true
|
||||
|
||||
cursor:
|
||||
# Cursor style
|
||||
#
|
||||
# Values for 'style':
|
||||
# - ▇ Block
|
||||
# - _ Underline
|
||||
# - | Beam
|
||||
style: Block
|
||||
|
||||
# If this is `true`, the cursor will be rendered as a hollow box when the
|
||||
# window is not focused.
|
||||
unfocused_hollow: true
|
||||
|
||||
# Live config reload (changes require restart)
|
||||
live_config_reload: true
|
||||
|
||||
# Shell
|
||||
#
|
||||
# You can set `shell.program` to the path of your favorite shell, e.g. `/bin/fish`.
|
||||
# Entries in `shell.args` are passed unmodified as arguments to the shell.
|
||||
#shell:
|
||||
# program: /bin/bash
|
||||
# args:
|
||||
# - --login
|
||||
|
||||
# Key bindings
|
||||
#
|
||||
# Key bindings are specified as a list of objects. Each binding will specify
|
||||
# a key and modifiers required to trigger it, terminal modes where the binding
|
||||
# is applicable, and what should be done when the key binding fires. It can
|
||||
# either send a byte sequnce to the running application (`chars`), execute
|
||||
# a predefined action (`action`) or fork and execute a specified command plus
|
||||
# arguments (`command`).
|
||||
#
|
||||
# Example:
|
||||
# `- { key: V, mods: Command, action: Paste }`
|
||||
#
|
||||
# Available fields:
|
||||
# - key
|
||||
# - mods (optional)
|
||||
# - chars | action | command (exactly one required)
|
||||
# - mode (optional)
|
||||
#
|
||||
# Values for `key`:
|
||||
# - `A` -> `Z`
|
||||
# - `F1` -> `F12`
|
||||
# - `Key1` -> `Key0`
|
||||
#
|
||||
# A full list with available key codes can be found here:
|
||||
# https://docs.rs/glutin/*/glutin/enum.VirtualKeyCode.html#variants
|
||||
#
|
||||
# Instead of using the name of the keys, the `key` field also supports using
|
||||
# the scancode of the desired key. Scancodes have to be specified as a
|
||||
# decimal number.
|
||||
# This command will allow you to display the hex scancodes for certain keys:
|
||||
# `showkey --scancodes`
|
||||
#
|
||||
# Values for `mods`:
|
||||
# - Command
|
||||
# - Control
|
||||
# - Shift
|
||||
# - Alt
|
||||
#
|
||||
# Multiple `mods` can be combined using `|` like this: `mods: Control|Shift`.
|
||||
# Whitespace and capitalization is relevant and must match the example.
|
||||
#
|
||||
# Values for `chars`:
|
||||
# The `chars` field writes the specified string to the terminal. This makes
|
||||
# it possible to pass escape sequences.
|
||||
# To find escape codes for bindings like `PageUp` ("\x1b[5~"), you can run
|
||||
# the command `showkey -a` outside of tmux.
|
||||
# Note that applications use terminfo to map escape sequences back to
|
||||
# keys. It is therefore required to update the terminfo when
|
||||
# changing an escape sequence.
|
||||
#
|
||||
# Values for `action`:
|
||||
# - Paste
|
||||
# - PasteSelection
|
||||
# - Copy
|
||||
# - IncreaseFontSize
|
||||
# - DecreaseFontSize
|
||||
# - ResetFontSize
|
||||
# - ScrollPageUp
|
||||
# - ScrollPageDown
|
||||
# - ScrollToTop
|
||||
# - ScrollToBottom
|
||||
# - ClearHistory
|
||||
# - Hide
|
||||
# - Quit
|
||||
# - ClearLogNotice
|
||||
#
|
||||
# Values for `command`:
|
||||
# The `command` field must be a map containing a `program` string and
|
||||
# an `args` array of command line parameter strings.
|
||||
#
|
||||
# Example:
|
||||
# `command: { program: "alacritty", args: ["-e", "vttest"] }`
|
||||
#
|
||||
# Values for `mode`:
|
||||
# - ~AppCursor
|
||||
# - AppCursor
|
||||
# - ~AppKeypad
|
||||
# - AppKeypad
|
||||
key_bindings:
|
||||
- { key: V, mods: Alt|Shift, action: Paste }
|
||||
- { key: C, mods: Alt|Shift, action: Copy }
|
||||
- { key: V, mods: Control|Shift, action: Paste }
|
||||
- { key: C, mods: Control|Shift, action: Copy }
|
||||
- { key: Paste, action: Paste }
|
||||
- { key: Copy, action: Copy }
|
||||
- { key: Q, mods: Command, action: Quit }
|
||||
- { key: W, mods: Command, action: Quit }
|
||||
- { key: Insert, mods: Shift, action: PasteSelection }
|
||||
- { key: Key0, mods: Control, action: ResetFontSize }
|
||||
- { key: Equals, mods: Control, action: IncreaseFontSize }
|
||||
- { key: Subtract, mods: Control, action: DecreaseFontSize }
|
||||
- { key: L, mods: Control, action: ClearLogNotice }
|
||||
- { key: L, mods: Control, chars: "\x0c" }
|
||||
- { key: Home, chars: "\x1bOH", mode: AppCursor }
|
||||
- { key: Home, chars: "\x1b[H", mode: ~AppCursor }
|
||||
- { key: End, chars: "\x1bOF", mode: AppCursor }
|
||||
- { key: End, chars: "\x1b[F", mode: ~AppCursor }
|
||||
- { key: PageUp, mods: Shift, chars: "\x1b[5;2~" }
|
||||
- { key: PageUp, mods: Control, chars: "\x1b[5;5~" }
|
||||
- { key: PageUp, chars: "\x1b[5~" }
|
||||
- { key: PageDown, mods: Shift, chars: "\x1b[6;2~" }
|
||||
- { key: PageDown, mods: Control, chars: "\x1b[6;5~" }
|
||||
- { key: PageDown, chars: "\x1b[6~" }
|
||||
- { key: Tab, mods: Shift, chars: "\x1b[Z" }
|
||||
- { key: Back, chars: "\x7f" }
|
||||
- { key: Back, mods: Alt, chars: "\x1b\x7f" }
|
||||
- { key: Insert, chars: "\x1b[2~" }
|
||||
- { key: Delete, chars: "\x1b[3~" }
|
||||
- { key: Left, mods: Shift, chars: "\x1b[1;2D" }
|
||||
- { key: Left, mods: Control, chars: "\x1b[1;5D" }
|
||||
- { key: Left, mods: Alt, chars: "\x1b[1;3D" }
|
||||
- { key: Left, chars: "\x1b[D", mode: ~AppCursor }
|
||||
- { key: Left, chars: "\x1bOD", mode: AppCursor }
|
||||
- { key: Right, mods: Shift, chars: "\x1b[1;2C" }
|
||||
- { key: Right, mods: Control, chars: "\x1b[1;5C" }
|
||||
- { key: Right, mods: Alt, chars: "\x1b[1;3C" }
|
||||
- { key: Right, chars: "\x1b[C", mode: ~AppCursor }
|
||||
- { key: Right, chars: "\x1bOC", mode: AppCursor }
|
||||
- { key: Up, mods: Shift, chars: "\x1b[1;2A" }
|
||||
- { key: Up, mods: Control, chars: "\x1b[1;5A" }
|
||||
- { key: Up, mods: Alt, chars: "\x1b[1;3A" }
|
||||
- { key: Up, chars: "\x1b[A", mode: ~AppCursor }
|
||||
- { key: Up, chars: "\x1bOA", mode: AppCursor }
|
||||
- { key: Down, mods: Shift, chars: "\x1b[1;2B" }
|
||||
- { key: Down, mods: Control, chars: "\x1b[1;5B" }
|
||||
- { key: Down, mods: Alt, chars: "\x1b[1;3B" }
|
||||
- { key: Down, chars: "\x1b[B", mode: ~AppCursor }
|
||||
- { key: Down, chars: "\x1bOB", mode: AppCursor }
|
||||
- { key: F1, chars: "\x1bOP" }
|
||||
- { key: F2, chars: "\x1bOQ" }
|
||||
- { key: F3, chars: "\x1bOR" }
|
||||
- { key: F4, chars: "\x1bOS" }
|
||||
- { key: F5, chars: "\x1b[15~" }
|
||||
- { key: F6, chars: "\x1b[17~" }
|
||||
- { key: F7, chars: "\x1b[18~" }
|
||||
- { key: F8, chars: "\x1b[19~" }
|
||||
- { key: F9, chars: "\x1b[20~" }
|
||||
- { key: F10, chars: "\x1b[21~" }
|
||||
- { key: F11, chars: "\x1b[23~" }
|
||||
- { key: F12, chars: "\x1b[24~" }
|
||||
- { key: F1, mods: Shift, chars: "\x1b[1;2P" }
|
||||
- { key: F2, mods: Shift, chars: "\x1b[1;2Q" }
|
||||
- { key: F3, mods: Shift, chars: "\x1b[1;2R" }
|
||||
- { key: F4, mods: Shift, chars: "\x1b[1;2S" }
|
||||
- { key: F5, mods: Shift, chars: "\x1b[15;2~" }
|
||||
- { key: F6, mods: Shift, chars: "\x1b[17;2~" }
|
||||
- { key: F7, mods: Shift, chars: "\x1b[18;2~" }
|
||||
- { key: F8, mods: Shift, chars: "\x1b[19;2~" }
|
||||
- { key: F9, mods: Shift, chars: "\x1b[20;2~" }
|
||||
- { key: F10, mods: Shift, chars: "\x1b[21;2~" }
|
||||
- { key: F11, mods: Shift, chars: "\x1b[23;2~" }
|
||||
- { key: F12, mods: Shift, chars: "\x1b[24;2~" }
|
||||
- { key: F1, mods: Control, chars: "\x1b[1;5P" }
|
||||
- { key: F2, mods: Control, chars: "\x1b[1;5Q" }
|
||||
- { key: F3, mods: Control, chars: "\x1b[1;5R" }
|
||||
- { key: F4, mods: Control, chars: "\x1b[1;5S" }
|
||||
- { key: F5, mods: Control, chars: "\x1b[15;5~" }
|
||||
- { key: F6, mods: Control, chars: "\x1b[17;5~" }
|
||||
- { key: F7, mods: Control, chars: "\x1b[18;5~" }
|
||||
- { key: F8, mods: Control, chars: "\x1b[19;5~" }
|
||||
- { key: F9, mods: Control, chars: "\x1b[20;5~" }
|
||||
- { key: F10, mods: Control, chars: "\x1b[21;5~" }
|
||||
- { key: F11, mods: Control, chars: "\x1b[23;5~" }
|
||||
- { key: F12, mods: Control, chars: "\x1b[24;5~" }
|
||||
- { key: F1, mods: Alt, chars: "\x1b[1;6P" }
|
||||
- { key: F2, mods: Alt, chars: "\x1b[1;6Q" }
|
||||
- { key: F3, mods: Alt, chars: "\x1b[1;6R" }
|
||||
- { key: F4, mods: Alt, chars: "\x1b[1;6S" }
|
||||
- { key: F5, mods: Alt, chars: "\x1b[15;6~" }
|
||||
- { key: F6, mods: Alt, chars: "\x1b[17;6~" }
|
||||
- { key: F7, mods: Alt, chars: "\x1b[18;6~" }
|
||||
- { key: F8, mods: Alt, chars: "\x1b[19;6~" }
|
||||
- { key: F9, mods: Alt, chars: "\x1b[20;6~" }
|
||||
- { key: F10, mods: Alt, chars: "\x1b[21;6~" }
|
||||
- { key: F11, mods: Alt, chars: "\x1b[23;6~" }
|
||||
- { key: F12, mods: Alt, chars: "\x1b[24;6~" }
|
||||
- { key: F1, mods: Super, chars: "\x1b[1;3P" }
|
||||
- { key: F2, mods: Super, chars: "\x1b[1;3Q" }
|
||||
- { key: F3, mods: Super, chars: "\x1b[1;3R" }
|
||||
- { key: F4, mods: Super, chars: "\x1b[1;3S" }
|
||||
- { key: F5, mods: Super, chars: "\x1b[15;3~" }
|
||||
- { key: F6, mods: Super, chars: "\x1b[17;3~" }
|
||||
- { key: F7, mods: Super, chars: "\x1b[18;3~" }
|
||||
- { key: F8, mods: Super, chars: "\x1b[19;3~" }
|
||||
- { key: F9, mods: Super, chars: "\x1b[20;3~" }
|
||||
- { key: F10, mods: Super, chars: "\x1b[21;3~" }
|
||||
- { key: F11, mods: Super, chars: "\x1b[23;3~" }
|
||||
- { key: F12, mods: Super, chars: "\x1b[24;3~" }
|
|
@ -1,477 +0,0 @@
|
|||
# Configuration for Alacritty, the GPU enhanced terminal emulator.
|
||||
|
||||
# Any items in the `env` entry below will be added as
|
||||
# environment variables. Some entries may override variables
|
||||
# set by alacritty itself.
|
||||
#env:
|
||||
# TERM variable
|
||||
#
|
||||
# This value is used to set the `$TERM` environment variable for
|
||||
# each instance of Alacritty. If it is not present, alacritty will
|
||||
# check the local terminfo database and use 'alacritty' if it is
|
||||
# available, otherwise 'xterm-256color' is used.
|
||||
#TERM: xterm-256color
|
||||
|
||||
window:
|
||||
# Window dimensions (changes require restart)
|
||||
#
|
||||
# Specified in number of columns/lines, not pixels.
|
||||
# If both are `0`, this setting is ignored.
|
||||
dimensions:
|
||||
columns: 119
|
||||
lines: 41
|
||||
|
||||
# Window padding (changes require restart)
|
||||
#
|
||||
# Blank space added around the window in pixels. This padding is scaled
|
||||
# by DPI and the specified value is always added at both opposing sides.
|
||||
padding:
|
||||
x: 0
|
||||
y: 0
|
||||
|
||||
# Spread additional padding evenly around the terminal content.
|
||||
dynamic_padding: true
|
||||
|
||||
# Window decorations
|
||||
#
|
||||
# Values for `decorations`:
|
||||
# - full: Borders and title bar
|
||||
# - none: Neither borders nor title bar
|
||||
decorations: full
|
||||
|
||||
scrolling:
|
||||
# Maximum number of lines in the scrollback buffer.
|
||||
# Specifying '0' will disable scrolling.
|
||||
history: 10000
|
||||
|
||||
# Number of lines the viewport will move for every line scrolled when
|
||||
# scrollback is enabled (history > 0).
|
||||
multiplier: 3
|
||||
|
||||
# Scroll to the bottom when new text is written to the terminal.
|
||||
auto_scroll: false
|
||||
|
||||
# Spaces per Tab (changes require restart)
|
||||
#
|
||||
# This setting defines the width of a tab in cells.
|
||||
#
|
||||
# Some applications, like Emacs, rely on knowing about the width of a tab.
|
||||
# To prevent unexpected behavior in these applications, it's also required to
|
||||
# change the `it` value in terminfo when altering this setting.
|
||||
tabspaces: 8
|
||||
|
||||
# Font configuration (changes require restart)
|
||||
#
|
||||
# Important font attributes like antialiasing, subpixel aa, and hinting can be
|
||||
# controlled through fontconfig. Specifically, the following attributes should
|
||||
# have an effect:
|
||||
# - hintstyle
|
||||
# - antialias
|
||||
# - lcdfilter
|
||||
# - rgba
|
||||
#
|
||||
# For instance, if you wish to disable subpixel antialiasing, you might set the
|
||||
# rgba property to `none`. If you wish to completely disable antialiasing, you
|
||||
# can set antialias to `false`.
|
||||
#
|
||||
# Please see these resources for more information on how to use fontconfig:
|
||||
# - https://wiki.archlinux.org/index.php/font_configuration#Fontconfig_configuration
|
||||
# - file:///usr/share/doc/fontconfig/fontconfig-user.html
|
||||
font:
|
||||
# Normal (roman) font face
|
||||
normal:
|
||||
family: IBM Plex Mono
|
||||
style: Regular
|
||||
|
||||
# Bold font face
|
||||
bold:
|
||||
family: IBM Plex Mono
|
||||
style: SemiBold
|
||||
|
||||
# Italic font face
|
||||
italic:
|
||||
family: IBM Plex Mono
|
||||
style: Italic
|
||||
|
||||
# Point size
|
||||
size: 18
|
||||
|
||||
# Offset is the extra space around each character. `offset.y` can be thought of
|
||||
# as modifying the line spacing, and `offset.x` as modifying the letter spacing.
|
||||
offset:
|
||||
x: 0
|
||||
y: 2
|
||||
|
||||
# Glyph offset determines the locations of the glyphs within their cells with
|
||||
# the default being at the bottom. Increasing `x` moves the glyph to the right,
|
||||
# increasing `y` moves the glyph upwards.
|
||||
glyph_offset:
|
||||
x: 0
|
||||
y: 0
|
||||
|
||||
# If `true`, bold text is drawn using the bright color variants.
|
||||
draw_bold_text_with_bright_colors: true
|
||||
|
||||
# Colors (Tomorrow Night Bright)
|
||||
colors:
|
||||
# Default colors
|
||||
primary:
|
||||
background: '0x304455'
|
||||
foreground: '0xf0f7ff'
|
||||
|
||||
# Bright and dim foreground colors
|
||||
#
|
||||
# The dimmed foreground color is calculated automatically if it is not present.
|
||||
# If the bright foreground color is not set, or `draw_bold_text_with_bright_colors`
|
||||
# is `false`, the normal foreground color will be used.
|
||||
#dim_foreground: '0x9a9a9a'
|
||||
#bright_foreground: '0xffffff'
|
||||
|
||||
# Cursor colors
|
||||
#
|
||||
# Colors which should be used to draw the terminal cursor. If these are unset,
|
||||
# the cursor color will be the inverse of the cell color.
|
||||
#cursor:
|
||||
# text: '0x000000'
|
||||
# cursor: '0xffffff'
|
||||
|
||||
# Normal colors
|
||||
normal:
|
||||
black: '0x000000'
|
||||
red: '0xd54e53'
|
||||
green: '0xb9ca4a'
|
||||
yellow: '0xe6c547'
|
||||
blue: '0x7aa6da'
|
||||
magenta: '0xc397d8'
|
||||
cyan: '0x70c0ba'
|
||||
white: '0xffffff'
|
||||
|
||||
# Bright colors
|
||||
bright:
|
||||
black: '0x666666'
|
||||
red: '0xff3334'
|
||||
green: '0x9ec400'
|
||||
yellow: '0xe7c547'
|
||||
blue: '0x7aa6da'
|
||||
magenta: '0xb77ee0'
|
||||
cyan: '0x54ced6'
|
||||
white: '0xffffff'
|
||||
|
||||
# Dim colors
|
||||
#
|
||||
# If the dim colors are not set, they will be calculated automatically based
|
||||
# on the `normal` colors.
|
||||
dim:
|
||||
black: '0x333333'
|
||||
red: '0xf2777a'
|
||||
green: '0x99cc99'
|
||||
yellow: '0xffcc66'
|
||||
blue: '0x6699cc'
|
||||
magenta: '0xcc99cc'
|
||||
cyan: '0x66cccc'
|
||||
white: '0xdddddd'
|
||||
|
||||
# Indexed Colors
|
||||
#
|
||||
# The indexed colors include all colors from 16 to 256.
|
||||
# When these are not set, they're filled with sensible defaults.
|
||||
#indexed_colors:
|
||||
# - { index: 16, color: '0x000000' }
|
||||
|
||||
# Visual Bell
|
||||
#
|
||||
# Any time the BEL code is received, Alacritty "rings" the visual bell. Once
|
||||
# rung, the terminal background will be set to white and transition back to the
|
||||
# default background color. You can control the rate of this transition by
|
||||
# setting the `duration` property (represented in milliseconds). You can also
|
||||
# configure the transition function by setting the `animation` property.
|
||||
#
|
||||
# Values for `animation`:
|
||||
# - Ease
|
||||
# - EaseOut
|
||||
# - EaseOutSine
|
||||
# - EaseOutQuad
|
||||
# - EaseOutCubic
|
||||
# - EaseOutQuart
|
||||
# - EaseOutQuint
|
||||
# - EaseOutExpo
|
||||
# - EaseOutCirc
|
||||
# - Linear
|
||||
#
|
||||
# Specifying a `duration` of `0` will disable the visual bell.
|
||||
visual_bell:
|
||||
animation: EaseOutExpo
|
||||
duration: 0
|
||||
|
||||
# Background opacity
|
||||
#
|
||||
# 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.
|
||||
background_opacity: 0.5
|
||||
|
||||
# Mouse bindings
|
||||
#
|
||||
# Available fields:
|
||||
# - mouse
|
||||
# - action
|
||||
# - mods (optional)
|
||||
#
|
||||
# Values for `mouse`:
|
||||
# - Middle
|
||||
# - Left
|
||||
# - Right
|
||||
# - Numeric identifier such as `5`
|
||||
#
|
||||
# All available `mods` and `action` values are documented in the key binding
|
||||
# section.
|
||||
mouse_bindings:
|
||||
- { mouse: Middle, action: PasteSelection }
|
||||
|
||||
mouse:
|
||||
# Click settings
|
||||
#
|
||||
# The `double_click` and `triple_click` settings control the time
|
||||
# alacritty should wait for accepting multiple clicks as one double
|
||||
# or triple click.
|
||||
double_click: { threshold: 300 }
|
||||
triple_click: { threshold: 300 }
|
||||
|
||||
# If this is `true`, the cursor is temporarily hidden when typing.
|
||||
hide_when_typing: true
|
||||
|
||||
url:
|
||||
# URL launcher
|
||||
#
|
||||
# This program is executed when clicking on a text which is recognized as a URL.
|
||||
# The URL is always added to the command as the last parameter.
|
||||
launcher: xdg-open
|
||||
|
||||
# URL modifiers
|
||||
#
|
||||
# These are the modifiers that need to be held down for opening URLs when clicking
|
||||
# on them. The available modifiers are documented in the key binding section.
|
||||
#modifiers: Control|Shift
|
||||
|
||||
selection:
|
||||
semantic_escape_chars: ",│`|:\"' ()[]{}<>"
|
||||
|
||||
# When set to `true`, selected text will be copied to both the primary and
|
||||
# the selection clipboard. Otherwise, it will only be copied to the selection
|
||||
# clipboard.
|
||||
save_to_clipboard: false
|
||||
|
||||
dynamic_title: true
|
||||
|
||||
cursor:
|
||||
# Cursor style
|
||||
#
|
||||
# Values for 'style':
|
||||
# - ▇ Block
|
||||
# - _ Underline
|
||||
# - | Beam
|
||||
style: Block
|
||||
|
||||
# If this is `true`, the cursor will be rendered as a hollow box when the
|
||||
# window is not focused.
|
||||
unfocused_hollow: true
|
||||
|
||||
# Live config reload (changes require restart)
|
||||
live_config_reload: true
|
||||
|
||||
# Shell
|
||||
#
|
||||
# You can set `shell.program` to the path of your favorite shell, e.g. `/bin/fish`.
|
||||
# Entries in `shell.args` are passed unmodified as arguments to the shell.
|
||||
#shell:
|
||||
# program: /bin/bash
|
||||
# args:
|
||||
# - --login
|
||||
|
||||
# Key bindings
|
||||
#
|
||||
# Key bindings are specified as a list of objects. Each binding will specify
|
||||
# a key and modifiers required to trigger it, terminal modes where the binding
|
||||
# is applicable, and what should be done when the key binding fires. It can
|
||||
# either send a byte sequnce to the running application (`chars`), execute
|
||||
# a predefined action (`action`) or fork and execute a specified command plus
|
||||
# arguments (`command`).
|
||||
#
|
||||
# Example:
|
||||
# `- { key: V, mods: Command, action: Paste }`
|
||||
#
|
||||
# Available fields:
|
||||
# - key
|
||||
# - mods (optional)
|
||||
# - chars | action | command (exactly one required)
|
||||
# - mode (optional)
|
||||
#
|
||||
# Values for `key`:
|
||||
# - `A` -> `Z`
|
||||
# - `F1` -> `F12`
|
||||
# - `Key1` -> `Key0`
|
||||
#
|
||||
# A full list with available key codes can be found here:
|
||||
# https://docs.rs/glutin/*/glutin/enum.VirtualKeyCode.html#variants
|
||||
#
|
||||
# Instead of using the name of the keys, the `key` field also supports using
|
||||
# the scancode of the desired key. Scancodes have to be specified as a
|
||||
# decimal number.
|
||||
# This command will allow you to display the hex scancodes for certain keys:
|
||||
# `showkey --scancodes`
|
||||
#
|
||||
# Values for `mods`:
|
||||
# - Command
|
||||
# - Control
|
||||
# - Shift
|
||||
# - Alt
|
||||
#
|
||||
# Multiple `mods` can be combined using `|` like this: `mods: Control|Shift`.
|
||||
# Whitespace and capitalization is relevant and must match the example.
|
||||
#
|
||||
# Values for `chars`:
|
||||
# The `chars` field writes the specified string to the terminal. This makes
|
||||
# it possible to pass escape sequences.
|
||||
# To find escape codes for bindings like `PageUp` ("\x1b[5~"), you can run
|
||||
# the command `showkey -a` outside of tmux.
|
||||
# Note that applications use terminfo to map escape sequences back to
|
||||
# keys. It is therefore required to update the terminfo when
|
||||
# changing an escape sequence.
|
||||
#
|
||||
# Values for `action`:
|
||||
# - Paste
|
||||
# - PasteSelection
|
||||
# - Copy
|
||||
# - IncreaseFontSize
|
||||
# - DecreaseFontSize
|
||||
# - ResetFontSize
|
||||
# - ScrollPageUp
|
||||
# - ScrollPageDown
|
||||
# - ScrollToTop
|
||||
# - ScrollToBottom
|
||||
# - ClearHistory
|
||||
# - Hide
|
||||
# - Quit
|
||||
# - ClearLogNotice
|
||||
#
|
||||
# Values for `command`:
|
||||
# The `command` field must be a map containing a `program` string and
|
||||
# an `args` array of command line parameter strings.
|
||||
#
|
||||
# Example:
|
||||
# `command: { program: "alacritty", args: ["-e", "vttest"] }`
|
||||
#
|
||||
# Values for `mode`:
|
||||
# - ~AppCursor
|
||||
# - AppCursor
|
||||
# - ~AppKeypad
|
||||
# - AppKeypad
|
||||
key_bindings:
|
||||
- { key: V, mods: Alt|Shift, action: Paste }
|
||||
- { key: C, mods: Alt|Shift, action: Copy }
|
||||
- { key: V, mods: Control|Shift, action: Paste }
|
||||
- { key: C, mods: Control|Shift, action: Copy }
|
||||
- { key: Paste, action: Paste }
|
||||
- { key: Copy, action: Copy }
|
||||
- { key: Q, mods: Command, action: Quit }
|
||||
- { key: W, mods: Command, action: Quit }
|
||||
- { key: Insert, mods: Shift, action: PasteSelection }
|
||||
- { key: Key0, mods: Control, action: ResetFontSize }
|
||||
- { key: Equals, mods: Control, action: IncreaseFontSize }
|
||||
- { key: Subtract, mods: Control, action: DecreaseFontSize }
|
||||
- { key: L, mods: Control, action: ClearLogNotice }
|
||||
- { key: L, mods: Control, chars: "\x0c" }
|
||||
- { key: Home, chars: "\x1bOH", mode: AppCursor }
|
||||
- { key: Home, chars: "\x1b[H", mode: ~AppCursor }
|
||||
- { key: End, chars: "\x1bOF", mode: AppCursor }
|
||||
- { key: End, chars: "\x1b[F", mode: ~AppCursor }
|
||||
- { key: PageUp, mods: Shift, chars: "\x1b[5;2~" }
|
||||
- { key: PageUp, mods: Control, chars: "\x1b[5;5~" }
|
||||
- { key: PageUp, chars: "\x1b[5~" }
|
||||
- { key: PageDown, mods: Shift, chars: "\x1b[6;2~" }
|
||||
- { key: PageDown, mods: Control, chars: "\x1b[6;5~" }
|
||||
- { key: PageDown, chars: "\x1b[6~" }
|
||||
- { key: Tab, mods: Shift, chars: "\x1b[Z" }
|
||||
- { key: Back, chars: "\x7f" }
|
||||
- { key: Back, mods: Alt, chars: "\x1b\x7f" }
|
||||
- { key: Insert, chars: "\x1b[2~" }
|
||||
- { key: Delete, chars: "\x1b[3~" }
|
||||
- { key: Left, mods: Shift, chars: "\x1b[1;2D" }
|
||||
- { key: Left, mods: Control, chars: "\x1b[1;5D" }
|
||||
- { key: Left, mods: Alt, chars: "\x1b[1;3D" }
|
||||
- { key: Left, chars: "\x1b[D", mode: ~AppCursor }
|
||||
- { key: Left, chars: "\x1bOD", mode: AppCursor }
|
||||
- { key: Right, mods: Shift, chars: "\x1b[1;2C" }
|
||||
- { key: Right, mods: Control, chars: "\x1b[1;5C" }
|
||||
- { key: Right, mods: Alt, chars: "\x1b[1;3C" }
|
||||
- { key: Right, chars: "\x1b[C", mode: ~AppCursor }
|
||||
- { key: Right, chars: "\x1bOC", mode: AppCursor }
|
||||
- { key: Up, mods: Shift, chars: "\x1b[1;2A" }
|
||||
- { key: Up, mods: Control, chars: "\x1b[1;5A" }
|
||||
- { key: Up, mods: Alt, chars: "\x1b[1;3A" }
|
||||
- { key: Up, chars: "\x1b[A", mode: ~AppCursor }
|
||||
- { key: Up, chars: "\x1bOA", mode: AppCursor }
|
||||
- { key: Down, mods: Shift, chars: "\x1b[1;2B" }
|
||||
- { key: Down, mods: Control, chars: "\x1b[1;5B" }
|
||||
- { key: Down, mods: Alt, chars: "\x1b[1;3B" }
|
||||
- { key: Down, chars: "\x1b[B", mode: ~AppCursor }
|
||||
- { key: Down, chars: "\x1bOB", mode: AppCursor }
|
||||
- { key: F1, chars: "\x1bOP" }
|
||||
- { key: F2, chars: "\x1bOQ" }
|
||||
- { key: F3, chars: "\x1bOR" }
|
||||
- { key: F4, chars: "\x1bOS" }
|
||||
- { key: F5, chars: "\x1b[15~" }
|
||||
- { key: F6, chars: "\x1b[17~" }
|
||||
- { key: F7, chars: "\x1b[18~" }
|
||||
- { key: F8, chars: "\x1b[19~" }
|
||||
- { key: F9, chars: "\x1b[20~" }
|
||||
- { key: F10, chars: "\x1b[21~" }
|
||||
- { key: F11, chars: "\x1b[23~" }
|
||||
- { key: F12, chars: "\x1b[24~" }
|
||||
- { key: F1, mods: Shift, chars: "\x1b[1;2P" }
|
||||
- { key: F2, mods: Shift, chars: "\x1b[1;2Q" }
|
||||
- { key: F3, mods: Shift, chars: "\x1b[1;2R" }
|
||||
- { key: F4, mods: Shift, chars: "\x1b[1;2S" }
|
||||
- { key: F5, mods: Shift, chars: "\x1b[15;2~" }
|
||||
- { key: F6, mods: Shift, chars: "\x1b[17;2~" }
|
||||
- { key: F7, mods: Shift, chars: "\x1b[18;2~" }
|
||||
- { key: F8, mods: Shift, chars: "\x1b[19;2~" }
|
||||
- { key: F9, mods: Shift, chars: "\x1b[20;2~" }
|
||||
- { key: F10, mods: Shift, chars: "\x1b[21;2~" }
|
||||
- { key: F11, mods: Shift, chars: "\x1b[23;2~" }
|
||||
- { key: F12, mods: Shift, chars: "\x1b[24;2~" }
|
||||
- { key: F1, mods: Control, chars: "\x1b[1;5P" }
|
||||
- { key: F2, mods: Control, chars: "\x1b[1;5Q" }
|
||||
- { key: F3, mods: Control, chars: "\x1b[1;5R" }
|
||||
- { key: F4, mods: Control, chars: "\x1b[1;5S" }
|
||||
- { key: F5, mods: Control, chars: "\x1b[15;5~" }
|
||||
- { key: F6, mods: Control, chars: "\x1b[17;5~" }
|
||||
- { key: F7, mods: Control, chars: "\x1b[18;5~" }
|
||||
- { key: F8, mods: Control, chars: "\x1b[19;5~" }
|
||||
- { key: F9, mods: Control, chars: "\x1b[20;5~" }
|
||||
- { key: F10, mods: Control, chars: "\x1b[21;5~" }
|
||||
- { key: F11, mods: Control, chars: "\x1b[23;5~" }
|
||||
- { key: F12, mods: Control, chars: "\x1b[24;5~" }
|
||||
- { key: F1, mods: Alt, chars: "\x1b[1;6P" }
|
||||
- { key: F2, mods: Alt, chars: "\x1b[1;6Q" }
|
||||
- { key: F3, mods: Alt, chars: "\x1b[1;6R" }
|
||||
- { key: F4, mods: Alt, chars: "\x1b[1;6S" }
|
||||
- { key: F5, mods: Alt, chars: "\x1b[15;6~" }
|
||||
- { key: F6, mods: Alt, chars: "\x1b[17;6~" }
|
||||
- { key: F7, mods: Alt, chars: "\x1b[18;6~" }
|
||||
- { key: F8, mods: Alt, chars: "\x1b[19;6~" }
|
||||
- { key: F9, mods: Alt, chars: "\x1b[20;6~" }
|
||||
- { key: F10, mods: Alt, chars: "\x1b[21;6~" }
|
||||
- { key: F11, mods: Alt, chars: "\x1b[23;6~" }
|
||||
- { key: F12, mods: Alt, chars: "\x1b[24;6~" }
|
||||
- { key: F1, mods: Super, chars: "\x1b[1;3P" }
|
||||
- { key: F2, mods: Super, chars: "\x1b[1;3Q" }
|
||||
- { key: F3, mods: Super, chars: "\x1b[1;3R" }
|
||||
- { key: F4, mods: Super, chars: "\x1b[1;3S" }
|
||||
- { key: F5, mods: Super, chars: "\x1b[15;3~" }
|
||||
- { key: F6, mods: Super, chars: "\x1b[17;3~" }
|
||||
- { key: F7, mods: Super, chars: "\x1b[18;3~" }
|
||||
- { key: F8, mods: Super, chars: "\x1b[19;3~" }
|
||||
- { key: F9, mods: Super, chars: "\x1b[20;3~" }
|
||||
- { key: F10, mods: Super, chars: "\x1b[21;3~" }
|
||||
- { key: F11, mods: Super, chars: "\x1b[23;3~" }
|
||||
- { key: F12, mods: Super, chars: "\x1b[24;3~" }
|
|
@ -1 +0,0 @@
|
|||
alacritty-dark.yml
|
|
@ -1 +0,0 @@
|
|||
--force-device-scale-factor=2.5
|
|
@ -1 +0,0 @@
|
|||
--enable-features=WebUIDarkMode --force-dark-mode
|
|
@ -1,327 +0,0 @@
|
|||
[global]
|
||||
### Display ###
|
||||
|
||||
# Which monitor should the notifications be displayed on.
|
||||
monitor = 0
|
||||
|
||||
# Display notification on focused monitor. Possible modes are:
|
||||
# mouse: follow mouse pointer
|
||||
# keyboard: follow window with keyboard focus
|
||||
# none: don't follow anything
|
||||
#
|
||||
# "keyboard" needs a window manager that exports the
|
||||
# _NET_ACTIVE_WINDOW property.
|
||||
# This should be the case for almost all modern window managers.
|
||||
#
|
||||
# If this option is set to mouse or keyboard, the monitor option
|
||||
# will be ignored.
|
||||
follow = mouse
|
||||
|
||||
# The geometry of the window:
|
||||
# [{width}]x{height}[+/-{x}+/-{y}]
|
||||
# The geometry of the message window.
|
||||
# The height is measured in number of notifications everything else
|
||||
# in pixels. If the width is omitted but the height is given
|
||||
# ("-geometry x2"), the message window expands over the whole screen
|
||||
# (dmenu-like). If width is 0, the window expands to the longest
|
||||
# message displayed. A positive x is measured from the left, a
|
||||
# negative from the right side of the screen. Y is measured from
|
||||
# the top and down respectively.
|
||||
# The width can be negative. In this case the actual width is the
|
||||
# screen width minus the width defined in within the geometry option.
|
||||
geometry = "2373x5-0-0"
|
||||
|
||||
# Show how many messages are currently hidden (because of geometry).
|
||||
indicate_hidden = yes
|
||||
|
||||
# Shrink window if it's smaller than the width. Will be ignored if
|
||||
# width is 0.
|
||||
shrink = yes
|
||||
|
||||
# The transparency of the window. Range: [0; 100].
|
||||
# This option will only work if a compositing window manager is
|
||||
# present (e.g. xcompmgr, compiz, etc.).
|
||||
transparency = 0
|
||||
|
||||
# The height of the entire notification. If the height is smaller
|
||||
# than the font height and padding combined, it will be raised
|
||||
# to the font height and padding.
|
||||
notification_height = 0
|
||||
|
||||
# Draw a line of "separator_height" pixel height between two
|
||||
# notifications.
|
||||
# Set to 0 to disable.
|
||||
separator_height = 2
|
||||
|
||||
# Padding between text and separator.
|
||||
padding = 3
|
||||
|
||||
# Horizontal padding.
|
||||
horizontal_padding = 20
|
||||
|
||||
# Defines width in pixels of frame around the notification window.
|
||||
# Set to 0 to disable.
|
||||
frame_width = 1
|
||||
|
||||
# Defines color of the frame around the notification window.
|
||||
frame_color = "cccccc"
|
||||
|
||||
# Define a color for the separator.
|
||||
# possible values are:
|
||||
# * auto: dunst tries to find a color fitting to the background;
|
||||
# * foreground: use the same color as the foreground;
|
||||
# * frame: use the same color as the frame;
|
||||
# * anything else will be interpreted as a X color.
|
||||
separator_color = frame
|
||||
|
||||
# Sort messages by urgency.
|
||||
sort = yes
|
||||
|
||||
# Don't remove messages, if the user is idle (no mouse or keyboard input)
|
||||
# for longer than idle_threshold seconds.
|
||||
# Set to 0 to disable.
|
||||
# Transient notifications ignore this setting.
|
||||
idle_threshold = 120
|
||||
|
||||
### Text ###
|
||||
|
||||
font = IBM Plex Sans 12
|
||||
|
||||
# The spacing between lines. If the height is smaller than the
|
||||
# font height, it will get raised to the font height.
|
||||
line_height = 0
|
||||
|
||||
# Possible values are:
|
||||
# full: Allow a small subset of html markup in notifications:
|
||||
# <b>bold</b>
|
||||
# <i>italic</i>
|
||||
# <s>strikethrough</s>
|
||||
# <u>underline</u>
|
||||
#
|
||||
# For a complete reference see
|
||||
# <http://developer.gnome.org/pango/stable/PangoMarkupFormat.html>.
|
||||
#
|
||||
# strip: This setting is provided for compatibility with some broken
|
||||
# clients that send markup even though it's not enabled on the
|
||||
# server. Dunst will try to strip the markup but the parsing is
|
||||
# simplistic so using this option outside of matching rules for
|
||||
# specific applications *IS GREATLY DISCOURAGED*.
|
||||
#
|
||||
# no: Disable markup parsing, incoming notifications will be treated as
|
||||
# plain text. Dunst will not advertise that it has the body-markup
|
||||
# capability if this is set as a global setting.
|
||||
#
|
||||
# It's important to note that markup inside the format option will be parsed
|
||||
# regardless of what this is set to.
|
||||
markup = full
|
||||
|
||||
# The format of the message. Possible variables are:
|
||||
# %a appname
|
||||
# %s summary
|
||||
# %b body
|
||||
# %i iconname (including its path)
|
||||
# %I iconname (without its path)
|
||||
# %p progress value if set ([ 0%] to [100%]) or nothing
|
||||
# %n progress value if set without any extra characters
|
||||
# %% Literal %
|
||||
# Markup is allowed
|
||||
format = "<b>%a:</b>\n%s\n%b"
|
||||
|
||||
# Alignment of message text.
|
||||
# Possible values are "left", "center" and "right".
|
||||
alignment = left
|
||||
|
||||
# Show age of message if message is older than show_age_threshold
|
||||
# seconds.
|
||||
# Set to -1 to disable.
|
||||
show_age_threshold = 60
|
||||
|
||||
# Split notifications into multiple lines if they don't fit into
|
||||
# geometry.
|
||||
word_wrap = yes
|
||||
|
||||
# When word_wrap is set to no, specify where to ellipsize long lines.
|
||||
# Possible values are "start", "middle" and "end".
|
||||
ellipsize = middle
|
||||
|
||||
# Ignore newlines '\n' in notifications.
|
||||
ignore_newline = no
|
||||
|
||||
# Merge multiple notifications with the same content
|
||||
stack_duplicates = true
|
||||
|
||||
# Hide the count of merged notifications with the same content
|
||||
hide_duplicate_count = false
|
||||
|
||||
# Display indicators for URLs (U) and actions (A).
|
||||
show_indicators = yes
|
||||
|
||||
### Icons ###
|
||||
|
||||
# Align icons left/right/off
|
||||
icon_position = off
|
||||
|
||||
# Scale larger icons down to this size, set to 0 to disable
|
||||
max_icon_size = 32
|
||||
|
||||
# Paths to default icons.
|
||||
icon_path = /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/
|
||||
|
||||
### History ###
|
||||
|
||||
# Should a notification popped up from history be sticky or timeout
|
||||
# as if it would normally do.
|
||||
sticky_history = yes
|
||||
|
||||
# Maximum amount of notifications kept in history
|
||||
history_length = 20
|
||||
|
||||
### Misc/Advanced ###
|
||||
|
||||
# dmenu path.
|
||||
dmenu = /usr/bin/dmenu -p dunst:
|
||||
|
||||
# Browser for opening urls in context menu.
|
||||
browser = /usr/bin/firefox -new-tab
|
||||
|
||||
# Always run rule-defined scripts, even if the notification is suppressed
|
||||
always_run_script = true
|
||||
|
||||
# Define the title of the windows spawned by dunst
|
||||
title = Dunst
|
||||
|
||||
# Define the class of the windows spawned by dunst
|
||||
class = Dunst
|
||||
|
||||
# Print a notification on startup.
|
||||
# This is mainly for error detection, since dbus (re-)starts dunst
|
||||
# automatically after a crash.
|
||||
startup_notification = false
|
||||
|
||||
### Legacy
|
||||
|
||||
# Use the Xinerama extension instead of RandR for multi-monitor support.
|
||||
# This setting is provided for compatibility with older nVidia drivers that
|
||||
# do not support RandR and using it on systems that support RandR is highly
|
||||
# discouraged.
|
||||
#
|
||||
# By enabling this setting dunst will not be able to detect when a monitor
|
||||
# is connected or disconnected which might break follow mode if the screen
|
||||
# layout changes.
|
||||
force_xinerama = false
|
||||
|
||||
# Experimental features that may or may not work correctly. Do not expect them
|
||||
# to have a consistent behaviour across releases.
|
||||
[experimental]
|
||||
# Calculate the dpi to use on a per-monitor basis.
|
||||
# If this setting is enabled the Xft.dpi value will be ignored and instead
|
||||
# dunst will attempt to calculate an appropriate dpi value for each monitor
|
||||
# using the resolution and physical size. This might be useful in setups
|
||||
# where there are multiple screens with very different dpi values.
|
||||
per_monitor_dpi = false
|
||||
|
||||
[shortcuts]
|
||||
|
||||
# Shortcuts are specified as [modifier+][modifier+]...key
|
||||
# Available modifiers are "ctrl", "mod1" (the alt-key), "mod2",
|
||||
# "mod3" and "mod4" (windows-key).
|
||||
# Xev might be helpful to find names for keys.
|
||||
|
||||
# Close notification.
|
||||
close = ctrl+space
|
||||
|
||||
# Close all notifications.
|
||||
close_all = ctrl+shift+space
|
||||
|
||||
# Redisplay last message(s).
|
||||
# On the US keyboard layout "grave" is normally above TAB and left
|
||||
# of "1". Make sure this key actually exists on your keyboard layout,
|
||||
# e.g. check output of 'xmodmap -pke'
|
||||
history = ctrl+grave
|
||||
|
||||
# Context menu.
|
||||
context = ctrl+shift+period
|
||||
|
||||
[urgency_low]
|
||||
# IMPORTANT: colors have to be defined in quotation marks.
|
||||
# Otherwise the "#" and following would be interpreted as a comment.
|
||||
background = "#E1F5FE"
|
||||
foreground = "#01579B"
|
||||
timeout = 10
|
||||
# Icon for notifications with low urgency, uncomment to enable
|
||||
#icon = /path/to/icon
|
||||
|
||||
[urgency_normal]
|
||||
# background = "#285577"
|
||||
background = "#DCEDC8"
|
||||
foreground = "#1B5E20"
|
||||
timeout = 10
|
||||
# Icon for notifications with normal urgency, uncomment to enable
|
||||
#icon = /path/to/icon
|
||||
|
||||
[urgency_critical]
|
||||
background = "#BF360C"
|
||||
foreground = "#FFF59D"
|
||||
frame_color = "#FF7043"
|
||||
timeout = 0
|
||||
# Icon for notifications with critical urgency, uncomment to enable
|
||||
#icon = /path/to/icon
|
||||
|
||||
# Every section that isn't one of the above is interpreted as a rules to
|
||||
# override settings for certain messages.
|
||||
# Messages can be matched by "appname", "summary", "body", "icon", "category",
|
||||
# "msg_urgency" and you can override the "timeout", "urgency", "foreground",
|
||||
# "background", "new_icon" and "format".
|
||||
# Shell-like globbing will get expanded.
|
||||
#
|
||||
# SCRIPTING
|
||||
# You can specify a script that gets run when the rule matches by
|
||||
# setting the "script" option.
|
||||
# The script will be called as follows:
|
||||
# script appname summary body icon urgency
|
||||
# where urgency can be "LOW", "NORMAL" or "CRITICAL".
|
||||
#
|
||||
# NOTE: if you don't want a notification to be displayed, set the format
|
||||
# to "".
|
||||
# NOTE: It might be helpful to run dunst -print in a terminal in order
|
||||
# to find fitting options for rules.
|
||||
|
||||
#[espeak]
|
||||
# summary = "*"
|
||||
# script = dunst_espeak.sh
|
||||
|
||||
#[script-test]
|
||||
# summary = "*script*"
|
||||
# script = dunst_test.sh
|
||||
|
||||
#[ignore]
|
||||
# # This notification will not be displayed
|
||||
# summary = "foobar"
|
||||
# format = ""
|
||||
|
||||
#[history-ignore]
|
||||
# # This notification will not be saved in history
|
||||
# summary = "foobar"
|
||||
# history_ignore = yes
|
||||
|
||||
#[signed_on]
|
||||
# appname = Pidgin
|
||||
# summary = "*signed on*"
|
||||
# urgency = low
|
||||
#
|
||||
#[signed_off]
|
||||
# appname = Pidgin
|
||||
# summary = *signed off*
|
||||
# urgency = low
|
||||
#
|
||||
#[says]
|
||||
# appname = Pidgin
|
||||
# summary = *says*
|
||||
# urgency = critical
|
||||
#
|
||||
#[twitter]
|
||||
# appname = Pidgin
|
||||
# summary = *twitter.com*
|
||||
# urgency = normal
|
||||
#
|
||||
# vim: ft=cfg
|
|
@ -1 +0,0 @@
|
|||
PATH=$HOME/bin:$HOME/.local/bin:$HOME/go/bin:$PATH:/bin:/sbin:/usr/sbin:/usr/local/sbin
|
|
@ -1,12 +0,0 @@
|
|||
VDPAU_DRIVER=va_gl
|
||||
|
||||
# MOZ_ENABLE_WAYLAND=1
|
||||
MOZ_WEBRENDER=1
|
||||
|
||||
_JAVA_AWT_WM_NONREPARENTING=1
|
||||
|
||||
# QT_QPA_PLATFORM=wayland
|
||||
# QT_WAYLAND_DISABLE_WINDOWDECORATION=1
|
||||
# QT_SCALE_FACTOR=1
|
||||
|
||||
XDG_SESSION_TYPE=x11
|
|
@ -1 +0,0 @@
|
|||
/etc/fonts/conf.avail/10-sub-pixel-rgb.conf
|
|
@ -1 +0,0 @@
|
|||
/etc/fonts/conf.avail/11-lcdfilter-default.conf
|
|
@ -1,17 +0,0 @@
|
|||
[Settings]
|
||||
gtk-theme-name=Arc-Dark
|
||||
gtk-icon-theme-name=breeze-dark
|
||||
gtk-font-name=IBM Plex Sans 9
|
||||
gtk-cursor-theme-name=Bibata_Oil
|
||||
gtk-cursor-theme-size=32
|
||||
gtk-toolbar-style=GTK_TOOLBAR_BOTH_HORIZ
|
||||
gtk-toolbar-icon-size=GTK_ICON_SIZE_SMALL_TOOLBAR
|
||||
gtk-button-images=0
|
||||
gtk-menu-images=0
|
||||
gtk-enable-event-sounds=0
|
||||
gtk-enable-input-feedback-sounds=0
|
||||
gtk-xft-antialias=1
|
||||
gtk-xft-hinting=1
|
||||
gtk-xft-hintstyle=hintslight
|
||||
gtk-xft-rgba=rgb
|
||||
gtk-application-prefer-dark-theme=0
|
|
@ -1,793 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
#
|
||||
# battery-plus
|
||||
#
|
||||
# An enhanced battery status indicator for i3blocks.
|
||||
#
|
||||
# Requires:
|
||||
# awk (POSIX compatible)
|
||||
# bc
|
||||
# upower
|
||||
#
|
||||
# Optional:
|
||||
# fonts-font-awesome
|
||||
# notify-send or dunstify -- for notifications
|
||||
# zenity -- for dialogs
|
||||
#
|
||||
# Copyright (c) 2018 Beau Hastings. All rights reserved.
|
||||
# License: GNU General Public License v2
|
||||
#
|
||||
# Author: Beau Hastings <beau@saweet.net>
|
||||
# URL: https://github.com/hastinbe/i3blocks-battery-plus
|
||||
|
||||
_FONT=${_FONT:-"FontAwesome"}
|
||||
_PERCENT="%"
|
||||
|
||||
# Hide the battery status if fully-charged,
|
||||
_HIDE_IF_CHARGED=${_HIDE_IF_CHARGED:-false}
|
||||
|
||||
# Color the battery symbol using gradient.
|
||||
_USE_BATT_GRADIENT=${_USE_BATT_GRADIENT:-false}
|
||||
|
||||
# Only show symbols.
|
||||
_SYMBOLS_ONLY=${_SYMBOLS_ONLY:-false}
|
||||
|
||||
# Hide the battery percentage
|
||||
_HIDE_PERCENTAGE=${_HIDE_PERCENTAGE:-false}
|
||||
|
||||
# Hide the battery time remaining
|
||||
_HIDE_TIME_REMAINING=${_HIDE_TIME_REMAINING:-true}
|
||||
|
||||
# Hide the time to charge the battery to full
|
||||
_HIDE_TIME_TO_FULL=${_HIDE_TIME_TO_FULL:-true}
|
||||
|
||||
# Show the direction of change for the battery's percentage
|
||||
_SHOW_CHARGE_DIRECTION=${_SHOW_CHARGE_DIRECTION:-true}
|
||||
|
||||
# Show an alert symbol when the battery capacity drops to the given percent (0=disable).
|
||||
_CAPACITY_ALERT=${_CAPACITY_ALERT:-75}
|
||||
|
||||
# Action to take when the battery level reaches critical.
|
||||
_CRITICAL_ACTION=${_CRITICAL_ACTION:-"notify"}
|
||||
|
||||
# Action to take when the battery level reaches low.
|
||||
_LOW_ACTION=${_LOW_ACTION:-"notify"}
|
||||
|
||||
# Method to use for notifications
|
||||
_NOTIFY_PROGRAM=${_NOTIFY_PROGRAM:-"notify-send"}
|
||||
|
||||
# The duration, in milliseconds, for the notification to appear on screen.
|
||||
_NOTIFY_EXPIRES="1500"
|
||||
|
||||
# Minimum time in seconds between notifications to prevent spam.
|
||||
_NOTIFY_THROTTLE=${_NOTIFY_THROTTLE:-120}
|
||||
|
||||
# Colors
|
||||
_COLOR_FULLY_CHARGED=${_COLOR_FULLY_CHARGED:-""}
|
||||
_COLOR_CHARGING=${_COLOR_CHARGING:-"yellow"}
|
||||
_COLOR_DISCHARGING=${_COLOR_CHARGING:-"yellow"}
|
||||
_COLOR_PENDING=${_COLOR_PENDING:-"blue"}
|
||||
_COLOR_ERROR=${_COLOR_ERROR:-"red"}
|
||||
_COLOR_BATTERY=${_COLOR_BATTERY:-"white"}
|
||||
_COLOR_ALERT=${_COLOR_ALERT:-"orange"}
|
||||
_COLOR_DIRECTIONAL_UP=${_COLOR_DIRECTIONAL_UP:-"green"}
|
||||
_COLOR_DIRECTIONAL_DOWN=${_COLOR_DIRECTIONAL_DOWN:-"red"}
|
||||
_COLOR_GRADIENT_START=${_COLOR_GRADIENT_START:-"#FF0000"}
|
||||
_COLOR_GRADIENT_END=${_COLOR_GRADIENT_END:-"#00FF00"}
|
||||
|
||||
# Symbols
|
||||
_SYMBOL_FULLY_CHARGED=${_SYMBOL_FULLY_CHARGED:-""}
|
||||
_SYMBOL_CHARGING=${_SYMBOL_CHARGING:-""}
|
||||
_SYMBOL_DISCHARGING=${_SYMBOL_DISCHARGING:-""}
|
||||
_SYMBOL_UNKNOWN=${_SYMBOL_UNKNOWN:-""}
|
||||
_SYMBOL_PENDING=${_SYMBOL_PENDING:-""}
|
||||
_SYMBOL_ERROR=${_SYMBOL_ERROR:-""}
|
||||
_SYMBOL_ALERT=${_SYMBOL_ALERT:-""}
|
||||
_SYMBOL_BATT_100=${_SYMBOL_BATT_100:-""}
|
||||
_SYMBOL_BATT_75=${_SYMBOL_BATT_75:-""}
|
||||
_SYMBOL_BATT_50=${_SYMBOL_BATT_50:-""}
|
||||
_SYMBOL_BATT_25=${_SYMBOL_BATT_25:-""}
|
||||
_SYMBOL_BATT_0=${_SYMBOL_BATT_0:-""}
|
||||
_SYMBOL_DIRECTION_UP=${_SYMBOL_DIRECTION_UP:-"↑"}
|
||||
_SYMBOL_DIRECTION_DOWN=${_SYMBOL_DIRECTION_DOWN:-"↓"}
|
||||
|
||||
# Get a the system's temporary files directory.
|
||||
#
|
||||
# Notes:
|
||||
# Executes a dry-run so we don't create a file.
|
||||
# Linux doesn't require the template option, but MacOSX does.
|
||||
#
|
||||
# Returns:
|
||||
# The path to the temporary directory.
|
||||
get_temp_dir() {
|
||||
echo $(dirname $(mktemp -ut "battery-plus.XXX"))
|
||||
}
|
||||
|
||||
# Output text wrapped in a span element
|
||||
#
|
||||
# Options:
|
||||
# -c <color> To specify a text color
|
||||
#
|
||||
# Arguments:
|
||||
# $1 or $3 - String to encapsulate within a span
|
||||
span() {
|
||||
local -A attribs
|
||||
local text="$*"
|
||||
|
||||
if [ -n "$FONT" ]; then attribs[font]="$FONT"; fi
|
||||
|
||||
if [ "$1" = "-c" ]; then
|
||||
attribs[color]="$2"
|
||||
text="${*:3}"
|
||||
fi
|
||||
|
||||
echo "<span$(build_attribs attribs)>$text</span>"
|
||||
}
|
||||
|
||||
# Builds html element attributes
|
||||
#
|
||||
# Arguments:
|
||||
# $1 - An associative array of attribute-value pairs
|
||||
build_attribs() {
|
||||
local -n array=$1
|
||||
for k in "${!array[@]}"; do
|
||||
echo -n " $k='${array[$k]}'"
|
||||
done
|
||||
echo
|
||||
}
|
||||
|
||||
# Interpolate between 2 RGB colors
|
||||
#
|
||||
# Arguments:
|
||||
# $1 - Color to interpolate from, as a hex triplet prefixed with #
|
||||
# $2 - Color to interpolate to, as a hex triplet prefixed with #
|
||||
# $3 - Amount of steps needed to get from start to end color
|
||||
interpolate_rgb() {
|
||||
local -i steps=$3
|
||||
local -a colors
|
||||
local color1=$1
|
||||
local color2=$2
|
||||
local reversed=false
|
||||
|
||||
if (( 0x${color1:1:5} > 0x${color2:1:5} )); then
|
||||
color1=$2
|
||||
color2=$1
|
||||
reversed=true
|
||||
fi
|
||||
|
||||
printf -v startR "%d" 0x${color1:1:2}
|
||||
printf -v startG "%d" 0x${color1:3:2}
|
||||
printf -v startB "%d" 0x${color1:5:2}
|
||||
printf -v endR "%d" 0x${color2:1:2}
|
||||
printf -v endG "%d" 0x${color2:3:2}
|
||||
printf -v endB "%d" 0x${color2:5:2}
|
||||
|
||||
stepR=$(( ($endR - $startR) / $steps ))
|
||||
stepG=$(( ($endG - $startG) / $steps ))
|
||||
stepB=$(( ($endB - $startB) / $steps ))
|
||||
|
||||
for i in $(seq 0 $steps); do
|
||||
local -i R=$(( $startR + ($stepR * $i) ))
|
||||
local -i G=$(( $startG + ($stepG * $i) ))
|
||||
local -i B=$(( $startB + ($stepB * $i) ))
|
||||
|
||||
colors+=( "$(printf "#%02x%02x%02x\n" $R $G $B)" )
|
||||
done
|
||||
colors+=( "$(printf "#%02x%02x%02x\n" $endR $endB $endG)" )
|
||||
|
||||
if $reversed; then
|
||||
reverse colors colors_reversed
|
||||
echo "${colors_reversed[@]}"
|
||||
else
|
||||
echo "${colors[@]}"
|
||||
fi
|
||||
}
|
||||
|
||||
# Reverse an array
|
||||
#
|
||||
# Arguments:
|
||||
# $1 - Array to reverse
|
||||
# $2 - Destination array
|
||||
reverse() {
|
||||
local -n arr="$1" rev="$2"
|
||||
for i in "${arr[@]}"
|
||||
do
|
||||
rev=("$i" "${rev[@]}")
|
||||
done
|
||||
}
|
||||
|
||||
min() {
|
||||
echo "if ($1 < $2) $1 else $2" | bc
|
||||
}
|
||||
|
||||
max() {
|
||||
echo "if ($1 > $2) $1 else $2" | bc
|
||||
}
|
||||
|
||||
clamp() {
|
||||
echo $(min $(max $1 $2) $3)
|
||||
}
|
||||
|
||||
# Retrieve an item from the provided lookup table based on the percentage of a number
|
||||
#
|
||||
# Arguments:
|
||||
# $1 - A number
|
||||
# $2 - Number to get a percentage of
|
||||
# $3 - An array of potential values
|
||||
plookup() {
|
||||
if [ -z "$2" -o -z "$3" ]; then
|
||||
return
|
||||
fi
|
||||
|
||||
local table=( ${@:3} )
|
||||
local number2=${2%.*}
|
||||
local number1=$(min ${1%.*} $number2)
|
||||
local percent_max=$(( $number1 * $number2 / 100 ))
|
||||
local index=$(( $percent_max * ${#table[@]} / 100 ))
|
||||
|
||||
index=$(clamp $index 0 $(( ${#table[@]} - 1 )) )
|
||||
|
||||
echo ${table[$index]}
|
||||
}
|
||||
|
||||
# Get battery status.
|
||||
#
|
||||
# Returns:
|
||||
# The battery's status or state.
|
||||
get_battery_status() {
|
||||
echo "$__UPOWER_INFO" | awk -W posix '$1 == "state:" {print $2}'
|
||||
}
|
||||
|
||||
# Get battery warning level.
|
||||
#
|
||||
# Returns:
|
||||
# The battery's warning level.
|
||||
get_battery_warning_level() {
|
||||
echo "$__UPOWER_INFO" | awk -W posix '$1 == "warning-level:" {print $2}'
|
||||
}
|
||||
|
||||
# Get battery percentage.
|
||||
#
|
||||
# Returns:
|
||||
# The battery's percentage, without the %.
|
||||
get_battery_percent() {
|
||||
echo "$__UPOWER_INFO" | awk -W posix '$1 == "percentage:" { gsub("%","",$2); print $2}'
|
||||
}
|
||||
|
||||
# Get battery capacity.
|
||||
#
|
||||
# Returns:
|
||||
# The battery's capcity, without the %.
|
||||
get_battery_capacity() {
|
||||
echo "$__UPOWER_INFO" | awk -W posix '$1 == "capacity:" { gsub("%","",$2); print $2}'
|
||||
}
|
||||
|
||||
# Get battery time left.
|
||||
#
|
||||
# Returns:
|
||||
# The battery's time left.
|
||||
get_time_to_empty() {
|
||||
echo "$__UPOWER_INFO" | awk -W posix -F':' '/time to empty:/{print $2}' | xargs
|
||||
}
|
||||
|
||||
# Get the time remaining until the battery is fully charged.
|
||||
#
|
||||
# Returns:
|
||||
# The time remaining until battery is fully charged.
|
||||
get_time_to_full() {
|
||||
echo "$__UPOWER_INFO" | awk -W posix -F':' '/time to full:/{print $2}' | xargs
|
||||
}
|
||||
|
||||
# Get symbol for the given battery percentage.
|
||||
#
|
||||
# Arguments:
|
||||
# $percent (int) Battery percentage.
|
||||
#
|
||||
# Returns:
|
||||
# The battery symbol.
|
||||
get_battery_charge_symbol() {
|
||||
local percent="$1"
|
||||
local symbol
|
||||
|
||||
if [ "$battery_percentage" -ge 90 ]; then symbol="$_SYMBOL_BATT_100"
|
||||
elif [ "$battery_percentage" -ge 70 ]; then symbol="$_SYMBOL_BATT_75"
|
||||
elif [ "$battery_percentage" -ge 40 ]; then symbol="$_SYMBOL_BATT_50"
|
||||
elif [ "$battery_percentage" -ge 20 ]; then symbol="$_SYMBOL_BATT_25"
|
||||
else symbol="$_SYMBOL_BATT_0"
|
||||
fi
|
||||
|
||||
echo "$symbol"
|
||||
}
|
||||
|
||||
# Get battery status symbol.
|
||||
#
|
||||
# Returns:
|
||||
# An symbol name, following the Symbol Naming Specification
|
||||
get_battery_status_symbol() {
|
||||
echo "$__UPOWER_INFO" | awk -W posix '$1 == "symbol-name:" {print $2}'
|
||||
}
|
||||
|
||||
# Get color for the given battery percentage.
|
||||
#
|
||||
# Arguments:
|
||||
# $percent (int) Battery percentage.
|
||||
#
|
||||
# Returns:
|
||||
# The color to use for the given battery percentage.
|
||||
get_percentage_color() {
|
||||
local colors=( $(interpolate_rgb "$_COLOR_GRADIENT_START" "$_COLOR_GRADIENT_END" 8) )
|
||||
echo $(plookup $1 100 ${colors[@]})
|
||||
}
|
||||
|
||||
# Determines whether or not we can send a notification.
|
||||
#
|
||||
# Returns:
|
||||
# 0 on false, 1 on true.
|
||||
can_notify() {
|
||||
local -i now=$(date +"%s")
|
||||
local -i last=$(get_last_notify_time)
|
||||
|
||||
if [ -z "$last" ]; then return 0; fi
|
||||
|
||||
local -i diff=$(($now - $last))
|
||||
|
||||
[ $diff -gt $_NOTIFY_THROTTLE ]
|
||||
}
|
||||
|
||||
# Get the last time we sent a notification.
|
||||
#
|
||||
# Returns:
|
||||
# Time in seconds since the Epoch.
|
||||
get_last_notify_time() {
|
||||
if [ -f "$TMP_NOTIFY" ]; then
|
||||
echo $(stat -c '%Y' "$TMP_NOTIFY")
|
||||
fi
|
||||
}
|
||||
|
||||
# Save the last time we sent a notification.
|
||||
save_last_notify_time() {
|
||||
touch -m "$TMP_NOTIFY"
|
||||
}
|
||||
|
||||
# Display the charging indicator.
|
||||
#
|
||||
# Returns:
|
||||
# The charging indicator.
|
||||
display_batt_charging() {
|
||||
if [ -n "$_SYMBOL_CHARGING" ]; then
|
||||
echo -n "$(span -c "${_COLOR_CHARGING}" "$_SYMBOL_CHARGING") "
|
||||
fi
|
||||
|
||||
echo "$colored_battery_symbol"
|
||||
}
|
||||
|
||||
# Display the discharging indicator.
|
||||
#
|
||||
# Returns:
|
||||
# The discharging indicator.
|
||||
display_batt_discharging() {
|
||||
if [ -n "$_SYMBOL_DISCHARGING" ]; then
|
||||
echo -n "$(span -c "${_COLOR_DISCHARGING}" "$_SYMBOL_DISCHARGING") "
|
||||
fi
|
||||
|
||||
echo "$battery_charge_symbol"
|
||||
}
|
||||
|
||||
# Display the pending charge indicator.
|
||||
#
|
||||
# Returns:
|
||||
# The pending charge indicator.
|
||||
display_batt_pending_charge() {
|
||||
if [ -n "$_SYMBOL_PENDING" ]; then
|
||||
echo -n "$(span -c "${_COLOR_PENDING}" "$_SYMBOL_PENDING") "
|
||||
fi
|
||||
|
||||
if [ -n "$_SYMBOL_CHARGING" ]; then
|
||||
echo -n "$(span -c "${_COLOR_CHARGING}" "$_SYMBOL_CHARGING") "
|
||||
fi
|
||||
|
||||
echo "${battery_charge_symbol}"
|
||||
}
|
||||
|
||||
# Display the pending discharge indicator.
|
||||
#
|
||||
# Returns:
|
||||
# The pending discharge indicator.
|
||||
display_batt_pending_discharge() {
|
||||
if [ -n "$_SYMBOL_PENDING" ]; then
|
||||
echo -n "$(span -c "${_COLOR_PENDING}" "$_SYMBOL_PENDING") "
|
||||
fi
|
||||
|
||||
if [ -n "$_SYMBOL_DISCHARGING" ]; then
|
||||
echo -n "$(span -c "${_COLOR_DISCHARGING}" "$_SYMBOL_DISCHARGING") "
|
||||
fi
|
||||
|
||||
echo "$colored_battery_symbol"
|
||||
}
|
||||
|
||||
# Display the empty battery indicator.
|
||||
#
|
||||
# Returns:
|
||||
# The empty battery indicator.
|
||||
display_batt_empty() {
|
||||
echo "$battery_charge_symbol"
|
||||
}
|
||||
|
||||
# Display the fully charged indicator.
|
||||
#
|
||||
# Returns:
|
||||
# The fully-charged indicator.
|
||||
display_batt_fully_charged() {
|
||||
if [ -n "$_SYMBOL_FULLY_CHARGED" ]; then
|
||||
echo -n "$(span -c "${_COLOR_FULLY_CHARGED}" "$_SYMBOL_FULLY_CHARGED") "
|
||||
fi
|
||||
|
||||
echo "$battery_charge_symbol"
|
||||
}
|
||||
|
||||
# Display the unknown battery indicator.
|
||||
#
|
||||
# Returns:
|
||||
# The unknonw battery indicator.
|
||||
display_batt_unknown() {
|
||||
if [ -n "$_SYMBOL_UNKNOWN" ]; then
|
||||
echo -n "$(span "$_SYMBOL_UNKNOWN") "
|
||||
fi
|
||||
|
||||
echo "$(get_battery_charge_symbol 0)"
|
||||
}
|
||||
|
||||
# Display the battery error indicator.
|
||||
#
|
||||
# Returns:
|
||||
# The battery error indicator.
|
||||
display_batt_error() {
|
||||
echo "$(span -c "${_COLOR_ERROR}" "$_SYMBOL_ERROR" "$_SYMBOL_BATT_0")"
|
||||
}
|
||||
|
||||
# Display the battery percentage.
|
||||
#
|
||||
# Returns:
|
||||
# The battery percentage, or nothing if disabled.
|
||||
display_percentage() {
|
||||
if ! [ $_SYMBOLS_ONLY = true -o $_HIDE_PERCENTAGE = true ]; then
|
||||
echo -n " $(span -c "${percentage_color}" "${battery_percentage:---}${_PERCENT}")"
|
||||
|
||||
if [ "$status" = "charging" ] && $_SHOW_CHARGE_DIRECTION; then
|
||||
echo -n "$(span -c "${_COLOR_DIRECTIONAL_UP}" "${_SYMBOL_DIRECTION_UP}")"
|
||||
elif [ "$status" = "discharging" ] && $_SHOW_CHARGE_DIRECTION; then
|
||||
echo -n "$(span -c "${_COLOR_DIRECTIONAL_DOWN}" "${_SYMBOL_DIRECTION_DOWN}")"
|
||||
fi
|
||||
|
||||
echo
|
||||
fi
|
||||
}
|
||||
|
||||
# Display the battery time remaining.
|
||||
#
|
||||
# Arguments:
|
||||
# $force (bool) Force display.
|
||||
#
|
||||
# Returns:
|
||||
# The time remaining, or nothing if disabled.
|
||||
display_time_remaining() {
|
||||
local force=${1:-false}
|
||||
|
||||
if [ $force = true ] || ! [ $_SYMBOLS_ONLY = true -o $_HIDE_TIME_REMAINING = true ]; then
|
||||
time_to_empty=$(get_time_to_empty "$battery_info")
|
||||
if [ -n "$time_to_empty" ]; then
|
||||
echo "$time_to_empty"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
# Display the battery time to fully charge.
|
||||
#
|
||||
# Arguments:
|
||||
# $force (bool) Force display.
|
||||
#
|
||||
# Returns:
|
||||
# The time to fully charge, or nothing if disabled.
|
||||
display_time_to_full() {
|
||||
local force=${1:-false}
|
||||
|
||||
if [ $force = true ] || ! [ $_SYMBOLS_ONLY = true -o $_HIDE_TIME_TO_FULL = true ]; then
|
||||
time_to_full=$(get_time_to_full "$battery_info")
|
||||
if [ -n "$time_to_full" ]; then
|
||||
echo "$time_to_full"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
# Displays an array of segments.
|
||||
#
|
||||
# Arguments:
|
||||
# $segments (array) The an array of segments.
|
||||
#
|
||||
# Returns:
|
||||
# Each segment after another, followed by a newline.
|
||||
display_segments() {
|
||||
local -a segments="$@"
|
||||
|
||||
for segment in "${segments[@]}"; do
|
||||
if [ -n "$segment" ]; then
|
||||
echo -n "$segment"
|
||||
fi
|
||||
done
|
||||
|
||||
echo
|
||||
}
|
||||
|
||||
# Colors text using either the first or second color
|
||||
#
|
||||
# Arguments:
|
||||
# $1 - Text
|
||||
# $2 - Color to use if toggle is false
|
||||
# $3 - Color to use if toggle is true
|
||||
# $4 - A boolean used to toggle between colors
|
||||
#
|
||||
# Returns:
|
||||
# The colored text
|
||||
multicolor() {
|
||||
local color="$2"
|
||||
local toggle=$4
|
||||
|
||||
if $toggle && [ -n "$3" ]; then
|
||||
color="$3"
|
||||
fi
|
||||
|
||||
if [ -n "$color" ]; then
|
||||
echo "$(span -c "$color" "$1")"
|
||||
else
|
||||
echo "$(span "$1")"
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
# Display a notification.
|
||||
#
|
||||
# Arguments:
|
||||
# $text (string) The notification text.
|
||||
# $symbol (string) Name of an symbol.
|
||||
# $type (string) The type of notification.
|
||||
# $force (string) Force the notification, ignoring any throttle.
|
||||
# $rest (string) Any additional options to pass to the command.
|
||||
notify() {
|
||||
local text="$1"
|
||||
local symbol="$2"
|
||||
local type="$3"
|
||||
local force="$4"
|
||||
local rest="${@:5}"
|
||||
local command
|
||||
|
||||
if [ -z "$text" ] || ! $force && ! $(can_notify); then return; fi
|
||||
|
||||
if [ "$_NOTIFY_PROGRAM" = "dunstify" ]; then
|
||||
command="dunstify -r 1001"
|
||||
elif [ "$_NOTIFY_PROGRAM" = "notify-send" ]; then
|
||||
command="notify-send"
|
||||
fi
|
||||
|
||||
if [ -n "$_NOTIFY_EXPIRES" ]; then command="$command -t $_NOTIFY_EXPIRES"; fi
|
||||
if [ -n "$symbol" ]; then command="$command -i $symbol"; fi
|
||||
if [ -n "$type" ]; then command="$command -u $type"; fi
|
||||
|
||||
command="$command $rest \"$text\""
|
||||
if eval $command; then
|
||||
save_last_notify_time
|
||||
fi
|
||||
}
|
||||
|
||||
# Display a dialog.
|
||||
#
|
||||
# Arguments:
|
||||
# $text (string) The dialog text.
|
||||
# $symbol (string) Name of an symbol.
|
||||
# $type (string) The type of dialog.
|
||||
# $rest (string) Any additional options to pass to the command.
|
||||
dialog() {
|
||||
local text="$1"
|
||||
local symbol="$2"
|
||||
local type="$3"
|
||||
local rest="${@:4}"
|
||||
|
||||
if [ -z "$text" ]; then
|
||||
return
|
||||
fi
|
||||
|
||||
command="zenity"
|
||||
|
||||
if [ -n "$symbol" ]; then command="$command --symbol-name=\"$symbol\""; fi
|
||||
if [ -n "$type" ]; then command="$command --${type}"; fi
|
||||
|
||||
command="$command --text=\"$text\" $rest"
|
||||
eval $command
|
||||
}
|
||||
|
||||
# Display program usage.
|
||||
usage() {
|
||||
echo -e "Usage: $0 [options]
|
||||
Display the battery status using upower for i3blocks.\n
|
||||
Options:
|
||||
-a <none|notify>\taction to take when battery is low
|
||||
-A <color>\t\tcolor of the alert symbol
|
||||
-B <color>\t\tcolor of the battery symbol
|
||||
-c <capacity>\t\tset battery capacity alert percentage (0=disable)
|
||||
-C <color>\t\tcolor of the charging symbol
|
||||
-d\t\t\tshow the direction of change for the battery's percentage
|
||||
-D <color>\t\tcolor of the discharging symbol
|
||||
-e <millseconds>\texpiration time of notifications (Ubuntu's Notify OSD and GNOME Shell both ignore this parameter.)
|
||||
-E <color>\t\tcolor of the battery error symbol
|
||||
-f <font>\t\tfont for text and symbols
|
||||
-F <color>\t\tcolor of the fully-charged symbol
|
||||
-G\t\t\tcolor the battery symbol according to battery percentage
|
||||
-h\t\t\tdisplay this help and exit
|
||||
-H\t\t\tsuppress displaying if battery is fully-charged
|
||||
-i <color>\t\tcolor gradient start color
|
||||
-I\t\t\tonly display symbols
|
||||
-j <color>\t\tcolor gradient end color
|
||||
-J <symbol>\t\tsymbol for a battery 100% charged
|
||||
-k\t\t\thide the battery percentage
|
||||
-K <symbol>\t\tsymbol for a battery 75% charged
|
||||
-l <none|notify>\taction to take when the battery level reaches critical
|
||||
-L <symbol>\t\tsymbol to indicate there is an alert
|
||||
-M <symbol>\t\tsymbol for a battery 50% charged
|
||||
-n <program>\t\ta libnotify compatible notification program
|
||||
-N <color>\t\tcolor of the battery charge decreasing indicator
|
||||
-O <symbol>\t\tsymbol for a battery with no/low charge
|
||||
-p <symbol>\t\tsymbol to use for the percent sign
|
||||
-P <color>\t\tcolor of the pending charge symbol
|
||||
-Q <symbol>\t\tsymbol for a battery 25% charged
|
||||
-r\t\t\thide the battery time remaining
|
||||
-R <symbol>\t\tsymbol to indicate the battery state is undefined
|
||||
-S <symbol>\t\tsymbol to indicate battery is fully charged
|
||||
-t <seconds>\t\tminimum time in seconds between notifications to prevent spam
|
||||
-T <symbol>\t\tsymbol to indicate the battery is charging
|
||||
-u\t\t\thide the time to charge the battery to full
|
||||
-U <color>\t\tcolor of the battery charge increasing indicator
|
||||
-V <symbol>\t\tsymbol to indicate the battery state is unknown
|
||||
-W <symbol>\t\tsymbol to indicate battery charge is increasing
|
||||
-X <symbol>\t\tsymbol to indicate the battery state is pending
|
||||
-Y <symbol>\t\tsymbol to indicate the battery is discharging
|
||||
-Z <symbol>\t\tsymbol to indicate battery charge is decreasing
|
||||
" 1>&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
###############################################################################
|
||||
|
||||
declare -a long_segments
|
||||
declare -a short_segments
|
||||
|
||||
__UPOWER_INFO=$(upower --show-info "/org/freedesktop/UPower/devices/battery_${BLOCK_INSTANCE:-BAT0}")
|
||||
TMP_NOTIFY="$(get_temp_dir)/battery-plus.last_notify"
|
||||
|
||||
while getopts "a:A:B:c:C:dD:e:E:f:F:GhHi:Ij:J:kK:l:L:M:n:N:O:p:P:Q:rR:S:t:T:uU:V:W:X:Y:Z:" o; do
|
||||
case "$o" in
|
||||
a) _LOW_ACTION="${OPTARG}" ;;
|
||||
A) _COLOR_ALERT="${OPTARG}" ;;
|
||||
B) _COLOR_BATTERY="${OPTARG}" ;;
|
||||
c) _CAPACITY_ALERT="${OPTARG}" ;;
|
||||
C) _COLOR_CHARGING="${OPTARG}" ;;
|
||||
d) _SHOW_CHARGE_DIRECTION=true ;;
|
||||
D) _COLOR_DISCHARGING="${OPTARG}" ;;
|
||||
e) _NOTIFY_EXPIRES="${OPTARG}" ;;
|
||||
E) _COLOR_ERROR="${OPTARG}" ;;
|
||||
f) _FONT="${OPTARG}" ;;
|
||||
F) _COLOR_FULLY_CHARGED="${OPTARG}" ;;
|
||||
G) _USE_BATT_GRADIENT=true ;;
|
||||
h | *) usage ;;
|
||||
H) _HIDE_IF_CHARGED=true ;;
|
||||
i) _COLOR_GRADIENT_START="${OPTARG}" ;;
|
||||
I) _SYMBOLS_ONLY=true ;;
|
||||
j) _COLOR_GRADIENT_END="${OPTARG}" ;;
|
||||
J) _SYMBOL_BATT_100="${OPTARG}" ;;
|
||||
k) _HIDE_PERCENTAGE=true ;;
|
||||
K) _SYMBOL_BATT_75="${OPTARG}" ;;
|
||||
l) _CRITICAL_ACTION="${OPTARG}" ;;
|
||||
L) _SYMBOL_ALERT="${OPTARG}" ;;
|
||||
M) _SYMBOL_BATT_50="${OPTARG}" ;;
|
||||
n) _NOTIFY_PROGRAM="${OPTARG}" ;;
|
||||
N) _COLOR_DIRECTIONAL_DOWN="${OPTARG}" ;;
|
||||
O) _SYMBOL_BATT_0="${OPTARG}" ;;
|
||||
p) _PERCENT="${OPTARG}" ;;
|
||||
P) _COLOR_PENDING="${OPTARG}" ;;
|
||||
Q) _SYMBOL_BATT_25="${OPTARG}" ;;
|
||||
r) _HIDE_TIME_REMAINING=true ;;
|
||||
R) _SYMBOL_ERROR="${OPTARG}" ;;
|
||||
S) _SYMBOL_FULLY_CHARGED="${OPTARG}" ;;
|
||||
t) _NOTIFY_THROTTLE="${OPTARG}" ;;
|
||||
T) _SYMBOL_CHARGING="${OPTARG}" ;;
|
||||
u) _HIDE_TIME_TO_FULL=true ;;
|
||||
U) _COLOR_DIRECTIONAL_UP="${OPTARG}" ;;
|
||||
V) _SYMBOL_UNKNOWN="${OPTARG}" ;;
|
||||
W) _SYMBOL_DIRECTION_UP="${OPTARG}" ;;
|
||||
X) _SYMBOL_PENDING="${OPTARG}" ;;
|
||||
Y) _SYMBOL_DISCHARGING="${OPTARG}" ;;
|
||||
Z) _SYMBOL_DIRECTION_DOWN="${OPTARG}" ;;
|
||||
esac
|
||||
done
|
||||
shift $((OPTIND-1)) # Shift off options and optional --
|
||||
|
||||
battery_percentage=$(get_battery_percent)
|
||||
percentage_color=$(get_percentage_color "$battery_percentage")
|
||||
capacity=$(get_battery_capacity)
|
||||
battery_charge_symbol=$(get_battery_charge_symbol "$battery_percentage")
|
||||
battery_status_symbol=$(get_battery_status_symbol)
|
||||
colored_battery_symbol=$(multicolor "$battery_charge_symbol" "$_COLOR_BATTERY" "$percentage_color" $_USE_BATT_GRADIENT)
|
||||
warning_level=$(get_battery_warning_level)
|
||||
|
||||
# Handle battery warning levels
|
||||
case "$warning_level" in
|
||||
critical)
|
||||
case "$_CRITICAL_ACTION" in
|
||||
notify) $(notify "$(span "Your battery level is ${warning_level}!")" "$battery_status_symbol" "critical" false "-c device") ;;
|
||||
esac
|
||||
;;
|
||||
low)
|
||||
case "$_LOW_ACTION" in
|
||||
notify) $(notify "$(span "Your battery level is ${warning_level}")" "$battery_status_symbol" "normal" false "-c device") ;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
|
||||
# Displayable alerts
|
||||
if [ "$_CAPACITY_ALERT" -gt 0 ] && [ "${capacity%.*}" -le $_CAPACITY_ALERT ]; then
|
||||
CAPACITY_TRIGGERED=true
|
||||
long_segments+=( "$(span -c "$_COLOR_ALERT" "$_SYMBOL_ALERT") " )
|
||||
fi
|
||||
|
||||
# Battery statuses
|
||||
status=$(get_battery_status)
|
||||
case "$status" in
|
||||
charging) long_segments+=( "$(display_batt_charging)" ) ;;
|
||||
discharging) long_segments+=( "$(display_batt_discharging)" ) ;;
|
||||
empty) long_segments+=( "$(display_batt_empty)" ) ;;
|
||||
fully-charged)
|
||||
if $_HIDE_IF_CHARGED; then
|
||||
exit 0
|
||||
fi
|
||||
long_segments+=( "$(display_batt_fully_charged)" )
|
||||
;;
|
||||
pending-charge) long_segments+=( "$(display_batt_pending_charge)" ) ;;
|
||||
pending-discharge) long_segments+=( "$(display_batt_pending_discharge)" ) ;;
|
||||
unknown) long_segments+=( "$(display_batt_unknown)" ) ;;
|
||||
*) long_segments+=( "$(display_batt_error)" ) ;;
|
||||
esac
|
||||
|
||||
# Since long_segments contains no text at this point, lets use it for the short_text
|
||||
short_segments=( "${long_segments[@]}" )
|
||||
|
||||
# Append all text segments
|
||||
long_segments+=( "$(display_percentage)" )
|
||||
if [ -n "$(display_time_remaining)" ]; then
|
||||
long_segments+=( "($(display_time_remaining))" )
|
||||
fi
|
||||
if [ -n "$(display_time_to_full)" ]; then
|
||||
long_segments+=( "($(display_time_to_full))" )
|
||||
fi
|
||||
|
||||
# Display the block long_text
|
||||
display_segments ${long_segments[@]}
|
||||
|
||||
# Display the block short_text
|
||||
display_segments ${short_segments[@]}
|
||||
|
||||
# Handle click events
|
||||
case $BLOCK_BUTTON in
|
||||
1)
|
||||
if [ -n "$CAPACITY_TRIGGERED" ]; then
|
||||
$(dialog "$(span "Your battery capacity has reduced to ${capacity%.*}${_PERCENT}!")" "battery-caution" "warning" "--no-wrap")
|
||||
else
|
||||
if [ "$status" = "discharging" ]; then
|
||||
$(notify "$(span "$(display_time_remaining true) remaining")" "alarm-symbolic" "normal" true "-c device")
|
||||
elif [ "$status" = "charging" ]; then
|
||||
$(notify "$(span "$(display_time_to_full true) until fully charged")" "alarm-symbolic" "normal" true "-c device")
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ -n "$battery_percentage" ] && [ "$battery_percentage" -le 5 ]; then
|
||||
exit 33
|
||||
fi
|
|
@ -1,19 +0,0 @@
|
|||
separator=true
|
||||
separator_block_width=40
|
||||
|
||||
[battery]
|
||||
background=#000000cc
|
||||
command=~/.config/i3blocks/battery-plus
|
||||
interval=30
|
||||
markup=pango
|
||||
instance=BAT0
|
||||
_HIDE_TIME_REMAINING=false
|
||||
_HIDE_TIME_TO_FULL=false
|
||||
_USE_BATT_GRADIENT=true
|
||||
|
||||
|
||||
[time]
|
||||
align=center
|
||||
background=#000000cc
|
||||
command=date "+%a %F %H:%M"
|
||||
interval=30
|
|
@ -1,8 +0,0 @@
|
|||
#!/bin/sh
|
||||
set -o pipefail
|
||||
while true; do
|
||||
swaymsg -t subscribe -m '["window"]' \
|
||||
| stdbuf -oL jq --unbuffered -M -r '.container.name // empty' \
|
||||
| stdbuf -oL cut -c -80 \
|
||||
| stdbuf -oL sed -e 's/ *$//'
|
||||
done
|
|
@ -1,7 +0,0 @@
|
|||
# browser back/forward
|
||||
gesture swipe right xdotool key alt+Right
|
||||
gesture swipe left xdotool key alt+Left
|
||||
|
||||
# zoom
|
||||
gesture pinch in 2 xdotool key ctrl+minus
|
||||
gesture pinch out 2 xdotool key ctrl+plus
|
|
@ -1,17 +0,0 @@
|
|||
font=IBM Plex Sans Condensed 20
|
||||
icons=1
|
||||
icon-path=/usr/share/icons/Adwaita:/usr/share/icons/Yaru
|
||||
markup=1
|
||||
width=600
|
||||
height=400
|
||||
padding=10
|
||||
margin=10,0,2
|
||||
anchor=bottom-left
|
||||
background-color=#000000aa
|
||||
border-color=#e65100ff
|
||||
progress-color=#e65100ff
|
||||
text-color=#ff6f00ff
|
||||
default-timeout=15000
|
||||
group-by=app-name
|
||||
|
||||
[app-name="volume" grouped=true expiring=true]
|
|
@ -1,124 +0,0 @@
|
|||
{
|
||||
"colors": {
|
||||
"black": 16,
|
||||
"white": 231,
|
||||
|
||||
"green": 2,
|
||||
"darkestgreen": 22,
|
||||
"darkgreen": 28,
|
||||
"mediumgreen": 70,
|
||||
"brightgreen": 148,
|
||||
|
||||
"darkestcyan": 23,
|
||||
"darkcyan": 74,
|
||||
"mediumcyan": 117,
|
||||
"brightcyan": 159,
|
||||
|
||||
"darkestblue": 24,
|
||||
"darkblue": 31,
|
||||
|
||||
"red": 1,
|
||||
"darkestred": 52,
|
||||
"darkred": 88,
|
||||
"mediumred": 124,
|
||||
"brightred": 160,
|
||||
"brightestred": 196,
|
||||
|
||||
"darkestpurple": 55,
|
||||
"mediumpurple": 98,
|
||||
"brightpurple": 189,
|
||||
|
||||
"darkorange": 94,
|
||||
"mediumorange": 166,
|
||||
"brightorange": 208,
|
||||
"brightestorange": 214,
|
||||
|
||||
"yellow": 11,
|
||||
"brightyellow": 220,
|
||||
|
||||
"gray0": 233,
|
||||
"gray1": 235,
|
||||
"gray2": 236,
|
||||
"gray3": 239,
|
||||
"gray4": 240,
|
||||
"gray5": 241,
|
||||
"gray6": 244,
|
||||
"gray7": 245,
|
||||
"gray8": 247,
|
||||
"gray9": 250,
|
||||
"gray10": 252,
|
||||
|
||||
"gray11": 234,
|
||||
"gray90": 254,
|
||||
|
||||
"gray70": [249, "b3b3b3"],
|
||||
|
||||
"lightyellowgreen": 106,
|
||||
"gold3": 178,
|
||||
"orangered": 202,
|
||||
|
||||
"steelblue": 67,
|
||||
"darkorange3": 166,
|
||||
"skyblue1": 117,
|
||||
"khaki1": 228,
|
||||
|
||||
"solarized:base03": [8, "002b36"],
|
||||
"solarized:base02": [0, "073642"],
|
||||
"solarized:base01": [10, "586e75"],
|
||||
"solarized:base00": [11, "657b83"],
|
||||
"solarized:base0": [12, "839496"],
|
||||
"solarized:base1": [14, "93a1a1"],
|
||||
"solarized:base2": [7, "eee8d5"],
|
||||
"solarized:base3": [15, "fdf6e3"],
|
||||
"solarized:yellow": [3, "b58900"],
|
||||
"solarized:orange": [9, "cb4b16"],
|
||||
"solarized:red": [1, "dc322f"],
|
||||
"solarized:magenta": [5, "d33682"],
|
||||
"solarized:violet": [13, "6c71c4"],
|
||||
"solarized:blue": [4, "268bd2"],
|
||||
"solarized:cyan": [6, "2aa198"],
|
||||
"solarized:green": [2, "859900"]
|
||||
},
|
||||
"gradients": {
|
||||
"dark_GREEN_Orange_red": [
|
||||
[22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 94, 94, 94, 94, 94, 94, 94, 88, 52],
|
||||
["006000", "006000", "006000", "006000", "006000", "006000", "006000", "006000", "006000", "036000", "076000", "0a6000", "0d6000", "106000", "126000", "146000", "166000", "186000", "1a6000", "1b6000", "1d6000", "1e6000", "206000", "216000", "236000", "246000", "256000", "266000", "286000", "296000", "2a6000", "2b6000", "2c6100", "2d6100", "2f6100", "306100", "316100", "326100", "336100", "346100", "356100", "366100", "376100", "386100", "386100", "396100", "3a6100", "3b6100", "3c6100", "3d6100", "3e6100", "3f6100", "406100", "406100", "416100", "426000", "436000", "446000", "456000", "456000", "466000", "476000", "486000", "496000", "496000", "4a6000", "4b6000", "4c6000", "4d6000", "4d6000", "4e6000", "4f6000", "506000", "506000", "516000", "526000", "536000", "536000", "546000", "556000", "566000", "566000", "576000", "586000", "596000", "596000", "5a6000", "5d6000", "616000", "646000", "686000", "6b6000", "6f6000", "726000", "766000", "796000", "7d6000", "806000", "7e5500", "6f3105", "5d0001"]
|
||||
],
|
||||
"GREEN_Orange_red": [
|
||||
[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 1],
|
||||
["005f00", "015f00", "025f00", "035f00", "045f00", "055f00", "065f00", "075f00", "085f00", "095f00", "0b5f00", "0c5f00", "0d5f00", "0e5f00", "0f5f00", "105f00", "115f00", "125f00", "135f00", "145f00", "165f00", "175f00", "185f00", "195f00", "1a5f00", "1b5f00", "1c5f00", "1d5f00", "1e5f00", "1f5f00", "215f00", "225f00", "235f00", "245f00", "255f00", "265f00", "275f00", "285f00", "295f00", "2a5f00", "2c5f00", "2d5f00", "2e5f00", "2f5f00", "305f00", "315f00", "325f00", "335f00", "345f00", "355f00", "375f00", "385f00", "395f00", "3a5f00", "3b5f00", "3c5f00", "3d5f00", "3e5f00", "3f5f00", "415f00", "425f00", "435f00", "445f00", "455f00", "465f00", "475f00", "485f00", "495f00", "4a5f00", "4c5f00", "4d5f00", "4e5f00", "4f5f00", "505f00", "515f00", "525f00", "535f00", "545f00", "555f00", "575f00", "585f00", "595f00", "5a5f00", "5b5f00", "5c5f00", "5d5f00", "5e5f00", "615f00", "655f00", "685f00", "6c5f00", "6f5f00", "735f00", "765f00", "7a5f00", "7d5f00", "815f00", "845f00", "815200", "702900"]
|
||||
],
|
||||
"green_yellow_red": [
|
||||
[190, 184, 178, 172, 166, 160],
|
||||
["8ae71c", "8ce71c", "8fe71c", "92e71c", "95e71d", "98e71d", "9ae71d", "9de71d", "a0e71e", "a3e71e", "a6e71e", "a8e71e", "abe71f", "aee71f", "b1e71f", "b4e71f", "b6e720", "b9e720", "bce720", "bfe720", "c2e821", "c3e721", "c5e621", "c7e521", "c9e522", "cbe422", "cde322", "cfe222", "d1e223", "d3e123", "d5e023", "d7df23", "d9df24", "dbde24", "dddd24", "dfdc24", "e1dc25", "e3db25", "e5da25", "e7d925", "e9d926", "e9d626", "e9d426", "e9d126", "e9cf27", "e9cc27", "e9ca27", "e9c727", "e9c528", "e9c228", "e9c028", "e9bd28", "e9bb29", "e9b829", "e9b629", "e9b329", "e9b12a", "e9ae2a", "e9ac2a", "e9a92a", "eaa72b", "eaa42b", "eaa22b", "ea9f2b", "ea9d2c", "ea9b2c", "ea982c", "ea962c", "ea942d", "ea912d", "ea8f2d", "ea8d2d", "ea8a2e", "ea882e", "ea862e", "ea832e", "ea812f", "ea7f2f", "ea7c2f", "ea7a2f", "eb7830", "eb7530", "eb7330", "eb7130", "eb6f31", "eb6c31", "eb6a31", "eb6831", "eb6632", "eb6332", "eb6132", "eb5f32", "eb5d33", "eb5a33", "eb5833", "eb5633", "eb5434", "eb5134", "eb4f34", "eb4d34", "ec4b35"]
|
||||
],
|
||||
"green_yellow_orange_red": [
|
||||
[2, 3, 9, 1],
|
||||
["719e07", "739d06", "759c06", "779c06", "799b06", "7b9a05", "7d9a05", "7f9905", "819805", "839805", "859704", "879704", "899604", "8b9504", "8d9504", "8f9403", "919303", "949303", "969203", "989102", "9a9102", "9c9002", "9e9002", "a08f02", "a28e01", "a48e01", "a68d01", "a88c01", "aa8c01", "ac8b00", "ae8a00", "b08a00", "b28900", "b58900", "b58700", "b68501", "b78302", "b78102", "b87f03", "b97d04", "b97b04", "ba7905", "bb7806", "bb7606", "bc7407", "bd7208", "bd7008", "be6e09", "bf6c0a", "bf6a0a", "c0690b", "c1670c", "c1650c", "c2630d", "c3610e", "c35f0e", "c45d0f", "c55b10", "c55a10", "c65811", "c75612", "c75412", "c85213", "c95014", "c94e14", "ca4c15", "cb4b16", "cb4a16", "cc4917", "cc4818", "cd4719", "cd4719", "ce461a", "ce451b", "cf441c", "cf441c", "d0431d", "d0421e", "d1411f", "d1411f", "d24020", "d23f21", "d33e22", "d33e22", "d43d23", "d43c24", "d53b25", "d53b25", "d63a26", "d63927", "d73828", "d73828", "d83729", "d8362a", "d9352b", "d9352b", "da342c", "da332d", "db322e", "dc322f"]
|
||||
],
|
||||
"yellow_red": [
|
||||
[220, 178, 172, 166, 160],
|
||||
["ffd700", "fdd500", "fbd300", "fad200", "f8d000", "f7cf00", "f5cd00", "f3cb00", "f2ca00", "f0c800", "efc700", "edc500", "ebc300", "eac200", "e8c000", "e7bf00", "e5bd00", "e3bb00", "e2ba00", "e0b800", "dfb700", "ddb500", "dbb300", "dab200", "d8b000", "d7af00", "d7ad00", "d7ab00", "d7aa00", "d7a800", "d7a700", "d7a500", "d7a300", "d7a200", "d7a000", "d79f00", "d79d00", "d79b00", "d79a00", "d79800", "d79700", "d79500", "d79300", "d79200", "d79000", "d78f00", "d78d00", "d78b00", "d78a00", "d78800", "d78700", "d78500", "d78300", "d78200", "d78000", "d77f00", "d77d00", "d77b00", "d77a00", "d77800", "d77700", "d77500", "d77300", "d77200", "d77000", "d76f00", "d76d00", "d76b00", "d76a00", "d76800", "d76700", "d76500", "d76300", "d76200", "d76000", "d75f00", "d75b00", "d75700", "d75300", "d74f00", "d74c00", "d74800", "d74400", "d74000", "d73c00", "d73900", "d73500", "d73100", "d72d00", "d72900", "d72600", "d72200", "d71e00", "d71a00", "d71600", "d71300", "d70f00", "d70b00", "d70700"]
|
||||
],
|
||||
"yellow_orange_red": [
|
||||
[3, 9, 1],
|
||||
["b58900", "b58700", "b58600", "b68501", "b68401", "b78202", "b78102", "b88003", "b87f03", "b87d03", "b97c04", "b97b04", "ba7a05", "ba7805", "bb7706", "bb7606", "bc7507", "bc7307", "bc7207", "bd7108", "bd7008", "be6e09", "be6d09", "bf6c0a", "bf6b0a", "c06a0b", "c0680b", "c0670b", "c1660c", "c1650c", "c2630d", "c2620d", "c3610e", "c3600e", "c35e0e", "c45d0f", "c45c0f", "c55b10", "c55910", "c65811", "c65711", "c75612", "c75412", "c75312", "c85213", "c85113", "c94f14", "c94e14", "ca4d15", "ca4c15", "cb4b16", "cb4a16", "cb4a17", "cc4917", "cc4918", "cc4818", "cd4819", "cd4719", "cd471a", "ce461a", "ce461b", "ce451b", "cf451c", "cf441c", "cf441d", "d0431d", "d0431e", "d0421e", "d1421f", "d1411f", "d14120", "d24020", "d24021", "d23f21", "d33f22", "d33e22", "d33e23", "d43d23", "d43d24", "d43c24", "d53c25", "d53b25", "d53b26", "d63a26", "d63a27", "d63927", "d73928", "d73828", "d73829", "d83729", "d8372a", "d8362a", "d9362b", "d9352b", "d9352c", "da342c", "da342d", "da332d", "db332e"]
|
||||
],
|
||||
"blue_red": [
|
||||
[39, 74, 68, 67, 103, 97, 96, 132, 131, 167, 203, 197],
|
||||
["19b4fe", "1bb2fc", "1db1fa", "1faff8", "22aef6", "24adf4", "26abf2", "29aaf0", "2ba9ee", "2da7ec", "30a6ea", "32a5e8", "34a3e6", "36a2e4", "39a0e2", "3b9fe1", "3d9edf", "409cdd", "429bdb", "449ad9", "4798d7", "4997d5", "4b96d3", "4d94d1", "5093cf", "5292cd", "5490cb", "578fc9", "598dc7", "5b8cc6", "5e8bc4", "6089c2", "6288c0", "6487be", "6785bc", "6984ba", "6b83b8", "6e81b6", "7080b4", "727eb2", "757db0", "777cae", "797aac", "7b79ab", "7e78a9", "8076a7", "8275a5", "8574a3", "8772a1", "89719f", "8c709d", "8e6e9b", "906d99", "926b97", "956a95", "976993", "996791", "9c668f", "9e658e", "a0638c", "a3628a", "a56188", "a75f86", "a95e84", "ac5c82", "ae5b80", "b05a7e", "b3587c", "b5577a", "b75678", "ba5476", "bc5374", "be5273", "c05071", "c34f6f", "c54e6d", "c74c6b", "ca4b69", "cc4967", "ce4865", "d14763", "d34561", "d5445f", "d7435d", "da415b", "dc4059", "de3f58", "e13d56", "e33c54", "e53a52", "e83950", "ea384e", "ec364c", "ee354a", "f13448", "f33246", "f53144", "f83042", "fa2e40"]
|
||||
],
|
||||
"white_red": [
|
||||
[231, 255, 223, 216, 209, 202, 196],
|
||||
["ffffff", "fefefe", "fdfdfd", "fdfdfd", "fcfcfc", "fbfbfb", "fafafa", "fafafa", "f9f9f9", "f8f8f8", "f7f7f7", "f7f7f7", "f6f6f6", "f5f5f5", "f4f4f4", "f4f3f4", "f3f3f3", "f2f2f2", "f1f1f1", "f0f0f0", "f0f0f0", "efefef", "eeeeee", "efecea", "f1eae4", "f2e8de", "f3e6d8", "f5e4d3", "f6e2cd", "f7e0c7", "f8dec2", "f9dcbc", "fadab6", "fad8b1", "fbd5ac", "fbd2a9", "fbcea5", "fbcaa1", "fbc79e", "fbc39a", "fbc097", "fbbc93", "fbb88f", "fbb58c", "fab188", "faad85", "faaa81", "fba67e", "fba37a", "fb9f76", "fb9c73", "fb986f", "fb946c", "fb9168", "fa8d65", "fa8961", "fa865c", "fa8256", "fb7f4f", "fb7b48", "fb7841", "fb743a", "fb7133", "fb6d2c", "fa6a23", "fa661a", "fa620e", "fa5f03", "fa5d03", "fa5b03", "fa5a03", "fa5803", "fa5703", "fa5503", "fa5303", "fa5103", "fa4f03", "fa4e03", "fa4c03", "fa4a04", "fa4804", "fa4604", "fa4404", "fa4204", "fa3f04", "fa3d04", "fa3b04", "fa3805", "fa3605", "fa3305", "fb3105", "fb2e05", "fb2a05", "fb2705", "fb2306", "fb1f06", "fb1b06", "fb1506", "fb0e06", "fa0506", "fa0007"]
|
||||
],
|
||||
"dark_green_gray": [
|
||||
[70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247],
|
||||
["51b000", "52b000", "54b000", "55b002", "56b007", "57b00d", "58b011", "59af15", "5aaf18", "5caf1b", "5daf1e", "5eaf21", "5faf23", "60ae25", "61ae27", "62ae2a", "63ae2c", "64ae2e", "65ae30", "66ae31", "67ad33", "68ad35", "69ad37", "69ad38", "6aad3a", "6bad3c", "6cac3d", "6dac3f", "6eac40", "6fac42", "70ac44", "70ac45", "71ab47", "72ab48", "73ab49", "74ab4b", "75ab4c", "75ab4e", "76aa4f", "77aa51", "78aa52", "79aa53", "79aa55", "7aaa56", "7ba957", "7ca959", "7ca95a", "7da95b", "7ea95d", "7fa95e", "7fa85f", "80a861", "81a862", "81a863", "82a865", "83a766", "83a767", "84a768", "85a76a", "85a76b", "86a66c", "87a66d", "87a66f", "88a670", "89a671", "89a672", "8aa574", "8ba575", "8ba576", "8ca577", "8da579", "8da47a", "8ea47b", "8ea47c", "8fa47d", "90a47f", "90a380", "91a381", "91a382", "92a384", "93a385", "93a286", "94a287", "94a288", "95a28a", "95a18b", "96a18c", "97a18d", "97a18e", "98a190", "98a091", "99a092", "99a093", "9aa094", "9aa096", "9b9f97", "9b9f98", "9c9f99", "9c9f9a", "9d9e9c", "9d9e9d"]
|
||||
],
|
||||
"light_green_gray": [
|
||||
[148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 187, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250],
|
||||
["a3d900", "a4d800", "a4d800", "a5d805", "a5d80d", "a6d714", "a6d719", "a6d71d", "a7d621", "a7d625", "a8d628", "a8d62b", "a8d52e", "a9d531", "a9d533", "aad536", "aad438", "aad43a", "abd43d", "abd33f", "abd341", "acd343", "acd345", "acd247", "add249", "add24b", "add14d", "aed14f", "aed151", "aed152", "afd054", "afd056", "afd058", "b0d059", "b0cf5b", "b0cf5d", "b1cf5e", "b1ce60", "b1ce62", "b1ce63", "b2ce65", "b2cd67", "b2cd68", "b3cd6a", "b3cc6b", "b3cc6d", "b3cc6e", "b4cc70", "b4cb71", "b4cb73", "b4cb75", "b5ca76", "b5ca78", "b5ca79", "b5ca7a", "b6c97c", "b6c97d", "b6c97f", "b6c880", "b6c882", "b7c883", "b7c885", "b7c786", "b7c788", "b7c789", "b8c68a", "b8c68c", "b8c68d", "b8c68f", "b8c590", "b9c591", "b9c593", "b9c494", "b9c496", "b9c497", "b9c498", "bac39a", "bac39b", "bac39d", "bac29e", "bac29f", "bac2a1", "bac2a2", "bac1a4", "bbc1a5", "bbc1a6", "bbc0a8", "bbc0a9", "bbc0aa", "bbc0ac", "bbbfad", "bbbfae", "bbbfb0", "bbbeb1", "bcbeb3", "bcbeb4", "bcbdb5", "bcbdb7", "bcbdb8", "bcbdb9", "bcbcbb"]
|
||||
]
|
||||
}
|
||||
}
|
|
@ -1,56 +0,0 @@
|
|||
{
|
||||
"name": "Default",
|
||||
"groups": {
|
||||
"information:additional": { "fg": "gray9", "bg": "gray4", "attrs": [] },
|
||||
"information:regular": { "fg": "gray10", "bg": "gray4", "attrs": ["bold"] },
|
||||
"information:highlighted": { "fg": "white", "bg": "gray4", "attrs": [] },
|
||||
"information:priority": { "fg": "brightyellow", "bg": "mediumorange", "attrs": [] },
|
||||
"warning:regular": { "fg": "white", "bg": "brightred", "attrs": ["bold"] },
|
||||
"critical:failure": { "fg": "white", "bg": "darkestred", "attrs": [] },
|
||||
"critical:success": { "fg": "white", "bg": "darkestgreen", "attrs": [] },
|
||||
"background": { "fg": "white", "bg": "gray0", "attrs": [] },
|
||||
"background:divider": { "fg": "gray5", "bg": "gray0", "attrs": [] },
|
||||
"session": { "fg": "black", "bg": "gray10", "attrs": ["bold"] },
|
||||
"date": { "fg": "gray8", "bg": "gray2", "attrs": [] },
|
||||
"time": { "fg": "gray10", "bg": "gray2", "attrs": ["bold"] },
|
||||
"time:divider": { "fg": "gray5", "bg": "gray2", "attrs": [] },
|
||||
"email_alert": "warning:regular",
|
||||
"email_alert_gradient": { "fg": "white", "bg": "yellow_orange_red", "attrs": ["bold"] },
|
||||
"hostname": { "fg": "black", "bg": "gray10", "attrs": ["bold"] },
|
||||
"weather": { "fg": "gray8", "bg": "gray0", "attrs": [] },
|
||||
"weather_temp_gradient": { "fg": "blue_red", "bg": "gray0", "attrs": [] },
|
||||
"weather_condition_hot": { "fg": "khaki1", "bg": "gray0", "attrs": [] },
|
||||
"weather_condition_snowy": { "fg": "skyblue1", "bg": "gray0", "attrs": [] },
|
||||
"weather_condition_rainy": { "fg": "skyblue1", "bg": "gray0", "attrs": [] },
|
||||
"uptime": { "fg": "gray8", "bg": "gray0", "attrs": [] },
|
||||
"external_ip": { "fg": "gray8", "bg": "gray0", "attrs": [] },
|
||||
"internal_ip": { "fg": "gray8", "bg": "gray0", "attrs": [] },
|
||||
"network_load": { "fg": "gray8", "bg": "gray0", "attrs": [] },
|
||||
"network_load_gradient": { "fg": "green_yellow_orange_red", "bg": "gray0", "attrs": [] },
|
||||
"network_load_sent_gradient": "network_load_gradient",
|
||||
"network_load_recv_gradient": "network_load_gradient",
|
||||
"network_load:divider": "background:divider",
|
||||
"system_load": { "fg": "gray8", "bg": "gray0", "attrs": [] },
|
||||
"system_load_gradient": { "fg": "green_yellow_orange_red", "bg": "gray0", "attrs": [] },
|
||||
"environment": { "fg": "gray8", "bg": "gray0", "attrs": [] },
|
||||
"cpu_load_percent": { "fg": "gray8", "bg": "gray0", "attrs": [] },
|
||||
"cpu_load_percent_gradient": { "fg": "green_yellow_orange_red", "bg": "gray0", "attrs": [] },
|
||||
"battery": { "fg": "gray8", "bg": "gray0", "attrs": [] },
|
||||
"battery_gradient": { "fg": "white_red", "bg": "gray0", "attrs": [] },
|
||||
"battery_full": { "fg": "red", "bg": "gray0", "attrs": [] },
|
||||
"battery_empty": { "fg": "white", "bg": "gray0", "attrs": [] },
|
||||
"player": { "fg": "gray10", "bg": "black", "attrs": [] },
|
||||
"user": { "fg": "skyblue1", "bg": "darkblue", "attrs": ["bold"] },
|
||||
"branch": { "fg": "gray9", "bg": "gray2", "attrs": [] },
|
||||
"branch_dirty": { "fg": "brightyellow", "bg": "gray2", "attrs": [] },
|
||||
"branch_clean": { "fg": "gray9", "bg": "gray2", "attrs": [] },
|
||||
"branch:divider": { "fg": "gray7", "bg": "gray2", "attrs": [] },
|
||||
"stash": "branch_dirty",
|
||||
"stash:divider": "branch:divider",
|
||||
"cwd": "information:additional",
|
||||
"cwd:current_folder": "information:regular",
|
||||
"cwd:divider": { "fg": "gray7", "bg": "gray4", "attrs": [] },
|
||||
"virtualenv": { "fg": "white", "bg": "darkcyan", "attrs": [] },
|
||||
"attached_clients": { "fg": "gray8", "bg": "gray0", "attrs": [] }
|
||||
}
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
{
|
||||
"groups": {
|
||||
"prompt": "information:additional",
|
||||
"prompt_count": "information:highlighted"
|
||||
}
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
{
|
||||
"groups": {
|
||||
"current_code_name": "information:additional",
|
||||
"current_context": "current_code_name",
|
||||
"current_line": "information:regular",
|
||||
"current_file": "information:regular"
|
||||
}
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
"groups": {
|
||||
"stack_depth": { "fg": "gray1", "bg": "gray10", "attrs": ["bold"] }
|
||||
}
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
"groups": {
|
||||
"stack_depth": { "fg": "solarized:base03", "bg": "solarized:base2", "attrs": ["bold"] }
|
||||
}
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
{
|
||||
"groups": {
|
||||
"continuation": "cwd",
|
||||
"continuation:current": "cwd:current_folder",
|
||||
"exit_fail": "critical:failure",
|
||||
"exit_success": "critical:success",
|
||||
"jobnum": "information:priority",
|
||||
"superuser": "warning:regular"
|
||||
}
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
{
|
||||
"name": "Default color scheme for shell prompts",
|
||||
"groups": {
|
||||
"hostname": { "fg": "brightyellow", "bg": "mediumorange", "attrs": [] },
|
||||
"environment": { "fg": "white", "bg": "darkestgreen", "attrs": [] },
|
||||
"mode": { "fg": "darkestgreen", "bg": "brightgreen", "attrs": ["bold"] },
|
||||
"attached_clients": { "fg": "white", "bg": "darkestgreen", "attrs": [] }
|
||||
},
|
||||
"mode_translations": {
|
||||
"vicmd": {
|
||||
"groups": {
|
||||
"mode": {"fg": "darkestcyan", "bg": "white", "attrs": ["bold"]}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,13 +0,0 @@
|
|||
{
|
||||
"name": "Solarized dark for shell",
|
||||
"groups": {
|
||||
"mode": { "fg": "solarized:base3", "bg": "solarized:green", "attrs": ["bold"] }
|
||||
},
|
||||
"mode_translations": {
|
||||
"vicmd": {
|
||||
"groups": {
|
||||
"mode": { "fg": "solarized:base3", "bg": "solarized:blue", "attrs": ["bold"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,40 +0,0 @@
|
|||
{
|
||||
"name": "Solarized dark",
|
||||
"groups": {
|
||||
"information:additional": { "fg": "solarized:base2", "bg": "solarized:base01", "attrs": [] },
|
||||
"information:regular": { "fg": "solarized:base3", "bg": "solarized:base01", "attrs": ["bold"] },
|
||||
"information:highlighted": { "fg": "solarized:base3", "bg": "solarized:base01", "attrs": ["bold"]},
|
||||
"information:priority": { "fg": "solarized:base3", "bg": "solarized:yellow", "attrs": [] },
|
||||
"warning:regular": { "fg": "solarized:base3", "bg": "solarized:red", "attrs": [] },
|
||||
"critical:failure": { "fg": "solarized:base3", "bg": "solarized:red", "attrs": [] },
|
||||
"critical:success": { "fg": "solarized:base3", "bg": "solarized:green", "attrs": [] },
|
||||
"background": { "fg": "solarized:base3", "bg": "solarized:base02", "attrs": [] },
|
||||
"background:divider": { "fg": "solarized:base1", "bg": "solarized:base02", "attrs": [] },
|
||||
"user": { "fg": "solarized:base3", "bg": "solarized:blue", "attrs": ["bold"] },
|
||||
"virtualenv": { "fg": "solarized:base3", "bg": "solarized:green", "attrs": [] },
|
||||
"branch": { "fg": "solarized:base1", "bg": "solarized:base02", "attrs": [] },
|
||||
"branch_dirty": { "fg": "solarized:yellow", "bg": "solarized:base02", "attrs": [] },
|
||||
"branch_clean": { "fg": "solarized:base1", "bg": "solarized:base02", "attrs": [] },
|
||||
"stash": "branch_dirty",
|
||||
"email_alert_gradient": { "fg": "solarized:base3", "bg": "yellow_orange_red", "attrs": [] },
|
||||
"email_alert": "warning:regular",
|
||||
"cwd": "information:additional",
|
||||
"cwd:current_folder": "information:regular",
|
||||
"cwd:divider": { "fg": "solarized:base1", "bg": "solarized:base01", "attrs": [] },
|
||||
"network_load": { "fg": "solarized:base1", "bg": "solarized:base03", "attrs": [] },
|
||||
"network_load:divider": "network_load",
|
||||
"network_load_gradient": { "fg": "green_yellow_orange_red", "bg": "solarized:base03", "attrs": [] },
|
||||
"network_load_sent_gradient": "network_load_gradient",
|
||||
"network_load_recv_gradient": "network_load_gradient",
|
||||
"hostname": { "fg": "solarized:base3", "bg": "solarized:base01", "attrs": [] },
|
||||
"environment": { "fg": "solarized:base3", "bg": "solarized:green", "attrs": [] },
|
||||
"attached_clients": { "fg": "solarized:base3", "bg": "solarized:green", "attrs": [] },
|
||||
"date": { "fg": "solarized:base1", "bg": "solarized:base02", "attrs": [] },
|
||||
"time": { "fg": "solarized:base1", "bg": "solarized:base02", "attrs": ["bold"] },
|
||||
"time:divider": { "fg": "solarized:base1", "bg": "solarized:base02", "attrs": [] },
|
||||
"system_load": { "fg": "solarized:base1", "bg": "solarized:base03", "attrs": [] },
|
||||
"weather_temp_gradient": { "fg": "blue_red", "bg": "solarized:base03", "attrs": [] },
|
||||
"weather": { "fg": "solarized:base1", "bg": "solarized:base03", "attrs": [] },
|
||||
"uptime": { "fg": "solarized:base1", "bg": "solarized:base03", "attrs": [] }
|
||||
}
|
||||
}
|
|
@ -1,14 +0,0 @@
|
|||
{
|
||||
"groups": {
|
||||
"active_window_status": {"fg": "darkblue", "bg": "gray0", "attrs": []},
|
||||
"window_status": {"fg": "gray70", "bg": "gray0", "attrs": []},
|
||||
"activity_status": {"fg": "yellow", "bg": "gray0", "attrs": []},
|
||||
"bell_status": {"fg": "red", "bg": "gray0", "attrs": []},
|
||||
"window": {"fg": "gray6", "bg": "gray0", "attrs": []},
|
||||
"window:divider": {"fg": "gray4", "bg": "gray0", "attrs": []},
|
||||
"window:current": {"fg": "mediumcyan", "bg": "darkblue", "attrs": []},
|
||||
"window_name": {"fg": "white", "bg": "darkblue", "attrs": ["bold"]},
|
||||
"session": {"fg": "black", "bg": "gray90", "attrs": ["bold"]},
|
||||
"session:prefix": {"fg": "gray90", "bg": "darkblue", "attrs": ["bold"]}
|
||||
}
|
||||
}
|
|
@ -1,14 +0,0 @@
|
|||
{
|
||||
"groups": {
|
||||
"active_window_status": { "fg": "solarized:blue", "bg": "solarized:base02", "attrs": [] },
|
||||
"window_status": { "fg": "solarized:base1", "bg": "solarized:base02", "attrs": [] },
|
||||
"activity_status": { "fg": "solarized:yellow", "bg": "solarized:base02", "attrs": [] },
|
||||
"bell_status": { "fg": "solarized:red", "bg": "solarized:base02", "attrs": [] },
|
||||
"window": { "fg": "solarized:base1", "bg": "solarized:base02", "attrs": [] },
|
||||
"window:divider": { "fg": "solarized:base01", "bg": "solarized:base02", "attrs": [] },
|
||||
"window:current": { "fg": "solarized:base3", "bg": "solarized:base01", "attrs": [] },
|
||||
"window_name": { "fg": "solarized:base3", "bg": "solarized:base01", "attrs": ["bold"] },
|
||||
"session": { "fg": "solarized:base3", "bg": "solarized:base01", "attrs": [] },
|
||||
"session:prefix": { "fg": "solarized:base01", "bg": "solarized:base3", "attrs": [] }
|
||||
}
|
||||
}
|
|
@ -1,50 +0,0 @@
|
|||
{
|
||||
"groups": {
|
||||
"branch_clean": "branch",
|
||||
"environment": "information:unimportant",
|
||||
"file_size": "information:unimportant",
|
||||
"file_format": "information:unimportant",
|
||||
"file_encoding": "file_format",
|
||||
"file_type": "file_format",
|
||||
"branch": "information:additional",
|
||||
"file_scheme": "file_name",
|
||||
"file_directory": "information:additional",
|
||||
"file_name_empty": "file_directory",
|
||||
"line_percent": "information:additional",
|
||||
"line_count": "line_current",
|
||||
"position": "information:additional",
|
||||
"single_tab": "line_current",
|
||||
"many_tabs": "line_current",
|
||||
"bufnr": "file_directory",
|
||||
"winnr": "information:unimportant",
|
||||
"tabnr": "file_directory",
|
||||
"capslock_indicator": "paste_indicator",
|
||||
|
||||
"csv:column_number": "line_current",
|
||||
"csv:column_name": "line_current_symbol",
|
||||
|
||||
"tab:background": "background",
|
||||
"tab:divider": "background:divider",
|
||||
|
||||
"tab_nc:modified_indicator": "modified_indicator",
|
||||
"tab_nc:file_directory": "information:unimportant",
|
||||
"tab_nc:file_name": "tab_nc:file_directory",
|
||||
"tab_nc:tabnr": "tab_nc:file_directory",
|
||||
|
||||
"buf_nc:file_directory": "tab_nc:file_directory",
|
||||
"buf_nc:file_name": "buf_nc:file_directory",
|
||||
"buf_nc:bufnr": "buf_nc:file_directory",
|
||||
"buf_nc:modified_indicator": "tab_nc:modified_indicator",
|
||||
|
||||
"buf_nc_mod:file_directory": "tab_nc:file_directory",
|
||||
"buf_nc_mod:file_name": "buf_nc_mod:file_directory",
|
||||
"buf_nc_mod:bufnr": "buf_nc_mod:file_directory",
|
||||
"buf_nc_mod:modified_indicator": "tab_nc:modified_indicator",
|
||||
|
||||
|
||||
"commandt:label": "file_name",
|
||||
"commandt:background": "background",
|
||||
"commandt:finder": "file_name",
|
||||
"commandt:path": "file_directory"
|
||||
}
|
||||
}
|
|
@ -1,154 +0,0 @@
|
|||
{
|
||||
"name": "Default color scheme",
|
||||
"groups": {
|
||||
"information:unimportant": { "fg": "gray8", "bg": "gray2", "attrs": [] },
|
||||
"information:additional": { "fg": "gray9", "bg": "gray4", "attrs": [] },
|
||||
"background": { "fg": "white", "bg": "gray2", "attrs": [] },
|
||||
"background:divider": { "fg": "gray6", "bg": "gray2", "attrs": [] },
|
||||
"mode": { "fg": "darkestgreen", "bg": "brightgreen", "attrs": ["bold"] },
|
||||
"visual_range": { "fg": "brightestorange", "bg": "darkorange", "attrs": ["bold"] },
|
||||
"modified_indicator": { "fg": "brightyellow", "bg": "gray4", "attrs": ["bold"] },
|
||||
"paste_indicator": { "fg": "white", "bg": "mediumorange", "attrs": ["bold"] },
|
||||
"readonly_indicator": { "fg": "brightestred", "bg": "gray4", "attrs": [] },
|
||||
"branch_dirty": { "fg": "brightyellow", "bg": "gray4", "attrs": [] },
|
||||
"branch:divider": { "fg": "gray7", "bg": "gray4", "attrs": [] },
|
||||
"file_name": { "fg": "white", "bg": "gray4", "attrs": ["bold"] },
|
||||
"window_title": { "fg": "white", "bg": "gray4", "attrs": [] },
|
||||
"file_name_no_file": { "fg": "gray9", "bg": "gray4", "attrs": ["bold"] },
|
||||
"file_vcs_status": { "fg": "brightestred", "bg": "gray4", "attrs": [] },
|
||||
"file_vcs_status_M": { "fg": "brightyellow", "bg": "gray4", "attrs": [] },
|
||||
"file_vcs_status_A": { "fg": "brightgreen", "bg": "gray4", "attrs": [] },
|
||||
"line_percent": { "fg": "gray9", "bg": "gray4", "attrs": [] },
|
||||
"line_percent_gradient": { "fg": "dark_green_gray", "bg": "gray4", "attrs": [] },
|
||||
"position": { "fg": "gray9", "bg": "gray4", "attrs": [] },
|
||||
"position_gradient": { "fg": "green_yellow_red", "bg": "gray4", "attrs": [] },
|
||||
"line_current": { "fg": "gray1", "bg": "gray10", "attrs": ["bold"] },
|
||||
"line_current_symbol": { "fg": "gray1", "bg": "gray10", "attrs": [] },
|
||||
"virtcol_current_gradient": { "fg": "dark_GREEN_Orange_red", "bg": "gray10", "attrs": [] },
|
||||
"col_current": { "fg": "gray6", "bg": "gray10", "attrs": [] },
|
||||
"modified_buffers": { "fg": "brightyellow", "bg": "gray2", "attrs": [] },
|
||||
"attached_clients": { "fg": "gray8", "bg": "gray2", "attrs": [] },
|
||||
"error": { "fg": "brightestred", "bg": "darkred", "attrs": ["bold"] },
|
||||
"warning": { "fg": "brightyellow", "bg": "darkorange", "attrs": ["bold"] },
|
||||
"current_tag": { "fg": "gray9", "bg": "gray2", "attrs": [] },
|
||||
|
||||
"tab_nc:modified_indicator": { "fg": "brightyellow", "bg": "gray2", "attrs": ["bold"] }
|
||||
},
|
||||
"mode_translations": {
|
||||
"nc": {
|
||||
"colors": {
|
||||
"brightyellow": "darkorange",
|
||||
"brightestred": "darkred",
|
||||
"gray0": "gray0",
|
||||
"gray1": "gray0",
|
||||
"gray2": "gray0",
|
||||
"gray3": "gray1",
|
||||
"gray4": "gray1",
|
||||
"gray5": "gray1",
|
||||
"gray6": "gray1",
|
||||
"gray7": "gray4",
|
||||
"gray8": "gray4",
|
||||
"gray9": "gray4",
|
||||
"gray10": "gray5",
|
||||
"white": "gray6",
|
||||
"dark_green_gray": "gray5"
|
||||
}
|
||||
},
|
||||
"i": {
|
||||
"colors": {
|
||||
"gray0": "darkestblue",
|
||||
"gray1": "darkestblue",
|
||||
"gray2": "darkestblue",
|
||||
"gray3": "darkblue",
|
||||
"gray4": "darkblue",
|
||||
"gray5": "darkestcyan",
|
||||
"gray6": "darkestcyan",
|
||||
"gray7": "darkestcyan",
|
||||
"gray8": "mediumcyan",
|
||||
"gray9": "mediumcyan",
|
||||
"gray10": "mediumcyan",
|
||||
"green_yellow_red": "gray5",
|
||||
"dark_green_gray": "light_green_gray"
|
||||
},
|
||||
"groups": {
|
||||
"mode": { "fg": "darkestcyan", "bg": "white", "attrs": ["bold"] },
|
||||
"background:divider": { "fg": "darkcyan", "bg": "darkestblue", "attrs": [] },
|
||||
"branch:divider": { "fg": "darkcyan", "bg": "darkblue", "attrs": [] }
|
||||
}
|
||||
},
|
||||
"ic": {
|
||||
"colors": {
|
||||
"gray0": "darkestblue",
|
||||
"gray1": "darkestblue",
|
||||
"gray2": "darkestblue",
|
||||
"gray3": "darkblue",
|
||||
"gray4": "darkblue",
|
||||
"gray5": "darkestcyan",
|
||||
"gray6": "darkestcyan",
|
||||
"gray7": "darkestcyan",
|
||||
"gray8": "mediumcyan",
|
||||
"gray9": "mediumcyan",
|
||||
"gray10": "mediumcyan",
|
||||
"green_yellow_red": "gray5",
|
||||
"dark_green_gray": "light_green_gray"
|
||||
},
|
||||
"groups": {
|
||||
"mode": { "fg": "darkestcyan", "bg": "white", "attrs": ["bold"] },
|
||||
"background:divider": { "fg": "darkcyan", "bg": "darkestblue", "attrs": [] },
|
||||
"branch:divider": { "fg": "darkcyan", "bg": "darkblue", "attrs": [] }
|
||||
}
|
||||
},
|
||||
"ix": {
|
||||
"colors": {
|
||||
"gray0": "darkestblue",
|
||||
"gray1": "darkestblue",
|
||||
"gray2": "darkestblue",
|
||||
"gray3": "darkblue",
|
||||
"gray4": "darkblue",
|
||||
"gray5": "darkestcyan",
|
||||
"gray6": "darkestcyan",
|
||||
"gray7": "darkestcyan",
|
||||
"gray8": "mediumcyan",
|
||||
"gray9": "mediumcyan",
|
||||
"gray10": "mediumcyan",
|
||||
"green_yellow_red": "gray5",
|
||||
"dark_green_gray": "light_green_gray"
|
||||
},
|
||||
"groups": {
|
||||
"mode": { "fg": "darkestcyan", "bg": "white", "attrs": ["bold"] },
|
||||
"background:divider": { "fg": "darkcyan", "bg": "darkestblue", "attrs": [] },
|
||||
"branch:divider": { "fg": "darkcyan", "bg": "darkblue", "attrs": [] }
|
||||
}
|
||||
},
|
||||
"v": {
|
||||
"groups": {
|
||||
"mode": { "fg": "darkorange", "bg": "brightestorange", "attrs": ["bold"] }
|
||||
}
|
||||
},
|
||||
"V": {
|
||||
"groups": {
|
||||
"mode": { "fg": "darkorange", "bg": "brightestorange", "attrs": ["bold"] }
|
||||
}
|
||||
},
|
||||
"^V": {
|
||||
"groups": {
|
||||
"mode": { "fg": "darkorange", "bg": "brightestorange", "attrs": ["bold"] }
|
||||
}
|
||||
},
|
||||
"R": {
|
||||
"groups": {
|
||||
"mode": { "fg": "white", "bg": "brightred", "attrs": ["bold"] }
|
||||
}
|
||||
},
|
||||
"Rc": {
|
||||
"groups": {
|
||||
"mode": { "fg": "white", "bg": "brightred", "attrs": ["bold"] }
|
||||
}
|
||||
},
|
||||
"Rx": {
|
||||
"groups": {
|
||||
"mode": { "fg": "white", "bg": "brightred", "attrs": ["bold"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,121 +0,0 @@
|
|||
{
|
||||
"name": "Solarized dark for vim",
|
||||
"groups": {
|
||||
"information:additional": { "fg": "solarized:base2", "bg": "solarized:base01", "attrs": [] },
|
||||
"information:unimportant": { "fg": "solarized:base3", "bg": "solarized:base01", "attrs": [] },
|
||||
"background": { "fg": "solarized:base3", "bg": "solarized:base02", "attrs": [] },
|
||||
"background:divider": { "fg": "solarized:base00", "bg": "solarized:base02", "attrs": [] },
|
||||
"mode": { "fg": "solarized:base3", "bg": "solarized:green", "attrs": ["bold"] },
|
||||
"visual_range": { "fg": "solarized:green", "bg": "solarized:base3", "attrs": ["bold"] },
|
||||
"modified_indicator": { "fg": "solarized:yellow", "bg": "solarized:base01", "attrs": ["bold"] },
|
||||
"paste_indicator": { "fg": "solarized:base3", "bg": "solarized:orange", "attrs": ["bold"] },
|
||||
"readonly_indicator": { "fg": "solarized:red", "bg": "solarized:base01", "attrs": [] },
|
||||
"branch_dirty": { "fg": "solarized:yellow", "bg": "solarized:base01", "attrs": [] },
|
||||
"branch:divider": { "fg": "solarized:base1", "bg": "solarized:base01", "attrs": [] },
|
||||
"stash:divider": "branch:divider",
|
||||
"file_name": { "fg": "solarized:base3", "bg": "solarized:base01", "attrs": ["bold"] },
|
||||
"window_title": { "fg": "solarized:base3", "bg": "solarized:base01", "attrs": [] },
|
||||
"file_name_no_file": { "fg": "solarized:base3", "bg": "solarized:base01", "attrs": ["bold"] },
|
||||
"file_format": { "fg": "solarized:base1", "bg": "solarized:base02", "attrs": [] },
|
||||
"file_vcs_status": { "fg": "solarized:red", "bg": "solarized:base01", "attrs": [] },
|
||||
"file_vcs_status_M": { "fg": "solarized:yellow", "bg": "solarized:base01", "attrs": [] },
|
||||
"file_vcs_status_A": { "fg": "solarized:green", "bg": "solarized:base01", "attrs": [] },
|
||||
"line_percent": { "fg": "solarized:base3", "bg": "solarized:base00", "attrs": [] },
|
||||
"line_percent_gradient": { "fg": "green_yellow_orange_red", "bg": "solarized:base00", "attrs": [] },
|
||||
"position": { "fg": "solarized:base3", "bg": "solarized:base00", "attrs": [] },
|
||||
"position_gradient": { "fg": "green_yellow_orange_red", "bg": "solarized:base00", "attrs": [] },
|
||||
"line_current": { "fg": "solarized:base03", "bg": "solarized:base2", "attrs": ["bold"] },
|
||||
"line_current_symbol": { "fg": "solarized:base03", "bg": "solarized:base2", "attrs": [] },
|
||||
"virtcol_current_gradient": { "fg": "GREEN_Orange_red", "bg": "solarized:base2", "attrs": [] },
|
||||
"col_current": { "fg": "solarized:base0", "bg": "solarized:base2", "attrs": [] },
|
||||
"environment": { "fg": "solarized:base1", "bg": "solarized:base02", "attrs": [] },
|
||||
"attached_clients": { "fg": "solarized:base1", "bg": "solarized:base02", "attrs": [] },
|
||||
"error": { "fg": "solarized:base3", "bg": "solarized:red", "attrs": ["bold"] },
|
||||
"warning": { "fg": "solarized:base3", "bg": "solarized:orange", "attrs": ["bold"] },
|
||||
"current_tag": { "fg": "solarized:base3", "bg": "solarized:base02", "attrs": ["bold"] }
|
||||
},
|
||||
"mode_translations": {
|
||||
"nc": {
|
||||
"colors": {
|
||||
"solarized:base01": "solarized:base02",
|
||||
"solarized:base00": "solarized:base02",
|
||||
"solarized:base0": "solarized:base01",
|
||||
"solarized:base1": "solarized:base00",
|
||||
"solarized:base2": "solarized:base0",
|
||||
"solarized:base3": "solarized:base1"
|
||||
}
|
||||
},
|
||||
"i": {
|
||||
"groups": {
|
||||
"background": { "fg": "solarized:base3", "bg": "solarized:base01", "attrs": [] },
|
||||
"background:divider": { "fg": "solarized:base2", "bg": "solarized:base01", "attrs": [] },
|
||||
"mode": { "fg": "solarized:base3", "bg": "solarized:blue", "attrs": ["bold"] },
|
||||
"modified_indicator": { "fg": "solarized:yellow", "bg": "solarized:base2", "attrs": ["bold"] },
|
||||
"paste_indicator": { "fg": "solarized:base3", "bg": "solarized:orange", "attrs": ["bold"] },
|
||||
"readonly_indicator": { "fg": "solarized:red", "bg": "solarized:base2", "attrs": [] },
|
||||
"branch": { "fg": "solarized:base01", "bg": "solarized:base2", "attrs": [] },
|
||||
"branch:divider": { "fg": "solarized:base00", "bg": "solarized:base2", "attrs": [] },
|
||||
"file_directory": { "fg": "solarized:base01", "bg": "solarized:base2", "attrs": [] },
|
||||
"file_name": { "fg": "solarized:base02", "bg": "solarized:base2", "attrs": ["bold"] },
|
||||
"file_size": { "fg": "solarized:base02", "bg": "solarized:base2", "attrs": [] },
|
||||
"file_name_no_file": { "fg": "solarized:base02", "bg": "solarized:base2", "attrs": ["bold"] },
|
||||
"file_name_empty": { "fg": "solarized:base02", "bg": "solarized:base2", "attrs": [] },
|
||||
"file_format": { "fg": "solarized:base2", "bg": "solarized:base01", "attrs": [] },
|
||||
"file_vcs_status": { "fg": "solarized:red", "bg": "solarized:base2", "attrs": [] },
|
||||
"file_vcs_status_M": { "fg": "solarized:yellow", "bg": "solarized:base2", "attrs": [] },
|
||||
"file_vcs_status_A": { "fg": "solarized:green", "bg": "solarized:base2", "attrs": [] },
|
||||
"line_percent": { "fg": "solarized:base3", "bg": "solarized:base1", "attrs": [] },
|
||||
"line_percent_gradient": { "fg": "solarized:base3", "bg": "solarized:base1", "attrs": [] },
|
||||
"position": { "fg": "solarized:base3", "bg": "solarized:base1", "attrs": [] },
|
||||
"position_gradient": { "fg": "solarized:base3", "bg": "solarized:base1", "attrs": [] },
|
||||
"line_current": { "fg": "solarized:base03", "bg": "solarized:base3", "attrs": ["bold"] },
|
||||
"line_current_symbol": { "fg": "solarized:base03", "bg": "solarized:base3", "attrs": [] },
|
||||
"col_current": { "fg": "solarized:base0", "bg": "solarized:base3", "attrs": [] }
|
||||
}
|
||||
},
|
||||
"ic": {
|
||||
"groups": {
|
||||
"background": { "fg": "solarized:base3", "bg": "solarized:base01", "attrs": [] },
|
||||
"background:divider": { "fg": "solarized:base2", "bg": "solarized:base01", "attrs": [] },
|
||||
"mode": { "fg": "solarized:base3", "bg": "solarized:blue", "attrs": ["bold"] }
|
||||
}
|
||||
},
|
||||
"ix": {
|
||||
"groups": {
|
||||
"background": { "fg": "solarized:base3", "bg": "solarized:base01", "attrs": [] },
|
||||
"background:divider": { "fg": "solarized:base2", "bg": "solarized:base01", "attrs": [] },
|
||||
"mode": { "fg": "solarized:base3", "bg": "solarized:blue", "attrs": ["bold"] }
|
||||
}
|
||||
},
|
||||
"v": {
|
||||
"groups": {
|
||||
"mode": { "fg": "solarized:base3", "bg": "solarized:orange", "attrs": ["bold"] }
|
||||
}
|
||||
},
|
||||
"V": {
|
||||
"groups": {
|
||||
"mode": { "fg": "solarized:base3", "bg": "solarized:orange", "attrs": ["bold"] }
|
||||
}
|
||||
},
|
||||
"^V": {
|
||||
"groups": {
|
||||
"mode": { "fg": "solarized:base3", "bg": "solarized:orange", "attrs": ["bold"] }
|
||||
}
|
||||
},
|
||||
"R": {
|
||||
"groups": {
|
||||
"mode": { "fg": "solarized:base3", "bg": "solarized:red", "attrs": ["bold"] }
|
||||
}
|
||||
},
|
||||
"Rc": {
|
||||
"groups": {
|
||||
"mode": { "fg": "solarized:base3", "bg": "solarized:red", "attrs": ["bold"] }
|
||||
}
|
||||
},
|
||||
"Rx": {
|
||||
"groups": {
|
||||
"mode": { "fg": "solarized:base3", "bg": "solarized:red", "attrs": ["bold"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,122 +0,0 @@
|
|||
{
|
||||
"name": "Solarized light for vim",
|
||||
"groups": {
|
||||
"information:additional": { "fg": "solarized:base02", "bg": "solarized:base2", "attrs": [] },
|
||||
"information:unimportant": { "fg": "solarized:base1", "bg": "solarized:base01", "attrs": [] },
|
||||
"background": { "fg": "solarized:base03", "bg": "solarized:base01", "attrs": [] },
|
||||
"background:divider": { "fg": "solarized:base0", "bg": "solarized:base01", "attrs": [] },
|
||||
"mode": { "fg": "solarized:base3", "bg": "solarized:green", "attrs": ["bold"] },
|
||||
"visual_range": { "fg": "solarized:green", "bg": "solarized:base3", "attrs": ["bold"] },
|
||||
"modified_indicator": { "fg": "solarized:yellow", "bg": "solarized:base2", "attrs": ["bold"] },
|
||||
"paste_indicator": { "fg": "solarized:red", "bg": "solarized:base2", "attrs": ["bold"] },
|
||||
"readonly_indicator": { "fg": "solarized:red", "bg": "solarized:base2", "attrs": [] },
|
||||
"branch_dirty": { "fg": "solarized:yellow", "bg": "solarized:base2", "attrs": [] },
|
||||
"branch:divider": { "fg": "solarized:base1", "bg": "solarized:base2", "attrs": [] },
|
||||
"stash": "branch_dirty",
|
||||
"stash:divider": "branch:divider",
|
||||
"file_name": { "fg": "solarized:base03", "bg": "solarized:base2", "attrs": ["bold"] },
|
||||
"window_title": { "fg": "solarized:base03", "bg": "solarized:base2", "attrs": [] },
|
||||
"file_size": { "fg": "solarized:base03", "bg": "solarized:base2", "attrs": [] },
|
||||
"file_name_no_file": { "fg": "solarized:base03", "bg": "solarized:base2", "attrs": ["bold"] },
|
||||
"file_name_empty": { "fg": "solarized:base03", "bg": "solarized:base2", "attrs": [] },
|
||||
"file_vcs_status": { "fg": "solarized:red", "bg": "solarized:base2", "attrs": [] },
|
||||
"file_vcs_status_M": { "fg": "solarized:yellow", "bg": "solarized:base2", "attrs": [] },
|
||||
"file_vcs_status_A": { "fg": "solarized:green", "bg": "solarized:base2", "attrs": [] },
|
||||
"line_percent": { "fg": "solarized:base03", "bg": "solarized:base2", "attrs": [] },
|
||||
"line_percent_gradient": { "fg": "green_yellow_orange_red", "bg": "solarized:base2", "attrs": [] },
|
||||
"position": { "fg": "solarized:base03", "bg": "solarized:base2", "attrs": [] },
|
||||
"position_gradient": { "fg": "green_yellow_orange_red", "bg": "solarized:base2", "attrs": [] },
|
||||
"line_current": { "fg": "solarized:base3", "bg": "solarized:base02", "attrs": ["bold"] },
|
||||
"line_current_symbol": { "fg": "solarized:base3", "bg": "solarized:base02", "attrs": [] },
|
||||
"virtcol_current_gradient": { "fg": "yellow_orange_red", "bg": "solarized:base02", "attrs": [] },
|
||||
"col_current": { "fg": "solarized:base00", "bg": "solarized:base02", "attrs": [] },
|
||||
"error": { "fg": "solarized:base03", "bg": "solarized:red", "attrs": ["bold"] },
|
||||
"warning": { "fg": "solarized:base03", "bg": "solarized:base2", "attrs": ["bold"] },
|
||||
"current_tag": { "fg": "solarized:base03", "bg": "solarized:base01", "attrs": ["bold"] }
|
||||
},
|
||||
"mode_translations": {
|
||||
"nc": {
|
||||
"colors": {
|
||||
"solarized:base2": "solarized:base01",
|
||||
"solarized:base0": "solarized:base01",
|
||||
"solarized:base00": "solarized:base2",
|
||||
"solarized:base1": "solarized:base0",
|
||||
"solarized:base02": "solarized:base00",
|
||||
"solarized:base03": "solarized:base1"
|
||||
}
|
||||
},
|
||||
"i": {
|
||||
"groups": {
|
||||
"background": { "fg": "solarized:base03", "bg": "solarized:base2", "attrs": [] },
|
||||
"background:divider": { "fg": "solarized:base02", "bg": "solarized:base2", "attrs": [] },
|
||||
"mode": { "fg": "solarized:base3", "bg": "solarized:blue", "attrs": ["bold"] },
|
||||
"modified_indicator": { "fg": "solarized:yellow", "bg": "solarized:base02", "attrs": ["bold"] },
|
||||
"paste_indicator": { "fg": "solarized:base3", "bg": "solarized:orange", "attrs": ["bold"] },
|
||||
"readonly_indicator": { "fg": "solarized:red", "bg": "solarized:base02", "attrs": [] },
|
||||
"branch": { "fg": "solarized:base2", "bg": "solarized:base02", "attrs": [] },
|
||||
"branch:divider": { "fg": "solarized:base0", "bg": "solarized:base02", "attrs": [] },
|
||||
"file_directory": { "fg": "solarized:base2", "bg": "solarized:base02", "attrs": [] },
|
||||
"file_name": { "fg": "solarized:base01", "bg": "solarized:base02", "attrs": ["bold"] },
|
||||
"file_size": { "fg": "solarized:base01", "bg": "solarized:base02", "attrs": [] },
|
||||
"file_name_no_file": { "fg": "solarized:base01", "bg": "solarized:base02", "attrs": ["bold"] },
|
||||
"file_name_empty": { "fg": "solarized:base01", "bg": "solarized:base02", "attrs": [] },
|
||||
"file_format": { "fg": "solarized:base02", "bg": "solarized:base2", "attrs": [] },
|
||||
"file_vcs_status": { "fg": "solarized:red", "bg": "solarized:base02", "attrs": [] },
|
||||
"file_vcs_status_M": { "fg": "solarized:yellow", "bg": "solarized:base02", "attrs": [] },
|
||||
"file_vcs_status_A": { "fg": "solarized:green", "bg": "solarized:base02", "attrs": [] },
|
||||
"line_percent": { "fg": "solarized:base03", "bg": "solarized:base1", "attrs": [] },
|
||||
"line_percent_gradient": { "fg": "solarized:base03", "bg": "solarized:base1", "attrs": [] },
|
||||
"position": { "fg": "solarized:base03", "bg": "solarized:base1", "attrs": [] },
|
||||
"position_gradient": { "fg": "solarized:base03", "bg": "solarized:base1", "attrs": [] },
|
||||
"line_current": { "fg": "solarized:base3", "bg": "solarized:base03", "attrs": ["bold"] },
|
||||
"line_current_symbol": { "fg": "solarized:base3", "bg": "solarized:base03", "attrs": [] },
|
||||
"virtcol_current_gradient": { "fg": "yellow_orange_red", "bg": "solarized:base03", "attrs": [] },
|
||||
"col_current": { "fg": "solarized:base00", "bg": "solarized:base03", "attrs": [] }
|
||||
}
|
||||
},
|
||||
"ic": {
|
||||
"groups": {
|
||||
"background": { "fg": "solarized:base03", "bg": "solarized:base2", "attrs": [] },
|
||||
"background:divider": { "fg": "solarized:base02", "bg": "solarized:base2", "attrs": [] },
|
||||
"mode": { "fg": "solarized:base3", "bg": "solarized:blue", "attrs": ["bold"] }
|
||||
}
|
||||
},
|
||||
"ix": {
|
||||
"groups": {
|
||||
"background": { "fg": "solarized:base03", "bg": "solarized:base2", "attrs": [] },
|
||||
"background:divider": { "fg": "solarized:base02", "bg": "solarized:base2", "attrs": [] },
|
||||
"mode": { "fg": "solarized:base3", "bg": "solarized:blue", "attrs": ["bold"] }
|
||||
}
|
||||
},
|
||||
"v": {
|
||||
"groups": {
|
||||
"mode": { "fg": "solarized:base3", "bg": "solarized:orange", "attrs": ["bold"] }
|
||||
}
|
||||
},
|
||||
"V": {
|
||||
"groups": {
|
||||
"mode": { "fg": "solarized:base3", "bg": "solarized:orange", "attrs": ["bold"] }
|
||||
}
|
||||
},
|
||||
"^V": {
|
||||
"groups": {
|
||||
"mode": { "fg": "solarized:base3", "bg": "solarized:orange", "attrs": ["bold"] }
|
||||
}
|
||||
},
|
||||
"R": {
|
||||
"groups": {
|
||||
"mode": { "fg": "solarized:base3", "bg": "solarized:red", "attrs": ["bold"] }
|
||||
}
|
||||
},
|
||||
"Rc": {
|
||||
"groups": {
|
||||
"mode": { "fg": "solarized:base3", "bg": "solarized:red", "attrs": ["bold"] }
|
||||
}
|
||||
},
|
||||
"Rx": {
|
||||
"groups": {
|
||||
"mode": { "fg": "solarized:base3", "bg": "solarized:red", "attrs": ["bold"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,53 +0,0 @@
|
|||
{
|
||||
"common": {
|
||||
"term_truecolor": true
|
||||
},
|
||||
"ext": {
|
||||
"ipython": {
|
||||
"colorscheme": "default",
|
||||
"theme": "in",
|
||||
"local_themes": {
|
||||
"rewrite": "rewrite",
|
||||
"out": "out",
|
||||
"in2": "in2"
|
||||
}
|
||||
},
|
||||
"pdb": {
|
||||
"colorscheme": "default",
|
||||
"theme": "default"
|
||||
},
|
||||
"shell": {
|
||||
"colorscheme": "default",
|
||||
"theme": "default",
|
||||
"local_themes": {
|
||||
"continuation": "continuation",
|
||||
"select": "select"
|
||||
}
|
||||
},
|
||||
"tmux": {
|
||||
"colorscheme": "default",
|
||||
"theme": "default"
|
||||
},
|
||||
"vim": {
|
||||
"colorscheme": "default",
|
||||
"theme": "default",
|
||||
"local_themes": {
|
||||
"__tabline__": "tabline",
|
||||
|
||||
"cmdwin": "cmdwin",
|
||||
"help": "help",
|
||||
"quickfix": "quickfix",
|
||||
|
||||
"powerline.matchers.vim.plugin.nerdtree.nerdtree": "plugin_nerdtree",
|
||||
"powerline.matchers.vim.plugin.commandt.commandt": "plugin_commandt",
|
||||
"powerline.matchers.vim.plugin.gundo.gundo": "plugin_gundo",
|
||||
"powerline.matchers.vim.plugin.gundo.gundo_preview": "plugin_gundo-preview"
|
||||
}
|
||||
},
|
||||
"wm": {
|
||||
"colorscheme": "default",
|
||||
"theme": "default",
|
||||
"update_interval": 2
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,152 +0,0 @@
|
|||
{
|
||||
"use_non_breaking_spaces": false,
|
||||
"dividers": {
|
||||
"left": {
|
||||
"hard": " ",
|
||||
"soft": "| "
|
||||
},
|
||||
"right": {
|
||||
"hard": " ",
|
||||
"soft": " |"
|
||||
}
|
||||
},
|
||||
"spaces": 1,
|
||||
"segment_data": {
|
||||
"branch": {
|
||||
"before": "BR "
|
||||
},
|
||||
"stash": {
|
||||
"before": "ST "
|
||||
},
|
||||
"cwd": {
|
||||
"args": {
|
||||
"ellipsis": "..."
|
||||
}
|
||||
},
|
||||
"player": {
|
||||
"args": {
|
||||
"state_symbols": {
|
||||
"fallback": "",
|
||||
"play": ">",
|
||||
"pause": "~",
|
||||
"stop": "X"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
"line_current_symbol": {
|
||||
"contents": "LN "
|
||||
},
|
||||
|
||||
"time": {
|
||||
"before": ""
|
||||
},
|
||||
|
||||
"powerline.segments.common.net.network_load": {
|
||||
"args": {
|
||||
"recv_format": "DL {value:>8}",
|
||||
"sent_format": "UL {value:>8}"
|
||||
}
|
||||
},
|
||||
"powerline.segments.common.net.hostname": {
|
||||
"before": "H "
|
||||
},
|
||||
"powerline.segments.common.bat.battery": {
|
||||
"args": {
|
||||
"full_heart": "O",
|
||||
"empty_heart": "O",
|
||||
"online": "C",
|
||||
"offline": " "
|
||||
}
|
||||
},
|
||||
"powerline.segments.common.sys.uptime": {
|
||||
"before": "UP "
|
||||
},
|
||||
"powerline.segments.common.mail.email_imap_alert": {
|
||||
"before": "MAIL "
|
||||
},
|
||||
"powerline.segments.common.env.virtualenv": {
|
||||
"before": "(e) "
|
||||
},
|
||||
"powerline.segments.common.wthr.weather": {
|
||||
"args": {
|
||||
"icons": {
|
||||
"day": "DAY",
|
||||
"blustery": "WIND",
|
||||
"rainy": "RAIN",
|
||||
"cloudy": "CLOUDS",
|
||||
"snowy": "SNOW",
|
||||
"stormy": "STORM",
|
||||
"foggy": "FOG",
|
||||
"sunny": "SUN",
|
||||
"night": "NIGHT",
|
||||
"windy": "WINDY",
|
||||
"not_available": "NA",
|
||||
"unknown": "UKN"
|
||||
},
|
||||
"temp_format": "{temp:.0f} C"
|
||||
}
|
||||
},
|
||||
"powerline.segments.common.time.fuzzy_time": {
|
||||
"args": {
|
||||
"unicode_text": false
|
||||
}
|
||||
},
|
||||
|
||||
"powerline.segments.vim.mode": {
|
||||
"args": {
|
||||
"override": {
|
||||
"n": "NORMAL",
|
||||
"no": "N-OPER",
|
||||
"v": "VISUAL",
|
||||
"V": "V-LINE",
|
||||
"^V": "V-BLCK",
|
||||
"s": "SELECT",
|
||||
"S": "S-LINE",
|
||||
"^S": "S-BLCK",
|
||||
"i": "INSERT",
|
||||
"ic": "I-COMP",
|
||||
"ix": "I-C_X ",
|
||||
"R": "RPLACE",
|
||||
"Rv": "V-RPLC",
|
||||
"Rc": "R-COMP",
|
||||
"Rx": "R-C_X ",
|
||||
"c": "COMMND",
|
||||
"cv": "VIM-EX",
|
||||
"ce": "NRM-EX",
|
||||
"r": "PROMPT",
|
||||
"rm": "-MORE-",
|
||||
"r?": "CNFIRM",
|
||||
"!": "!SHELL"
|
||||
}
|
||||
}
|
||||
},
|
||||
"powerline.segments.vim.visual_range": {
|
||||
"args": {
|
||||
"CTRL_V_text": "{rows} x {vcols}",
|
||||
"v_text_oneline": "C:{vcols}",
|
||||
"v_text_multiline": "L:{rows}",
|
||||
"V_text": "L:{rows}"
|
||||
}
|
||||
},
|
||||
"powerline.segments.vim.readonly_indicator": {
|
||||
"args": {
|
||||
"text": "RO"
|
||||
}
|
||||
},
|
||||
"powerline.segments.vim.modified_indicator": {
|
||||
"args": {
|
||||
"text": "+"
|
||||
}
|
||||
},
|
||||
|
||||
"powerline.segments.i3wm.scratchpad": {
|
||||
"args": {
|
||||
"icons": {
|
||||
"fresh": "O",
|
||||
"changed": "X"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,25 +0,0 @@
|
|||
{
|
||||
"segments": {
|
||||
"left": [
|
||||
{
|
||||
"function": "powerline.segments.common.env.virtualenv",
|
||||
"priority": 10
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"contents": "In [",
|
||||
"draw_soft_divider": false,
|
||||
"highlight_groups": ["prompt"]
|
||||
},
|
||||
{
|
||||
"function": "powerline.segments.ipython.prompt_count",
|
||||
"draw_soft_divider": false
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"contents": "]",
|
||||
"highlight_groups": ["prompt"]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
|
@ -1,12 +0,0 @@
|
|||
{
|
||||
"segments": {
|
||||
"left": [
|
||||
{
|
||||
"type": "string",
|
||||
"contents": "",
|
||||
"width": "auto",
|
||||
"highlight_groups": ["prompt"]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
|
@ -1,24 +0,0 @@
|
|||
{
|
||||
"default_module": "powerline.segments.ipython",
|
||||
"segments": {
|
||||
"left": [
|
||||
{
|
||||
"type": "string",
|
||||
"contents": "Out[",
|
||||
"draw_soft_divider": false,
|
||||
"width": "auto",
|
||||
"align": "r",
|
||||
"highlight_groups": ["prompt"]
|
||||
},
|
||||
{
|
||||
"function": "prompt_count",
|
||||
"draw_soft_divider": false
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"contents": "]",
|
||||
"highlight_groups": ["prompt"]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
|
@ -1,23 +0,0 @@
|
|||
{
|
||||
"default_module": "powerline.segments.ipython",
|
||||
"segments": {
|
||||
"left": [
|
||||
{
|
||||
"type": "string",
|
||||
"contents": "",
|
||||
"draw_soft_divider": false,
|
||||
"width": "auto",
|
||||
"highlight_groups": ["prompt"]
|
||||
},
|
||||
{
|
||||
"function": "prompt_count",
|
||||
"draw_soft_divider": false
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"contents": ">",
|
||||
"highlight_groups": ["prompt"]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
|
@ -1,27 +0,0 @@
|
|||
{
|
||||
"default_module": "powerline.segments.pdb",
|
||||
"segments": {
|
||||
"left": [
|
||||
{
|
||||
"function": "stack_depth"
|
||||
},
|
||||
{
|
||||
"type": "segment_list",
|
||||
"function": "powerline.listers.pdb.frame_lister",
|
||||
"segments": [
|
||||
{
|
||||
"function": "current_file",
|
||||
"after": ":"
|
||||
},
|
||||
{
|
||||
"function": "current_line",
|
||||
"after": " "
|
||||
},
|
||||
{
|
||||
"function": "current_code_name"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
|
@ -1,150 +0,0 @@
|
|||
{
|
||||
"dividers": {
|
||||
"left": {
|
||||
"hard": " "
|
||||
"soft": " "
|
||||
},
|
||||
"right": {
|
||||
"hard": " ",
|
||||
"soft": " "
|
||||
}
|
||||
},
|
||||
"spaces": 1,
|
||||
"segment_data": {
|
||||
"branch": {
|
||||
"before": " "
|
||||
},
|
||||
"stash": {
|
||||
"before": "⌆ "
|
||||
},
|
||||
"cwd": {
|
||||
"args": {
|
||||
"ellipsis": "⋯"
|
||||
}
|
||||
},
|
||||
|
||||
"line_current_symbol": {
|
||||
"contents": " "
|
||||
},
|
||||
"player": {
|
||||
"args": {
|
||||
"state_symbols": {
|
||||
"fallback": "♫",
|
||||
"play": "▶",
|
||||
"pause": "▮▮",
|
||||
"stop": "■"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
"time": {
|
||||
"before": "⌚ "
|
||||
},
|
||||
|
||||
"powerline.segments.common.net.network_load": {
|
||||
"args": {
|
||||
"recv_format": "⬇ {value:>8}",
|
||||
"sent_format": "⬆ {value:>8}"
|
||||
}
|
||||
},
|
||||
"powerline.segments.common.net.hostname": {
|
||||
"before": " "
|
||||
},
|
||||
"powerline.segments.common.bat.battery": {
|
||||
"args": {
|
||||
"full_heart": "♥",
|
||||
"empty_heart": "♥",
|
||||
"online": "⚡︎",
|
||||
"offline": " "
|
||||
}
|
||||
},
|
||||
"powerline.segments.common.sys.uptime": {
|
||||
"before": "⇑ "
|
||||
},
|
||||
"powerline.segments.common.mail.email_imap_alert": {
|
||||
"before": "✉ "
|
||||
},
|
||||
"powerline.segments.common.env.virtualenv": {
|
||||
"before": "ⓔ "
|
||||
},
|
||||
"powerline.segments.common.wthr.weather": {
|
||||
"args": {
|
||||
"icons": {
|
||||
"day": "〇",
|
||||
"blustery": "⚑",
|
||||
"rainy": "☔",
|
||||
"cloudy": "☁",
|
||||
"snowy": "❅",
|
||||
"stormy": "☈",
|
||||
"foggy": "≡",
|
||||
"sunny": "☼",
|
||||
"night": "☾",
|
||||
"windy": "☴",
|
||||
"not_available": "<22>",
|
||||
"unknown": "⚠"
|
||||
}
|
||||
}
|
||||
},
|
||||
"powerline.segments.common.time.fuzzy_time": {
|
||||
"args": {
|
||||
"unicode_text": true
|
||||
}
|
||||
},
|
||||
|
||||
"powerline.segments.vim.mode": {
|
||||
"args": {
|
||||
"override": {
|
||||
"n": "NORMAL",
|
||||
"no": "N·OPER",
|
||||
"v": "VISUAL",
|
||||
"V": "V·LINE",
|
||||
"^V": "V·BLCK",
|
||||
"s": "SELECT",
|
||||
"S": "S·LINE",
|
||||
"^S": "S·BLCK",
|
||||
"i": "INSERT",
|
||||
"ic": "I·COMP",
|
||||
"ix": "I·C-X ",
|
||||
"R": "RPLACE",
|
||||
"Rv": "V·RPLC",
|
||||
"Rc": "R·COMP",
|
||||
"Rx": "R·C-X ",
|
||||
"c": "COMMND",
|
||||
"cv": "VIM·EX",
|
||||
"ce": "NRM·EX",
|
||||
"r": "PROMPT",
|
||||
"rm": "-MORE-",
|
||||
"r?": "CNFIRM",
|
||||
"!": "!SHELL"
|
||||
}
|
||||
}
|
||||
},
|
||||
"powerline.segments.vim.visual_range": {
|
||||
"args": {
|
||||
"CTRL_V_text": "↕{rows} ↔{vcols}",
|
||||
"v_text_oneline": "↔{vcols}",
|
||||
"v_text_multiline": "↕{rows}",
|
||||
"V_text": "⇕{rows}"
|
||||
}
|
||||
},
|
||||
"powerline.segments.vim.readonly_indicator": {
|
||||
"args": {
|
||||
"text": ""
|
||||
}
|
||||
},
|
||||
"powerline.segments.vim.modified_indicator": {
|
||||
"args": {
|
||||
"text": "+"
|
||||
}
|
||||
},
|
||||
|
||||
"powerline.segments.i3wm.scratchpad": {
|
||||
"args": {
|
||||
"icons": {
|
||||
"fresh": "●",
|
||||
"changed": "○"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,150 +0,0 @@
|
|||
{
|
||||
"dividers": {
|
||||
"left": {
|
||||
"hard": " ",
|
||||
"soft": " "
|
||||
},
|
||||
"right": {
|
||||
"hard": " ",
|
||||
"soft": " "
|
||||
}
|
||||
},
|
||||
"spaces": 1,
|
||||
"segment_data": {
|
||||
"branch": {
|
||||
"before": " "
|
||||
},
|
||||
"stash": {
|
||||
"before": "ST "
|
||||
},
|
||||
"cwd": {
|
||||
"args": {
|
||||
"ellipsis": "…"
|
||||
}
|
||||
},
|
||||
|
||||
"line_current_symbol": {
|
||||
"contents": " "
|
||||
},
|
||||
"player": {
|
||||
"args": {
|
||||
"state_symbols": {
|
||||
"fallback": "♫",
|
||||
"play": "▶",
|
||||
"pause": "▮▮",
|
||||
"stop": "■"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
"time": {
|
||||
"before": ""
|
||||
},
|
||||
|
||||
"powerline.segments.common.net.network_load": {
|
||||
"args": {
|
||||
"recv_format": "⇓ {value:>8}",
|
||||
"sent_format": "⇑ {value:>8}"
|
||||
}
|
||||
},
|
||||
"powerline.segments.common.net.hostname": {
|
||||
"before": " "
|
||||
},
|
||||
"powerline.segments.common.bat.battery": {
|
||||
"args": {
|
||||
"full_heart": "♥",
|
||||
"empty_heart": "♥",
|
||||
"online": "⚡︎",
|
||||
"offline": " "
|
||||
}
|
||||
},
|
||||
"powerline.segments.common.sys.uptime": {
|
||||
"before": "↑ "
|
||||
},
|
||||
"powerline.segments.common.mail.email_imap_alert": {
|
||||
"before": "MAIL "
|
||||
},
|
||||
"powerline.segments.common.env.virtualenv": {
|
||||
"before": "(e) "
|
||||
},
|
||||
"powerline.segments.common.wthr.weather": {
|
||||
"args": {
|
||||
"icons": {
|
||||
"day": "DAY",
|
||||
"blustery": "WIND",
|
||||
"rainy": "RAIN",
|
||||
"cloudy": "CLOUDS",
|
||||
"snowy": "SNOW",
|
||||
"stormy": "STORM",
|
||||
"foggy": "FOG",
|
||||
"sunny": "SUN",
|
||||
"night": "NIGHT",
|
||||
"windy": "WINDY",
|
||||
"not_available": "NA",
|
||||
"unknown": "UKN"
|
||||
}
|
||||
}
|
||||
},
|
||||
"powerline.segments.common.time.fuzzy_time": {
|
||||
"args": {
|
||||
"unicode_text": true
|
||||
}
|
||||
},
|
||||
|
||||
"powerline.segments.vim.mode": {
|
||||
"args": {
|
||||
"override": {
|
||||
"n": "NORMAL",
|
||||
"no": "N·OPER",
|
||||
"v": "VISUAL",
|
||||
"V": "V·LINE",
|
||||
"^V": "V·BLCK",
|
||||
"s": "SELECT",
|
||||
"S": "S·LINE",
|
||||
"^S": "S·BLCK",
|
||||
"i": "INSERT",
|
||||
"ic": "I·COMP",
|
||||
"ix": "I·C-X ",
|
||||
"R": "RPLACE",
|
||||
"Rv": "V·RPLC",
|
||||
"Rc": "R·COMP",
|
||||
"Rx": "R·C-X ",
|
||||
"c": "COMMND",
|
||||
"cv": "VIM·EX",
|
||||
"ce": "NRM·EX",
|
||||
"r": "PROMPT",
|
||||
"rm": "-MORE-",
|
||||
"r?": "CNFIRM",
|
||||
"!": "!SHELL"
|
||||
}
|
||||
}
|
||||
},
|
||||
"powerline.segments.vim.visual_range": {
|
||||
"args": {
|
||||
"CTRL_V_text": "↕{rows} ↔{vcols}",
|
||||
"v_text_oneline": "↔{vcols}",
|
||||
"v_text_multiline": "↕{rows}",
|
||||
"V_text": "⇕{rows}"
|
||||
}
|
||||
},
|
||||
"powerline.segments.vim.readonly_indicator": {
|
||||
"args": {
|
||||
"text": ""
|
||||
}
|
||||
},
|
||||
"powerline.segments.vim.modified_indicator": {
|
||||
"args": {
|
||||
"text": "+"
|
||||
}
|
||||
},
|
||||
|
||||
"powerline.segments.i3wm.scratchpad": {
|
||||
"args": {
|
||||
"icons": {
|
||||
"fresh": "●",
|
||||
"changed": "○"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,164 +0,0 @@
|
|||
{
|
||||
"dividers": {
|
||||
"left": {
|
||||
"hard": " ",
|
||||
"soft": " "
|
||||
},
|
||||
"right": {
|
||||
"hard": " ",
|
||||
"soft": " "
|
||||
}
|
||||
},
|
||||
"spaces": 1,
|
||||
"segment_data": {
|
||||
"branch": {
|
||||
"before": "🔀 "
|
||||
},
|
||||
"stash": {
|
||||
"before": "📝"
|
||||
},
|
||||
"cwd": {
|
||||
"args": {
|
||||
"ellipsis": "⋯"
|
||||
}
|
||||
},
|
||||
|
||||
"line_current_symbol": {
|
||||
"contents": " "
|
||||
},
|
||||
"player": {
|
||||
"args": {
|
||||
"state_symbols": {
|
||||
"fallback": "♫",
|
||||
"play": "⏵",
|
||||
"pause": "⏸",
|
||||
"stop": "⏹"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
"time": {
|
||||
"before": "🕐 "
|
||||
},
|
||||
|
||||
"powerline.segments.common.net.network_load": {
|
||||
"args": {
|
||||
"recv_format": "⬇ {value:>8}",
|
||||
"sent_format": "⬆ {value:>8}"
|
||||
}
|
||||
},
|
||||
"powerline.segments.common.net.hostname": {
|
||||
"before": "🏠 "
|
||||
},
|
||||
"powerline.segments.common.bat.battery": {
|
||||
"args": {
|
||||
"full_heart": "💙",
|
||||
"empty_heart": "💛",
|
||||
"online": "⚡️",
|
||||
"offline": " "
|
||||
}
|
||||
},
|
||||
"powerline.segments.common.sys.uptime": {
|
||||
"before": "⇑ "
|
||||
},
|
||||
"powerline.segments.common.mail.email_imap_alert": {
|
||||
"before": "✉ "
|
||||
},
|
||||
"powerline.segments.common.env.virtualenv": {
|
||||
"before": "🐍 "
|
||||
},
|
||||
"powerline.segments.common.wthr.weather": {
|
||||
"args": {
|
||||
"icons": {
|
||||
"tornado": "🌪",
|
||||
"hurricane": "🌀",
|
||||
"showers": "☔",
|
||||
"scattered_showers": "☔",
|
||||
"thunderstorms": "🌩",
|
||||
"isolated_thunderstorms": "🌩",
|
||||
"scattered_thunderstorms": "🌩",
|
||||
"dust": "🌫",
|
||||
"fog": "🌫",
|
||||
"cold": "❄",
|
||||
"partly_cloudy_day": "🌤",
|
||||
"mostly_cloudy_day": "🌥",
|
||||
"sun": "🌣",
|
||||
"hot": "♨",
|
||||
"day": "☀",
|
||||
"blustery": "⚑",
|
||||
"rainy": "☂",
|
||||
"cloudy": "☁",
|
||||
"snowy": "☃",
|
||||
"stormy": "☈",
|
||||
"foggy": "🌁",
|
||||
"sunny": "🌣",
|
||||
"night": "☾",
|
||||
"windy": "☴",
|
||||
"not_available": "<22>",
|
||||
"unknown": "⚠"
|
||||
}
|
||||
}
|
||||
},
|
||||
"powerline.segments.common.time.fuzzy_time": {
|
||||
"args": {
|
||||
"unicode_text": true
|
||||
}
|
||||
},
|
||||
|
||||
"powerline.segments.vim.mode": {
|
||||
"args": {
|
||||
"override": {
|
||||
"n": "NORMAL",
|
||||
"no": "N·OPER",
|
||||
"v": "VISUAL",
|
||||
"V": "V·LINE",
|
||||
"^V": "V·BLCK",
|
||||
"s": "SELECT",
|
||||
"S": "S·LINE",
|
||||
"^S": "S·BLCK",
|
||||
"i": "INSERT",
|
||||
"ic": "I·COMP",
|
||||
"ix": "I·C-X ",
|
||||
"R": "RPLACE",
|
||||
"Rv": "V·RPLC",
|
||||
"Rc": "R·COMP",
|
||||
"Rx": "R·C-X ",
|
||||
"c": "COMMND",
|
||||
"cv": "VIM·EX",
|
||||
"ce": "NRM·EX",
|
||||
"r": "PROMPT",
|
||||
"rm": "-MORE-",
|
||||
"r?": "CNFIRM",
|
||||
"!": "!SHELL"
|
||||
}
|
||||
}
|
||||
},
|
||||
"powerline.segments.vim.visual_range": {
|
||||
"args": {
|
||||
"CTRL_V_text": "↕{rows} ↔{vcols}",
|
||||
"v_text_oneline": "↔{vcols}",
|
||||
"v_text_multiline": "↕{rows}",
|
||||
"V_text": "⇕{rows}"
|
||||
}
|
||||
},
|
||||
"powerline.segments.vim.readonly_indicator": {
|
||||
"args": {
|
||||
"text": "🔏"
|
||||
}
|
||||
},
|
||||
"powerline.segments.vim.modified_indicator": {
|
||||
"args": {
|
||||
"text": "🖫⃥"
|
||||
}
|
||||
},
|
||||
|
||||
"powerline.segments.i3wm.scratchpad": {
|
||||
"args": {
|
||||
"icons": {
|
||||
"fresh": "●",
|
||||
"changed": "○"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,25 +0,0 @@
|
|||
{
|
||||
"segment_data": {
|
||||
"user": {
|
||||
"args": {
|
||||
"only_if_ssh": true
|
||||
}
|
||||
},
|
||||
"hostname": {
|
||||
"args": {
|
||||
"only_if_ssh": true
|
||||
}
|
||||
},
|
||||
"branch": {
|
||||
"args": {
|
||||
"status_colors": true
|
||||
}
|
||||
},
|
||||
"cwd": {
|
||||
"args": {
|
||||
"use_path_separator": true,
|
||||
"dir_limit_depth": 6
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,12 +0,0 @@
|
|||
{
|
||||
"default_module": "powerline.segments.shell",
|
||||
"segments": {
|
||||
"left": [
|
||||
{
|
||||
"function": "continuation"
|
||||
}
|
||||
],
|
||||
"right": [
|
||||
]
|
||||
}
|
||||
}
|
|
@ -1,44 +0,0 @@
|
|||
{
|
||||
"segments": {
|
||||
"left": [
|
||||
{
|
||||
"function": "powerline.segments.shell.mode"
|
||||
},
|
||||
{
|
||||
"function": "powerline.segments.common.net.hostname",
|
||||
"priority": 10
|
||||
},
|
||||
{
|
||||
"function": "powerline.segments.common.env.user",
|
||||
"priority": 30
|
||||
},
|
||||
{
|
||||
"function": "powerline.segments.common.env.virtualenv",
|
||||
"priority": 50
|
||||
},
|
||||
{
|
||||
"function": "powerline.segments.shell.cwd",
|
||||
"priority": 10
|
||||
},
|
||||
{
|
||||
"function": "powerline.segments.shell.jobnum",
|
||||
"priority": 20
|
||||
}
|
||||
],
|
||||
"right": [
|
||||
{
|
||||
"function": "powerline.segments.shell.last_pipe_status",
|
||||
"priority": 10
|
||||
},
|
||||
{
|
||||
"function": "powerline.segments.common.vcs.stash",
|
||||
"priority": 50
|
||||
},
|
||||
{
|
||||
"function": "powerline.segments.common.vcs.branch",
|
||||
"priority": 40,
|
||||
"status_colors": true
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
|
@ -1,34 +0,0 @@
|
|||
{
|
||||
"segments": {
|
||||
"left": [
|
||||
{
|
||||
"function": "powerline.segments.common.net.hostname",
|
||||
"priority": 10
|
||||
},
|
||||
{
|
||||
"function": "powerline.segments.common.env.user",
|
||||
"priority": 30
|
||||
},
|
||||
{
|
||||
"function": "powerline.segments.common.env.virtualenv",
|
||||
"priority": 50
|
||||
},
|
||||
{
|
||||
"function": "powerline.segments.common.vcs.branch",
|
||||
"priority": 40
|
||||
},
|
||||
{
|
||||
"function": "powerline.segments.shell.cwd",
|
||||
"priority": 10
|
||||
},
|
||||
{
|
||||
"function": "powerline.segments.shell.jobnum",
|
||||
"priority": 20
|
||||
},
|
||||
{
|
||||
"function": "powerline.segments.shell.last_status",
|
||||
"priority": 10
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
|
@ -1,13 +0,0 @@
|
|||
{
|
||||
"segments": {
|
||||
"left": [
|
||||
{
|
||||
"type": "string",
|
||||
"contents": "Select variant",
|
||||
"width": "auto",
|
||||
"align": "r",
|
||||
"highlight_groups": ["continuation:current"]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
|
@ -1,32 +0,0 @@
|
|||
{
|
||||
"segments": {
|
||||
"right": [
|
||||
{
|
||||
"function": "powerline.segments.common.bat.battery",
|
||||
"priority": 50,
|
||||
"args": {
|
||||
"offline": "▽",
|
||||
"online": "◉"
|
||||
}
|
||||
},
|
||||
{
|
||||
"function": "powerline.segments.common.sys.system_load",
|
||||
"priority": 50
|
||||
},
|
||||
{
|
||||
"function": "powerline.segments.common.time.date"
|
||||
},
|
||||
{
|
||||
"function": "powerline.segments.common.time.date",
|
||||
"name": "time",
|
||||
"args": {
|
||||
"format": "%H:%M",
|
||||
"istime": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"function": "powerline.segments.common.net.hostname"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
|
@ -1,150 +0,0 @@
|
|||
{
|
||||
"dividers": {
|
||||
"left": {
|
||||
"hard": "▌ ",
|
||||
"soft": "│ "
|
||||
},
|
||||
"right": {
|
||||
"hard": " ▐",
|
||||
"soft": " │"
|
||||
}
|
||||
},
|
||||
"spaces": 1,
|
||||
"segment_data": {
|
||||
"branch": {
|
||||
"before": "⎇ "
|
||||
},
|
||||
"stash": {
|
||||
"before": "⌆"
|
||||
},
|
||||
"cwd": {
|
||||
"args": {
|
||||
"ellipsis": "⋯"
|
||||
}
|
||||
},
|
||||
"player": {
|
||||
"args": {
|
||||
"state_symbols": {
|
||||
"fallback": "♫",
|
||||
"play": "▶",
|
||||
"pause": "▮▮",
|
||||
"stop": "■"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
"line_current_symbol": {
|
||||
"contents": " "
|
||||
},
|
||||
|
||||
"time": {
|
||||
"before": "⌚ "
|
||||
},
|
||||
|
||||
"powerline.segments.common.net.network_load": {
|
||||
"args": {
|
||||
"recv_format": "⬇ {value:>8}",
|
||||
"sent_format": "⬆ {value:>8}"
|
||||
}
|
||||
},
|
||||
"powerline.segments.common.net.hostname": {
|
||||
"before": "⌂ "
|
||||
},
|
||||
"powerline.segments.common.bat.battery": {
|
||||
"args": {
|
||||
"full_heart": "♥",
|
||||
"empty_heart": "♥",
|
||||
"online": "⚡︎",
|
||||
"offline": " "
|
||||
}
|
||||
},
|
||||
"powerline.segments.common.sys.uptime": {
|
||||
"before": "⇑ "
|
||||
},
|
||||
"powerline.segments.common.mail.email_imap_alert": {
|
||||
"before": "✉ "
|
||||
},
|
||||
"powerline.segments.common.env.virtualenv": {
|
||||
"before": "ⓔ "
|
||||
},
|
||||
"powerline.segments.common.wthr.weather": {
|
||||
"args": {
|
||||
"icons": {
|
||||
"day": "〇",
|
||||
"blustery": "⚑",
|
||||
"rainy": "☔",
|
||||
"cloudy": "☁",
|
||||
"snowy": "❅",
|
||||
"stormy": "☈",
|
||||
"foggy": "≡",
|
||||
"sunny": "☼",
|
||||
"night": "☾",
|
||||
"windy": "☴",
|
||||
"not_available": "<22>",
|
||||
"unknown": "⚠"
|
||||
}
|
||||
}
|
||||
},
|
||||
"powerline.segments.common.time.fuzzy_time": {
|
||||
"args": {
|
||||
"unicode_text": true
|
||||
}
|
||||
},
|
||||
|
||||
"powerline.segments.vim.mode": {
|
||||
"args": {
|
||||
"override": {
|
||||
"n": "NORMAL",
|
||||
"no": "N·OPER",
|
||||
"v": "VISUAL",
|
||||
"V": "V·LINE",
|
||||
"^V": "V·BLCK",
|
||||
"s": "SELECT",
|
||||
"S": "S·LINE",
|
||||
"^S": "S·BLCK",
|
||||
"i": "INSERT",
|
||||
"ic": "I·COMP",
|
||||
"ix": "I·C-X ",
|
||||
"R": "RPLACE",
|
||||
"Rv": "V·RPLC",
|
||||
"Rc": "R·COMP",
|
||||
"Rx": "R·C-X ",
|
||||
"c": "COMMND",
|
||||
"cv": "VIM·EX",
|
||||
"ce": "NRM·EX",
|
||||
"r": "PROMPT",
|
||||
"rm": "-MORE-",
|
||||
"r?": "CNFIRM",
|
||||
"!": "!SHELL"
|
||||
}
|
||||
}
|
||||
},
|
||||
"powerline.segments.vim.visual_range": {
|
||||
"args": {
|
||||
"CTRL_V_text": "↕{rows} ↔{vcols}",
|
||||
"v_text_oneline": "↔{vcols}",
|
||||
"v_text_multiline": "↕{rows}",
|
||||
"V_text": "⇕{rows}"
|
||||
}
|
||||
},
|
||||
"powerline.segments.vim.readonly_indicator": {
|
||||
"args": {
|
||||
"text": "⊗"
|
||||
}
|
||||
},
|
||||
"powerline.segments.vim.modified_indicator": {
|
||||
"args": {
|
||||
"text": "+"
|
||||
}
|
||||
},
|
||||
|
||||
"powerline.segments.i3wm.scratchpad": {
|
||||
"args": {
|
||||
"icons": {
|
||||
"fresh": "●",
|
||||
"changed": "○"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,150 +0,0 @@
|
|||
{
|
||||
"dividers": {
|
||||
"left": {
|
||||
"hard": "▌ ",
|
||||
"soft": "│ "
|
||||
},
|
||||
"right": {
|
||||
"hard": " ▐",
|
||||
"soft": " │"
|
||||
}
|
||||
},
|
||||
"spaces": 1,
|
||||
"segment_data": {
|
||||
"branch": {
|
||||
"before": "BR "
|
||||
},
|
||||
"stash": {
|
||||
"before": "ST "
|
||||
},
|
||||
"cwd": {
|
||||
"args": {
|
||||
"ellipsis": "…"
|
||||
}
|
||||
},
|
||||
|
||||
"line_current_symbol": {
|
||||
"contents": " "
|
||||
},
|
||||
"player": {
|
||||
"args": {
|
||||
"state_symbols": {
|
||||
"fallback": "♫",
|
||||
"play": "▶",
|
||||
"pause": "▮▮",
|
||||
"stop": "■"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
"time": {
|
||||
"before": ""
|
||||
},
|
||||
|
||||
"powerline.segments.common.net.network_load": {
|
||||
"args": {
|
||||
"recv_format": "⇓ {value:>8}",
|
||||
"sent_format": "⇑ {value:>8}"
|
||||
}
|
||||
},
|
||||
"powerline.segments.common.net.hostname": {
|
||||
"before": "⌂ "
|
||||
},
|
||||
"powerline.segments.common.bat.battery": {
|
||||
"args": {
|
||||
"full_heart": "♥",
|
||||
"empty_heart": "♥",
|
||||
"online": "⚡︎",
|
||||
"offline": " "
|
||||
}
|
||||
},
|
||||
"powerline.segments.common.sys.uptime": {
|
||||
"before": "↑ "
|
||||
},
|
||||
"powerline.segments.common.mail.email_imap_alert": {
|
||||
"before": "MAIL "
|
||||
},
|
||||
"powerline.segments.common.env.virtualenv": {
|
||||
"before": "(e) "
|
||||
},
|
||||
"powerline.segments.common.wthr.weather": {
|
||||
"args": {
|
||||
"icons": {
|
||||
"day": "DAY",
|
||||
"blustery": "WIND",
|
||||
"rainy": "RAIN",
|
||||
"cloudy": "CLOUDS",
|
||||
"snowy": "SNOW",
|
||||
"stormy": "STORM",
|
||||
"foggy": "FOG",
|
||||
"sunny": "SUN",
|
||||
"night": "NIGHT",
|
||||
"windy": "WINDY",
|
||||
"not_available": "NA",
|
||||
"unknown": "UKN"
|
||||
}
|
||||
}
|
||||
},
|
||||
"powerline.segments.common.time.fuzzy_time": {
|
||||
"args": {
|
||||
"unicode_text": true
|
||||
}
|
||||
},
|
||||
|
||||
"powerline.segments.vim.mode": {
|
||||
"args": {
|
||||
"override": {
|
||||
"n": "NORMAL",
|
||||
"no": "N·OPER",
|
||||
"v": "VISUAL",
|
||||
"V": "V·LINE",
|
||||
"^V": "V·BLCK",
|
||||
"s": "SELECT",
|
||||
"S": "S·LINE",
|
||||
"^S": "S·BLCK",
|
||||
"i": "INSERT",
|
||||
"ic": "I·COMP",
|
||||
"ix": "I·C-X ",
|
||||
"R": "RPLACE",
|
||||
"Rv": "V·RPLC",
|
||||
"Rc": "R·COMP",
|
||||
"Rx": "R·C-X ",
|
||||
"c": "COMMND",
|
||||
"cv": "VIM·EX",
|
||||
"ce": "NRM·EX",
|
||||
"r": "PROMPT",
|
||||
"rm": "-MORE-",
|
||||
"r?": "CNFIRM",
|
||||
"!": "!SHELL"
|
||||
}
|
||||
}
|
||||
},
|
||||
"powerline.segments.vim.visual_range": {
|
||||
"args": {
|
||||
"CTRL_V_text": "{rows} × {vcols}",
|
||||
"v_text_oneline": "C:{vcols}",
|
||||
"v_text_multiline": "L:{rows}",
|
||||
"V_text": "L:{rows}"
|
||||
}
|
||||
},
|
||||
"powerline.segments.vim.readonly_indicator": {
|
||||
"args": {
|
||||
"text": "RO"
|
||||
}
|
||||
},
|
||||
"powerline.segments.vim.modified_indicator": {
|
||||
"args": {
|
||||
"text": "+"
|
||||
}
|
||||
},
|
||||
|
||||
"powerline.segments.i3wm.scratchpad": {
|
||||
"args": {
|
||||
"icons": {
|
||||
"fresh": "●",
|
||||
"changed": "○"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,151 +0,0 @@
|
|||
{
|
||||
"dividers": {
|
||||
"left": {
|
||||
"hard": "▌",
|
||||
"soft": "│"
|
||||
},
|
||||
"right": {
|
||||
"hard": "▐",
|
||||
"soft": "│"
|
||||
}
|
||||
},
|
||||
"spaces": 0,
|
||||
"segment_data": {
|
||||
"branch": {
|
||||
"before": "B "
|
||||
},
|
||||
"stash": {
|
||||
"before": "S "
|
||||
},
|
||||
"cwd": {
|
||||
"args": {
|
||||
"use_path_separator": true,
|
||||
"ellipsis": "…"
|
||||
}
|
||||
},
|
||||
|
||||
"line_current_symbol": {
|
||||
"contents": ""
|
||||
},
|
||||
"player": {
|
||||
"args": {
|
||||
"state_symbols": {
|
||||
"fallback": "♫",
|
||||
"play": "▶",
|
||||
"pause": "▮▮",
|
||||
"stop": "■"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
"time": {
|
||||
"before": ""
|
||||
},
|
||||
|
||||
"powerline.segments.common.net.network_load": {
|
||||
"args": {
|
||||
"recv_format": "⇓{value:>8}",
|
||||
"sent_format": "⇑{value:>8}"
|
||||
}
|
||||
},
|
||||
"powerline.segments.common.net.hostname": {
|
||||
"before": "⌂"
|
||||
},
|
||||
"powerline.segments.common.bat.battery": {
|
||||
"args": {
|
||||
"full_heart": "♥",
|
||||
"empty_heart": "♥",
|
||||
"online": "⚡︎",
|
||||
"offline": " "
|
||||
}
|
||||
},
|
||||
"powerline.segments.common.sys.uptime": {
|
||||
"before": "↑"
|
||||
},
|
||||
"powerline.segments.common.mail.email_imap_alert": {
|
||||
"before": "M "
|
||||
},
|
||||
"powerline.segments.common.env.virtualenv": {
|
||||
"before": "E "
|
||||
},
|
||||
"powerline.segments.common.wthr.weather": {
|
||||
"args": {
|
||||
"icons": {
|
||||
"day": "D",
|
||||
"blustery": "W",
|
||||
"rainy": "R",
|
||||
"cloudy": "c",
|
||||
"snowy": "*",
|
||||
"stormy": "S",
|
||||
"foggy": "f",
|
||||
"sunny": "s",
|
||||
"night": "N",
|
||||
"windy": "w",
|
||||
"not_available": "-",
|
||||
"unknown": "!"
|
||||
}
|
||||
}
|
||||
},
|
||||
"powerline.segments.common.time.fuzzy_time": {
|
||||
"args": {
|
||||
"unicode_text": true
|
||||
}
|
||||
},
|
||||
|
||||
"powerline.segments.vim.mode": {
|
||||
"args": {
|
||||
"override": {
|
||||
"n": "NML",
|
||||
"no": "NOP",
|
||||
"v": "VIS",
|
||||
"V": "VLN",
|
||||
"^V": "VBL",
|
||||
"s": "SEL",
|
||||
"S": "SLN",
|
||||
"^S": "SBL",
|
||||
"i": "INS",
|
||||
"ic": "I-C",
|
||||
"ix": "I^X",
|
||||
"R": "REP",
|
||||
"Rv": "VRP",
|
||||
"Rc": "R-C",
|
||||
"Rx": "R^X",
|
||||
"c": "CMD",
|
||||
"cv": "VEX",
|
||||
"ce": " EX",
|
||||
"r": "PRT",
|
||||
"rm": "MOR",
|
||||
"r?": "CON",
|
||||
"!": " SH"
|
||||
}
|
||||
}
|
||||
},
|
||||
"powerline.segments.vim.visual_range": {
|
||||
"args": {
|
||||
"CTRL_V_text": "{rows}×{vcols}",
|
||||
"v_text_oneline": "↔{vcols}",
|
||||
"v_text_multiline": "↕{rows}",
|
||||
"V_text": "⇕{rows}"
|
||||
}
|
||||
},
|
||||
"powerline.segments.vim.readonly_indicator": {
|
||||
"args": {
|
||||
"text": "RO"
|
||||
}
|
||||
},
|
||||
"powerline.segments.vim.modified_indicator": {
|
||||
"args": {
|
||||
"text": "+"
|
||||
}
|
||||
},
|
||||
|
||||
"powerline.segments.i3wm.scratchpad": {
|
||||
"args": {
|
||||
"icons": {
|
||||
"fresh": "●",
|
||||
"changed": "○"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
{
|
||||
"segment_data": {
|
||||
"line_percent": {
|
||||
"args": {
|
||||
"gradient": true
|
||||
},
|
||||
"after": "%"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,18 +0,0 @@
|
|||
{
|
||||
"segments": {
|
||||
"left": [
|
||||
{
|
||||
"type": "string",
|
||||
"contents": "Command Line",
|
||||
"highlight_groups": ["file_name"]
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"highlight_groups": ["background"],
|
||||
"draw_soft_divider": false,
|
||||
"draw_hard_divider": false,
|
||||
"width": "auto"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
|
@ -1,128 +0,0 @@
|
|||
{
|
||||
"segments": {
|
||||
"left": [
|
||||
{
|
||||
"function": "mode",
|
||||
"exclude_modes": ["nc"]
|
||||
},
|
||||
{
|
||||
"function": "visual_range",
|
||||
"include_modes": ["v", "V", "^V", "s", "S", "^S"],
|
||||
"priority": 10
|
||||
},
|
||||
{
|
||||
"function": "paste_indicator",
|
||||
"exclude_modes": ["nc"],
|
||||
"priority": 10
|
||||
},
|
||||
{
|
||||
"function": "powerline.segments.vim.plugin.capslock.capslock_indicator",
|
||||
"include_modes": ["i", "R", "Rv"],
|
||||
"priority": 10
|
||||
},
|
||||
{
|
||||
"function": "branch",
|
||||
"exclude_modes": ["nc"],
|
||||
"priority": 30
|
||||
},
|
||||
{
|
||||
"function": "readonly_indicator",
|
||||
"draw_soft_divider": false,
|
||||
"after": " "
|
||||
},
|
||||
{
|
||||
"function": "file_scheme",
|
||||
"priority": 20
|
||||
},
|
||||
{
|
||||
"function": "file_directory",
|
||||
"priority": 40,
|
||||
"draw_soft_divider": false
|
||||
},
|
||||
{
|
||||
"function": "file_name",
|
||||
"draw_soft_divider": false
|
||||
},
|
||||
{
|
||||
"function": "file_vcs_status",
|
||||
"before": " ",
|
||||
"draw_soft_divider": false
|
||||
},
|
||||
{
|
||||
"function": "modified_indicator",
|
||||
"before": " "
|
||||
},
|
||||
{
|
||||
"exclude_modes": ["i", "R", "Rv"],
|
||||
"function": "trailing_whitespace",
|
||||
"display": false,
|
||||
"priority": 60
|
||||
},
|
||||
{
|
||||
"exclude_modes": ["nc"],
|
||||
"function": "powerline.segments.vim.plugin.syntastic.syntastic",
|
||||
"priority": 50
|
||||
},
|
||||
{
|
||||
"exclude_modes": ["nc"],
|
||||
"function": "powerline.segments.vim.plugin.tagbar.current_tag",
|
||||
"draw_soft_divider": false,
|
||||
"priority": 50
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"highlight_groups": ["background"],
|
||||
"draw_soft_divider": false,
|
||||
"draw_hard_divider": false,
|
||||
"width": "auto"
|
||||
}
|
||||
],
|
||||
"right": [
|
||||
{
|
||||
"function": "file_format",
|
||||
"draw_soft_divider": false,
|
||||
"exclude_modes": ["nc"],
|
||||
"priority": 60
|
||||
},
|
||||
{
|
||||
"function": "file_encoding",
|
||||
"exclude_modes": ["nc"],
|
||||
"priority": 60
|
||||
},
|
||||
{
|
||||
"function": "file_type",
|
||||
"exclude_modes": ["nc"],
|
||||
"priority": 60
|
||||
},
|
||||
{
|
||||
"function": "line_percent",
|
||||
"priority": 50,
|
||||
"width": 4,
|
||||
"align": "r"
|
||||
},
|
||||
{
|
||||
"function": "csv_col_current",
|
||||
"priority": 30
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"name": "line_current_symbol",
|
||||
"highlight_groups": ["line_current_symbol", "line_current"]
|
||||
},
|
||||
{
|
||||
"function": "line_current",
|
||||
"draw_soft_divider": false,
|
||||
"width": 3,
|
||||
"align": "r"
|
||||
},
|
||||
{
|
||||
"function": "virtcol_current",
|
||||
"draw_soft_divider": false,
|
||||
"priority": 20,
|
||||
"before": ":",
|
||||
"width": 3,
|
||||
"align": "l"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
|
@ -1,36 +0,0 @@
|
|||
{
|
||||
"segments": {
|
||||
"left": [
|
||||
{
|
||||
"function": "file_name",
|
||||
"draw_soft_divider": false
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"highlight_groups": ["background"],
|
||||
"draw_soft_divider": false,
|
||||
"draw_hard_divider": false,
|
||||
"width": "auto"
|
||||
}
|
||||
],
|
||||
"right": [
|
||||
{
|
||||
"function": "line_percent",
|
||||
"priority": 30,
|
||||
"width": 4,
|
||||
"align": "r"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"name": "line_current_symbol",
|
||||
"highlight_groups": ["line_current_symbol", "line_current"]
|
||||
},
|
||||
{
|
||||
"function": "line_current",
|
||||
"draw_soft_divider": false,
|
||||
"width": 3,
|
||||
"align": "r"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
|
@ -1,26 +0,0 @@
|
|||
{
|
||||
"segments": {
|
||||
"left": [
|
||||
{
|
||||
"type": "string",
|
||||
"contents": "Command-T",
|
||||
"highlight_groups": ["commandt:label"]
|
||||
},
|
||||
{
|
||||
"function": "powerline.segments.vim.plugin.commandt.finder"
|
||||
},
|
||||
{
|
||||
"function": "powerline.segments.vim.plugin.commandt.path"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"highlight_groups": ["commandt:background"],
|
||||
"draw_soft_divider": false,
|
||||
"draw_hard_divider": false,
|
||||
"width": "auto"
|
||||
}
|
||||
],
|
||||
"right": [
|
||||
]
|
||||
}
|
||||
}
|
|
@ -1,18 +0,0 @@
|
|||
{
|
||||
"segments": {
|
||||
"left": [
|
||||
{
|
||||
"type": "string",
|
||||
"highlight_groups": ["gundo:name", "file_name"],
|
||||
"contents": "Undo diff"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"highlight_groups": ["gundo:background", "background"],
|
||||
"draw_soft_divider": false,
|
||||
"draw_hard_divider": false,
|
||||
"width": "auto"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
|
@ -1,18 +0,0 @@
|
|||
{
|
||||
"segments": {
|
||||
"left": [
|
||||
{
|
||||
"type": "string",
|
||||
"highlight_groups": ["gundo:name", "file_name"],
|
||||
"contents": "Undo tree"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"highlight_groups": ["gundo:background", "background"],
|
||||
"draw_soft_divider": false,
|
||||
"draw_hard_divider": false,
|
||||
"width": "auto"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"default_module": "powerline.segments.vim.plugin.nerdtree",
|
||||
"segments": {
|
||||
"left": [
|
||||
{
|
||||
"function": "nerdtree"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"highlight_groups": ["background"],
|
||||
"draw_soft_divider": false,
|
||||
"draw_hard_divider": false,
|
||||
"width": "auto"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
|
@ -1,40 +0,0 @@
|
|||
{
|
||||
"segment_data": {
|
||||
"buffer_name": {
|
||||
"contents": "Location List"
|
||||
}
|
||||
},
|
||||
"segments": {
|
||||
"left": [
|
||||
{
|
||||
"type": "string",
|
||||
"name": "buffer_name",
|
||||
"highlight_groups": ["file_name"]
|
||||
},
|
||||
{
|
||||
"function": "window_title",
|
||||
"draw_soft_divider": false
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"highlight_groups": ["background"],
|
||||
"draw_soft_divider": false,
|
||||
"draw_hard_divider": false,
|
||||
"width": "auto"
|
||||
}
|
||||
],
|
||||
"right": [
|
||||
{
|
||||
"type": "string",
|
||||
"name": "line_current_symbol",
|
||||
"highlight_groups": ["line_current_symbol", "line_current"]
|
||||
},
|
||||
{
|
||||
"function": "line_current",
|
||||
"draw_soft_divider": false,
|
||||
"width": 3,
|
||||
"align": "r"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
|
@ -1,93 +0,0 @@
|
|||
{
|
||||
"default_module": "powerline.segments.vim",
|
||||
"segments": {
|
||||
"left": [
|
||||
{
|
||||
"type": "segment_list",
|
||||
"function": "powerline.listers.vim.tablister",
|
||||
"exclude_function": "single_tab",
|
||||
"segments": [
|
||||
{
|
||||
"function": "tab"
|
||||
},
|
||||
{
|
||||
"function": "tabnr",
|
||||
"after": " ",
|
||||
"priority": 5
|
||||
},
|
||||
{
|
||||
"function": "file_directory",
|
||||
"priority": 40
|
||||
},
|
||||
{
|
||||
"function": "file_name",
|
||||
"args": {
|
||||
"display_no_file": true
|
||||
},
|
||||
"priority": 10
|
||||
},
|
||||
{
|
||||
"function": "tab_modified_indicator",
|
||||
"priority": 5
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"function": "tab",
|
||||
"args": {
|
||||
"end": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "segment_list",
|
||||
"function": "powerline.listers.vim.bufferlister",
|
||||
"include_function": "single_tab",
|
||||
"segments": [
|
||||
{
|
||||
"function": "bufnr",
|
||||
"after": " ",
|
||||
"priority": 5
|
||||
},
|
||||
{
|
||||
"function": "file_directory",
|
||||
"priority": 40
|
||||
},
|
||||
{
|
||||
"function": "file_name",
|
||||
"args": {
|
||||
"display_no_file": true
|
||||
},
|
||||
"priority": 10
|
||||
},
|
||||
{
|
||||
"function": "modified_indicator",
|
||||
"priority": 5
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"highlight_groups": ["tab:background"],
|
||||
"draw_soft_divider": false,
|
||||
"draw_hard_divider": false,
|
||||
"width": "auto"
|
||||
}
|
||||
],
|
||||
"right": [
|
||||
{
|
||||
"type": "string",
|
||||
"contents": "Bufs",
|
||||
"name": "single_tab",
|
||||
"highlight_groups": ["single_tab"],
|
||||
"include_function": "single_tab"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"contents": "Tabs",
|
||||
"name": "many_tabs",
|
||||
"highlight_groups": ["many_tabs"],
|
||||
"exclude_function": "single_tab"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
|
@ -1,29 +0,0 @@
|
|||
{
|
||||
"segments": {
|
||||
"right": [
|
||||
{
|
||||
"function": "powerline.segments.common.wthr.weather",
|
||||
"priority": 50
|
||||
},
|
||||
{
|
||||
"function": "powerline.segments.common.time.date"
|
||||
},
|
||||
{
|
||||
"function": "powerline.segments.common.time.date",
|
||||
"name": "time",
|
||||
"args": {
|
||||
"format": "%H:%M",
|
||||
"istime": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"function": "powerline.segments.common.mail.email_imap_alert",
|
||||
"priority": 10,
|
||||
"args": {
|
||||
"username": "",
|
||||
"password": ""
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
|
@ -1,12 +0,0 @@
|
|||
[redshift]
|
||||
temp-day=4000
|
||||
temp-night=2900
|
||||
brightness-day=1.0
|
||||
brightness-night=0.80
|
||||
location-provider=manual
|
||||
transition=0
|
||||
|
||||
[manual]
|
||||
lat=59.316
|
||||
lon=18.065
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
rofi.font: IBM Plex Mono 16
|
||||
rofi.dpi: 210
|
||||
rofi.theme: blue
|
||||
rofi.columns: 1
|
||||
rofi.lines: 5
|
|
@ -1,203 +0,0 @@
|
|||
set $lock swaylock
|
||||
set $mod Mod4
|
||||
set $term alacritty
|
||||
set $laptop eDP-1
|
||||
|
||||
set $left h
|
||||
set $down j
|
||||
set $up k
|
||||
set $right l
|
||||
|
||||
input "1739:30385:DELL08AF:00_06CB:76B1_Touchpad" {
|
||||
tap enabled
|
||||
natural_scroll enabled
|
||||
pointer_accel 0.2
|
||||
}
|
||||
|
||||
input "1133:16514:Logitech_MX_Master_3" {
|
||||
pointer_accel 0
|
||||
scroll_factor 0.5
|
||||
}
|
||||
|
||||
input "*" {
|
||||
xkb_layout us-se-umlauts
|
||||
}
|
||||
|
||||
bindsym XF86AudioRaiseVolume exec pamixer -ui 2 && pamixer --get-volume > $SWAYSOCK.wob
|
||||
bindsym XF86AudioLowerVolume exec pamixer -ud 2 && pamixer --get-volume > $SWAYSOCK.wob
|
||||
bindsym XF86AudioMute exec pamixer --toggle-mute && ( pamixer --get-mute && echo 0 > $SWAYSOCK.wob ) || pamixer --get-volume > $SWAYSOCK.wob
|
||||
bindsym XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle
|
||||
bindsym XF86MonBrightnessDown exec brightnessctl set 5%-
|
||||
bindsym XF86MonBrightnessUp exec brightnessctl set +5%
|
||||
bindsym XF86AudioPlay exec playerctl play-pause
|
||||
bindsym XF86AudioNext exec playerctl next
|
||||
bindsym XF86AudioPrev exec playerctl previous
|
||||
|
||||
bindsym Mod4+1 exec sway-focus F1
|
||||
bindsym Mod4+2 exec sway-focus F2
|
||||
bindsym Mod4+3 exec sway-focus F3
|
||||
bindsym Mod4+4 exec sway-focus F4
|
||||
bindsym Mod4+5 workspace 5
|
||||
bindsym Mod4+6 workspace 6
|
||||
bindsym Mod4+7 workspace 7
|
||||
bindsym Mod4+8 workspace 8
|
||||
bindsym Shift+Mod4+1 mark F1; exec sway-focus F1
|
||||
bindsym Shift+Mod4+2 mark F2; exec sway-focus F2
|
||||
bindsym Shift+Mod4+3 mark F3; exec sway-focus F3
|
||||
bindsym Shift+Mod4+4 mark F4; exec sway-focus F4
|
||||
bindsym Shift+Mod4+5 move container to workspace 5
|
||||
bindsym Shift+Mod4+6 move container to workspace 6
|
||||
bindsym Shift+Mod4+7 move container to workspace 7
|
||||
bindsym Shift+Mod4+8 move container to workspace 8
|
||||
|
||||
bindsym Mod4+Left workspace prev
|
||||
bindsym Mod4+Right workspace next
|
||||
|
||||
bindsym F1 workspace 1
|
||||
bindsym F2 workspace 2
|
||||
bindsym F3 workspace 3
|
||||
bindsym F4 workspace 4
|
||||
bindsym F5 workspace 5
|
||||
bindsym F6 workspace 6
|
||||
bindsym F7 workspace 7
|
||||
bindsym F8 workspace 8
|
||||
bindsym F9 workspace 9
|
||||
bindsym Shift+F1 move container to workspace 1
|
||||
bindsym Shift+F2 move container to workspace 2
|
||||
bindsym Shift+F3 move container to workspace 3
|
||||
bindsym Shift+F4 move container to workspace 4
|
||||
bindsym Shift+F5 move container to workspace 5
|
||||
bindsym Shift+F6 move container to workspace 6
|
||||
bindsym Shift+F7 move container to workspace 7
|
||||
bindsym Shift+F8 move container to workspace 8
|
||||
bindsym Shift+F9 move container to workspace 9
|
||||
|
||||
bindsym Mod4+Shift+c kill
|
||||
bindsym Mod4+Shift+q exit
|
||||
bindsym Mod4+Return exec $term
|
||||
bindsym Mod4+Shift+Return exec $term tmux new-session -A -D -s 0
|
||||
bindsym Mod4+Control+Return exec "autossh -M21001 -f -A -T home-dev sleep inf; $term -e mosh -p 2022 home -- tmux new-session -A -D -s 0"
|
||||
bindsym Mod4+p exec wofi --show run
|
||||
bindsym Mod4+e exec ~/bin/wofi-emoji
|
||||
bindsym Mod4+l exec $lock
|
||||
bindsym Mod4+Shift+l exec 'swaymsg "output * dpms off"; $lock'
|
||||
bindsym Mod4+space exec makoctl dismiss -a
|
||||
bindsym Mod4+print exec grim -g "$(slurp)" - | wl-copy
|
||||
bindsym Mod4+Control+p exec grim -g "$(slurp)" - | wl-copy
|
||||
bindsym Mod4+Escape reload
|
||||
bindsym Mod4+g layout toggle split tabbed stacking
|
||||
bindsym Mod4+Tab exec sway-focus
|
||||
bindsym Mod4+Control+Tab move workspace to output right
|
||||
|
||||
bindsym Mod4+Shift+minus move scratchpad
|
||||
bindsym Mod4+minus scratchpad show
|
||||
bindsym Control_R scratchpad show
|
||||
bindsym Control+Control_R move scratchpad
|
||||
|
||||
floating_modifier Mod4
|
||||
bindsym Menu floating toggle
|
||||
bindsym Mod4+Shift+f floating toggle
|
||||
bindsym Mod4+f focus mode_toggle
|
||||
bindsym Mod4+F11 fullscreen toggle
|
||||
|
||||
bindsym Control+Menu floating toggle; resize set width 60 ppt; resize set height 100 ppt ; move position center
|
||||
bindsym Mod4+x floating toggle; resize set width 60 ppt; resize set height 100 ppt ; move position center
|
||||
|
||||
mode "resize" {
|
||||
# left will shrink the containers width
|
||||
# right will grow the containers width
|
||||
# up will shrink the containers height
|
||||
# down will grow the containers height
|
||||
bindsym $left resize shrink width 20px
|
||||
bindsym $down resize grow height 20px
|
||||
bindsym $up resize shrink height 20px
|
||||
bindsym $right resize grow width 20px
|
||||
|
||||
# Ditto, with arrow keys
|
||||
bindsym Left resize shrink width 20px
|
||||
bindsym Down resize grow height 20px
|
||||
bindsym Up resize shrink height 20px
|
||||
bindsym Right resize grow width 20px
|
||||
|
||||
# Return to default mode
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
bindsym $mod+r mode "resize"
|
||||
|
||||
hide_edge_borders both
|
||||
smart_borders on
|
||||
default_border pixel 2
|
||||
smart_gaps on
|
||||
# gaps outer all set 0
|
||||
tiling_drag enable
|
||||
xwayland force
|
||||
|
||||
seat seat0 xcursor_theme Bibata_Oil 32
|
||||
|
||||
bindswitch --reload lid:on output $laptop disable
|
||||
bindswitch --reload lid:off output $laptop enable
|
||||
|
||||
output $laptop scale 2
|
||||
output $laptop background #000000 solid_color
|
||||
output $laptop bg /home/dln/.config/sway/laser.png center
|
||||
output $laptop pos 0 800
|
||||
|
||||
output "DP-1" scale 1
|
||||
output "DP-1" pos 1920 0
|
||||
output "DP-1" background #000000 solid_color
|
||||
output "DP-1" bg /home/dln/.config/sway/laser.png center
|
||||
|
||||
exec rm -f $SWAYSOCK.wob && mkfifo $SWAYSOCK.wob && tail -f $SWAYSOCK.wob | wob -W 2000 -H 100 -M 10 -a bottom
|
||||
exec mako
|
||||
exec redshift
|
||||
exec "systemctl --user import-environment; systemctl --user start sway-session.target"
|
||||
exec libinput-gestures-setup restart
|
||||
|
||||
## Applications
|
||||
# workspace 5
|
||||
# exec spotify
|
||||
workspace 1
|
||||
exec firefox-beta
|
||||
exec $term tmux new-session -A -D -s 0
|
||||
|
||||
# Screen lock
|
||||
exec swayidle \
|
||||
timeout 600 '$lock' \
|
||||
timeout 900 'swaymsg "output * dpms off"' \
|
||||
resume 'swaymsg "output * dpms on"' \
|
||||
before-sleep '$lock'
|
||||
|
||||
bar {
|
||||
mode hide
|
||||
font pango:IBM Plex Mono 16
|
||||
position bottom
|
||||
status_command i3blocks
|
||||
workspace_buttons no
|
||||
gaps 0 0 5 0
|
||||
status_padding 0
|
||||
status_edge_padding 0
|
||||
|
||||
colors {
|
||||
statusline #e65100ff
|
||||
background #00000000
|
||||
}
|
||||
}
|
||||
|
||||
set $black #000000
|
||||
set $white #ffffff
|
||||
set $red #770000
|
||||
set $gray #333333
|
||||
|
||||
# class border backgr. text indicator child_border
|
||||
client.focused $red $red $white $gray $red
|
||||
# client.focused_inactive $gray $gray $white $black $gray
|
||||
# client.unfocused $black $black $white $black $black
|
||||
# client.urgent $black $black $white $black $black
|
||||
client.placeholder $black $black $white $black $black
|
||||
client.background $black
|
||||
|
||||
font IBM Plex Sans Condensed Regular 8
|
||||
titlebar_padding 10 1
|
||||
titlebar_border_thickness 1
|
||||
title_align right
|
Binary file not shown.
Before Width: | Height: | Size: 774 KiB |
Binary file not shown.
Before Width: | Height: | Size: 757 KiB |
Binary file not shown.
Before Width: | Height: | Size: 756 KiB |
Binary file not shown.
Before Width: | Height: | Size: 41 KiB |
|
@ -1,12 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# The abbreviated weekday (e.g., "Sat"), followed by the ISO-formatted date
|
||||
# like 2018-10-06 and the time (e.g., 14:01)
|
||||
date_formatted=$(date "+%a %F %H:%M")
|
||||
|
||||
# Returns the battery status: "Full", "Discharging", or "Charging".
|
||||
battery_status=$(cat /sys/class/power_supply/BAT0/status)
|
||||
|
||||
# Emojis and characters for the status bar
|
||||
# 💎 💻 💡 🔌 ⚡ 📁 \|
|
||||
echo $battery_status 🔋 $date_formatted
|
Binary file not shown.
Before Width: | Height: | Size: 328 KiB |
|
@ -1,7 +0,0 @@
|
|||
ignore-empty-password
|
||||
scaling=fill
|
||||
color=000000
|
||||
font-size=64
|
||||
indicator-radius=400
|
||||
indicator-thickness=80
|
||||
image=~/.config/swaylock/shelman.png
|
Binary file not shown.
Before Width: | Height: | Size: 76 KiB |
|
@ -1,12 +0,0 @@
|
|||
[Unit]
|
||||
Description=SSH key agent
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
Environment=SSH_AUTH_SOCK=%h/.ssh/ssh_auth_sock
|
||||
ExecStartPre=/usr/bin/rm -f $SSH_AUTH_SOCK
|
||||
ExecStart=/usr/bin/ssh-agent -a $SSH_AUTH_SOCK -t 18200
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
[Unit]
|
||||
Description=sway compositor session
|
||||
Documentation=man:systemd.special(7)
|
||||
BindsTo=graphical-session.target
|
||||
Wants=graphical-session-pre.target
|
||||
After=graphical-session-pre.target
|
|
@ -1,15 +0,0 @@
|
|||
[Unit]
|
||||
Description=Idle manager for Wayland
|
||||
Documentation=man:swayidle(1)
|
||||
PartOf=graphical-session.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/swayidle -w \
|
||||
timeout 300 'swaylock -f -c 000000 -i /home/dln/i3lock.png' \
|
||||
timeout 600 'swaymsg "output * dpms off"' \
|
||||
resume 'swaymsg "output * dpms on"' \
|
||||
before-sleep 'swaylock -f -c 000000 -i /home/dln/i3lock.png'
|
||||
|
||||
[Install]
|
||||
WantedBy=sway-session.target
|
|
@ -1,10 +0,0 @@
|
|||
[Unit]
|
||||
Description=Start tmux in detached session
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=/usr/bin/tmux new-session -s %u -d
|
||||
ExecStop=/usr/bin/tmux kill-session -t %u
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
|
@ -1,40 +0,0 @@
|
|||
window {
|
||||
border: 1px solid rgba(96,125,139,0.7);
|
||||
background-color: rgba(38,50,56 ,0.8);
|
||||
border-radius: 15px;
|
||||
font: 2em "IBM Plex Sans", sans-serif;
|
||||
}
|
||||
|
||||
#outer-box {
|
||||
margin: 25px;
|
||||
}
|
||||
|
||||
#input {
|
||||
margin: 5px;
|
||||
background-color: rgba(96,125,139,0.8);
|
||||
color: rgba(236,239,241 ,1);
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
#inner-box {
|
||||
}
|
||||
|
||||
|
||||
#scroll {
|
||||
}
|
||||
|
||||
#text {
|
||||
margin: 5px 1em;
|
||||
color: rgba(96,125,139 ,1);
|
||||
}
|
||||
|
||||
#text:selected {
|
||||
color: rgba(255,213,79 ,1);
|
||||
}
|
||||
|
||||
#entry {
|
||||
}
|
||||
|
||||
#entry:selected {
|
||||
background-color: rgba(255,143,0 ,0.2);
|
||||
}
|
106
.gitconfig
106
.gitconfig
|
@ -4,10 +4,10 @@ editor = nvim
|
|||
#pager = diff-so-fancy | less -+R -nBJFXRgiM -h512 -x4
|
||||
|
||||
[user]
|
||||
useConfigOnly = true
|
||||
useConfigOnly = true
|
||||
|
||||
[column]
|
||||
ui = auto
|
||||
ui = auto
|
||||
|
||||
[push]
|
||||
default = tracking
|
||||
|
@ -15,20 +15,13 @@ default = tracking
|
|||
[branch "master"]
|
||||
rebase = true
|
||||
|
||||
[init]
|
||||
templatedir = ~/.git_template
|
||||
|
||||
[alias]
|
||||
b = branch -va
|
||||
f = fetch
|
||||
fa = fetch --all
|
||||
t = tag
|
||||
d = diff --stat -p -C
|
||||
ds = diff --staged --stat -p -C
|
||||
patch = !git --no-pager diff --no-color
|
||||
co = checkout
|
||||
st = status -sb
|
||||
stu = status -sb --untracked=no
|
||||
pullr = pull --rebase
|
||||
wc = whatchanged --abbrev-commit --date=relative --date-order --pretty='format:%Cgreen%h %Cblue%ar %Credby %an%Creset -- %s' -n 45
|
||||
|
||||
|
@ -53,56 +46,17 @@ cdiff = diff --color
|
|||
diffs = diff --staged --stat -p
|
||||
diffc = diff --staged --stat -p
|
||||
vimdiff = difftool -t vimdiff
|
||||
meld = difftool -d -t meld
|
||||
kdiff3 = difftool -d -t kdiff3
|
||||
|
||||
guilt = "!f(){ git log --pretty='format:%an <%ae>' $@ | sort | uniq -c | sort -rn; }; f"
|
||||
scat = show $1:`git ls-files --full-name $2`
|
||||
serve = daemon --verbose --export-all --base-path=.git --reuseaddr --strict-paths .git/
|
||||
identity = "! git config user.name \"$(git config user.$1.name)\"; git config user.email \"$(git config user.$1.email)\"; git config user.signingkey \"$(git config user.$1.signingkey)\"; :"
|
||||
|
||||
[merge]
|
||||
tool = meld
|
||||
|
||||
[mergetool]
|
||||
prompt = false
|
||||
|
||||
[diff]
|
||||
renames = true
|
||||
tool = kdiff3
|
||||
|
||||
[difftool]
|
||||
prompt = false
|
||||
|
||||
[difftool "kdiff3"]
|
||||
cmd = kdiff3 $LOCAL $REMOTE
|
||||
trustExitCode = false
|
||||
|
||||
[difftool "p4merge"]
|
||||
cmd = p4merge $LOCAL $REMOTE
|
||||
serve = daemon --verbose --export-all --base-path=.git --reuseaddr --strict-paths .git/
|
||||
|
||||
identity = "! git config user.name \"$(git config user.$1.name)\"; git config user.email \"$(git config user.$1.email)\"; git config user.signingkey \"$(git config user.$1.signingkey)\"; :"
|
||||
[color]
|
||||
ui = auto
|
||||
branch = auto
|
||||
diff = auto
|
||||
status = auto
|
||||
|
||||
[color "branch"]
|
||||
current = yellow reverse
|
||||
local = yellow
|
||||
remote = green
|
||||
|
||||
[color "diff"]
|
||||
meta = blue bold
|
||||
frag = magenta bold
|
||||
old = red
|
||||
new = green
|
||||
|
||||
[color "status"]
|
||||
added = blue bold
|
||||
changed = green bold
|
||||
untracked = cyan bold
|
||||
|
||||
[apply]
|
||||
whitespace = nowarn
|
||||
|
||||
|
@ -112,46 +66,24 @@ threads = 0
|
|||
[blame]
|
||||
date = relative
|
||||
|
||||
[tig]
|
||||
show-rev-graph = yes
|
||||
show-refs = yes
|
||||
line-graphics = yes
|
||||
|
||||
[tig "bind"]
|
||||
generic = G !echo
|
||||
stage = G !echo
|
||||
main = G !echo
|
||||
|
||||
[tig "color"]
|
||||
cursor = black green dim
|
||||
author = green default normal
|
||||
main-revgraph = yellow default normal
|
||||
pp-commit = magenta default bold
|
||||
diff-chunk = magenta default bold
|
||||
|
||||
# vim: ft=conf:
|
||||
[diff-so-fancy]
|
||||
useUnicodeRuler = true
|
||||
stripLeadingSymbols = true
|
||||
[hub]
|
||||
protocol = git
|
||||
protocol = git
|
||||
|
||||
[http]
|
||||
[http]
|
||||
cookiefile = /home/dln/.gitcookies
|
||||
[filter "lfs"]
|
||||
smudge = git-lfs smudge -- %f
|
||||
process = git-lfs filter-process
|
||||
required = true
|
||||
clean = git-lfs clean -- %f
|
||||
cookiefile = /home/dln/.gitcookies
|
||||
|
||||
[credential]
|
||||
helper = store
|
||||
helper = store
|
||||
|
||||
[commit]
|
||||
gpgsign = true
|
||||
gpgsign = true
|
||||
|
||||
[user "arity"]
|
||||
name = Daniel Lundin
|
||||
email = daniel@arity.se
|
||||
signingkey = 79020DB026385D4C
|
||||
name = Daniel Lundin
|
||||
email = daniel@arity.se
|
||||
signingkey = 79020DB026385D4C
|
||||
|
||||
[user "netent"]
|
||||
name = Daniel Lundin
|
||||
email = daniel.lundin@netent.com
|
||||
signingkey = B9D5337DEEE9C1D8
|
||||
name = Daniel Lundin
|
||||
email = daniel.lundin@netent.com
|
||||
signingkey = B9D5337DEEE9C1D8
|
||||
|
|
15
.gtkrc-2.0
15
.gtkrc-2.0
|
@ -1,15 +0,0 @@
|
|||
gtk-theme-name="Arc-Dark"
|
||||
gtk-icon-theme-name="breeze-dark"
|
||||
gtk-font-name="IBM Plex Sans 9"
|
||||
gtk-cursor-theme-name="Bibata_Oi"
|
||||
gtk-cursor-theme-size=32
|
||||
gtk-toolbar-style=GTK_TOOLBAR_BOTH_HORIZ
|
||||
gtk-toolbar-icon-size=GTK_ICON_SIZE_SMALL_TOOLBAR
|
||||
gtk-button-images=0
|
||||
gtk-menu-images=0
|
||||
gtk-enable-event-sounds=0
|
||||
gtk-enable-input-feedback-sounds=0
|
||||
gtk-xft-antialias=1
|
||||
gtk-xft-hinting=1
|
||||
gtk-xft-hintstyle="hintslight"
|
||||
gtk-xft-rgba="rgb
|
|
@ -1,16 +0,0 @@
|
|||
user_pref("general.smoothScroll.lines.durationMaxMS", 125);
|
||||
user_pref("general.smoothScroll.lines.durationMinMS", 125);
|
||||
user_pref("general.smoothScroll.mouseWheel.durationMaxMS", 200);
|
||||
user_pref("general.smoothScroll.mouseWheel.durationMinMS", 100);
|
||||
user_pref("general.smoothScroll.msdPhysics.enabled", true);
|
||||
user_pref("general.smoothScroll.other.durationMaxMS", 125);
|
||||
user_pref("general.smoothScroll.other.durationMinMS", 125);
|
||||
user_pref("general.smoothScroll.pages.durationMaxMS", 125);
|
||||
user_pref("general.smoothScroll.pages.durationMinMS", 125);
|
||||
|
||||
user_pref("mousewheel.min_line_scroll_amount", 30);
|
||||
user_pref("mousewheel.system_scroll_override_on_root_content.enabled", true);
|
||||
user_pref("mousewheel.system_scroll_override_on_root_content.horizontal.factor", 175);
|
||||
user_pref("mousewheel.system_scroll_override_on_root_content.vertical.factor", 175);
|
||||
user_pref("toolkit.scrollbox.horizontalScrollDistance", 6);
|
||||
user_pref("toolkit.scrollbox.verticalScrollDistance", 2);
|
|
@ -1 +0,0 @@
|
|||
Subproject commit e273cf004e1ff0510aee61416885f3003bcd15d9
|
|
@ -1,14 +1,5 @@
|
|||
Host porky
|
||||
Hostname 10.1.100.16
|
||||
ForwardAgent yes
|
||||
|
||||
Host home
|
||||
Hostname 10.1.100.16
|
||||
ForwardAgent no
|
||||
|
||||
Host devel
|
||||
Hostname 10.1.100.16
|
||||
IdentityAgent ~/.ssh/ssh_auth_sock
|
||||
ForwardAgent yes
|
||||
ExitOnForwardFailure yes
|
||||
RequestTty yes
|
||||
|
|
65
.tmux.conf
65
.tmux.conf
|
@ -3,35 +3,24 @@ set -g prefix ^o
|
|||
set -g base-index 1
|
||||
set -g display-panes-time 3000
|
||||
set -s escape-time 10
|
||||
set -g status off
|
||||
set -g status on
|
||||
set -g status-interval 30
|
||||
setw -g alternate-screen on
|
||||
setw -g aggressive-resize on
|
||||
setw -g automatic-rename off
|
||||
setw -g mode-keys vi
|
||||
set-option -g mouse on
|
||||
|
||||
# clipboard
|
||||
set -g set-clipboard on
|
||||
bind-key ] paste-buffer -p
|
||||
|
||||
set-option -g mouse on
|
||||
|
||||
set -g update-environment "XAUTHORITY DISPLAY WINDOWID SSH_ASKPASS SSH_AGENT_PID SSH_CONNECTION SWAYSOCK"
|
||||
set -g update-environment "XAUTHORITY DISPLAY WINDOWID SSH_ASKPASS SSH_AGENT_PID SSH_CONNECTION"
|
||||
set -g default-command zsh
|
||||
set -g history-limit 50000
|
||||
set -g default-terminal "tmux-256color"
|
||||
set -ga terminal-overrides ',*:Tc' # this is for 256 color
|
||||
set -ga terminal-overrides '*:Ss=\E[%p1%d q:Se=\E[ q' # this is for the cursor shape
|
||||
|
||||
|
||||
|
||||
setw -g alternate-screen on
|
||||
setw -g aggressive-resize on
|
||||
setw -g automatic-rename off
|
||||
setw -g mode-keys vi
|
||||
|
||||
# Status and Titles
|
||||
set -g status-justify left
|
||||
set -g status-left-length 30
|
||||
set -g status-right-length 90
|
||||
set -g set-titles on
|
||||
set -g set-titles-string "#T"
|
||||
#set -g default-terminal "tmux-256color"
|
||||
#set -ga terminal-overrides ',*:Tc' # this is for 256 color
|
||||
#set -ga terminal-overrides '*:Ss=\E[%p1%d q:Se=\E[ q' # this is for the cursor shape
|
||||
|
||||
# Key bindings
|
||||
bind -n M-Left select-pane -L
|
||||
|
@ -40,7 +29,6 @@ bind -n M-Up select-pane -U
|
|||
bind -n M-Down select-pane -D
|
||||
# bind -n M-Tab last-pane
|
||||
bind -n M-1 select-window -t 1
|
||||
bind -n M-- select-window -t 2
|
||||
bind -n M-2 select-window -t 2
|
||||
bind -n M-3 select-window -t 3
|
||||
bind -n M-4 select-window -t 4
|
||||
|
@ -51,35 +39,12 @@ bind -n M-8 select-window -t 8
|
|||
bind -n M-9 select-window -t 9
|
||||
bind -n M-0 select-window -t 10
|
||||
bind -n M-m send-keys -t 9 q C-u "clear; tmux clear-history -t 9" C-m C-p C-p C-p C-m
|
||||
bind 1 select-window -t 1
|
||||
bind 2 select-window -t 2
|
||||
bind 3 select-window -t 3
|
||||
bind 4 select-window -t 4
|
||||
bind 5 select-window -t 5
|
||||
bind 6 select-window -t 6
|
||||
bind 7 select-window -t 7
|
||||
bind 8 select-window -t 8
|
||||
bind 9 select-window -t 9
|
||||
bind 0 select-window -t 10
|
||||
bind -n M-` last-window
|
||||
bind C-o last-window
|
||||
bind k next-window
|
||||
bind j previous-window
|
||||
bind l next-window
|
||||
bind h previous-window
|
||||
bind r source-file ~/.tmux.conf
|
||||
bind -n C-Right next-window
|
||||
bind -n C-Left previous-window
|
||||
bind C-k next-window
|
||||
bind C-l next-window
|
||||
bind C-j previous-window
|
||||
bind C-h previous-window
|
||||
bind C-s set-option -g status
|
||||
bind s split-window -h
|
||||
bind S split-window -v
|
||||
bind q kill-pane
|
||||
bind Tab last-pane
|
||||
bind C-p select-pane -U
|
||||
bind K confirm kill-server
|
||||
bind C-k clear-history
|
||||
bind -n C-l send-keys C-l \; clear-history
|
||||
|
@ -87,16 +52,6 @@ bind-key -T copy-mode-vi WheelUpPane select-pane \; send-keys -X -N 1 scroll-up
|
|||
bind-key -T copy-mode-vi WheelDownPane select-pane \; send-keys -X -N 1 scroll-down
|
||||
|
||||
|
||||
setw -g window-status-format ""
|
||||
setw -g window-status-current-format "#T"
|
||||
setw -g window-status-separator ""
|
||||
|
||||
set -g status-fg "#B0BEC5"
|
||||
set -g status-bg "#37474F"
|
||||
set -g status-left '#[bg=#335566,fg=#1a2a3a] #I #[default] '
|
||||
set -g status-right '#H '
|
||||
|
||||
|
||||
# Startup
|
||||
new -d -s0 'exec zsh'
|
||||
neww -d 'exec zsh'
|
||||
|
|
|
@ -1,40 +0,0 @@
|
|||
" Vim color file
|
||||
color s
|
||||
" Maintainer: Daniel Lundin <dln@eintr.org>
|
||||
" Last Change: Mon Oct 17 13:18:58 CEST 2016
|
||||
|
||||
" Set 'background' back to the default. The value can't always be estimated
|
||||
" and is then guessed.
|
||||
hi clear Normal
|
||||
set bg&
|
||||
|
||||
" Remove all existing highlighting and set the defaults.
|
||||
hi clear
|
||||
|
||||
" Load the syntax highlighting defaults, if it's enabled.
|
||||
if exists("syntax_on")
|
||||
syntax reset
|
||||
endif
|
||||
|
||||
let colors_name = "dln-light"
|
||||
|
||||
hi LineNr ctermfg=252 cterm=italic
|
||||
hi Visual ctermbg=220
|
||||
hi Search ctermbg=226
|
||||
|
||||
hi CursorLine ctermbg=255 cterm=NONE
|
||||
hi CursorLineNr ctermfg=245 ctermbg=255 cterm=italic
|
||||
|
||||
hi Type ctermfg=5 cterm=NONE
|
||||
" hi Comment ctermfg=243 cterm=italic
|
||||
hi Comment ctermfg=1 cterm=italic
|
||||
hi String ctermfg=2 cterm=italic
|
||||
" hi Statement ctermfg=4 cterm=NONE
|
||||
hi Statement ctermfg=17 cterm=bold
|
||||
hi Constant ctermfg=6 cterm=NONE
|
||||
hi PreProc ctermfg=25 cterm=bold
|
||||
|
||||
hi rustFuncName ctermfg=124 cterm=bold
|
||||
hi rustCommentLineDoc ctermfg=137 cterm=italic
|
||||
hi rustModPath ctermfg=4 cterm=NONE
|
||||
" vim: sw=2
|
|
@ -1,10 +0,0 @@
|
|||
default partial alphanumeric_keys
|
||||
xkb_symbols "basic" {
|
||||
include "us"
|
||||
include "level3(ralt_switch)"
|
||||
include "ctrl(nocaps)"
|
||||
name[Group1] = "English (US, international with umlaut)";
|
||||
key <AC10> { [ semicolon, colon, odiaeresis, Odiaeresis ] };
|
||||
key <AC11> { [ apostrophe, quotedbl, adiaeresis, Adiaeresis ] };
|
||||
key <AD11> { [ bracketleft, braceleft, aring, Aring ] };
|
||||
};
|
273
.zshrc
273
.zshrc
|
@ -1,59 +1,9 @@
|
|||
# If you come from bash you might have to change your $PATH.
|
||||
# export PATH=$HOME/bin:/usr/local/bin:$PATH
|
||||
|
||||
# Path to your oh-my-zsh installation.
|
||||
# export ZSH=/home/dln/.oh-my-zsh
|
||||
|
||||
# Set name of the theme to load. Optionally, if you set this to "random"
|
||||
# it'll load a random theme each time that oh-my-zsh is loaded.
|
||||
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
|
||||
export PATH=$HOME/bin:$HOME/go/bin:$PATH:/bin:/sbin:/usr/sbin:/usr/local/sbin
|
||||
|
||||
export EDITOR=nvim
|
||||
#export DISPLAY=:0
|
||||
|
||||
fpath=(~/.zsh/functions $fpath)
|
||||
|
||||
ZSH_THEME="robbyrussell"
|
||||
|
||||
export RIPGREP_CONFIG_PATH=$HOME/.ripgreprc
|
||||
|
||||
export HISTFILE=~/.zsh_history
|
||||
export HISTSIZE=20000
|
||||
export SAVEHIST=20000
|
||||
export LPASS_AGENT_TIMEOUT=900
|
||||
export WORDCHARS='*?_-.[]~=&;!#$%^(){}<>'
|
||||
|
||||
typeset -A ZSH_HIGHLIGHT_STYLES
|
||||
export ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern)
|
||||
export ZSH_HIGHLIGHT_STYLES[alias]='fg=31'
|
||||
export ZSH_HIGHLIGHT_STYLES[builtin]='fg=71'
|
||||
export ZSH_HIGHLIGHT_STYLES[command]='fg=35'
|
||||
export ZSH_HIGHLIGHT_STYLES[function]='fg=35'
|
||||
export ZSH_HIGHLIGHT_STYLES[path]='fg=31'
|
||||
|
||||
setopt extended_history
|
||||
setopt hist_expire_dups_first
|
||||
setopt hist_ignore_dups
|
||||
setopt hist_ignore_space
|
||||
setopt hist_verify
|
||||
setopt inc_append_history
|
||||
# setopt append_history
|
||||
setopt share_history
|
||||
|
||||
source ~/.zplug/init.zsh
|
||||
|
||||
zplug "zplug/zplug", hook-build:"zplug --self-manage"
|
||||
|
||||
zplug "plugins/git", from:oh-my-zsh
|
||||
zplug "zsh-users/zsh-history-substring-search"
|
||||
zplug "zsh-users/zsh-completions"
|
||||
zplug "zsh-users/zsh-syntax-highlighting", defer:2
|
||||
zplug "arunvelsriram/kube-fzf", use:'kube-fzf.sh'
|
||||
zplug "thecasualcoder/kube-fzf", as:command, use:"{*pod,*.sh}"
|
||||
zplug "nnao45/zsh-kubectl-completion"
|
||||
|
||||
zplug "~/.zsh", from:local
|
||||
|
||||
if ! zplug check --verbose; then
|
||||
printf "Install? [y/N]: "
|
||||
|
@ -61,113 +11,32 @@ if ! zplug check --verbose; then
|
|||
echo; zplug install
|
||||
fi
|
||||
fi
|
||||
|
||||
zplug load
|
||||
|
||||
# Uncomment the following line to use case-sensitive completion.
|
||||
# CASE_SENSITIVE="true"
|
||||
|
||||
# Uncomment the following line to use hyphen-insensitive completion. Case
|
||||
# sensitive completion must be off. _ and - will be interchangeable.
|
||||
# HYPHEN_INSENSITIVE="true"
|
||||
## Completion
|
||||
autoload -Uz compinit
|
||||
compinit
|
||||
|
||||
# Uncomment the following line to disable bi-weekly auto-update checks.
|
||||
# DISABLE_AUTO_UPDATE="true"
|
||||
## Gnupg / gpg / ssh / yubikey
|
||||
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
|
||||
|
||||
# Uncomment the following line to change how often to auto-update (in days).
|
||||
# export UPDATE_ZSH_DAYS=13
|
||||
|
||||
# Uncomment the following line to disable colors in ls.
|
||||
# DISABLE_LS_COLORS="true"
|
||||
|
||||
# Uncomment the following line to disable auto-setting terminal title.
|
||||
# DISABLE_AUTO_TITLE="true"
|
||||
|
||||
# Uncomment the following line to enable command auto-correction.
|
||||
# ENABLE_CORRECTION="true"
|
||||
|
||||
# Uncomment the following line to display red dots whilst waiting for completion.
|
||||
# COMPLETION_WAITING_DOTS="true"
|
||||
|
||||
# Uncomment the following line if you want to disable marking untracked files
|
||||
# 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
|
||||
# stamp shown in the history command output.
|
||||
# The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
|
||||
# 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? (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 git-extras history-substring-search vault)
|
||||
#
|
||||
# source $ZSH/oh-my-zsh.sh
|
||||
# source ~/.oh-my-zsh/plugins/zsh-titles/titles.plugin.zsh
|
||||
|
||||
|
||||
## ssh
|
||||
export SSH_AUTH_SOCK=$HOME/.ssh/ssh_auth_sock
|
||||
|
||||
# Set up ssh agent socket if gpg-agent is in use
|
||||
GPG_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
|
||||
if [[ "${GPG_AUTH_SOCK}" != "" ]]; then
|
||||
ln -sf $GPG_AUTH_SOCK $SSH_AUTH_SOCK
|
||||
fi
|
||||
|
||||
## Pager
|
||||
export LESS="--mouse --wheel-lines=1 -nRX"
|
||||
|
||||
## Aliases
|
||||
alias cdiff='colordiff -u'
|
||||
alias dotgit='git --work-tree $HOME --git-dir $HOME/.dot_git'
|
||||
alias l='less -nRX'
|
||||
|
||||
|
||||
alias ls=exa
|
||||
alias bat=bat --theme=ansi-light
|
||||
|
||||
bindkey -e
|
||||
bindkey "^[[A" history-substring-search-up
|
||||
bindkey "^[[B" history-substring-search-down
|
||||
bindkey -M emacs '^P' history-beginning-search-backward
|
||||
bindkey -M emacs '^N' history-beginning-search-forward
|
||||
|
||||
cd_func () {
|
||||
local dir
|
||||
if [[ $1 == "--" ]]; then
|
||||
_jump || return 1
|
||||
return 0
|
||||
elif [[ -z "$1" ]]; then
|
||||
dir="$HOME"
|
||||
else
|
||||
dir="$@"
|
||||
fi
|
||||
"cd" "${dir}"
|
||||
fasd -A $PWD
|
||||
}
|
||||
alias cd=cd_func
|
||||
|
||||
redraw-prompt() {
|
||||
local precmd
|
||||
for precmd in $precmd_functions; do
|
||||
$precmd
|
||||
done
|
||||
zle reset-prompt
|
||||
}
|
||||
zle -N redraw-prompt
|
||||
|
||||
_jump() {
|
||||
dir="$(fasd -Rdlt | fzf --tiebreak=end -1 -0 --no-sort +m --height 10)" && cd_func "${dir}"
|
||||
zle && zle redraw-prompt
|
||||
}
|
||||
|
||||
zle -N _jump
|
||||
bindkey '^g' _jump
|
||||
alias tail='tail -n $LINES'
|
||||
alias timestamp='TZ=Z date "+%Y%m%dT%H%M%SZ"'
|
||||
alias tree='exa --tree'
|
||||
alias xc='xclip -selection clipboard'
|
||||
|
||||
## vim
|
||||
export EDITOR=nvim
|
||||
export NVIM_LISTEN_ADDRESS=/tmp/nvimsocket
|
||||
|
||||
e ()
|
||||
|
@ -176,129 +45,29 @@ e ()
|
|||
nvr --remote $(readlink -f "$@")
|
||||
}
|
||||
|
||||
|
||||
# =============
|
||||
# PROMPT
|
||||
# =============
|
||||
|
||||
autoload -U colors && colors
|
||||
setopt promptsubst
|
||||
|
||||
function short_pwd {
|
||||
echo $PWD | sed "s:${HOME}:~:" | sed "s:/\(.\)[^/]*:/\1:g" | sed "s:/[^/]*$:/$(basename $PWD):"
|
||||
}
|
||||
|
||||
export PROMPT_LEAN_COLOR1=78
|
||||
export PROMPT_LEAN_COLOR2=67
|
||||
|
||||
local ret_status="%(?:%B%F{#607D8B]}%%:%B%F{#F4511E}%%)"
|
||||
PROMPT='%F{#455A64}${HOST}:%F{#78909C}%}$(short_pwd)%f$(git_prompt_info)%f${ret_status}%f%b '
|
||||
|
||||
ZSH_THEME_GIT_PROMPT_PREFIX=" %F{#795548}⟨%F{#8D6E63}"
|
||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%F{#795548}⟩%f"
|
||||
ZSH_THEME_GIT_PROMPT_DIRTY="%F{#F57F17}⋆"
|
||||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
||||
|
||||
function precmd {
|
||||
print -Pn "\033]0;${HOST}:${PWD}\007"
|
||||
}
|
||||
|
||||
# Outputs current branch info in prompt format
|
||||
function git_prompt_info() {
|
||||
local ref
|
||||
if [[ "$(command git config --get customzsh.hide-status 2>/dev/null)" != "1" ]]; then
|
||||
ref=$(command git symbolic-ref HEAD 2> /dev/null) || \
|
||||
ref=$(command git rev-parse --short HEAD 2> /dev/null) || return 0
|
||||
echo "$ZSH_THEME_GIT_PROMPT_PREFIX${ref#refs/heads/}$(parse_git_dirty)$ZSH_THEME_GIT_PROMPT_SUFFIX"
|
||||
fi
|
||||
}
|
||||
|
||||
# Checks if working tree is dirty
|
||||
function parse_git_dirty() {
|
||||
local STATUS=''
|
||||
local FLAGS
|
||||
FLAGS=('--porcelain')
|
||||
|
||||
if [[ "$(command git config --get customzsh.hide-dirty)" != "1" ]]; then
|
||||
FLAGS+='--ignore-submodules=dirty'
|
||||
STATUS=$(command git status ${FLAGS} 2> /dev/null | tail -n1)
|
||||
fi
|
||||
|
||||
if [[ -n $STATUS ]]; then
|
||||
echo "$ZSH_THEME_GIT_PROMPT_DIRTY"
|
||||
else
|
||||
echo "$ZSH_THEME_GIT_PROMPT_CLEAN"
|
||||
fi
|
||||
}
|
||||
|
||||
export RPS1="%F{#455A64}\$(kubectl config current-context)"
|
||||
|
||||
## direnv
|
||||
|
||||
eval "$(direnv hook zsh)"
|
||||
|
||||
## fzf
|
||||
export FZF_TMUX=1
|
||||
export FZF_COMPLETION_TRIGGER=";"
|
||||
export FZF_DEFAULT_COMMAND='fd --type f --hidden --follow --exclude .git'
|
||||
. /usr/share/fzf/completion.zsh
|
||||
. /usr/share/fzf/key-bindings.zsh
|
||||
|
||||
# Kubernetes
|
||||
## Kubernetes
|
||||
command -v kubectl >/dev/null 2>&1 && source <(kubectl completion zsh)
|
||||
command -v helm >/dev/null 2>&1 && source <(helm completion zsh)
|
||||
command -v ark >/dev/null 2>&1 && source <(ark completion zsh)
|
||||
command -v stern >/dev/null 2>&1 && source <(stern --completion zsh)
|
||||
|
||||
export PATH=$HOME/.krew/bin:$PATH
|
||||
|
||||
# Flux
|
||||
## Flux
|
||||
export FLUX_FORWARD_NAMESPACE=flux
|
||||
|
||||
[ -f /usr/share/bash-completion/completions/aws ] && source /usr/share/bash-completion/completions/aws
|
||||
## Google Cloud
|
||||
[ -f /opt/google-cloud-sdk/completion.zsh.inc ] && source /opt/google-cloud-sdk/completion.zsh.inc
|
||||
|
||||
## Aliases
|
||||
alias ag='ag --pager less'
|
||||
alias cdiff='colordiff -u'
|
||||
alias dotgit='git --work-tree $HOME --git-dir $HOME/.dot_git'
|
||||
alias hs='history -a; history -n'
|
||||
alias lower="tr '[:upper:]' '[:lower:]'"
|
||||
alias pstree="pstree -Auh | less"
|
||||
alias tail='tail -n $LINES'
|
||||
alias timestamp='TZ=Z date "+%Y%m%dT%H%M%SZ"'
|
||||
alias tree='exa -T'
|
||||
alias upper="tr '[:lower:]' '[:upper:]'"
|
||||
alias vimdiff='vimdiff -R'
|
||||
alias vim=nvim
|
||||
alias xc='xclip -selection clipboard'
|
||||
|
||||
## JavaScript
|
||||
|
||||
export PATH="./node_modules/.bin:$PATH"
|
||||
|
||||
## Golang
|
||||
#export GOPATH=$HOME
|
||||
export PATH=$HOME/go/bin:$PATH
|
||||
GOPROXY=https://proxy.golang.org/
|
||||
|
||||
## Ansible
|
||||
export ANSIBLE_NOCOWS=1
|
||||
|
||||
## Rust
|
||||
export PATH=$HOME/.cargo/bin:$PATH
|
||||
## Prompt
|
||||
eval "$(starship init zsh)"
|
||||
|
||||
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
||||
export PATH=$HOME/bin:$PATH
|
||||
|
||||
ENVIRONMENTD="$HOME/.config/environment.d"
|
||||
set -a
|
||||
if [ -d "$ENVIRONMENTD" ]; then
|
||||
for conf in $(ls "$ENVIRONMENTD"/*.conf)
|
||||
do
|
||||
. "$conf"
|
||||
done
|
||||
fi
|
||||
set +a
|
||||
|
||||
# if [[ -z $DISPLAY && $(tty) == /dev/tty1 && $XDG_SESSION_TYPE == tty ]]; then
|
||||
# MOZ_ENABLE_WAYLAND=1 QT_QPA_PLATFORM=wayland XDG_SESSION_TYPE=wayland exec dbus-run-session gnome-session
|
||||
# fi
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
#!/bin/sh
|
||||
exec alacritty --config-file /home/dln/.config/alacritty/alacritty-light.yml "$@"
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
bw-ssh-add id_rsa id_rsa_embark
|
|
@ -1,57 +0,0 @@
|
|||
#!/bin/bash
|
||||
set -eu
|
||||
|
||||
AUTO_LOCK=3600
|
||||
BW_SESSION=
|
||||
|
||||
exit_error() {
|
||||
echo "$2"
|
||||
keyctl purge user bw_master || true
|
||||
keyctl purge user bw_session || true
|
||||
exit "$1"
|
||||
}
|
||||
|
||||
ask_password() {
|
||||
systemd-ask-password --keyname=bw_master --accept-cached --timeout=10 "Master Password: " \
|
||||
| bw unlock --raw 2>/dev/null || exit_error $? "Could not unlock vault"
|
||||
}
|
||||
|
||||
get_session_key() {
|
||||
if [ $AUTO_LOCK -eq 0 ]; then
|
||||
keyctl purge user bw_session &>/dev/null
|
||||
BW_SESSION=$(ask_password)
|
||||
else
|
||||
if ! key_id=$(keyctl request user bw_session 2>/dev/null); then
|
||||
session=$(ask_password)
|
||||
[[ -z "$session" ]] && exit_error 1 "Could not unlock vault"
|
||||
key_id=$(echo "$session" | keyctl padd user bw_session @u)
|
||||
fi
|
||||
|
||||
keyctl timeout "$key_id" $AUTO_LOCK
|
||||
BW_SESSION=$(keyctl pipe "$key_id")
|
||||
fi
|
||||
}
|
||||
|
||||
get_session_key
|
||||
|
||||
folder=$(bw list folders --session ${BW_SESSION} --search ssh | jq -r '.[].id')
|
||||
items=$(bw list items --session ${BW_SESSION} --folderid ${folder})
|
||||
|
||||
keys="$@"
|
||||
if [[ -z "$keys" ]]; then
|
||||
keys=$(jq -r '.[].name' <<< $items | fzf -1 -0)
|
||||
fi
|
||||
|
||||
for key in $keys; do
|
||||
_tmp=$(mktemp -d)
|
||||
cd $_tmp
|
||||
mkdir -p $(dirname $key)
|
||||
ln -s /dev/stdin $key
|
||||
|
||||
function cleanup {
|
||||
rm -rf $_tmp
|
||||
}
|
||||
trap cleanup EXIT
|
||||
|
||||
jq -r ".[] | select(.name == \"${key}\") | .notes" <<< $items | ssh-add $key
|
||||
done
|
4
bin/clip
4
bin/clip
|
@ -1,4 +0,0 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
# exec echo -en "\x1b]52;c;$(base64 -w0)\x07"
|
||||
printf "\033]52;c;$(base64 -w0)\a"
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue