From a25cd6706960b40d450a29f50333d7dd1a089c4e Mon Sep 17 00:00:00 2001 From: Marco Thomas Date: Sun, 28 Jul 2024 22:27:15 +0200 Subject: [PATCH] chore: remove unused config --- .../alacritty/.config/alacritty/alacritty.yml | 45 ---- files/shell/.zshrc | 70 ------ templates/presentation_template.typ | 211 ------------------ 3 files changed, 326 deletions(-) delete mode 100644 files/alacritty/.config/alacritty/alacritty.yml delete mode 100644 files/shell/.zshrc delete mode 100644 templates/presentation_template.typ diff --git a/files/alacritty/.config/alacritty/alacritty.yml b/files/alacritty/.config/alacritty/alacritty.yml deleted file mode 100644 index 8afbdf0..0000000 --- a/files/alacritty/.config/alacritty/alacritty.yml +++ /dev/null @@ -1,45 +0,0 @@ -env: - TERM: alacritty - -font: - normal: - family: JetBrainsMono Nerd Font - - size: 11.0 - -window: - decorations: none - dynamic_padding: true - padding: - x: 10 - y: 10 - - everforest_light_hard: &everforest_light_hard - primary: - background: '#FDF6E3' - foreground: '#5c6a72' - normal: - black: '#5c6a72' - red: '#f85552' - green: '#8da101' - yellow: '#dfa000' - blue: '#3a94c5' - magenta: '#df69ba' - cyan: '#35a77c' - white: '#dfddc8' - bright: - black: '#5c6a72' - red: '#f85552' - green: '#8da101' - yellow: '#dfa000' - blue: '#3a94c5' - magenta: '#df69ba' - cyan: '#35a77c' - white: '#FDF6E3' - -colors: *everforest_light_hard - -live_config_reload: true - -mouse: - hide_when_typing: true diff --git a/files/shell/.zshrc b/files/shell/.zshrc deleted file mode 100644 index 437cb18..0000000 --- a/files/shell/.zshrc +++ /dev/null @@ -1,70 +0,0 @@ -# ~/.zshrc -# -# ~ M. Thomas - -# ============================== Prompt -autoload -Uz vcs_info -autoload -U colors && colors -precmd_vcs_info() { vcs_info } -precmd_functions+=( precmd_vcs_info ) -setopt prompt_subst - -ICON="%(?.%{$fg[green]%}.%{$fg[red]%})󱞩" -DIR="%{$fg[blue]%}%~" -GIT="%{$fg[red]%}\$vcs_info_msg_0_" -HOSTN="%{$fg[yellow]%}%m " -NEWLINE=$'\n' - -export PROMPT="${HOSTN}${DIR}${GIT}${NEWLINE}${ICON}%{$reset_color%} " -zstyle ':vcs_info:git:*' formats ' (%b )' - -# ============================== Completion -unsetopt menu_complete # do not autoselect the first completion entry -unsetopt flowcontrol -setopt auto_menu # show completion menu on successive tab press -setopt complete_in_word -setopt always_to_end -zstyle ':completion:*' menu select - -autoload -Uz compinit -compinit -C -_comp_options+=(globdots) - -# Case Insensitive completion -zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*' - -## Directory navigation -setopt autocd autopushd - -# ============================== History -setopt extended_history # record timestamp of command in HISTFILE -setopt hist_expire_dups_first # delete duplicates first when HISTFILE size exceeds HISTSIZE -setopt hist_ignore_dups # ignore duplicated commands history list -setopt hist_ignore_space # ignore commands that start with space -setopt hist_verify # show command with history expansion to user before running it -setopt share_history # share command history data inside tmux -export HISTFILE="$HOME/.zsh_history" -export SAVEHIST=5000 - -# ============================== Jump Words -bindkey '^[n' forward-word -bindkey '^[p' backward-word - -# ============================== Fancy Hacks -# Always use C-z for bg and fg -fancy-ctrl-z () { - if [[ $#BUFFER -eq 0 ]]; then - BUFFER="fg" - zle accept-line - else - zle push-input - zle clear-screen - fi -} -zle -N fancy-ctrl-z -bindkey '^Z' fancy-ctrl-z - -# ============================== Source other definitions -[ -f ~/.shellrc.alias ] && source ~/.shellrc.alias -[ -f ~/.shellrc.local ] && source ~/.shellrc.local -if [ -e $HOME/.nix-profile/etc/profile.d/nix.sh ]; then . $HOME/.nix-profile/etc/profile.d/nix.sh; fi diff --git a/templates/presentation_template.typ b/templates/presentation_template.typ deleted file mode 100644 index 6ecbef8..0000000 --- a/templates/presentation_template.typ +++ /dev/null @@ -1,211 +0,0 @@ -// This theme is inspired by https://github.com/matze/mtheme -// The polylux-port was performed by https://github.com/Enivex -// Some tweaks performed by https://github.com/marcothms - -// Create a presentation with: -// #import "theme.typ": * -// #show: presentation.with( -// author: [], -// title: [], -// occasion: [], -// date: [], -// logos: (), -// logo_height: 50%, -// footer: [], -// ) - -// Create sections and slides with: -// #section("My Section") -// #slide(title: "My Title")[ -// Cool stuff! -// ] - -// Create focus slides with -// #focus-slide()[ -// FOCUS! -// ] - -// Add sourcecode via `codelst` with -// #sourcecode(```rust println!("hello!")```) - - -#import "@preview/polylux:0.3.1": * -#import "@preview/codelst:1.0.0": sourcecode - -// Colors -#let color-primary = rgb("#66A182") -#let color-foreground = rgb("#5c6a72") -#let color-background = rgb("#ffffff") - -// Global footer, so that all slides can access it -#let custom-footer = state("custom-footer", none) - -// Last section in the top left -#let last-section = state("last-section", none) - -// Centered box -#let simple_box(body) = align(center, box(inset: 15pt, radius: 12pt, fill: rgb("eeeeee"), body)) - -// Our own slide framework -#let slide(title: none, is_toc: false, body) = { - let header-cell = block.with( - width: 100%, - height: 100%, - above: 0pt, - below: 0pt, - breakable: false - ) - - let header = { - set align(top) - if title != none { - show: header-cell.with(fill: color-primary, inset: 1.2em) - set align(horizon) - - if not is_toc { - text(fill: color-background, size: 0.6em, last-section.display()) - text([\ ]) - } - text(fill: color-background, size: 1.2em, strong(title)) - - } else { [] } - } - - let footer = { - set text(size: 0.6em) - show: pad.with(1em) - set align(bottom) - let footer-color = color-foreground.lighten(50%) - text(fill: footer-color, custom-footer.display()) - h(1fr) - text(fill: footer-color, [#logic.logical-slide.display()/#utils.last-slide-number]) - } - - set page( - header: header, - footer: if not is_toc { footer } else [], - margin: (top: 5em, bottom: 0em), - fill: color-background, - ) - - let content = { - // show: align.with(horizon) - show: pad.with(2em) - set text(fill: color-foreground) - body - } - - logic.polylux-slide(content) - - if is_toc { - // Don't count TOC slide towards slide count - logic.logical-slide.update(0) - } -} - - -// The actual presentation main -#let presentation( - aspect-ratio: "16-9", - title: [My sample title], - occasion: [My sample occasion], - author: [Max Mustermann], - date: [01.01.1970], - logos: (), - logo_height: 50%, - footer: [], - body -) = { - set text(font: "Roboto", lang: "en", weight: "light", size: 20pt) - set strong(delta: 100) - set par(justify: true) - - set page( - paper: "presentation-" + aspect-ratio, - fill: color-background, - margin: 0em, - header: none, - footer: none, - ) - - // set footer into gloval var - custom-footer.update(footer) - - let title-slide = { - set text(fill: color-foreground, size: 20pt) - set align(center + horizon) - - block(width: 100%, inset: 2em, { - // Logo - if type(logos) == type("string") { // fix buggy behavior, with a single entry - align(center+horizon, image(logos, height: logo_height)) - } else if logos.len() == 0 { - // Do not show any logos - } else { - grid( - columns: logos.len(), - ..logos.map((logo) => (align(center+horizon, image(logo, width: logo_height)))) - ) - } - - // Title - text(size: 1.3em, strong(title)) - - line(length: 100%, stroke: .05em + color-primary) - - set text(size: .8em) - h(1fr) - if author != none { - block(spacing: 1em, author) - } - if date != none { - block(spacing: 1em, date) - } - set text(size: .8em) - - h(1fr) - if occasion != none { - set text(weight: "regular") - block(spacing: 1em, occasion) - } - - }) - } - - logic.polylux-slide(title-slide) - - // Show TOC - slide(title: "Contents", is_toc: true)[ - #utils.polylux-outline(enum-args: (tight: false,)) - ] - - body -} - - -// Section brake slides with big title printed -#let section(name) = { - set page(fill: color-primary) - let content = { - utils.register-section(name) - set align(horizon + center) - show: pad.with(20%) - set text(size: 2em, weight: "bold", fill: color-background) - name - } - - logic.polylux-slide(content) - - // Hacky way to not count section slides towards slide count - logic.logical-slide.update(i => i - 1) - - // Update last section name to display it in the following slides - last-section.update(name) -} - -// Only show the text centered and big (good for a final slide) -#let focus-slide(body) = { - set page(fill: color-foreground, margin: 2em) - set text(fill: color-background, size: 1.5em) - logic.polylux-slide(align(horizon + center, body)) -}