From 245918d30fc68d82e527263580e2d746db1493d8 Mon Sep 17 00:00:00 2001 From: olari Date: Sat, 13 Apr 2019 22:37:21 +0300 Subject: [PATCH] Initial --- .config/feh/keys | 9 ++++ .config/fish/fish_variables | 33 +++++++++++++ .config/fish/functions/fish_prompt.fish | 46 +++++++++++++++++++ .../fish/functions/installed_packages.fish | 4 ++ .config/fish/functions/unused_packages.fish | 4 ++ .config/fish/functions/wget_od.fish | 4 ++ .config/fish/functions/ytdl-channel.fish | 4 ++ .config/fish/functions/ytdl-loose.fish | 4 ++ .config/fish/functions/ytdl-playlist.fish | 4 ++ .config/htop/htoprc | 26 +++++++++++ .config/mpv/input.conf | 38 +++++++++++++++ .config/mpv/mpv.conf | 18 ++++++++ .config/ranger/rc.conf | 7 +++ .config/zathura/zathurarc | 14 ++++++ .gitconfig | 3 ++ .vimrc | 4 ++ 16 files changed, 222 insertions(+) create mode 100755 .config/feh/keys create mode 100755 .config/fish/fish_variables create mode 100755 .config/fish/functions/fish_prompt.fish create mode 100755 .config/fish/functions/installed_packages.fish create mode 100755 .config/fish/functions/unused_packages.fish create mode 100755 .config/fish/functions/wget_od.fish create mode 100755 .config/fish/functions/ytdl-channel.fish create mode 100755 .config/fish/functions/ytdl-loose.fish create mode 100755 .config/fish/functions/ytdl-playlist.fish create mode 100755 .config/htop/htoprc create mode 100755 .config/mpv/input.conf create mode 100755 .config/mpv/mpv.conf create mode 100755 .config/ranger/rc.conf create mode 100755 .config/zathura/zathurarc create mode 100755 .gitconfig create mode 100755 .vimrc diff --git a/.config/feh/keys b/.config/feh/keys new file mode 100755 index 0000000..63f6526 --- /dev/null +++ b/.config/feh/keys @@ -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 diff --git a/.config/fish/fish_variables b/.config/fish/fish_variables new file mode 100755 index 0000000..e0b4e1c --- /dev/null +++ b/.config/fish/fish_variables @@ -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 diff --git a/.config/fish/functions/fish_prompt.fish b/.config/fish/functions/fish_prompt.fish new file mode 100755 index 0000000..64e7fd6 --- /dev/null +++ b/.config/fish/functions/fish_prompt.fish @@ -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 diff --git a/.config/fish/functions/installed_packages.fish b/.config/fish/functions/installed_packages.fish new file mode 100755 index 0000000..494a0f9 --- /dev/null +++ b/.config/fish/functions/installed_packages.fish @@ -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 diff --git a/.config/fish/functions/unused_packages.fish b/.config/fish/functions/unused_packages.fish new file mode 100755 index 0000000..3c30a5a --- /dev/null +++ b/.config/fish/functions/unused_packages.fish @@ -0,0 +1,4 @@ +# Defined in - @ line 1 +function unused_packages --description 'alias unused_packages=pacman -Qtdq' + pacman -Qtdq $argv; +end diff --git a/.config/fish/functions/wget_od.fish b/.config/fish/functions/wget_od.fish new file mode 100755 index 0000000..421b7e3 --- /dev/null +++ b/.config/fish/functions/wget_od.fish @@ -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 diff --git a/.config/fish/functions/ytdl-channel.fish b/.config/fish/functions/ytdl-channel.fish new file mode 100755 index 0000000..bda8ad2 --- /dev/null +++ b/.config/fish/functions/ytdl-channel.fish @@ -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 diff --git a/.config/fish/functions/ytdl-loose.fish b/.config/fish/functions/ytdl-loose.fish new file mode 100755 index 0000000..99ac58d --- /dev/null +++ b/.config/fish/functions/ytdl-loose.fish @@ -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 diff --git a/.config/fish/functions/ytdl-playlist.fish b/.config/fish/functions/ytdl-playlist.fish new file mode 100755 index 0000000..ce53001 --- /dev/null +++ b/.config/fish/functions/ytdl-playlist.fish @@ -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 diff --git a/.config/htop/htoprc b/.config/htop/htoprc new file mode 100755 index 0000000..dca3f2b --- /dev/null +++ b/.config/htop/htoprc @@ -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 diff --git a/.config/mpv/input.conf b/.config/mpv/input.conf new file mode 100755 index 0000000..a65aa6c --- /dev/null +++ b/.config/mpv/input.conf @@ -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 diff --git a/.config/mpv/mpv.conf b/.config/mpv/mpv.conf new file mode 100755 index 0000000..3280ee1 --- /dev/null +++ b/.config/mpv/mpv.conf @@ -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 diff --git a/.config/ranger/rc.conf b/.config/ranger/rc.conf new file mode 100755 index 0000000..59001c9 --- /dev/null +++ b/.config/ranger/rc.conf @@ -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 shell dragon-drag-and-drop -a -x %p diff --git a/.config/zathura/zathurarc b/.config/zathura/zathurarc new file mode 100755 index 0000000..4da9c1e --- /dev/null +++ b/.config/zathura/zathurarc @@ -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 diff --git a/.gitconfig b/.gitconfig new file mode 100755 index 0000000..f08a125 --- /dev/null +++ b/.gitconfig @@ -0,0 +1,3 @@ + [user] + email = olari@mm.st + name = olari diff --git a/.vimrc b/.vimrc new file mode 100755 index 0000000..0d5ee16 --- /dev/null +++ b/.vimrc @@ -0,0 +1,4 @@ +syntax on +set number +set tabstop=4 +set autoindent