Compare commits

...

20 Commits

Author SHA1 Message Date
Simon Bruder e620e9d0ea
Remove mpv 2020-11-07 17:50:07 +01:00
Simon Bruder d6d176ad5a
Remove tmux 2020-11-07 17:24:08 +01:00
Simon Bruder 201d3d71ea
Remove khard and khal 2020-11-07 17:13:37 +01:00
Simon Bruder d7298c2f85
Remove nvim 2020-11-07 16:59:15 +01:00
Simon Bruder 36c06ef4f9
Remove dynamic-colors 2020-11-07 15:56:24 +01:00
Simon Bruder b687484cfe
Remove XCompose 2020-11-07 15:54:47 +01:00
Simon Bruder c2a7b0db17
Remove pycodestyle 2020-11-07 15:52:16 +01:00
Simon Bruder 13cf5310fa
Remove docker-ls 2020-11-07 15:49:17 +01:00
Simon Bruder cc681a0d2b
Remove gdbinit 2020-11-07 15:47:18 +01:00
Simon Bruder 4c896537e5
Remove pylintrc 2020-11-07 15:47:10 +01:00
Simon Bruder 7a9f9b42f2
Remove sqliterc 2020-11-07 15:44:15 +01:00
Simon Bruder e52a829517
zsh: Remove GOPATH
Should also have been removed long ago
2020-11-07 15:41:49 +01:00
Simon Bruder 8b890ca31b
Remove git 2020-11-07 15:39:54 +01:00
Simon Bruder a9bc5c4eb1
Remove .xprofile
Should have been removed long ago
2020-11-07 15:28:45 +01:00
Simon Bruder 50a1f42239
Remove ncmpcpp 2020-11-07 15:26:54 +01:00
Simon Bruder 5fef2f4de5
Remove ankisyncd 2020-11-07 14:28:33 +01:00
Simon Bruder 3bc35117dd
Remove sway 2020-11-07 14:05:51 +01:00
Simon Bruder efb06c7d63
Remove zathura 2020-11-07 11:35:28 +01:00
Simon Bruder d4f9ee5333
Remove alacritty 2020-11-07 11:19:27 +01:00
Simon Bruder 869206a6fb
Remove htoprc 2020-11-07 11:04:08 +01:00
53 changed files with 0 additions and 1492 deletions

13
.gitmodules vendored
View File

@ -1,15 +1,6 @@
[submodule "home/.vim/bundle/Vundle.vim"]
path = home/.vim/bundle/Vundle.vim
url = https://github.com/VundleVim/Vundle.vim
[submodule "home/.dynamic-colors"]
path = dynamic-colors
url = https://github.com/sos4nt/dynamic-colors
[submodule "mpv-gallery-view"]
path = mpv-gallery-view
url = https://github.com/occivink/mpv-gallery-view
[submodule "vim-plug"]
path = vim-plug
url = https://github.com/junegunn/vim-plug
[submodule "grml-etc-core"]
path = grml-etc-core
url = https://github.com/grml/grml-etc-core
@ -19,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 +0,0 @@
Subproject commit 47a91bb6bf4091a282cc29aaf3375cdae1340ad0

View File

