Compare commits
3 Commits
d7298c2f85
...
460e03941b
Author | SHA1 | Date |
---|---|---|
Simon Bruder | 460e03941b | |
Simon Bruder | d6d176ad5a | |
Simon Bruder | 201d3d71ea |
|
@ -1,9 +1,6 @@
|
|||
[submodule "home/.vim/bundle/Vundle.vim"]
|
||||
path = home/.vim/bundle/Vundle.vim
|
||||
url = https://github.com/VundleVim/Vundle.vim
|
||||
[submodule "mpv-gallery-view"]
|
||||
path = mpv-gallery-view
|
||||
url = https://github.com/occivink/mpv-gallery-view
|
||||
[submodule "grml-etc-core"]
|
||||
path = grml-etc-core
|
||||
url = https://github.com/grml/grml-etc-core
|
||||
|
@ -13,7 +10,3 @@
|
|||
[submodule "zsh-nix-shell"]
|
||||
path = zsh-nix-shell
|
||||
url = https://github.com/chisui/zsh-nix-shell
|
||||
[submodule "mpv-prescalers"]
|
||||
path = mpv-prescalers
|
||||
url = https://github.com/bjin/mpv-prescalers
|
||||
shallow = true
|
||||
|
|
|
@ -1,16 +0,0 @@
|
|||
[calendars]
|
||||
|
||||
[[calendar_local]]
|
||||
path = ~/.calendar/*
|
||||
type = discover
|
||||
|
||||
[[contacts_local]]
|
||||
path = ~/.contacts/d6abd3ea-3abd-7550-9f24-f06293d36a82/
|
||||
type = birthdays
|
||||
|
||||
[locale]
|
||||
timeformat = %H:%M
|
||||
dateformat = %Y-%m-%d
|
||||
longdateformat = %Y-%m-%d
|
||||
datetimeformat = %Y-%m-%d %H:%M
|
||||
longdatetimeformat = %Y-%m-%d %H:%M
|
|
@ -1,26 +0,0 @@
|
|||
[addressbooks]
|
||||
[[personal]]
|
||||
path = ~/.contacts/d6abd3ea-3abd-7550-9f24-f06293d36a82/
|
||||
|
||||
[general]
|
||||
debug = no
|
||||
default_action = list
|
||||
editor = nvim, -i, NONE
|
||||
merge_editor = nvim, -d
|
||||
|
||||
[contact table]
|
||||
display = first_name
|
||||
group_by_addressbook = no
|
||||
reverse = no
|
||||
show_nicknames = yes
|
||||
show_uids = no
|
||||
sort = last_name
|
||||
localize_dates = yes
|
||||
preferred_phone_number_type = pref, cell, home
|
||||
preferred_email_address_type = pref, home, work
|
||||
|
||||
[vcard]
|
||||
private_objects = Jabber,
|
||||
preferred_version = 3.0
|
||||
search_in_source_files = no
|
||||
skip_unparsable = no
|
|
@ -1,31 +0,0 @@
|
|||
# audio filter bs2b (for headphones)
|
||||
b af toggle "bs2b"
|
||||
|
||||
# toggle debanding
|
||||
D cycle deband
|
||||
|
||||
# variable correction of audio pitch when changing speed
|
||||
k cycle-values audio-pitch-correction "no" "yes"
|
||||
|
||||
# reverse cycling for audio and video (shift modifier on german keyboard layout)
|
||||
' cycle audio down
|
||||
- cycle video down
|
||||
|
||||
c cycle-values audio-channels stereo mono auto
|
||||
|
||||
# Upscaling shaders
|
||||
K cycle-values glsl-shaders ~~/shaders/mpv-prescalers/compute/ravu-lite-r4.hook ~~/shaders/mpv-prescalers/compute/ravu-lite-r3.hook ~~/shaders/mpv-prescalers/compute/ravu-lite-r2.hook /dev/null
|
||||
Alt+K cycle-values glsl-shaders ~~/shaders/mpv-prescalers/compute/ravu-zoom-r4-yuv.hook ~~/shaders/mpv-prescalers/compute/ravu-zoom-r3-yuv.hook ~~/shaders/mpv-prescalers/compute/ravu-zoom-r2-yuv.hook /dev/null
|
||||
Alt+k cycle-values glsl-shaders ~~/shaders/mpv-prescalers/compute/nnedi3-nns256-win8x4.hook ~~/shaders/mpv-prescalers/compute/nnedi3-nns128-win8x4.hook /dev/null
|
||||
|
||||
Ctrl+p script-message-to pitchcontrol toggle
|
||||
|
||||
# more granular panning
|
||||
Alt+left add video-pan-x 0.05
|
||||
Alt+right add video-pan-x -0.05
|
||||
Alt+up add video-pan-y 0.05
|
||||
Alt+down add video-pan-y -0.05
|
||||
|
||||
# sub-delay for fixing 24 empty frames on blu-ray
|
||||
Alt+z add sub-delay -1
|
||||
Alt+Z add sub-delay +1
|
|
@ -1,89 +0,0 @@
|
|||
# configure fonts
|
||||
osd-font = 'DINW07-Medium'
|
||||
|
||||
sub-font = 'Gandhi Sans'
|
||||
sub-bold = yes
|
||||
sub-font-size = 44
|
||||
sub-use-margins = no
|
||||
sub-border-size = 2
|
||||
|
||||
# make vobsub/PGS subtitles look nicer
|
||||
sub-gauss=0.5
|
||||
sub-gray=yes
|
||||
|
||||
# don’t correct pitch of audio
|
||||
#audio-pitch-correction = no
|
||||
|
||||
# max volume
|
||||
volume-max = 150
|
||||
|
||||
# downmix to stereo by default
|
||||
audio-channels = stereo
|
||||
|
||||
# i18n
|
||||
#alang = ger,de,deu,eng,en
|
||||
#slang = ger,de,deu,eng,en
|
||||
|
||||
# allow seeking in streamed media
|
||||
force-seekable
|
||||
|
||||
# enable hardware decoding when avaliable
|
||||
hwdec = auto-safe
|
||||
|
||||
# do not show images only one second
|
||||
image-display-duration = inf
|
||||
|
||||
# better quality (but not too high, otherwise too high frame drop)
|
||||
profile = gpu-hq
|
||||
deband = no
|
||||
dither-depth = auto
|
||||
|
||||
# screenshots
|
||||
screenshot-format = png
|
||||
|
||||
[musicvideo]
|
||||
lavfi-complex = '[aid1]asplit=4[ao][a1][a2][a3];[a1]avectorscope=m=lissajous:s=640x600:draw=dot:r=25[avectorscope];[a2]aresample=44100,showwaves=s=1280x600:mode=p2p:colors=red|lightgreen:r=25[showwaves];[a3]showcqt=s=1920x600:axis=0:axis_h=0:r=25[showcqt];[showwaves][avectorscope]hstack=shortest=1[top];[top][showcqt]vstack=shortest=1,fps=25[vo]'
|
||||
alpha = no
|
||||
|
||||
[musicvideo-1080]
|
||||
lavfi-complex = '[aid1]asplit=4[ao][a1][a2][a3];[a1]avectorscope=m=lissajous:s=640x540:draw=dot:r=25[avectorscope];[a2]aresample=44100,showwaves=s=1280x540:mode=p2p:colors=red|lightgreen:r=25[showwaves];[a3]showcqt=s=1920x540:axis=0:axis_h=0:r=25[showcqt];[showwaves][avectorscope]hstack=shortest=1[top];[top][showcqt]vstack=shortest=1,fps=25[vo]'
|
||||
alpha = no
|
||||
|
||||
[musicvideo-c64]
|
||||
lavfi-complex = '[aid1]channelsplit=4.0[mono][c1][c2][c3];[mono]channelmap=mono,asplit=2[ao][a2];[c1][c2][c3]join=inputs=3:channel_layout=3.0[a1];[a1]aresample=44100,showwaves=s=1920x600:mode=p2p:colors=red|lightgreen|yellow:split_channels=1:r=25[showwaves];[a2]showcqt=s=1920x600:axis=0:axis_h=0:r=25[showcqt];[showwaves][showcqt]vstack=shortest=1,fps=25,format=rgba[vo]'
|
||||
alpha = no
|
||||
|
||||
[hqencode]
|
||||
ovc = libx264
|
||||
ovcopts-add = crf=18
|
||||
oac = flac
|
||||
audio-format = s16
|
||||
|
||||
[rain]
|
||||
lavfi-complex = 'amovie=https\\://s3.sbruder.de/cdn/rain.opus,volume=0.5[rain];[aid1][rain]amix=2:duration=shortest[ao]'
|
||||
|
||||
[lq]
|
||||
scale = bicubic_fast
|
||||
cscale = bicubic_fast
|
||||
dscale = bicubic_fast
|
||||
|
||||
[hq]
|
||||
scale = ewa_lanczossharp
|
||||
dscale = ewa_lanczossharp
|
||||
cscale = ewa_lanczossharp
|
||||
|
||||
glsl-shader=~~/shaders/mpv-prescalers/compute/nnedi3-nns256-win8x4.hook
|
||||
glsl-shader=~~/shaders/mpv-prescalers/compute/ravu-zoom-r4-chroma.hook
|
||||
|
||||
[interpolate]
|
||||
blend-subtitles = yes
|
||||
video-sync = display-resample
|
||||
interpolation = yes
|
||||
tscale = box
|
||||
tscale-window = sphinx
|
||||
tscale-radius = 1.0
|
||||
tscale-clamp = 0.0
|
||||
|
||||
[clear-speed]
|
||||
# https://github.com/mpv-player/mpv/issues/4418#issuecomment-368272929
|
||||
af-add = scaletempo=stride=28:overlap=.9:search=25
|
|
@ -1 +0,0 @@
|
|||
thumbs_dir=~/.cache/thumbnails/mpv
|
|
@ -1,4 +0,0 @@
|
|||
font=DINW07-Regular
|
||||
font_mono=DINW07-Regular
|
||||
font_size=10
|
||||
redraw_delay=0.25
|
|
@ -1 +0,0 @@
|
|||
../../../../mpv-gallery-view/scripts/gallery-thumbgen.lua
|
|
@ -1 +0,0 @@
|
|||
../../../../mpv-gallery-view/scripts/gallery-thumbgen.lua
|
|
@ -1 +0,0 @@
|
|||
../../../../mpv-gallery-view/scripts/gallery-thumbgen.lua
|
|
@ -1 +0,0 @@
|
|||
../../../../mpv-gallery-view/scripts/gallery-thumbgen.lua
|
|
@ -1 +0,0 @@
|
|||
../../../../../mpv-gallery-view/scripts/lib/gallery.lua
|
|
@ -1,33 +0,0 @@
|
|||
require 'mp.options'
|
||||
|
||||
function handle_file_load ()
|
||||
if mp.get_property("metadata/by-key/artist") == nil and mp.get_property("metadata/by-key/title") == nil then
|
||||
-- media-title is filename if no title is set
|
||||
if mp.get_property("media-title") ~= mp.get_property("filename") then
|
||||
info = mp.get_property("media-title")
|
||||
else
|
||||
info = mp.get_property("filename/no-ext")
|
||||
end
|
||||
else
|
||||
info = mp.get_property("metadata/by-key/artist") .. " – " .. mp.get_property("metadata/by-key/title")
|
||||
end
|
||||
|
||||
-- check for youtube-dl
|
||||
if mp.get_property("stream-open-filename") ~= mp.get_property("path") then
|
||||
info = info .. "\n(" .. mp.get_property("path") .. ")"
|
||||
end
|
||||
|
||||
file = io.open(options.write, "w")
|
||||
io.output(file)
|
||||
io.write(info .. "\n")
|
||||
io.close(file)
|
||||
end
|
||||
|
||||
options = {
|
||||
write = "",
|
||||
}
|
||||
read_options(options)
|
||||
|
||||
if options.write ~= "" then
|
||||
mp.register_event("file-loaded", handle_file_load)
|
||||
end
|
|
@ -1,95 +0,0 @@
|
|||
-- pitchcontrol.lua
|
||||
--
|
||||
-- Version: 0.2.0
|
||||
-- URL: https://github.com/FichteFoll/mpv-scripts
|
||||
-- License: ISC
|
||||
|
||||
-- Commands for key bindings:
|
||||
--
|
||||
-- * script-message-to pitchcontrol increase
|
||||
-- Increase pitch by one half-tone. Bound to Alt+R.
|
||||
-- * script-message-to pitchcontrol decrease
|
||||
-- Increase pitch by one half-tone. Bound to Alt+r.
|
||||
-- * script-message-to pitchcontrol toggle
|
||||
-- Toggle pitching.
|
||||
-- * script-message-to pitchcontrol set_halftone_pitch <number>
|
||||
-- Sets pitch to <number> half-tones - positive, negative or 0.
|
||||
|
||||
|
||||
-- Copyright 2016-2017 FichteFoll
|
||||
--
|
||||
-- Permission to use, copy, modify, and/or distribute this software for any
|
||||
-- purpose with or without fee is hereby granted, provided that the above
|
||||
-- copyright notice and this permission notice appear in all copies.
|
||||
--
|
||||
-- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
-- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
-- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
|
||||
-- SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
-- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
-- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
||||
-- IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
|
||||
local utils = require 'mp.utils'
|
||||
local msg = require('mp.msg')
|
||||
local options = require('mp.options')
|
||||
local script_name = mp.get_script_name() -- "pitchcontrol"
|
||||
|
||||
local HALFTONE_SCALE = math.pow(2, 1.0/12) -- 1.059463094352953
|
||||
local RUBBERBAND_LABEL = string.format("%s-rubberband", script_name)
|
||||
|
||||
local current_pitch = 0
|
||||
local active = false
|
||||
|
||||
|
||||
function set_halftone_pitch(pitch, activate)
|
||||
if activate == nil then
|
||||
activate = true
|
||||
end
|
||||
pitch = tonumber(pitch)
|
||||
local pitch_scale = math.pow(HALFTONE_SCALE, pitch)
|
||||
|
||||
if active then
|
||||
mp.commandv('af-command', RUBBERBAND_LABEL, 'set-pitch', pitch_scale)
|
||||
elseif activate then
|
||||
mp.command(("af add @%s:rubberband=pitch-scale=%s"):format(RUBBERBAND_LABEL, pitch_scale))
|
||||
active = true
|
||||
else
|
||||
mp.osd_message(("'%s' is inactive"):format(script_name))
|
||||
return
|
||||
end
|
||||
|
||||
current_pitch = pitch
|
||||
|
||||
-- output new pitch
|
||||
msg.debug(("new pitch-scale: %f"):format(pitch_scale))
|
||||
mp.osd_message(("Pitch: %+d halftones"):format(pitch))
|
||||
end
|
||||
|
||||
|
||||
function increase_handler()
|
||||
set_halftone_pitch(current_pitch + 1, false)
|
||||
end
|
||||
|
||||
|
||||
function decrease_handler()
|
||||
set_halftone_pitch(current_pitch - 1, false)
|
||||
end
|
||||
|
||||
|
||||
function toggle_handler()
|
||||
if active then
|
||||
mp.command(("af del @%s"):format(RUBBERBAND_LABEL))
|
||||
mp.osd_message(("'%s' deactivated"):format(script_name))
|
||||
active = false
|
||||
else
|
||||
set_halftone_pitch(current_pitch, true)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
mp.add_key_binding("Alt+p", 'increase', decrease_handler)
|
||||
mp.add_key_binding("Alt+P", 'decrease', increase_handler)
|
||||
mp.register_script_message('toggle', toggle_handler)
|
||||
mp.register_script_message('set_halftone_pitch', set_halftone_pitch)
|
|
@ -1 +0,0 @@
|
|||
../../../../mpv-gallery-view/scripts/playlist-view.lua
|
|
@ -1 +0,0 @@
|
|||
../../../../mpv-prescalers
|
|
@ -1,36 +0,0 @@
|
|||
# screen behaviour
|
||||
unbind C-b
|
||||
set -g prefix C-a
|
||||
unbind C-a
|
||||
bind C-a send-prefix
|
||||
|
||||
# config reload
|
||||
unbind r
|
||||
bind r source-file ~/.tmux.conf
|
||||
|
||||
# more ergonomic splitting
|
||||
unbind |
|
||||
bind | split-window -h
|
||||
|
||||
unbind -
|
||||
bind - split-window -v
|
||||
|
||||
# more ergnomic window numbers
|
||||
set -g base-index 1
|
||||
setw -g pane-base-index 1
|
||||
|
||||
# only set window size when client is attached to the specific window
|
||||
setw -g aggressive-resize on
|
||||
|
||||
# HOWTO copy: PREFIX+[, space, select text, enter, PREFIX+]
|
||||
|
||||
# disable mouse (prevents simple copying)
|
||||
set -g mouse off
|
||||
|
||||
# Fix vim color scheme breaking
|
||||
set -g default-terminal "screen-256color"
|
||||
|
||||
# Lower escape time for smoother usage in vim
|
||||
set -sg escape-time 10
|
||||
|
||||
source-file ~/.tmux/tmuxline.conf
|
|
@ -1,21 +0,0 @@
|
|||
# This tmux statusbar config was created by tmuxline.vim
|
||||
# on Sun, 24 May 2020
|
||||
|
||||
set -g status-justify "left"
|
||||
set -g status "on"
|
||||
set -g status-left-style "none"
|
||||
set -g message-command-style "fg=colour7,bg=colour11"
|
||||
set -g status-right-style "none"
|
||||
set -g pane-active-border-style "fg=colour14"
|
||||
set -g status-style "none,bg=colour0"
|
||||
set -g message-style "fg=colour7,bg=colour11"
|
||||
set -g pane-border-style "fg=colour11"
|
||||
set -g status-right-length "100"
|
||||
set -g status-left-length "100"
|
||||
setw -g window-status-activity-style "none"
|
||||
setw -g window-status-separator ""
|
||||
setw -g window-status-style "none,fg=colour10,bg=colour0"
|
||||
set -g status-left "#[fg=colour15,bg=colour14,bold] #S #[fg=colour14,bg=colour0,nobold,nounderscore,noitalics]"
|
||||
set -g status-right "#[fg=colour11,bg=colour0,nobold,nounderscore,noitalics]#[fg=colour7,bg=colour11] %Y-%m-%d %H:%M #[fg=colour14,bg=colour11,nobold,nounderscore,noitalics]#[fg=colour15,bg=colour14] #h "
|
||||
setw -g window-status-format "#[fg=colour10,bg=colour0] #I #[fg=colour10,bg=colour0] #W "
|
||||
setw -g window-status-current-format "#[fg=colour0,bg=colour11,nobold,nounderscore,noitalics]#[fg=colour7,bg=colour11] #I #[fg=colour7,bg=colour11] #W #[fg=colour11,bg=colour0,nobold,nounderscore,noitalics]"
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 5139d346de67e8dbee8c8983777026502d6bc627
|
|
@ -1 +0,0 @@
|
|||
Subproject commit b37d0f12223720f5ce48e149678162ae0a984176
|
Reference in New Issue