From: Daniel Liu Date: Fri, 22 Jan 2021 17:31:30 +0000 (-0500) Subject: update X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=1822d5e6d2af0a9706aa3fa95244afeb6308db28;p=dotfiles.git update --- diff --git a/.config/mpv/input.conf b/.config/mpv/input.conf index 09ccf19..037702b 100644 --- a/.config/mpv/input.conf +++ b/.config/mpv/input.conf @@ -73,8 +73,8 @@ Alt+- add video-zoom -0.1 #PGDWN add chapter -1 # skip to previous chapter #Shift+PGUP seek 600 #Shift+PGDWN seek -600 -[ multiply speed 1/1.1 # scale playback speed -] multiply speed 1.1 +[ add speed -0.1 # scale playback speed +] add speed 0.1 { multiply speed 0.5 } multiply speed 2.0 #BS set speed 1.0 # reset speed to normal diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index a03acd1..44d5eb9 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -34,7 +34,7 @@ alt + s screenshot -f alt + shift + s - screenshot -w + screenshot -b {Home,End} mod_brightness {0.1,-0.1} diff --git a/.vim/mysnippets/tex.snippets b/.vim/mysnippets/tex.snippets index f767eec..9750a35 100644 --- a/.vim/mysnippets/tex.snippets +++ b/.vim/mysnippets/tex.snippets @@ -5,27 +5,30 @@ snippet \begin "enviroment" bA \end{$1} endsnippet - snippet enum "enumerate" w \begin{enumerate}[$1] $0 \end{enumerate} endsnippet - snippet align "align" w \begin{align*} $0 \end{align*} endsnippet - snippet center "center" w \begin{center} $0 \end{center} endsnippet +snippet proof "proof" w +\begin{proof} + $0 +\end{proof} +endsnippet + # FRACTIONS snippet // "frac" iA \\frac{$1}{$2}$0 @@ -37,7 +40,6 @@ snippet lim "limit" w \lim\limits_{$1 \to $2}$3 endsnippet - snippet inflim "limit to infinity" w \lim\limits_{n \to \infty} endsnippet @@ -58,64 +60,63 @@ snippet im "inline math" w $$1$$0 endsnippet - snippet bm "block math" w \[ $1 \]$0 endsnippet - -# SETS +# mathbb snippet set "Set" w \\{ $0 \\} endsnippet +snippet field "Field" w +\mathbb{F} +endsnippet + +snippet complex "Set of Complex" w +\mathbb{C} +endsnippet snippet reals "Set of Reals" w \mathbb{R} endsnippet +snippet rationals "Set of Rational" w +\mathbb{Q} +endsnippet snippet integers "Set of Integers" w \mathbb{Z} endsnippet - snippet naturals "Set of Naturals" w \mathbb{N} endsnippet -snippet complex "Set of Complex" w -\mathbb{C} -endsnippet # OTHERS snippet implies "Implies" w \Rightarrow endsnippet - snippet mod "Mod" w {\ (\textrm{mod}\ $1)} endsnippet - snippet floor "Floor" w \lfloor $1 \rfloor endsnippet - snippet cubert "Cube root" w \sqrt[\leftroot{-2}\uproot{2}3]{$1} endsnippet - snippet nroot "Root" w \sqrt[\leftroot{-2}\uproot{2}$1]{$2} endsnippet - snippet ceil "Ceiling" w \lceil $1 \rceil endsnippet @@ -151,7 +152,6 @@ snippet eea "Extended Euclidian Algorithm" w \end{center} endsnippet - snippet lemma "Lemma" w \textbf{Lemma $1} @@ -162,3 +162,28 @@ snippet lemma "Lemma" w } endsnippet + +snippet piecewise "Piecewise" w +\[ + \begin{cases} + $0 + \end{cases} +\] +endsnippet + +snippet graph "Graph" w +\begin{tikzpicture} +\begin{axis}[ + ticks=none, + axis lines = middle, + axis line style={->}, + ymin=-5, ymax=5, + xmin=-5, xmax=5, + xlabel={$x$}, + ylabel={$y$}, + axis equal image +] + +\end{axis} +\end{tikzpicture} +endsnippet diff --git a/Scripts/screenshot b/Scripts/screenshot index ba8c51d..7ae03d5 100755 --- a/Scripts/screenshot +++ b/Scripts/screenshot @@ -11,5 +11,5 @@ screen_name="$screen_dir/$screen_name.png" case $1 in -f|--full) scrot "$screen_name" && notify-send "Fullscreen screenshot taken - $screen_name" -i "";; - -w|--win) scrot -u "$screen_name" && notify-send "Windowed screenshot taken - $screen_name" -i "";; + -b|--box) scrot -s "$screen_name" && notify-send "Windowed screenshot taken - $screen_name" -i "";; esac