@ -1,85 +0,0 @@
include "%L"
# units
<Multi_key> <l> <l> : "" U2113 # litre symbol
<Multi_key> <u> <space> : "" U202F # NARROW NO-BREAK SPACE
<Multi_key> <z> <space> : "" U200B # ZERO WIDTH SPACE
# maths
<Multi_key> <p> <i> : "π" U03C0 # GREEK SMALL LETTER PI
<Multi_key> <exclam> <equal> : "≠" U2260 # NOT EQUAL TO
<Multi_key> <slash> <equal> : "≠" U2260 # NOT EQUAL TO
<Multi_key> <asciitilde> <equal> : "≈" U2248 # ALMOST EQUAL TO
<Multi_key> <i> <n> : "∈" U2208 # ELEMENT OF
<Multi_key> <s> <q> : "√" U221A # SQUARE ROOT
<Multi_key> <d> <e> : "Δ" U0394 # GREEK CAPITAL LETTER DELTA
<Multi_key> <bar> <C> : "" U2102 # DOUBLE-STRUCK CAPITAL C (set of complex numbers)
<Multi_key> <bar> <N> : "" U2115 # DOUBLE-STRUCK CAPITAL N (natural number)
<Multi_key> <bar> <P> : "" U2119 # DOUBLE-STRUCK CAPITAL P
<Multi_key> <bar> <Q> : "" U211A # DOUBLE-STRUCK CAPITAL Q (set of rational numbers)
<Multi_key> <bar> <R> : "" U211D # DOUBLE-STRUCK CAPITAL R (set of real numbers)
<Multi_key> <bar> <Z> : "" U2124 # DOUBLE-STRUCK CAPITAL Z (set of integers)
<Multi_key> <L> <L> : "𝕃" U1D543 # DOUBLE-STRUCK CAPITAL L
<Multi_key> <bar> <O> : "Ω" U03A9 # Greek Capital Letter Omega
# right typography
## english
<Multi_key> <space> <minus> : " — " # EM DASH surrounded by THIN SPACEs.
## roman numerals
### small
<Multi_key> <percent> <1> : "" U2170 # SMALL ROMAN NUMERAL ONE
<Multi_key> <percent> <2> : "ⅱ" U2171 # SMALL ROMAN NUMERAL TWO
<Multi_key> <percent> <3> : "ⅲ" U2172 # SMALL ROMAN NUMERAL THREE
<Multi_key> <percent> <4> : "ⅳ" U2173 # SMALL ROMAN NUMERAL FOUR
<Multi_key> <percent> <5> : "" U2174 # SMALL ROMAN NUMERAL FIVE
<Multi_key> <percent> <6> : "ⅵ" U2175 # SMALL ROMAN NUMERAL SIX
<Multi_key> <percent> <7> : "ⅶ" U2176 # SMALL ROMAN NUMERAL SEVEN
<Multi_key> <percent> <8> : "ⅷ" U2177 # SMALL ROMAN NUMERAL EIGHT
<Multi_key> <percent> <9> : "ⅸ" U2178 # SMALL ROMAN NUMERAL NINE
<Multi_key> <percent> <x> : "" U2179 # SMALL ROMAN NUMERAL TEN
<Multi_key> <percent> <underscore> <1> : "ⅺ" U217A # SMALL ROMAN NUMERAL ELEVEN
<Multi_key> <percent> <underscore> <2> : "ⅻ" U217B # SMALL ROMAN NUMERAL TWELVE
<Multi_key> <percent> <l> : "" U217C # SMALL ROMAN NUMERAL FIFTY
<Multi_key> <percent> <c> : "" U217D # SMALL ROMAN NUMERAL ONE HUNDRED
<Multi_key> <percent> <d> : "" U217E # SMALL ROMAN NUMERAL FIVE HUNDRED
<Multi_key> <percent> <m> : "ⅿ" U217F # SMALL ROMAN NUMERAL ONE THOUSAND
### capital
<Multi_key> <percent> <0> <1> : "" U2160 # ROMAN NUMERAL ONE
<Multi_key> <percent> <0> <2> : "Ⅱ" U2161 # ROMAN NUMERAL TWO
<Multi_key> <percent> <0> <3> : "Ⅲ" U2162 # ROMAN NUMERAL THREE
<Multi_key> <percent> <0> <4> : "Ⅳ" U2163 # ROMAN NUMERAL FOUR
<Multi_key> <percent> <0> <5> : "" U2164 # ROMAN NUMERAL FIVE
<Multi_key> <percent> <0> <6> : "Ⅵ" U2165 # ROMAN NUMERAL SIX
<Multi_key> <percent> <0> <7> : "Ⅶ" U2166 # ROMAN NUMERAL SEVEN
<Multi_key> <percent> <0> <8> : "Ⅷ" U2167 # ROMAN NUMERAL EIGHT
<Multi_key> <percent> <0> <9> : "Ⅸ" U2168 # ROMAN NUMERAL NINE
<Multi_key> <percent> <0> <x> : "" U2169 # ROMAN NUMERAL TEN
<Multi_key> <percent> <underscore> <0> <1> : "Ⅺ" U216A # ROMAN NUMERAL ELEVEN
<Multi_key> <percent> <underscore> <0> <2> : "Ⅻ" U216B # ROMAN NUMERAL TWELVE
<Multi_key> <percent> <0> <l> : "" U216C # ROMAN NUMERAL FIFTY
<Multi_key> <percent> <0> <c> : "" U216D # ROMAN NUMERAL ONE HUNDRED
<Multi_key> <percent> <0> <d> : "" U216E # ROMAN NUMERAL FIVE HUNDRED
<Multi_key> <percent> <0> <m> : "" U216F # ROMAN NUMERAL ONE THOUSAND
<Multi_key> <percent> <X> : "" U2169 # ROMAN NUMERAL TEN
<Multi_key> <percent> <L> : "" U216C # ROMAN NUMERAL FIFTY
<Multi_key> <percent> <C> : "" U216D # ROMAN NUMERAL ONE HUNDRED
<Multi_key> <percent> <D> : "" U216E # ROMAN NUMERAL FIVE HUNDRED
<Multi_key> <percent> <M> : "" U216F # ROMAN NUMERAL ONE THOUSAND
<Multi_key> <percent> <0> <C> <D> : "ↀ" U2180 # ROMAN NUMERAL ONE THOUSAND C D
<Multi_key> <percent> <0> <D> : "ↁ" U2181 # ROMAN NUMERAL FIVE THOUSAND
<Multi_key> <percent> <0> <M> : "ↂ" U2182 # ROMAN NUMERAL TEN THOUSAND
<Multi_key> <percent> <0> <0> <D> : "ↇ" U2187 # ROMAN NUMERAL FIFTY THOUSAND
<Multi_key> <percent> <0> <0> <M> : "ↈ" U2188 # ROMAN NUMERAL ONE HUNDRED THOUSAND
# symbols
<Multi_key> <Left> <Left> : "←" leftarrow # LEFTWARDS ARROW
<Multi_key> <Up> <Up> : "↑" uparrow # UPWARDS ARROW
<Multi_key> <Right> <Right> : "→" rightarrow # RIGHTWARDS ARROW
<Multi_key> <Down> <Down> : "↓" downarrow # DOWNWARDS ARROW
<Multi_key> <o> <k> : "✓" U2713 # CHECK MARK
<Multi_key> <n> <o> : "❌" U274F # CROSS MARK
<Multi_key> <t> <u> : "👍" U1F44D # THUMBS UP SIGN

