Add files

This commit is contained in:
olari
2019-09-29 08:13:03 +03:00
commit 9a4b3313ac
17 changed files with 209 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
window:
decorations: none
startup_mode: Maximized
font:
normal:
family: Consolas
size: 8.0
background_opacity: 0.85
# Disable scrolling (use tmux)
scrolling:
history: 0
# Disable visual bell
visual_bell:
duration: 0

View File

@@ -0,0 +1,33 @@
# This file contains fish universal variable definitions.
# VERSION: 3.0
SETUVAR --export EDITOR:nvim
SETUVAR __fish_init_2_39_8:\x1d
SETUVAR __fish_init_2_3_0:\x1d
SETUVAR __fish_init_3_x:\x1d
SETUVAR fish_color_autosuggestion:969896
SETUVAR fish_color_cancel:\x2dr
SETUVAR fish_color_command:c397d8
SETUVAR fish_color_comment:e7c547
SETUVAR fish_color_cwd:green
SETUVAR fish_color_cwd_root:red
SETUVAR fish_color_end:c397d8
SETUVAR fish_color_error:d54e53
SETUVAR fish_color_escape:00a6b2
SETUVAR fish_color_history_current:\x2d\x2dbold
SETUVAR fish_color_host:normal
SETUVAR fish_color_match:\x2d\x2dbackground\x3dbrblue
SETUVAR fish_color_normal:normal
SETUVAR fish_color_operator:00a6b2
SETUVAR fish_color_param:7aa6da
SETUVAR fish_color_quote:b9ca4a
SETUVAR fish_color_redirection:70c0b1
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_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_completion:normal
SETUVAR fish_pager_color_description:B3A06D\x1eyellow
SETUVAR fish_pager_color_prefix:white\x1e\x2d\x2dbold\x1e\x2d\x2dunderline
SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan

View File

@@ -0,0 +1,3 @@
function installed_packages
pacman -Qeq | sort > /var/tmp/pcmntmp1; pacman -Qgq base base-devel | sort > /var/tmp/pcmntmp2; comm -23 /var/tmp/pcmntmp1 /var/tmp/pcmntmp2
end

View File

@@ -0,0 +1,3 @@
function unused_packages
pacman -Qtdq
end

View File

@@ -0,0 +1,3 @@
function wget_od
wget --user-agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:21.0) Gecko/20100101 Firefox/21.0" -e robots=off -r -nc -np -R "*index.html*" $argv;
end

View File

@@ -0,0 +1,3 @@
function ytdl_channel
youtube-dl -i --write-description --write-info-json --write-thumbnail -o "%(upload_date)s_%(title)s_%(id)s.%(ext)s" $argv;
end

View File

@@ -0,0 +1,3 @@
function ytdl_playlist
youtube-dl -i --write-description --write-info-json --write-thumbnail -o "%(playlist_index)s_%(title)s_%(id)s.%(ext)s" $argv;
end

View File

@@ -0,0 +1,3 @@
function ytdl_video
youtube-dl -i --write-description --write-info-json --write-thumbnail -o "%(id)s_%(title)s.%(ext)s" $argv;
end

26
.config/htop/htoprc Normal file
View File

@@ -0,0 +1,26 @@
# Beware! This file is rewritten by htop when settings are changed in the interface.
# The parser is also very primitive, and not human-friendly.
fields=0 48 39 46 49 1
sort_key=46
sort_direction=1
hide_threads=0
hide_kernel_threads=1
hide_userland_threads=1
shadow_other_users=0
show_thread_names=0
show_program_path=1
highlight_base_name=1
highlight_megabytes=1
highlight_threads=1
tree_view=0
header_margin=1
detailed_cpu_time=0
cpu_count_from_zero=0
update_process_names=0
account_guest_in_cpu_meter=0
color_scheme=0
delay=15
left_meters=AllCPUs
left_meter_modes=1
right_meters=Memory Swap Tasks Uptime
right_meter_modes=1 1 2 2

38
.config/mpv/input.conf Normal file
View File

@@ -0,0 +1,38 @@
MBTN_LEFT ignore
MBTN_LEFT_DBL cycle fullscreen
MBTN_RIGHT cycle pause
WHEEL_UP seek +2
WHEEL_DOWN seek -2
j add volume -2
k add volume +2
h seek -1
l seek +1
PGUP add chapter +1
PGDWN add chapter -1
Shift+PGUP seek +125
Shift+PGDWN seek -125
. frame-step
, frame-back-step
[ add speed -0.25
] add speed +0.25
q quit
ESC set fullscreen no
f cycle fullscreen
p cycle pause
SPACE cycle pause
m cycle mute
Ctrl+a cycle audio
Ctrl+s cycle sub
s async screenshot
S async screenshot video
o show-progress

18
.config/mpv/mpv.conf Normal file
View File

@@ -0,0 +1,18 @@
no-input-default-bindings
screenshot-format=png
screenshot-template=mpv-%tY%tM%tD-%n
screenshot-directory=~/Pictures/mpv
#profile=gpu-hq
deband=no
#scale=ewa_lanczossharp
#cscale=ewa_lanczossharp
alang=jpn,jp
slang=eng,en
#video-sync=display-resample
#interpolation
#tscale=oversample

View File

@@ -0,0 +1,16 @@
{
"python.jediEnabled": false,
"languageserver": {
"ccls": {
"command": "ccls",
"filetypes": ["c", "cpp", "objc", "objcpp"],
"rootPatterns": [".ccls", "compile_commands.json", ".vim/", ".git/", ".hg/"],
"initializationOptions": {
"cache": {
"directory": "/tmp/ccls"
}
}
}
}
}

24
.config/nvim/init.vim Normal file
View File

@@ -0,0 +1,24 @@
call plug#begin('~/.local/share/nvim/plugged')
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'scrooloose/nerdtree'
Plug 'jiangmiao/auto-pairs'
Plug 'jsit/vim-tomorrow-theme'
call plug#end()
" Show line numbers
set number
" Use 4 spaces for identation
set expandtab
set shiftwidth=4
set softtabstop=4
" Set color theme
set termguicolors
color Tomorrow-Night-Bright
" Toggle NERDTree with Ctrl+n
map <C-n> :NERDTreeToggle<CR>

2
.config/ranger/rc.conf Normal file
View File

@@ -0,0 +1,2 @@
set preview_images true
set preview_images_method ueberzug

View File

@@ -0,0 +1 @@
set recolor

3
.tmux.conf Normal file
View File

@@ -0,0 +1,3 @@
set -s escape-time 0
set -g status-style "bg=black"
set -g window-status-current-style "bold"

11
install.sh Normal file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
set -euxo pipefail
# Don't run if in home directory
[[ "$PWD" == "$HOME" ]] && exit 1
# Don't run if no .config directory
[[ -d .config/ ]] || exit 1
cp .tmux.conf "$HOME"
cp -r .config "$HOME"