Compare commits

...
This repository has been archived on 2021-04-06. You can view files and clone it, but cannot push or open issues/pull-requests.

28 Commits

Author SHA1 Message Date
Simon Bruder 8bb6b28858
zsh: Remove GOPATH
Should also have been removed long ago
2020-11-07 19:08:31 +01:00
Simon Bruder 5616035dc4
Remove .xprofile
Should have been removed long ago
2020-11-07 19:08:31 +01:00
Simon Bruder 1bda4bd974
mpv: Use compute version for lower quality shaders 2020-11-06 18:10:25 +01:00
Simon Bruder 6b73c6f3c9
mpv: Remove web script 2020-11-06 18:06:56 +01:00
Simon Bruder 0d684bd0ba
vim: Pin fzf version 2020-11-06 10:37:13 +01:00
Simon Bruder d10a33c3c9
Clean up XCompose
Removes meme and unused symbols.
2020-11-05 17:42:40 +01:00
Simon Bruder f14a4ead1c
sway: Add multimedia keys for mpd 2020-11-05 15:41:32 +01:00
Simon Bruder 8b99b6e048
waybar: Add padding to tray 2020-11-05 15:31:11 +01:00
Simon Bruder aca9dfeaba
mpv: Add hq profile 2020-10-25 11:07:26 +01:00
Simon Bruder b7c3d8e0cd
mpv: Do not set screenshot directory 2020-10-24 17:13:00 +02:00
Simon Bruder 0db6c504d6
zsh: vapoursynth: Expose /dev/kfd 2020-10-24 16:42:37 +02:00
Simon Bruder a5d373b93f
Place mpv-prescalers in subdirectory 2020-10-24 16:42:11 +02:00
Simon Bruder ca60008144
mpv: Add keybindings for ravu-zoom and nnedi3 2020-10-21 18:27:42 +02:00
Simon Bruder a81d6fd1f5
mpv: Use automatic hwdec detection 2020-10-21 18:06:52 +02:00
Simon Bruder cf3cbceeaa
Include mpv-prescalers as submodule 2020-10-21 18:06:28 +02:00
Simon Bruder 26612ad38d
khal: Add config 2020-10-19 21:12:26 +02:00
Simon Bruder 16aebd26bd
khard: Add config 2020-10-19 21:12:25 +02:00
Simon Bruder c6cbc8181c
vim: Pin black version
Later versions fail to install on NixOS
2020-10-18 16:51:39 +02:00
Simon Bruder 8a1a93021b
vim: vimtex: Ignore overfull vbox warnings 2020-10-17 13:52:08 +02:00
Simon Bruder 4256631583
Add ankisyncd config 2020-10-16 16:04:14 +02:00
Simon Bruder fae5102519
vim: Use nix-shell for language servers 2020-10-11 14:45:44 +02:00
Simon Bruder 70a16f41be
vim: Add haskell language server 2020-10-10 22:33:40 +02:00
Simon Bruder ea09686160
zsh: nixify: Use builtInputs 2020-10-10 22:01:16 +02:00
Simon Bruder 5b00c73bf7
waybar: Open nmtui on right-click on net widget 2020-10-09 17:03:05 +02:00
Simon Bruder 0555fea14d
zsh: Remove zshrc.pre 2020-10-09 17:02:39 +02:00
Simon Bruder fa95b41e51
git: Add delta 2020-10-07 22:22:14 +02:00
Simon Bruder 8d88de07a7
git: Add line breaks between sections 2020-10-07 21:52:37 +02:00
Simon Bruder f4f3cf689a
vim: Add fugitive 2020-10-05 22:06:38 +02:00
23 changed files with 125 additions and 1966 deletions

4
.gitmodules vendored
View File