View File

@ -1,55 +0,0 @@
font:
normal:
#family: Terminess Powerline
family: Iosevka Nerd Font
style: Regular
size: 13.5
mouse:
hide_when_typing: true
key_bindings:
- key: V
mods: Control|Alt
action: Paste
- key: C
mods: Control|Alt
action: Copy
bell:
duration: 100
# https://github.com/alacritty/alacritty/wiki/Color-schemes#solarized
colors:
# Default colors
primary:
background: '#002b36' # base03
foreground: '#839496' # base0
# Cursor colors
cursor:
text: '#002b36' # base03
cursor: '#839496' # base0
# Normal colors
normal:
black: '#073642' # base02
red: '#dc322f' # red
green: '#859900' # green
yellow: '#b58900' # yellow
blue: '#268bd2' # blue
magenta: '#d33682' # magenta
cyan: '#2aa198' # cyan
white: '#eee8d5' # base2
# Bright colors
bright:
black: '#002b36' # base03
red: '#cb4b16' # orange
green: '#586e75' # base01
yellow: '#657b83' # base00
blue: '#839496' # base0
magenta: '#6c71c4' # violet
cyan: '#93a1a1' # base1
white: '#fdf6e3' # base3

View File

@ -1,26 +0,0 @@
# 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 17 18 38 39 40 2 46 47 49 1
sort_key=46
sort_direction=1
hide_threads=0
hide_kernel_threads=1
hide_userland_threads=0
shadow_other_users=0
show_thread_names=0
show_program_path=1
highlight_base_name=0
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=6
delay=15
left_meters=AllCPUs Memory Swap
left_meter_modes=1 1 1
right_meters=Tasks LoadAverage Uptime
right_meter_modes=2 2 2

View File

@ -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

View File

@ -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

View File

@ -1,8 +0,0 @@
background-color=#002b36
border-color=#073642
text-color=#839496
progress-color=over #073642
group-by=app-name
default-timeout=5000

View File

@ -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

View File

@ -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
# dont 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

View File

@ -1 +0,0 @@
thumbs_dir=~/.cache/thumbnails/mpv

View File

@ -1,4 +0,0 @@
font=DINW07-Regular
font_mono=DINW07-Regular
font_size=10
redraw_delay=0.25

View File

@ -1 +0,0 @@
../../../../mpv-gallery-view/scripts/gallery-thumbgen.lua

View File

@ -1 +0,0 @@
../../../../mpv-gallery-view/scripts/gallery-thumbgen.lua

View File

@ -1 +0,0 @@
../../../../mpv-gallery-view/scripts/gallery-thumbgen.lua

View File

@ -1 +0,0 @@
../../../../mpv-gallery-view/scripts/gallery-thumbgen.lua

View File

@ -1 +0,0 @@
../../../../../mpv-gallery-view/scripts/lib/gallery.lua

View File

@ -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

View File

@ -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)

View File

@ -1 +0,0 @@
../../../../mpv-gallery-view/scripts/playlist-view.lua

View File

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

View File

@ -1,23 +0,0 @@
# Visualizer
visualizer_fifo_path = ~/.mpd/fifo
visualizer_in_stereo = yes
visualizer_look = +|
visualizer_output_name = fifo
visualizer_sync_interval = 15
visualizer_type = spectrum
# Song list formatting
song_columns_list_format = (6f)[green]{NE} (45)[white]{t|f:Title} (20)[]{a} (25)[cyan]{b} (5f)[blue]{P} (7f)[magenta]{l}
# Display lists in column mode by default
browser_display_mode = columns
search_engine_display_mode = columns
# Faster seeking
seek_time = 5
# More modern UI
user_interface = alternative
# Desktop notification on song change
execute_on_song_change = notify-send -t 5000 -i "$(dirname $HOME/Music/"$(mpc --format %file% current)")/cover."* "Now Playing" -- "$(mpc --format '%title% \n%artist% %album%' current)"

View File

@ -1,3 +0,0 @@
{
"rust.clippy_preference": "on"
}

View File

@ -1,7 +0,0 @@
snippet disp "Display trait implentation"
impl fmt::Display for ${1:Struct} {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "${2}", ${3})
}
}${0}
endsnippet

View File

