This commit is contained in:
olari
2019-04-13 22:37:21 +03:00
commit 245918d30f
16 changed files with 222 additions and 0 deletions

9
.config/feh/keys Executable file
View File

@@ -0,0 +1,9 @@
zoom_in K
zoom_out J
next_img L
prev_img H
scroll_up k
scroll_down j
scroll_right l
scroll_left h

33
.config/fish/fish_variables Executable file
View File

@@ -0,0 +1,33 @@
# This file contains fish universal variable definitions.
# VERSION: 3.0
SETUVAR __fish_init_2_39_8:\x1d
SETUVAR __fish_init_2_3_0:\x1d
SETUVAR __fish_init_3_x:\x1d
SETUVAR fish_color_autosuggestion:BD93F9
SETUVAR fish_color_cancel:\x2dr
SETUVAR fish_color_command:F8F8F2
SETUVAR fish_color_comment:6272A4
SETUVAR fish_color_cwd:green
SETUVAR fish_color_cwd_root:red
SETUVAR fish_color_end:50FA7B
SETUVAR fish_color_error:FFB86C
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:FF79C6
SETUVAR fish_color_quote:F1FA8C
SETUVAR fish_color_redirection:8BE9FD
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_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,46 @@
function fish_prompt --description 'Write out the prompt, prepending the Debian chroot environment if present'
if not set -q __fish_prompt_normal
set -g __fish_prompt_normal (set_color normal)
end
if not set -q __fish_prompt_chroot_env
set -g __fish_prompt_chroot_env (set_color yellow)
end
# Set variable identifying the chroot you work in (used in the prompt below)
if not set -q debian_chroot
and test -r /etc/debian_chroot
set debian_chroot (cat /etc/debian_chroot)
end
if not set -q __fish_debian_chroot_prompt
and set -q debian_chroot
and test -n "$debian_chroot"
set -g __fish_debian_chroot_prompt "($debian_chroot)"
end
# Prepend the chroot environment if present
if set -q __fish_debian_chroot_prompt
echo -n -s "$__fish_prompt_chroot_env" "$__fish_debian_chroot_prompt" "$__fish_prompt_normal" ' '
end
switch "$USER"
case root toor
if not set -q __fish_prompt_cwd
if set -q fish_color_cwd_root
set -g __fish_prompt_cwd (set_color $fish_color_cwd_root)
else
set -g __fish_prompt_cwd (set_color $fish_color_cwd)
end
end
echo -n -s "$USER" @ (prompt_hostname) ' ' "$__fish_prompt_cwd" (prompt_pwd) "$__fish_prompt_normal" '# '
case '*'
if not set -q __fish_prompt_cwd
set -g __fish_prompt_cwd (set_color $fish_color_cwd)
end
echo -n -s "$USER" @ (prompt_hostname) ' ' "$__fish_prompt_cwd" (prompt_pwd) "$__fish_prompt_normal" '> '
end
end

View File

@@ -0,0 +1,4 @@
# Defined in - @ line 1
function installed_packages --description 'alias 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'
pacman -Qeq | sort > /var/tmp/pcmntmp1; pacman -Qgq base base-devel | sort > /var/tmp/pcmntmp2; comm -23 /var/tmp/pcmntmp1 /var/tmp/pcmntmp2 $argv;
end

View File

@@ -0,0 +1,4 @@
# Defined in - @ line 1
function unused_packages --description 'alias unused_packages=pacman -Qtdq'
pacman -Qtdq $argv;
end

View File

@@ -0,0 +1,4 @@
# Defined in - @ line 1
function wget_od --description 'alias 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*"'
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,4 @@
# Defined in - @ line 1
function ytdl-channel --description 'alias ytdl-channel=youtube-dl -i --write-description --write-info-json --write-thumbnail -o "%(upload_date)s_%(title)s_%(id)s.%(ext)s"'
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,4 @@
# Defined in - @ line 1
function ytdl-loose --description 'alias ytdl-loose=youtube-dl -i --write-description --write-info-json --write-thumbnail -o "%(id)s_%(title)s.%(ext)s"'
youtube-dl -i --write-description --write-info-json --write-thumbnail -o "%(id)s_%(title)s.%(ext)s" $argv;
end

View File

@@ -0,0 +1,4 @@
# Defined in - @ line 1
function ytdl-playlist --description 'alias ytdl-playlist=youtube-dl -i --write-description --write-info-json --write-thumbnail -o "%(playlist_index)s_%(title)s_%(id)s.%(ext)s"'
youtube-dl -i --write-description --write-info-json --write-thumbnail -o "%(playlist_index)s_%(title)s_%(id)s.%(ext)s" $argv;
end

26
.config/htop/htoprc Executable 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 39 46 1
sort_key=0
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=0
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=Clock Memory Swap Tasks Battery
left_meter_modes=2 2 2 2 2
right_meters=Uptime AllCPUs
right_meter_modes=2 1

38
.config/mpv/input.conf Executable 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 Executable 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

7
.config/ranger/rc.conf Executable file
View File

@@ -0,0 +1,7 @@
#set show_hidden true
set preview_images true
set preview_images_method w3m
set preview_max_size 20000000
map mtd chain cut; mkdir !folder; cd !folder; paste; cd ..; shell sleep 0.250; move to=0; console rename%space
map <C-d> shell dragon-drag-and-drop -a -x %p

14
.config/zathura/zathurarc Executable file
View File

@@ -0,0 +1,14 @@
set recolor
set statusbar-h-padding 0
set statusbar-v-padding 0
set page-padding 1
map u scroll half-up
map d scroll half-down
map D toggle_page_mode
map r reload
map R rotate
map K zoom in
map J zoom out
map i recolor
map p print

3
.gitconfig Executable file
View File

@@ -0,0 +1,3 @@
[user]
email = olari@mm.st
name = olari

4
.vimrc Executable file
View File

@@ -0,0 +1,4 @@
syntax on
set number
set tabstop=4
set autoindent