@ -19,3 +19,7 @@
[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

View File

@ -74,17 +74,6 @@ include "%L"
<Multi_key> <percent> <0> <0> <D> : "ↇ" U2187 # ROMAN NUMERAL FIFTY THOUSAND
<Multi_key> <percent> <0> <0> <M> : "ↈ" U2188 # ROMAN NUMERAL ONE HUNDRED THOUSAND
## quotation marks
### japanese
<Multi_key> <j> <doublelowquotemark> : "「" U300C # LEFT CORNER BRACKET
<Multi_key> <j> <leftdoublequotemark> : "」" U300D # RIGHT CORNER BRACKET
<Multi_key> <j> <singlelowquotemark> : "『" U300D # LEFT WHITE CORNER BRACKET
<Multi_key> <j> <leftsinglequotemark> : "』" U300F # RIGHT WHITE CORNER BRACKET
# misc symbols
<Multi_key> <n> <s> : "卐" U5350 # CJK UNIFIED IDEOGRAPH
# symbols
<Multi_key> <Left> <Left> : "←" leftarrow # LEFTWARDS ARROW
<Multi_key> <Up> <Up> : "↑" uparrow # UPWARDS ARROW

16
home/.config/khal/config Normal file
View File

@ -0,0 +1,16 @@
[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

View File

@ -0,0 +1,26 @@
[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

View File

@ -13,7 +13,10 @@ k cycle-values audio-pitch-correction "no" "yes"
c cycle-values audio-channels stereo mono auto
K cycle-values glsl-shaders ~~/shaders/ravu-lite-r4.hook ~~/shaders/ravu-lite-r3.hook ~~/shaders/ravu-lite-r2.hook /dev/null
# 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

View File

@ -28,7 +28,7 @@ audio-channels = stereo
force-seekable
# enable hardware decoding when avaliable
hwdec = vaapi
hwdec = auto-safe
# do not show images only one second
image-display-duration = inf
@ -40,7 +40,6 @@ dither-depth = auto
# screenshots
screenshot-format = png
screenshot-directory = ~/Videos/screenshots/unsorted/
[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]'
@ -68,6 +67,14 @@ 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

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1 @@
../../../../mpv-prescalers

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -43,8 +43,9 @@ endif
call plug#begin('~/.local/share/nvim/plugged')
" Multi-entry selection UI
Plug 'junegunn/fzf'
Plug 'junegunn/fzf.vim'
Plug 'junegunn/fzf', { 'tag': trim(system('fzf --version')) }
" FIXME: update once nixpkgs stable has fzf ≥ 0.23
Plug 'junegunn/fzf.vim', { 'commit': '0fe8e198a3a501b54dbc4f9587526c097599f95a' }
" Per-project settings
Plug 'editorconfig/editorconfig-vim'
@ -86,6 +87,9 @@ Plug 'Xuyuanp/nerdtree-git-plugin'
" Icons for NERDTree and airline
Plug 'ryanoasis/vim-devicons'
" Git integration
Plug 'tpope/vim-fugitive'
" Intra word motion
Plug 'chaoren/vim-wordmotion'
@ -107,11 +111,12 @@ Plug 'autozimu/LanguageClient-neovim', {
\ }
let g:LanguageClient_serverCommands = {
\ 'rust': ['rustup', 'run', 'stable', 'rls'],
\ 'go': ['gopls'],
\ 'python': ['pyls'],
\ 'typescript': ['docker', 'run', '--rm', '--init', '-i', '-v', '$HOME:$HOME:ro', '--network=none', 'r.sbruder.de/javascript-typescript-langserver'],
\ 'javascript': ['docker', 'run', '--rm', '--init', '-i', '-v', '$HOME:$HOME:ro', '--network=none', 'r.sbruder.de/javascript-typescript-langserver'],
\ 'rust': ['nix-shell', '--quiet', '-p', 'rls', '--run', 'rls'],
\ 'go': ['nix-shell', '--quiet', '-p', 'gopls', '--run', 'gopls'],
\ 'python': ['nix-shell', '--quiet', '-p', 'python38Packages.python-language-server', '--run', 'pyls'],
\ 'typescript': ['nix-shell', '--quiet', '-p', 'nodePackages.javascript-typescript-langserver', '--run', 'javascript-typescript-stdio'],
\ 'javascript': ['nix-shell', '--quiet', '-p', 'nodePackages.javascript-typescript-langserver', '--run', 'javascript-typescript-stdio'],
\ 'haskell': ['nix-shell', '--quiet', '-p', 'haskellPackages.haskell-language-server', '--run', 'haskell-language-server --lsp'],
\ }
let g:LanguageClient_loggingFile = '~/.local/share/nvim/LanguageClient.log'
@ -136,7 +141,7 @@ let g:rust_fold = 1
map <Leader>rt :RustTest<CR>
" Black (python formatter)
Plug 'psf/black', { 'branch': 'stable', 'for': 'python' }
Plug 'psf/black', { 'commit': '1d3fb871bec82d1263940ba1d32095d660fea2ab', 'for': 'python' }
" LaTeX helpers
Plug 'lervag/vimtex'
@ -151,6 +156,7 @@ let g:vimtex_syntax_autoload_packages = [
let g:vimtex_quickfix_ignore_filters = [
\'Underfull \\hbox (badness [0-9]*) in ',
\'Overfull \\hbox ([0-9]*.[0-9]*pt too wide) in ',
\'Overfull \\vbox ([0-9]*.[0-9]*pt too high) detected ',
\'Package hyperref Warning: Token not allowed in a PDF string',
\'Package typearea Warning: Bad type area settings!',
\]

View File

@ -146,6 +146,10 @@ bindsym --locked XF86MonBrightnessUp exec brightnessctl set +5%
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
bindsym XF86AudioPrev exec mpc next
bindsym XF86AudioNext exec mpc prev
bindsym XF86AudioPlay exec mpc toggle
bindsym $mod+y exec "swaylock -f -i $wallpaper"
bindsym --locked $mod+q exec 'test $(swaymsg -t get_outputs | jq "[.[].dpms] | any") = "true" && swaymsg "output * dpms off" || swaymsg "output * dpms on"'

View File

@ -117,7 +117,8 @@
"format-linked": "{ifname} (No IP)  ",
"format-disconnected": "Disconnected ⚠ ",
"format-alt": "{ifname}: {ipaddr}/{cidr}",
"tooltip": false
"tooltip": false,
"on-click-right": "alacritty -e nmtui"
},
"network#speed": {
"interval": 2,

View File

@ -147,3 +147,7 @@ window#waybar {
#custom-redshift.inactive {
background-color: #268bd2;
}
#tray {
padding: 0 5px;
}

View File

@ -2,15 +2,35 @@
name = Simon Bruder
email = simon@sbruder.de
signingkey = 51276B7B829AF24674F2AA716F03E0000CC5B62F
[commit]
gpgsign = true
[core]
excludesfile = ~/.gitignore
pager = delta
quotepath = off
[filter "lfs"]
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
[pull]
ff = only
[interactive]
diffFilter = delta --color-only
[delta]
line-numbers = true
side-by-side = true
decorations = true
features = decorations
syntax-theme = base16
[delta "decorations"]
commit-decoration-style = bold yellow box ul
file-style = bold yellow ul
file-decoration-style = none

View File

@ -0,0 +1,13 @@
import anki.sync
import anki.hooks
import aqt
anki.sync.SYNC_BASE = "https://anki.sbruder.de/%s"
anki.sync.SYNC_MEDIA_BASE = "https://anki.sbruder.de/msync%s"
def resetHostNum():
aqt.mw.pm.profile["hostNum"] = None
anki.hooks.addHook("profileLoaded", resetHostNum)

View File

@ -1,3 +0,0 @@
export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=ibus

View File

@ -1,11 +1,8 @@
GOPATH="$HOME/go"
path=(
~/bin
~/.local/bin
$path
~/.cargo/bin
$GOPATH/bin
)
# Force antialiasing in java

View File

@ -81,6 +81,7 @@ function vapoursynth() {
--group-add $(getent group video|cut -d: -f3) \
--group-add $(getent group render|cut -d: -f3) \
--device /dev/dri \
--device /dev/kfd \
r.sbruder.de/vapoursynth \
$@
}
@ -96,6 +97,7 @@ function yuuno() {
--group-add $(getent group video|cut -d: -f3) \
--group-add $(getent group render|cut -d: -f3) \
--device /dev/dri \
--device /dev/kfd \
r.sbruder.de/vapoursynth \
jupyter notebook --ip 0.0.0.0 --port 8087
}

View File

@ -13,6 +13,10 @@ alias vim="nvim"
alias vimdiff="nvim -d"
alias userctl="systemctl --user"
## homeshick
source "$HOME/.homesick/repos/homeshick/homeshick.sh"
fpath=($HOME/.homesick/repos/homeshick/completions $fpath)
## Debian packages fd as fdfind
command -v fdfind >/dev/null && alias fd="fdfind"
@ -99,7 +103,7 @@ function nixify() {
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
nativeBuildInputs = with pkgs; [
buildInputs = with pkgs; [
];
}
EOF

View File

@ -1,7 +0,0 @@
## homeshick
source "$HOME/.homesick/repos/homeshick/homeshick.sh"
fpath=($HOME/.homesick/repos/homeshick/completions $fpath)
## completions
mkdir -p ~/.zfunc
fpath+=~/.zfunc

1
mpv-prescalers Submodule

@ -0,0 +1 @@
Subproject commit b37d0f12223720f5ce48e149678162ae0a984176