@ -1,19 +0,0 @@
extends tex
snippet s "Section" b
\section{$1}
endsnippet
snippet ss "Subsection" b
\subsection{$1}
endsnippet
snippet sss "Subsubsection" b
\subsubsection{$1}
endsnippet

View File

@ -1,23 +0,0 @@
extends texmath
snippet qf "Quadratic formula (user is responsible for parentheses)" w
\frac{-${2:b} \pm \sqrt{$2^2 - 4 \cdot ${1:a} \cdot ${3:c}}}{2 \cdot $1}$0
endsnippet
snippet aligned "aligned environment (in math mode)" w
\begin{aligned}
$1 &= $0 \\\\
\end{aligned}
endsnippet
snippet si "Insert SI unit (only works with simple numbers)" w
\SI{${1:amount}}{${2:unit}}
endsnippet
snippet · "Insert multiplication sign" A
\cdot $0
endsnippet
snippet // "Fraction" iA
\frac{$1}{$2}$0
endsnippet

View File

@ -1 +0,0 @@
../../../../vim-plug/plug.vim

View File

@ -1,34 +0,0 @@
" Set unknown filetypes
autocmd BufRead,BufNewFile *.scad set filetype=openscad
autocmd BufRead,BufNewFile *.vpy set filetype=python
autocmd BufRead,BufNewFile *.tex set filetype=tex
" Set properties
autocmd Filetype arduino setlocal ts=2 sw=2 sts=2 expandtab
autocmd Filetype c setlocal ts=4 sw=4 sts=4 expandtab
autocmd Filetype cpp setlocal ts=4 sw=4 sts=4 expandtab
autocmd Filetype css setlocal ts=2 sw=2 sts=2 expandtab
autocmd Filetype dockerfile setlocal ts=4 sw=4 sts=4 expandtab
autocmd Filetype dot setlocal ts=2 sw=2 sts=2 expandtab
autocmd Filetype gitcommit setlocal colorcolumn=72
autocmd Filetype go setlocal ts=4 sw=4 sts=4
autocmd Filetype haskell setlocal ts=4 sw=4 sts=4 expandtab
autocmd Filetype html setlocal ts=2 sw=2 sts=2 expandtab
autocmd Filetype jinja.html setlocal ts=2 sw=2 sts=2 expandtab
autocmd Filetype javascript setlocal ts=2 sw=2 sts=2 expandtab
autocmd Filetype jinja setlocal ts=2 sw=2 sts=2 expandtab
autocmd Filetype json setlocal ts=2 sw=2 sts=2 expandtab
autocmd Filetype lua setlocal ts=4 sw=4 sts=4 expandtab
autocmd Filetype markdown setlocal ts=2 sw=2 sts=2 expandtab
autocmd Filetype openscad setlocal ts=2 sw=2 sts=2 expandtab
autocmd Filetype python setlocal ts=4 sw=4 sts=4 expandtab
autocmd Filetype sass setlocal ts=2 sw=2 sts=2 expandtab
autocmd Filetype scss setlocal ts=2 sw=2 sts=2 expandtab
autocmd Filetype sh setlocal ts=4 sw=4 sts=4
autocmd Filetype tex setlocal ts=1 sw=1 sts=1 expandtab
autocmd Filetype toml setlocal ts=2 sw=2 sts=2 expandtab
autocmd Filetype vim setlocal ts=2 sw=2 sts=2 expandtab
autocmd Filetype vue setlocal ts=2 sw=2 sts=2 expandtab
autocmd Filetype xml setlocal ts=2 sw=2 sts=2 expandtab
autocmd Filetype yaml setlocal ts=2 sw=2 sts=2 expandtab
autocmd Filetype zsh setlocal ts=4 sw=4 sts=4 expandtab

View File

@ -1,20 +0,0 @@
let b:black_disable = 0
autocmd BufWritePre <buffer> if b:black_disable != 1 | execute 'silent Black' | endif
map <Leader>b :let b:black_disable = (b:black_disable + 1) % 2<CR>
" Show icon in airline when black is disabled
" Adapted from https://github.com/ryanoasis/vim-devicons/blob/a5750c6507602a7238e1c87669c64a6d820a319d/plugin/webdevicons.vim#L567
function! BlackIconStatus()
if &filetype ==# 'python' && b:black_disable == 1
return "  "
else
return ""
endif
endfunction
function! AirlineBlackIcon(...)
let w:airline_section_x = get(w:, 'airline_section_x', get(g:, 'airline_section_x', ''))
let w:airline_section_x .= '%{BlackIconStatus()}'
endfunction
call airline#add_statusline_func('AirlineBlackIcon')

View File

