From b2be253bfb5472aa34d0e36c2f1899832f033109 Mon Sep 17 00:00:00 2001 From: JirR02 Date: Fri, 14 Mar 2025 10:34:28 +0100 Subject: [PATCH] Dotfiles V1.1.1 Updated sketchybar and tmux config --- .../nvim/templates/latex/theory/main.latex | 4 + .../templates/latex/theory/preamble.latex | 106 ++++++------------ .config/sketchybar/items/spaces.sh | 2 +- .config/tmux/tmux.conf | 9 -- .gitignore | 10 +- .gitmodules | 3 - 6 files changed, 45 insertions(+), 89 deletions(-) delete mode 100644 .gitmodules diff --git a/.config/nvim/templates/latex/theory/main.latex b/.config/nvim/templates/latex/theory/main.latex index de39926..4a5d277 100644 --- a/.config/nvim/templates/latex/theory/main.latex +++ b/.config/nvim/templates/latex/theory/main.latex @@ -20,6 +20,10 @@ \def\questiontitle{Frage} \def\wrongctitle{Wrong Concept} \def\wrongctitle{Falscher Konzept} +\def\pagetitle{Page} +\def\pagetitle{Seite} +\def\chaptertitle{Chapter} +\def\pagetitle{Kapitel} \input{preamble} \input{macros} diff --git a/.config/nvim/templates/latex/theory/preamble.latex b/.config/nvim/templates/latex/theory/preamble.latex index 068c191..1655d64 100644 --- a/.config/nvim/templates/latex/theory/preamble.latex +++ b/.config/nvim/templates/latex/theory/preamble.latex @@ -2,6 +2,7 @@ % PACKAGE IMPORTS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% TODO: Uncomment if the paper is in German % \usepackage[ngerman]{babel} \usepackage[tmargin=2cm,rmargin=1in,lmargin=1in,margin=0.85in,bmargin=2cm,footskip=.2in]{geometry} \usepackage{amsmath,amsfonts,amsthm,amssymb,mathtools} @@ -37,8 +38,8 @@ \newcommand\mycommfont[1]{\footnotesize\ttfamily\textcolor{blue}{#1}} \SetCommentSty{mycommfont} \newcommand{\incfig}[1]{% - \def\svgwidth{\columnwidth} - \import{./figures/}{#1.pdf_tex} + \def\svgwidth{\columnwidth} + \import{./figures/}{#1.pdf_tex} } \usepackage{tikzsymbols} @@ -55,8 +56,6 @@ % SELF MADE COLORS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - - \definecolor{myg}{RGB}{56, 140, 70} \definecolor{myb}{RGB}{45, 111, 177} \definecolor{myr}{RGB}{199, 68, 64} @@ -84,7 +83,8 @@ % TCOLORBOX SETUPS %%%%%%%%%%%%%%%%%%%%%%%%%%%% -\setlength{\parindent}{1cm} +\setlength{\parindent}{0cm} + %================================ % THEOREM BOX %================================ @@ -144,9 +144,11 @@ ,separator sign none } + %================================ % Corollery %================================ + \tcbuselibrary{theorems,skins,hooks} \newtcbtheorem[number within=section]{Corollary}{\corollarytitle} {% @@ -602,7 +604,7 @@ \newcommand{\nt}[1]{\begin{note}#1\end{note}} \newcommand*\circled[1]{\tikz[baseline=(char.base)]{ - Wrong Concept \node[shape=circle,draw,inner sep=1pt] (char) {#1};}} + Wrong Concept \node[shape=circle,draw,inner sep=1pt] (char) {#1};}} \newcommand\getcurrentref[1]{% \ifnumequal{\value{#1}}{0} {??} @@ -648,34 +650,34 @@ \newsavebox\diffdbox \newcommand{\slantedromand}{{\mathpalette\makesl{d}}} \newcommand{\makesl}[2]{% -\begingroup -\sbox{\diffdbox}{$\mathsurround=0pt#1\mathrm{#2}$}% -\pdfsave -\pdfsetmatrix{1 0 0.2 1}% -\rlap{\usebox{\diffdbox}}% -\pdfrestore -\hskip\wd\diffdbox -\endgroup + \begingroup + \sbox{\diffdbox}{$\mathsurround=0pt#1\mathrm{#2}$}% + \pdfsave + \pdfsetmatrix{1 0 0.2 1}% + \rlap{\usebox{\diffdbox}}% + \pdfrestore + \hskip\wd\diffdbox + \endgroup } \newcommand{\dd}[1][]{\ensuremath{\mathop{}\!\ifstrempty{#1}{% -\slantedromand\@ifnextchar^{\hspace{0.2ex}}{\hspace{0.1ex}}}% -{\slantedromand\hspace{0.2ex}^{#1}}}} + \slantedromand\@ifnextchar^{\hspace{0.2ex}}{\hspace{0.1ex}}}% + {\slantedromand\hspace{0.2ex}^{#1}}}} \ProvideDocumentCommand\dv{o m g}{% - \ensuremath{% - \IfValueTF{#3}{% - \IfNoValueTF{#1}{% - \frac{\dd #2}{\dd #3}% - }{% - \frac{\dd^{#1} #2}{\dd #3^{#1}}% - }% - }{% - \IfNoValueTF{#1}{% - \frac{\dd}{\dd #2}% - }{% - \frac{\dd^{#1}}{\dd #2^{#1}}% - }% - }% - }% + \ensuremath{% + \IfValueTF{#3}{% + \IfNoValueTF{#1}{% + \frac{\dd #2}{\dd #3}% + }{% + \frac{\dd^{#1} #2}{\dd #3^{#1}}% + }% + }{% + \IfNoValueTF{#1}{% + \frac{\dd}{\dd #2}% + }{% + \frac{\dd^{#1}}{\dd #2^{#1}}% + }% + }% + }% } \providecommand*{\pdv}[3][]{\frac{\partial^{#1}#2}{\partial#3^{#1}}} % - others @@ -692,44 +694,6 @@ \renewcommand{\leq}{\leqslant} \renewcommand{\geq}{\geqslant} -% % redefine matrix env to allow for alignment, use r as default -% \renewcommand*\env@matrix[1][r]{\hskip -\arraycolsep -% \let\@ifnextchar\new@ifnextchar -% \array{*\c@MaxMatrixCols #1}} - - -%\usepackage{framed} -%\usepackage{titletoc} -%\usepackage{etoolbox} -%\usepackage{lmodern} - - -%\patchcmd{\tableofcontents}{\contentsname}{\sffamily\contentsname}{}{} - -%\renewenvironment{leftbar} -%{\def\FrameCommand{\hspace{6em}% -% {\color{myyellow}\vrule width 2pt depth 6pt}\hspace{1em}}% -% \MakeFramed{\parshape 1 0cm \dimexpr\textwidth-6em\relax\FrameRestore}\vskip2pt% -%} -%{\endMakeFramed} - -%\titlecontents{chapter} -%[0em]{\vspace*{2\baselineskip}} -%{\parbox{4.5em}{% -% \hfill\Huge\sffamily\bfseries\color{myred}\thecontentspage}% -% \vspace*{-2.3\baselineskip}\leftbar\textsc{\small\chaptername~\thecontentslabel}\\\sffamily} -%{}{\endleftbar} -%\titlecontents{section} -%[8.4em] -%{\sffamily\contentslabel{3em}}{}{} -%{\hspace{0.5em}\nobreak\itshape\color{myred}\contentspage} -%\titlecontents{subsection} -%[8.4em] -%{\sffamily\contentslabel{3em}}{}{} -%{\hspace{0.5em}\nobreak\itshape\color{myred}\contentspage} - - - %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % TABLE OF CONTENTS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -742,11 +706,11 @@ {\addvspace{30pt}% \begin{tikzpicture}[remember picture, overlay]% \draw[fill=doc!60,draw=doc!60] (-7,-.1) rectangle (-0.9,.5);% - \pgftext[left,x=-3.5cm,y=0.2cm]{\color{white}\Large\sc\bfseries Chapter\ \thecontentslabel};% + \pgftext[left,x=-3.5cm,y=0.2cm]{\color{white}\Large\sc\bfseries \chaptertitle\ \thecontentslabel};% \end{tikzpicture}\color{doc!60}\large\sc\bfseries}% {} {} -{\;\titlerule\;\large\sc\bfseries Page \thecontentspage +{\;\titlerule\;\large\sc\bfseries \pagetitle \thecontentspage \begin{tikzpicture}[remember picture, overlay] \draw[fill=doc!60,draw=doc!60] (2pt,0) rectangle (4,0.1pt); \end{tikzpicture}}% diff --git a/.config/sketchybar/items/spaces.sh b/.config/sketchybar/items/spaces.sh index d690331..6747c8f 100755 --- a/.config/sketchybar/items/spaces.sh +++ b/.config/sketchybar/items/spaces.sh @@ -2,7 +2,7 @@ sketchybar --add event aerospace_workspace_change -SPACE_STRS=(    󰏆   󰐫 ) +SPACE_STRS=(    󰏆   󰐫 ) for str in "${SPACE_STRS[@]}" do diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index 9f843ea..d1b0041 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -61,8 +61,6 @@ set -g @plugin 'christoomey/vim-tmux-navigator' # vim-like navigation set -g @plugin 'catppuccin/tmux' # Theme set -g @plugin 'tmux-plugins/tmux-resurrect' set -g @plugin 'tmux-plugins/tmux-continuum' -set -g @plugin 'omerxx/tmux-sessionx' -set -g @plugin 'sainnhe/tmux-fzf' ############################################################# # Catppuccin config # @@ -94,12 +92,5 @@ set -ag status-right "#{E:@catppuccin_status_date_time}" set -g @resurrect-capture-pane-contents 'on' set -g @continuum-restore 'on' -################### -# Sessionx config # -################### - -unbind s -set -g @sessionx-bind 's' - run '~/.config/tmux/plugins/tpm/tpm' diff --git a/.gitignore b/.gitignore index 4080b5f..97e95ec 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,7 @@ # Exclude following Files -./.config/raycast -./.config/macchina/ -./.config/kicad-db-lib/ -./.config/kicad/ -./.config/tmux/plugins/ +.config/raycast +.config/macchina/ +.config/kicad-db-lib/ +.config/kicad/ +.config/tmux/plugins/ diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index faa13f2..0000000 --- a/.gitmodules +++ /dev/null @@ -1,3 +0,0 @@ -[submodule ".config/kicad/lib/kicad-footprints"] - path = .config/kicad/lib/kicad-footprints - url = https://gitlab.com/kicad/libraries/kicad-footprints.git