scripts

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 9798c7587defc948bbd1f9672bf6c3491f17d982
parent a5dd657c10ed9672933072e058b6bee1fc3da66c
Author: AndrewLockVI <andrew@laack.co>
Date:   Tue, 10 Jun 2025 13:24:50 -0500

Updated some stuff

Diffstat:
Acodium.sh | 3+++
Minstall.sh | 26+++++++++++++++++++++++++-
Aresources/beamercolorthemeowl.sty | 171+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Mresources/header.tex | 37+++++++++++++++++++++++++++++++++++++
Mscreenshot.sh | 3++-
5 files changed, 238 insertions(+), 2 deletions(-)

diff --git a/codium.sh b/codium.sh @@ -0,0 +1,3 @@ +eval $(dbus-launch) +export $(dbus-launch | grep ^DBUS_SESSION_BUS_ADDRESS=) +flatpak run com.vscodium.codium diff --git a/install.sh b/install.sh @@ -209,7 +209,12 @@ doas apk add librewolf #doas apk add bluez -#doas apk add flatpak +# I don't trust firefox, but librewolf doesn't have vertical tabs yet so here I am. +# Also, apk doesn't allow me to download 136... +# doas apk add flatpak +# sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo +# flatpak install flathub org.mozilla.firefox + #flatpak install flathub app.zen_browser.zen # doas apk add emacs @@ -232,3 +237,22 @@ doas apk add librewolf # doas apk add py3-img2pdf pip install spotdl --break-system-packages + +# doas apk add virt-manager qemu + +# doas apk add libvirt-daemon py3-libvirt py3-libxml2 + +# doas rc-update add libvirtd && doas rc-service libvirtd start +# doas apk add polkit +# doas rc-service polkit start + +# used for manim +# doas apk add ffmpeg-dev +# doas apk add gcompat +# doas apk add libavif-dev + +# make directory for shared sty stuff (this will install) +# the theme for latex globally. I normally use owl. This can be found +# in my bin/resources directory. + +doas mkdir -p /usr/local/texlive/texmf-local/tex/latex/ diff --git a/resources/beamercolorthemeowl.sty b/resources/beamercolorthemeowl.sty @@ -0,0 +1,171 @@ +%% +%% This is file `beamercolorthemeowl.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% beamercolorthemeowl.dtx (with options: `package') +%% --------------------------------------------------------------------------- +%% Copyright 2016 Ross Churchley. Contributions to this package are welcome at +%% +%% https://github.com/rchurchley/beamercolortheme-owl +%% +%% This work may be distributed and/or modified under the conditions of +%% the LaTeX Project Public License, either version 1.3 of this license +%% or (at your option) any later version. The latest version of this +%% license is in: +%% +%% http://www.latex-project.org/lppl.txt +%% +%% and version 1.3 or later is part of all distributions of LaTeX version +%% 2005/12/01 or later. +%% --------------------------------------------------------------------------- +\NeedsTeXFormat{LaTeX2e}[2005/12/01] +\ProvidesPackage{beamercolorthemeowl} + [2016/03/15 v0.1.1 A visible colour theme for Beamer presentations] + \RequirePackage{etoolbox} + \newtoggle{snowy} + \newtoggle{cautious} + \@ifclassloaded{beamer}{ + \DeclareOptionBeamer{snowy}{\toggletrue{snowy}} + \DeclareOptionBeamer{cautious}{\toggletrue{cautious}} + \ProcessOptionsBeamer + }{} + \@ifclassloaded{beamer}{ + \iftoggle{snowy}{ + \setbeamercolor{normal text}{fg=black, bg=white} + }{ + \setbeamercolor{normal text}{fg=white, bg=black} + } + }{} + \RequirePackage{xcolor} + \definecolor{OwlRed}{RGB}{ 255, 92, 168} + \definecolor{OwlGreen}{RGB}{ 90, 168, 0} + \definecolor{OwlBlue}{RGB}{ 0, 152, 233} + \definecolor{OwlYellow}{RGB}{ 242, 147, 24} + \colorlet{OwlViolet}{OwlRed!50!OwlBlue} + \colorlet{OwlBrown}{OwlRed!50!OwlGreen} + \colorlet{OwlOrange}{OwlRed!50!OwlYellow} + \colorlet{OwlCyan}{OwlGreen!50!OwlBlue} +\iftoggle{cautious}{}{ + \colorlet{red}{OwlRed} + \colorlet{green}{OwlGreen} + \colorlet{blue}{OwlBlue} + \colorlet{yellow}{OwlYellow} + \colorlet{violet}{OwlViolet} + \colorlet{brown}{OwlBrown} + \colorlet{orange}{OwlOrange} + \colorlet{cyan}{OwlCyan} +} + \@ifclassloaded{beamer}{ + \setbeamercolor*{alerted text}{ + fg=OwlRed + } + \setbeamercolor*{example text}{ + fg=OwlGreen + } + \setbeamercolor*{title}{ + use=normal text, + fg=normal text.fg + } + \setbeamercolor*{title in sidebar}{ + use=normal text, + fg=normal text.fg + } + \setbeamercolor*{titlelike}{ + use=normal text, + parent=normal text.fg + } + \setbeamercolor*{author}{ + use=normal text, + parent=normal text.fg + } + \setbeamercolor*{date}{ + use=normal text, + parent=normal text.fg + } + \setbeamercolor*{institute}{ + use=normal text, + parent=normal text.fg + } + \setbeamercolor*{structure}{ + use=normal text, + fg=normal text.fg!50!normal text.bg + } + \setbeamercolor*{palette primary}{ + use=normal text, + fg=normal text.fg!90!normal text.bg, + bg=normal text.bg!90!normal text.fg + } + \setbeamercolor*{palette secondary}{ + use=normal text, + fg=alerted text.fg!75!normal text.bg, + bg=normal text.bg!90!normal text.fg + } + \setbeamercolor*{palette tertiary}{ + use=normal text, + fg=example text.fg!75!normal text.bg, + bg=normal text.bg!90!normal text.fg + } + \setbeamercolor*{palette quaternary}{ + use=normal text, + fg=normal text.fg!75!normal text.bg, + bg=normal text.bg!90!normal text.fg + } + \setbeamercolor*{sidebar}{ + use=normal text, + fg=normal text.fg!80!normal text.bg, + bg=normal text.bg!80!normal text.fg + } + \setbeamercolor*{palette sidebar primary}{ + use=palette primary, + parent=palette primary + } + \setbeamercolor*{palette sidebar secondary}{ + use=palette primary, + parent=palette primary + } + \setbeamercolor*{palette sidebar tertiary}{ + use=palette quaternary, + parent=palette quaternary + } + \setbeamercolor*{palette sidebar quaternary}{ + use=palette quaternary, + parent=palette quaternary + } + \setbeamercolor*{frametitle}{ + use=palette primary, + parent=palette primary + } + \setbeamercolor*{block title}{ + use=normal text, + fg=normal text.fg, + bg= + } + \setbeamercolor{block body}{ + bg= + } + \setbeamercolor*{block title alerted}{% + use={block title, alerted text}, + fg=alerted text.fg, + bg=block title.bg + } + \setbeamercolor*{block title example}{% + use={block title, example text}, + fg=example text.fg, + bg=block title.bg + } + \setbeamercolor*{block body alerted}{ + use=block body, + parent=block body + } + \setbeamercolor*{block body example}{ + use=block body, + parent=block body + } + \def\beamer@themerounded@shadow{false} + \setbeamertemplate{navigation symbols}{} + }{} +\endinput +%% +%% End of file `beamercolorthemeowl.sty'. diff --git a/resources/header.tex b/resources/header.tex @@ -6,11 +6,21 @@ \usepackage{fancyhdr} \usepackage{datetime} \usepackage{longtable} +\usepackage{geometry} +% these are more normal margins + \geometry{verbose,tmargin=1in,bmargin=1in,lmargin=1in,rmargin=1in} \pagestyle{fancy} \fancyhf{} \lhead{Andrew Laack} \rhead{\today} +% \rhead{\thepage} % page number + +% indentation +%\usepackage{indentfirst} % Force indentation of the first paragraph +%\setlength{\parindent}{2em} % Indent paragraphs by 1em (adjust as needed) +%\setlength{\parskip}{0pt} + \newtcolorbox[]{alphaAnswer}[1][]{% colframe=black, % Frame color @@ -18,3 +28,30 @@ boxrule=0.2mm, % Thickness of the frame sharp corners, } + +\setlength{\parindent}{0pt} + +% this allows setting the default font size +%\makeatletter +% \renewcommand\normalsize{% +% \@setfontsize\normalsize{13pt}{13pt}% +%} + +\normalsize +\makeatother + +% this sets the default font family to ~TNR. +% other options exist, but some don't play nicely +% with pandoc for whatever reason. + +%\usepackage{mathptmx} % Times-like font +% +\usepackage{setspace} % Add this package +\setstretch{2} + +% \AtBeginDocument{ +% \centering +% } + +% \newcommand{\fix}{\marginpar{FIX}} +% \newcommand{\new}{\marginpar{NEW}} diff --git a/screenshot.sh b/screenshot.sh @@ -1,3 +1,4 @@ #!/bin/bash -scrot -s "$HOME/screenshots/sc_%Y-%m-%d_%H.%M.%S.png" -e 'xclip -selection clipboard -t image/png -i $f' +# scrot -s "$HOME/screenshots/sc_%Y-%m-%d_%H.%M.%S.png" -e 'xclip -selection clipboard -t image/png -i $f' +flameshot gui