@ -1,177 +0,0 @@
" Basic display
set number
set colorcolumn=80
" Persistent undo
set undofile
set undolevels=4096
set undoreload=16384
" Search
set ignorecase
" Hide search when enter is pressed
nnoremap <silent> <CR> :nohlsearch<CR>
" Autoload settings from file
set modeline
" Use system clipboard
set clipboard=unnamedplus
" Support more file encodings
set fileencodings=ucs-bom,utf-8,default,sjis,latin1
" Scroll before reaching top/bottom
set scrolloff=5
" Conceal when line is not active
set conceallevel=1
" Just hide buffer instead of unloading
set hidden
" Remap leader key
let mapleader = ","
" Jump to the last position
if has("autocmd")
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
\| exe "normal! g`\"" | endif
endif
call plug#begin('~/.local/share/nvim/plugged')
" Multi-entry selection UI
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'
" Tagbar
Plug 'majutsushi/tagbar'
nmap <F8> :TagbarToggle<CR>
" Snippets
if has('python3')
Plug 'SirVer/ultisnips'
let g:UltiSnipsExpandTrigger = '<tab>'
let g:UltiSnipsJumpForwardTrigger = '<tab>'
let g:UltiSnipsJumpBackwardTrigger = '<s-tab>'
Plug 'honza/vim-snippets'
endif
" Deoplete
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
let g:deoplete#enable_at_startup = 1
" Airline
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
let g:airline_powerline_fonts = 1
let g:airline_solarized_bg='dark'
let g:airline_theme='solarized'
" Airline for tmux
Plug 'edkolev/tmuxline.vim'
" NERDTree
Plug 'preservim/nerdtree'
Plug 'jistr/vim-nerdtree-tabs'
map <Leader>N <plug>NERDTreeTabsToggle<CR>
map <Leader>n <plug>NERDTreeFocusToggle<CR>
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'
" Trailing whitespace highlighting
Plug 'ntpeters/vim-better-whitespace'
" Syntax highlighting/Language support
Plug 'Glench/Vim-Jinja2-Syntax', { 'for': 'jinja' }
Plug 'LnL7/vim-nix', { 'for': 'nix' }
Plug 'cespare/vim-toml', { 'for': 'toml' }
Plug 'mechatroner/rainbow_csv'
Plug 'posva/vim-vue', { 'for': 'vue' }
Plug 'sirtaj/vim-openscad', { 'for': 'openscad' }
" Language Client
Plug 'autozimu/LanguageClient-neovim', {
\ 'branch': 'next',
\ 'do': 'bash install.sh',
\ }
let g:LanguageClient_serverCommands = {
\ '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'
let g:LanguageClient_settingsPath = '~/.config/nvim/LanguageClient.json'
function LC_maps()
if has_key(g:LanguageClient_serverCommands, &filetype)
nnoremap <buffer> <silent> <F5> :call LanguageClient_contextMenu()<CR>
nnoremap <buffer> <silent> K :call LanguageClient#textDocument_hover()<CR>
nnoremap <buffer> <silent> gd :call LanguageClient#textDocument_definition()<CR>
nnoremap <buffer> <silent> <F2> :call LanguageClient#textDocument_rename()<CR>
set formatexpr=LanguageClient#textDocument_rangeFormatting_sync()
endif
endfunction
autocmd FileType * call LC_maps()
" Rust
Plug 'rust-lang/rust.vim'
let g:rustfmt_autosave_if_config_present = 1
let g:rust_fold = 1
map <Leader>rt :RustTest<CR>
" Black (python formatter)
Plug 'psf/black', { 'commit': '1d3fb871bec82d1263940ba1d32095d660fea2ab', 'for': 'python' }
" LaTeX helpers
Plug 'lervag/vimtex'
let g:tex_flavor='latex'
let g:vimtex_view_method='zathura'
let g:tex_conceal='abdmg'
let g:vimtex_syntax_autoload_packages = [
\'amsmath',
\'luacode',
\]
" this disables some helful warnings that often have a reason why I ignore them
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!',
\]
" When using math environments vim does not know if if it currently is in one
" or outside of one unless it parses the file from the start. Parsing the
" file from the start each time fixes this but leads to a performance drop
" (depending on the number of lines).
" Also, somehow using FileType tex does not work, so this will enable slow
" syntax highlighting everywhere once a *.tex file is opened.
autocmd BufEnter *.tex syntax sync fromstart
" Color schemes
Plug 'altercation/vim-colors-solarized'
call plug#end()
set background=dark
silent! colorscheme solarized

View File

@ -1,3 +0,0 @@
[pycodestyle]
ignore = E265
max-line-length = 120

View File

