init
This commit is contained in:
commit
fcc5b6fc95
1
.chezmoiignore
Normal file
1
.chezmoiignore
Normal file
|
@ -0,0 +1 @@
|
|||
README.md
|
3
dot_config/git/config
Normal file
3
dot_config/git/config
Normal file
|
@ -0,0 +1,3 @@
|
|||
[user]
|
||||
email = chay@altesq.net
|
||||
name = Chay
|
16
dot_config/gtk-3.0/settings.ini
Normal file
16
dot_config/gtk-3.0/settings.ini
Normal file
|
@ -0,0 +1,16 @@
|
|||
[Settings]
|
||||
gtk-application-prefer-dark-theme=true
|
||||
gtk-theme-name=Arc-Dark
|
||||
gtk-icon-theme-name=Adwaita
|
||||
gtk-font-name=Cantarell 11
|
||||
gtk-cursor-theme-name=Adwaita
|
||||
gtk-cursor-theme-size=0
|
||||
gtk-toolbar-style=GTK_TOOLBAR_BOTH_HORIZ
|
||||
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
|
||||
gtk-button-images=0
|
||||
gtk-menu-images=0
|
||||
gtk-enable-event-sounds=1
|
||||
gtk-enable-input-feedback-sounds=1
|
||||
gtk-xft-antialias=1
|
||||
gtk-xft-hinting=1
|
||||
gtk-xft-hintstyle=hintmedium
|
4
dot_config/iamb/config.toml
Normal file
4
dot_config/iamb/config.toml
Normal file
|
@ -0,0 +1,4 @@
|
|||
[profiles.user]
|
||||
user_id = "@chay:altesq.net"
|
||||
message_shortcode_display = true
|
||||
reaction_shortcode_display = true
|
5
dot_config/mpv/input.conf
Normal file
5
dot_config/mpv/input.conf
Normal file
|
@ -0,0 +1,5 @@
|
|||
l seek 5
|
||||
h seek -5
|
||||
j seek -60
|
||||
k seek 60
|
||||
S cycle sub
|
161
dot_config/nvim/init.vim
Normal file
161
dot_config/nvim/init.vim
Normal file
|
@ -0,0 +1,161 @@
|
|||
call plug#begin()
|
||||
Plug 'junegunn/goyo.vim'
|
||||
Plug 'itchyny/lightline.vim'
|
||||
Plug 'vimwiki/vimwiki'
|
||||
Plug 'ggandor/leap.nvim'
|
||||
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
|
||||
Plug 'junegunn/fzf.vim'
|
||||
Plug 'tpope/vim-commentary'
|
||||
Plug 'godlygeek/tabular'
|
||||
Plug 'preservim/vim-markdown'
|
||||
Plug 'morhetz/gruvbox'
|
||||
Plug 'dylanaraps/wal.vim'
|
||||
call plug#end()
|
||||
|
||||
" Load leap mappings
|
||||
lua require('leap').add_default_mappings()
|
||||
|
||||
" Customize fzf
|
||||
let $FZF_DEFAULT_COMMAND='find . \! \( -type d -path ./.git -prune \) \! -type d \! -name ''*.tags'' -printf ''%P\n'''
|
||||
|
||||
" Lightline theme
|
||||
let g:lightline = {
|
||||
\ 'colorscheme': 'apprentice',
|
||||
\ 'component': {
|
||||
\ 'lineinfo': '%3l:%-2v%<',
|
||||
\ },
|
||||
\ }
|
||||
|
||||
let g:vimwiki_list = [{'path': '~/vimwiki/', 'syntax': 'markdown', 'ext': '.md'},
|
||||
\ {'path': '~/vimwiki/personal/', 'syntax': 'markdown', 'ext': '.md'},
|
||||
\ {'path': '~/vimwiki/writing/', 'syntax': 'markdown', 'ext': '.md'}]
|
||||
|
||||
let g:vimwiki_global_ext = 0
|
||||
|
||||
" Sets how many lines of history VIM has to remember
|
||||
set history=500
|
||||
|
||||
" Enable filetype plugins
|
||||
filetype plugin on
|
||||
filetype indent on
|
||||
|
||||
" Set to auto read when a file is changed from the outside
|
||||
set autoread
|
||||
au FocusGained,BufEnter * checktime
|
||||
|
||||
" Set 7 lines to the cursor - when moving vertically using j/k
|
||||
set so=7
|
||||
|
||||
" Turn on the Wild menu
|
||||
set wildmenu
|
||||
|
||||
" Height of the command bar
|
||||
set cmdheight=1
|
||||
|
||||
" A buffer becomes hidden when it is abandoned
|
||||
set hid
|
||||
|
||||
" Configure backspace so it acts as it should act
|
||||
set backspace=eol,start,indent
|
||||
set whichwrap+=<,>,h,l
|
||||
|
||||
" Ignore case when searching
|
||||
set ignorecase
|
||||
|
||||
" When searching try to be smart about cases
|
||||
set smartcase
|
||||
|
||||
" Highlight search results
|
||||
set hlsearch
|
||||
|
||||
" Makes search act like search in modern browsers
|
||||
set incsearch
|
||||
|
||||
" Don't redraw while executing macros (good performance config)
|
||||
set lazyredraw
|
||||
|
||||
" For regular expressions turn magic on
|
||||
set magic
|
||||
|
||||
" Show matching brackets when text indicator is over them
|
||||
set showmatch
|
||||
|
||||
" How many tenths of a second to blink when matching brackets
|
||||
set mat=2
|
||||
|
||||
" Show line number
|
||||
set number
|
||||
|
||||
" Enable syntax highlighting
|
||||
syntax enable
|
||||
|
||||
" Background
|
||||
set background=dark
|
||||
|
||||
" Set utf8 as standard encoding and en_US as the standard language
|
||||
set encoding=utf8
|
||||
|
||||
" Use Unix as the standard file type
|
||||
set ffs=unix,dos,mac
|
||||
|
||||
" Turn backup off, since most stuff is in SVN, git etc. anyway...
|
||||
set nobackup
|
||||
set nowb
|
||||
set noswapfile
|
||||
|
||||
" Use spaces instead of tabs
|
||||
set expandtab
|
||||
|
||||
" Be smart when using tabs ;)
|
||||
set smarttab
|
||||
|
||||
" 1 tab == 4 spaces
|
||||
set shiftwidth=4
|
||||
set tabstop=4
|
||||
|
||||
" Linebreak on 500 characters
|
||||
set lbr
|
||||
set tw=500
|
||||
|
||||
set ai "Auto indent
|
||||
set si "Smart indent
|
||||
set wrap "Wrap lines
|
||||
|
||||
" Always show the status line
|
||||
set laststatus=2
|
||||
|
||||
" Set the title
|
||||
set title
|
||||
|
||||
" No automatic commenting on a new line
|
||||
autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o
|
||||
|
||||
" Automatically deletes all trailing whitespace on save
|
||||
autocmd BufWritePre * %s/\s\+$//e
|
||||
|
||||
" Remove --insert-- as there's Limelight
|
||||
set noshowmode
|
||||
|
||||
" Copy and paste between vim and other programs
|
||||
set clipboard+=unnamedplus
|
||||
|
||||
" Vimwiki stuff
|
||||
set nocompatible
|
||||
|
||||
" Make colorschemes work
|
||||
" set termguicolors
|
||||
" autocmd vimenter * ++nested colorscheme gruvbox
|
||||
colorscheme wal
|
||||
|
||||
" Keybindings
|
||||
let mapleader = ";"
|
||||
nnoremap <space> :Files<CR>
|
||||
|
||||
" Transparency
|
||||
let s:palette = g:lightline#colorscheme#{g:lightline.colorscheme}#palette
|
||||
let s:palette.normal.middle = [ [ 'NONE', 'NONE', 'NONE', 'NONE' ] ]
|
||||
let s:palette.inactive.middle = s:palette.normal.middle
|
||||
let s:palette.tabline.middle = s:palette.normal.middle
|
||||
|
||||
"Remove blank line ~
|
||||
let &fcs='eob: '
|
0
dot_config/private_fish/completions/.keep
Normal file
0
dot_config/private_fish/completions/.keep
Normal file
0
dot_config/private_fish/conf.d/.keep
Normal file
0
dot_config/private_fish/conf.d/.keep
Normal file
57
dot_config/private_fish/config.fish
Normal file
57
dot_config/private_fish/config.fish
Normal file
|
@ -0,0 +1,57 @@
|
|||
if status is-interactive
|
||||
# Commands to run in interactive sessions can go here
|
||||
end
|
||||
|
||||
if status is-login
|
||||
if test -z "$DISPLAY" -a "$XDG_VTNR" = 1
|
||||
exec startx -- -keeptty
|
||||
end
|
||||
end
|
||||
|
||||
set -gx EDITOR nvim
|
||||
set -gx BROWSER firefox
|
||||
|
||||
set -gx XDG_CONFIG_HOME $HOME/.config
|
||||
set -gx XDG_DATA_HOME $HOME/.local/share
|
||||
set -gx XDG_CACHE_HOME $HOME/.cache
|
||||
set -gx XDG_STATE_HOME $HOME/.local/state
|
||||
|
||||
set -gx GTK_THEME Adwaita:dark
|
||||
set -gx LC_COLLATE C
|
||||
#export GNUPGHOME="$XDG_DATA_HOME"/gnupg
|
||||
set -gx LESSHISTFILE $XDG_STATE_HOME/less/history
|
||||
|
||||
set -gx LESS -R
|
||||
set -gx LESS_TERMCAP_mb "$(printf '%b' '[1;31m')"
|
||||
set -gx LESS_TERMCAP_md "$(printf '%b' '[1;36m')"
|
||||
set -gx LESS_TERMCAP_me "$(printf '%b' '[0m')"
|
||||
set -gx LESS_TERMCAP_so "$(printf '%b' '[01;44;33m')"
|
||||
set -gx LESS_TERMCAP_se "$(printf '%b' '[0m')"
|
||||
set -gx LESS_TERMCAP_us "$(printf '%b' '[1;32m')"
|
||||
set -gx LESS_TERMCAP_ue "$(printf '%b' '[0m')"
|
||||
set -gx LESSOPEN "| /usr/bin/highlight -O ansi %s 2>/dev/null"
|
||||
|
||||
alias cp="cp -iv"
|
||||
alias mv="mv -iv"
|
||||
alias rm="rm -vI"
|
||||
alias bc="bc -ql"
|
||||
alias rsync="rsync -vrPlu"
|
||||
alias mkd="mkdir -pv"
|
||||
alias yt="yt-dlp --embed-metadata -i"
|
||||
alias yta="yt -x -f bestaudio/best"
|
||||
alias ytt="yt --skip-download --write-thumbnail"
|
||||
alias df="df -h"
|
||||
alias free="free -m"
|
||||
alias jctl="journalctl -p 3 -xb"
|
||||
alias ffmpeg="ffmpeg -hide_banner"
|
||||
alias rickroll="curl -s -L https://raw.githubusercontent.com/keroserene/rickrollrc/master/roll.sh | bash"
|
||||
alias c="clear"
|
||||
alias clean="pacman -Qq | fzf --multi --reverse --preview 'pacman -Qi {1}' | xargs -ro sudo pacman -Rns"
|
||||
|
||||
alias grep="grep --color=auto"
|
||||
alias diff="diff --color=auto"
|
||||
alias ccat="highlight --out-format=ansi"
|
||||
alias ip="ip -color=auto"
|
||||
alias ls="eza -1la --git --group-directories-first"
|
||||
alias enablemon="xrandr --output eDP --off --output HDMI-A-0 --auto"
|
||||
alias disablemon="xrandr --output HDMI-A-0 --off --output eDP --auto"
|
43
dot_config/private_fish/fish_variables
Normal file
43
dot_config/private_fish/fish_variables
Normal file
|
@ -0,0 +1,43 @@
|
|||
# This file contains fish universal variable definitions.
|
||||
# VERSION: 3.0
|
||||
SETUVAR __fish_initialized:3400
|
||||
SETUVAR fish_color_autosuggestion:747369
|
||||
SETUVAR fish_color_cancel:\x2d\x2dreverse
|
||||
SETUVAR fish_color_command:99cc99
|
||||
SETUVAR fish_color_comment:ffcc66
|
||||
SETUVAR fish_color_cwd:green
|
||||
SETUVAR fish_color_cwd_root:red
|
||||
SETUVAR fish_color_end:cc99cc
|
||||
SETUVAR fish_color_error:f2777a
|
||||
SETUVAR fish_color_escape:66cccc
|
||||
SETUVAR fish_color_history_current:\x2d\x2dbold
|
||||
SETUVAR fish_color_host:normal
|
||||
SETUVAR fish_color_host_remote:\x1d
|
||||
SETUVAR fish_color_keyword:\x1d
|
||||
SETUVAR fish_color_match:6699cc
|
||||
SETUVAR fish_color_normal:normal
|
||||
SETUVAR fish_color_operator:6699cc
|
||||
SETUVAR fish_color_option:\x1d
|
||||
SETUVAR fish_color_param:d3d0c8
|
||||
SETUVAR fish_color_quote:ffcc66
|
||||
SETUVAR fish_color_redirection:d3d0c8
|
||||
SETUVAR fish_color_search_match:bryellow\x1e\x2d\x2dbackground\x3dbrblack
|
||||
SETUVAR fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3dbrblack
|
||||
SETUVAR fish_color_status:red
|
||||
SETUVAR fish_color_user:brgreen
|
||||
SETUVAR fish_color_valid_path:\x2d\x2dunderline
|
||||
SETUVAR fish_greeting:\x1d
|
||||
SETUVAR fish_key_bindings:fish_default_key_bindings
|
||||
SETUVAR fish_pager_color_background:\x1d
|
||||
SETUVAR fish_pager_color_completion:normal
|
||||
SETUVAR fish_pager_color_description:B3A06D
|
||||
SETUVAR fish_pager_color_prefix:normal\x1e\x2d\x2dbold\x1e\x2d\x2dunderline
|
||||
SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan
|
||||
SETUVAR fish_pager_color_secondary_background:\x1d
|
||||
SETUVAR fish_pager_color_secondary_completion:\x1d
|
||||
SETUVAR fish_pager_color_secondary_description:\x1d
|
||||
SETUVAR fish_pager_color_secondary_prefix:\x1d
|
||||
SETUVAR fish_pager_color_selected_background:\x2d\x2dbackground\x3dbrblack
|
||||
SETUVAR fish_pager_color_selected_completion:\x1d
|
||||
SETUVAR fish_pager_color_selected_description:\x1d
|
||||
SETUVAR fish_pager_color_selected_prefix:\x1d
|
14
dot_config/private_fish/functions/fish_prompt.fish
Normal file
14
dot_config/private_fish/functions/fish_prompt.fish
Normal file
|
@ -0,0 +1,14 @@
|
|||
function fish_prompt
|
||||
if test -n "$SSH_TTY"
|
||||
echo -n (set_color brred)"$USER"(set_color white)'@'(set_color yellow)(prompt_hostname)' '
|
||||
end
|
||||
|
||||
echo -n (set_color blue)(prompt_pwd)' '
|
||||
|
||||
set_color -o
|
||||
if fish_is_root_user
|
||||
echo -n (set_color red)'# '
|
||||
end
|
||||
echo -n (set_color red)'❯'(set_color yellow)'❯'(set_color green)'❯ '
|
||||
set_color normal
|
||||
end
|
161
dot_config/private_fish/functions/fish_right_prompt.fish
Normal file
161
dot_config/private_fish/functions/fish_right_prompt.fish
Normal file
|
@ -0,0 +1,161 @@
|
|||
function fish_right_prompt
|
||||
set -l cmd_status $status
|
||||
if test $cmd_status -ne 0
|
||||
echo -n (set_color red)"✘ $cmd_status"
|
||||
end
|
||||
|
||||
if not command -sq git
|
||||
set_color normal
|
||||
return
|
||||
end
|
||||
|
||||
# Get the git directory for later use.
|
||||
# Return if not inside a Git repository work tree.
|
||||
if not set -l git_dir (command git rev-parse --git-dir 2>/dev/null)
|
||||
set_color normal
|
||||
return
|
||||
end
|
||||
|
||||
# Get the current action ("merge", "rebase", etc.)
|
||||
# and if there's one get the current commit hash too.
|
||||
set -l commit ''
|
||||
if set -l action (fish_print_git_action "$git_dir")
|
||||
set commit (command git rev-parse HEAD 2> /dev/null | string sub -l 7)
|
||||
end
|
||||
|
||||
# Get either the branch name or a branch descriptor.
|
||||
set -l branch_detached 0
|
||||
if not set -l branch (command git symbolic-ref --short HEAD 2>/dev/null)
|
||||
set branch_detached 1
|
||||
set branch (command git describe --contains --all HEAD 2>/dev/null)
|
||||
end
|
||||
|
||||
# Get the commit difference counts between local and remote.
|
||||
command git rev-list --count --left-right 'HEAD...@{upstream}' 2>/dev/null \
|
||||
| read -d \t -l status_ahead status_behind
|
||||
if test $status -ne 0
|
||||
set status_ahead 0
|
||||
set status_behind 0
|
||||
end
|
||||
|
||||
# Get the stash status.
|
||||
# (git stash list) is very slow. => Avoid using it.
|
||||
set -l status_stashed 0
|
||||
if test -f "$git_dir/refs/stash"
|
||||
set status_stashed 1
|
||||
else if test -r "$git_dir/commondir"
|
||||
read -l commondir <"$git_dir/commondir"
|
||||
if test -f "$commondir/refs/stash"
|
||||
set status_stashed 1
|
||||
end
|
||||
end
|
||||
|
||||
# git-status' porcelain v1 format starts with 2 letters on each line:
|
||||
# The first letter (X) denotes the index state.
|
||||
# The second letter (Y) denotes the working directory state.
|
||||
#
|
||||
# The following table presents the possible combinations:
|
||||
# * The underscore character denotes whitespace.
|
||||
# * The cell values stand for the following file states:
|
||||
# a: added
|
||||
# d: deleted
|
||||
# m: modified
|
||||
# r: renamed
|
||||
# u: unmerged
|
||||
# t: untracked
|
||||
# * Cells with more than one letter signify that both states
|
||||
# are simultaneously the case. This is possible since the git index
|
||||
# and working directory operate independently of each other.
|
||||
# * Cells which are empty are unhandled by this code.
|
||||
# * T (= type change) is undocumented.
|
||||
# See Git v1.7.8.2 release notes for more information.
|
||||
#
|
||||
# \ Y→
|
||||
# X \
|
||||
# ↓ | A | C | D | M | R | T | U | X | B | ? | _
|
||||
# ----+----+----+----+----+----+----+----+----+----+----+----
|
||||
# A | u | | ad | am | r | am | u | | | | a
|
||||
# C | | | ad | am | r | am | u | | | | a
|
||||
# D | | | u | am | r | am | u | | | | a
|
||||
# M | | | ad | am | r | am | u | | | | a
|
||||
# R | r | r | rd | rm | r | rm | ur | r | r | r | r
|
||||
# T | | | ad | am | r | am | u | | | | a
|
||||
# U | u | u | u | um | ur | um | u | u | u | u | u
|
||||
# X | | | | m | r | m | u | | | |
|
||||
# B | | | | m | r | m | u | | | |
|
||||
# ? | | | | m | r | m | u | | | t |
|
||||
# _ | | | d | m | r | m | u | | | |
|
||||
set -l porcelain_status (command git status --porcelain 2>/dev/null | string sub -l2)
|
||||
|
||||
set -l status_added 0
|
||||
if string match -qr '[ACDMT][ MT]|[ACMT]D' $porcelain_status
|
||||
set status_added 1
|
||||
end
|
||||
set -l status_deleted 0
|
||||
if string match -qr '[ ACMRT]D' $porcelain_status
|
||||
set status_deleted 1
|
||||
end
|
||||
set -l status_modified 0
|
||||
if string match -qr '[MT]$' $porcelain_status
|
||||
set status_modified 1
|
||||
end
|
||||
set -l status_renamed 0
|
||||
if string match -qe R $porcelain_status
|
||||
set status_renamed 1
|
||||
end
|
||||
set -l status_unmerged 0
|
||||
if string match -qr 'AA|DD|U' $porcelain_status
|
||||
set status_unmerged 1
|
||||
end
|
||||
set -l status_untracked 0
|
||||
if string match -qe '\?\?' $porcelain_status
|
||||
set status_untracked 1
|
||||
end
|
||||
|
||||
set_color -o
|
||||
|
||||
if test -n "$branch"
|
||||
if test $branch_detached -ne 0
|
||||
set_color brmagenta
|
||||
else
|
||||
set_color green
|
||||
end
|
||||
echo -n " $branch"
|
||||
end
|
||||
if test -n "$commit"
|
||||
echo -n ' '(set_color yellow)"$commit"
|
||||
end
|
||||
if test -n "$action"
|
||||
set_color normal
|
||||
echo -n (set_color white)':'(set_color -o brred)"$action"
|
||||
end
|
||||
if test $status_ahead -ne 0
|
||||
echo -n ' '(set_color brmagenta)'⬆'
|
||||
end
|
||||
if test $status_behind -ne 0
|
||||
echo -n ' '(set_color brmagenta)'⬇'
|
||||
end
|
||||
if test $status_stashed -ne 0
|
||||
echo -n ' '(set_color cyan)'✭'
|
||||
end
|
||||
if test $status_added -ne 0
|
||||
echo -n ' '(set_color green)'✚'
|
||||
end
|
||||
if test $status_deleted -ne 0
|
||||
echo -n ' '(set_color red)'✖'
|
||||
end
|
||||
if test $status_modified -ne 0
|
||||
echo -n ' '(set_color blue)'✱'
|
||||
end
|
||||
if test $status_renamed -ne 0
|
||||
echo -n ' '(set_color magenta)'➜'
|
||||
end
|
||||
if test $status_unmerged -ne 0
|
||||
echo -n ' '(set_color yellow)'═'
|
||||
end
|
||||
if test $status_untracked -ne 0
|
||||
echo -n ' '(set_color white)'◼'
|
||||
end
|
||||
|
||||
set_color normal
|
||||
end
|
57
dot_xinitrc
Normal file
57
dot_xinitrc
Normal file
|
@ -0,0 +1,57 @@
|
|||
#!/bin/sh
|
||||
|
||||
userresources=$HOME/.Xresources
|
||||
usermodmap=$HOME/.Xmodmap
|
||||
sysresources=/etc/X11/xinit/.Xresources
|
||||
sysmodmap=/etc/X11/xinit/.Xmodmap
|
||||
|
||||
# merge in defaults and keymaps
|
||||
|
||||
if [ -f $sysresources ]; then
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
xrdb -merge $sysresources
|
||||
|
||||
fi
|
||||
|
||||
if [ -f $sysmodmap ]; then
|
||||
xmodmap $sysmodmap
|
||||
fi
|
||||
|
||||
if [ -f "$userresources" ]; then
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
xrdb -merge "$userresources"
|
||||
|
||||
fi
|
||||
|
||||
if [ -f "$usermodmap" ]; then
|
||||
xmodmap "$usermodmap"
|
||||
fi
|
||||
|
||||
# start some nice programs
|
||||
|
||||
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
|
||||
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
|
||||
[ -x "$f" ] && . "$f"
|
||||
done
|
||||
unset f
|
||||
fi
|
||||
|
||||
feh --bg-scale --no-fehbg ~/.local/share/wallpaper/wall.png
|
||||
light -I
|
||||
redshift &
|
||||
slstatus &
|
||||
while :; do
|
||||
ssh-agent dwm
|
||||
done
|
BIN
private_dot_local/private_share/wallpaper/wall.png
Normal file
BIN
private_dot_local/private_share/wallpaper/wall.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.2 MiB |
Loading…
Reference in a new issue