@ -1,191 +0,0 @@
# vim: set ts=4 sw=4 sts=4:
set $mod Mod4
set $left h
set $down j
set $up k
set $right l
set $term alacritty
# Symlink to the current wallpaper
set $wallpaper $HOME/.config/sway/wallpaper
set $menu dmenu-wl_path | dmenu-wl -nb "#002b36" -nf "#839496" -sb "#859900" -sf "#073642" | xargs swaymsg exec --
# Outputs
output * bg $wallpaper fill
# FIXME: maybe use kanshi
output eDP-1 resolution 1920x1080 position 0,424
output "Dell Inc. DELL U2410 F525M0A104NL" resolution 1920x1200 position 1920,0
# Inputs
input type:keyboard {
xkb_layout de
xkb_options compose:caps
xkb_numlock enable
}
# Idle
exec swayidle -w \
timeout 300 "swaylock -f -i $wallpaper" \
timeout 300 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \
before-sleep "swaylock -f -i $wallpaper"
# Key bindings
# Basics
bindsym $mod+Return exec $term
bindsym $mod+Shift+c kill
bindsym $mod+r exec $menu
floating_modifier $mod normal
bindsym $mod+Control+r reload
bindsym $mod+Shift+q exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -b 'Yes, exit sway' 'swaymsg exit'
# Focus
bindsym $mod+$left focus left
bindsym $mod+$down focus down
bindsym $mod+$up focus up
bindsym $mod+$right focus right
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
# Moving
bindsym $mod+Shift+$left move left
bindsym $mod+Shift+$down move down
bindsym $mod+Shift+$up move up
bindsym $mod+Shift+$right move right
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
# Workspaces
bindsym $mod+1 workspace 1
bindsym $mod+2 workspace 2
bindsym $mod+3 workspace 3
bindsym $mod+4 workspace 4
bindsym $mod+5 workspace 5
bindsym $mod+6 workspace 6
bindsym $mod+7 workspace 7
bindsym $mod+8 workspace 8
bindsym $mod+9 workspace 9
bindsym $mod+0 workspace 10
bindsym $mod+Shift+1 move container to workspace 1
bindsym $mod+Shift+2 move container to workspace 2
bindsym $mod+Shift+3 move container to workspace 3
bindsym $mod+Shift+4 move container to workspace 4
bindsym $mod+Shift+5 move container to workspace 5
bindsym $mod+Shift+6 move container to workspace 6
bindsym $mod+Shift+7 move container to workspace 7
bindsym $mod+Shift+8 move container to workspace 8
bindsym $mod+Shift+9 move container to workspace 9
bindsym $mod+Shift+0 move container to workspace 10
# Moving workspaces between outputs
bindsym $mod+Control+$left move workspace to output left
bindsym $mod+Control+$down move workspace to output down
bindsym $mod+Control+$up move workspace to output up
bindsym $mod+Control+$right move workspace to output right
bindsym $mod+Control+Left move workspace to output left
bindsym $mod+Control+Down move workspace to output down
bindsym $mod+Control+Up move workspace to output up
bindsym $mod+Control+Right move workspace to output right
# open next window as (vertical/horizontal) split
bindsym $mod+b splith
bindsym $mod+v splitv
# layouts
bindsym $mod+s layout stacking
bindsym $mod+t layout tabbed
bindsym $mod+e layout toggle split
bindsym $mod+f fullscreen
bindsym $mod+Control+space floating toggle
# switch focus to tiling/floating
bindsym $mod+space focus mode_toggle
bindsym $mod+a focus parent
# Scratchpad
bindsym $mod+Shift+minus move scratchpad
# show/hide/cycle scratchpad windows
bindsym $mod+minus scratchpad show
# Resizing
mode "resize" {
bindsym $left resize shrink width 10px
bindsym $down resize grow height 10px
bindsym $up resize shrink height 10px
bindsym $right resize grow width 10px
bindsym Left resize shrink width 10px
bindsym Down resize grow height 10px
bindsym Up resize shrink height 10px
bindsym Right resize grow width 10px
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+d mode "resize"
# Multimedia Keys
bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
bindsym XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle
bindsym --locked XF86MonBrightnessDown exec brightnessctl set 5%-
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"'
# Status Bar
bar {
swaybar_command waybar
}
# Window rules (native: by app_id, xwayland legacy: by class)
assign [app_id="firefox"] 2
#assign [class="Chromium"] 2
assign [app_id="net.sourceforge.mumble."] 3
assign [class="Claws-mail"] 3
assign [app_id="anki"] 4
assign [app_id="libreoffice-startcenter"] 4
assign [app_id="net.sourceforge.gscan2pdf"] 4
assign [app_id="org.pwmt.zathura"] 4
assign [app_id="xournalpp"] 4
assign [app_id="audacious"] 5
assign [app_id="pavucontrol"] 5
assign [app_id="darktable"] 8
assign [app_id="org.inkscape.Inkscape"] 8
assign [class="Blender"] 8
assign [class="Gimp"] 8
assign [class="krita"] 8
# Window borders
default_border pixel 1
client.focused "#93a1a1" "#073642" "#93a1a1" "#2aa198"
client.focused_inactive "#839496" "#002b36" "#839496" "#2aa198"
client.unfocused "#839496" "#002b36" "#839496" "#2aa198"
client.urgent "#073642" "#dc322f" "#073642" "#2aa198"
# Cursor
seat seat0 xcursor_theme Adwaita
# Autostart
exec mako

View File

@ -1,163 +0,0 @@
// vim: set ft=json:
// not actually json, but better than nothing
{
"layer": "top",
"position": "top",
"height": 24, // Waybar height (to be removed for auto height)
// Position/Order of modules
"modules-left": [
"sway/workspaces",
"sway/mode"
],
"modules-center": [],
"modules-right": [
"tray",
"custom/redshift",
"idle_inhibitor",
"backlight",
"mpd",
"pulseaudio",
"network",
"custom/vpn",
"network#speed",
"memory",
"cpu",
"temperature",
"battery",
"clock"
],
// Modules configuration
"sway/workspaces": {
"disable-scroll": true
},
"sway/mode": {
"format": "{}"
},
"mpd": {
"format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ",
"format-disconnected": "Disconnected ",
"format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ",
"unknown-tag": "N/A",
"interval": 2,
"consume-icons": {
"on": " "
},
"random-icons": {
"off": "劣 ",
"on": "列 "
},
"repeat-icons": {
"on": "凌 "
},
"single-icons": {
"on": "綾 "
},
"state-icons": {
"paused": "",
"playing": "契"
},
"tooltip-format": "MPD (connected)",
"tooltip-format-disconnected": "MPD (disconnected)"
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": " ",
"deactivated": " "
}
},
"tray": {
// "icon-size": 21,
"spacing": 5
},
"clock": {
"format": "{:%H:%M %Z}",
"format-alt": "{:%Y-%m-%d (%a)}",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"
},
"cpu": {
"interval": 2,
"format": "{usage:2}% ﬙ ",
"tooltip": false
},
"memory": {
"interval": 2,
"format": "{:2}%  "
},
"temperature": {
"critical-threshold": 80,
"format": "{temperatureC}°C {icon}",
"format-icons": ["", "", "", "", ""]
},
"backlight": {
"format": "{percent}% {icon}",
"format-icons": [" ", " ", " ", " ", " ", " ", " "],
"on-scroll-up": "brightnessctl set +5%",
"on-scroll-down": "brightnessctl set 5%-"
},
"battery": {
"interval": 5,
"states": {
"good": 95,
"warning": 30,
"critical": 15
},
"format": "{capacity}% {icon}",
"format-charging": "{capacity}% ",
"format-plugged": "{capacity}% ﮣ",
"format-alt": "{time} {icon}",
"format-icons": ["", "", "", "", "", "", "", "", "", "", ""]
},
"network": {
"format-wifi": "{essid} ({signalStrength}%) 直 ",
"format-ethernet": "{ifname}: {ipaddr}/{cidr}  ",
"format-linked": "{ifname} (No IP)  ",
"format-disconnected": "Disconnected ⚠ ",
"format-alt": "{ifname}: {ipaddr}/{cidr}",
"tooltip": false,
"on-click-right": "alacritty -e nmtui"
},
"network#speed": {
"interval": 2,
"format": "{bandwidthDownBits:>8}  {bandwidthUpBits:>8} 祝",
"format-alt": "{bandwidthDownOctets:>8}  {bandwidthUpOctets:>8} 祝",
"format-disconnected": " 0b/s 祝 0b/s",
"tooltip": false
},
"pulseaudio": {
"format": "{volume}% {icon} {format_source}",
"format-bluetooth": "{volume}% {icon} {format_source}",
"format-bluetooth-muted": "遼 {icon} {format_source}", // FIXME: see below
"format-muted": "遼 {format_source}", // FIXME: use normal mute icon (ﱝ ), which for some reason is displayed right of the source?
"format-source": "{volume}% \u2009",
"format-source-muted": "\u2009",
"format-icons": {
"headphone": " ",
"hands-free": " ",
"headset": " ",
"phone": " ",
"portable": " ",
"car": " ",
"default": ["奄", "奔", "墳"]
},
"on-click": "pavucontrol"
},
"custom/vpn": {
"interval": 10,
"exec": "ip -j link | jq --unbuffered --compact-output '[[.[].ifname | select(. | startswith(\"mullvad\"))][] | split(\"-\")[1] + \" \u2009\"] as $conns | { text: ($conns[0] // \"\"), class: (if $conns | length > 0 then \"connected\" else \"disconnected\" end) }'",
"return-type": "json",
"format": "{}",
"tooltip": false
},
"custom/redshift": {
"interval": 10,
"exec": "systemctl --user show redshift | grep -q ActiveState=active && echo '{\"tooltip\": \"Redshift active\", \"class\": \"active\"}' || echo '{\"tooltip\": \"Redshift inactive\", \"class\": \"inactive\"}'",
"on-click": "systemctl --user show redshift | grep -q ActiveState=active && systemctl --user stop redshift || systemctl --user start redshift",
"return-type": "json",
"format": "",
"tooltip": false
}
}

View File

@ -1,153 +0,0 @@
* {
border-radius: 0;
border: none;
font-family: "Iosevka Nerd Font";
font-size: 12px;
min-height: 0;
transition-property: none;
}
window#waybar {
background-color: #002b36;
color: #839496;
}
#workspaces button {
padding: 0 5px;
background-color: #002b36;
color: inherit;
border-bottom: 2px solid transparent;
}
#workspaces button:hover {
background: #073642;
box-shadow: inherit;
text-shadow: inherit;
}
#workspaces button.focused {
border-bottom: 2px solid #859900;
}
#workspaces button.urgent {
background-color: #dc322f;
}
#mode {
background-color: #073642;
font-style: italic;
}
/* all modules on the right */
#waybar > box > box:nth-child(3) > widget > label {
padding: 0 10px;
}
#battery.charging {
color: #073642;
background-color: #859900;
}
@keyframes blink {
to {
background-color: #fdf6e3;
color: #657b83;
}
}
#battery.critical:not(.charging),
#temperature.critical {
background-color: #dc322f;
animation-name: blink;
animation-duration: 0.5s;
/* FIXME use nearest neighbor interpolation if possible */
animation-timing-function: cubic-bezier(1, 0, 0, 1);
animation-iteration-count: infinite;
animation-direction: alternate;
}
#cpu {
background-color: #2aa198;
color: #073642
}
#memory {
background-color: #b58900;
color: #073642
}
#backlight {
background-color: #fdf6e3;
color: #657b83;
}
#network {
background-color: #6c71c4;
color: #073642
}
#custom-vpn {
background-color: #268bd2;
color: #073642
}
#network.disconnected {
background-color: #dc322f;
}
#network.speed {
background-color: #859900;
}
#pulseaudio {
background-color: #fdf6e3;
color: #657b83;
}
#pulseaudio.muted {
background-color: #002b36;
color: #839496;
}
#temperature {
background-color: #d33682;
color: #073642;
}
#idle_inhibitor.activated {
background-color: #fdf6e3;
color: #002b36;
}
#mpd {
background-color: #859900;
color: #073642;
}
#mpd.disconnected {
background-color: #dc322f;
}
#mpd.stopped {
background-color: #cb4b16;
}
#mpd.paused {
background-color: #b58900;
}
#custom-redshift {
color: #073642;
}
#custom-redshift.active {
background-color: #dc322f;
}
#custom-redshift.inactive {
background-color: #268bd2;
}
#tray {
padding: 0 5px;
}

View File

@ -1,40 +0,0 @@
set selection-clipboard "clipboard"
map <C-j> set page-right-to-left
# Base16 Solarized Dark
# Author: Ethan Schoonover (modified by aramisgithub)
# Source: https://github.com/nicodebo/base16-zathura (modified)
set default-bg "#002b36"
set default-fg "#002b36"
set statusbar-fg "#839496"
set statusbar-bg "#073642"
set inputbar-bg "#002b36"
set inputbar-fg "#fdf6e3"
set notification-bg "#002b36"
set notification-fg "#fdf6e3"
set notification-error-bg "#002b36"
set notification-error-fg "#dc322f"
set notification-warning-bg "#002b36"
set notification-warning-fg "#dc322f"
set highlight-color "#b58900"
set highlight-active-color "#859900"
set completion-bg "#073642"
set completion-fg "#859900"
set completion-highlight-fg "#fdf6e3"
set completion-highlight-bg "#859900"
set recolor-lightcolor "#002b36"
set recolor-darkcolor "#839496"
set recolor "false"
set recolor-keephue "false"

View File

@ -1,2 +0,0 @@
registry: https://r.sbruder.de
user: simon

View File

@ -1 +0,0 @@
../dynamic-colors

View File

@ -1,8 +0,0 @@
# go plugin
add-auto-load-safe-path /usr/share/go-1.10/src/runtime/runtime-gdb.py
# history
set history save on
set history filename ~/.gdb_history
source ~/.gdb_safe

View File

@ -1,36 +0,0 @@
[user]
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

3
home/.gitignore vendored
View File

@ -1,3 +0,0 @@
*.swp
.direnv
Session.vim

View File

@ -1,13 +0,0 @@
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,7 +0,0 @@
disable =
import-error,
invalid-name,
missing-docstring,
too-few-public-methods,
too-many-arguments,
too-many-instance-attributes

View File

@ -1 +0,0 @@
.headers ON

View File

@ -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

View File

@ -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]"

View File

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

View File

@ -1,5 +0,0 @@
if [[ -z $WAYLAND_DISPLAY ]] && [[ $(tty) = /dev/tty1 ]] && command -v sway >/dev/null ; then
systemctl --user start graphical-session.target
export XDG_SESSION_TYPE="wayland"
exec sway
fi

View File

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

View File

@ -83,9 +83,6 @@ eval "$(dircolors -b $HOME/.dircolors)"
[ -e /usr/share/doc/fzf/examples/key-bindings.zsh ] && source /usr/share/doc/fzf/examples/key-bindings.zsh
command -v fzf-share >/dev/null && source $(fzf-share)/key-bindings.zsh
## Color switcher
alias dynamic-colors="~/.dynamic-colors/bin/dynamic-colors"
## Support for nix-shell
source $HOME/.zsh/zsh-nix-shell/nix-shell.plugin.zsh

@ -1 +0,0 @@
Subproject commit 5139d346de67e8dbee8c8983777026502d6bc627

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

@ -1 +0,0 @@
Subproject commit 3aa3b5a4e85620dd58302926b571860c92fdbb2f