dots


commit
15ee553
parent
52e9eeb
author
xxwhirlpool
date
2025-10-23 17:29:32 -0400 EDT
cleanup
7 files changed,  +7, -299
M config/.config/conky/themes/strip-clear/dark-strip-l-clear-1920-1080.conf
+1, -1
1@@ -66,7 +66,7 @@ ${goto 24}${color1}Uptime:    ${color1}$uptime
2 
3 ${goto 24}${color1}${font1}Memory ${voffset 8}${font}  
4 ${goto 24}${color1}RAM:  ${color1}$mem/$memmax ${alignr}$memperc% ${color1}${membar 4, 124}  
5-${goto 24}${color1}Swap: ${color1}$swap/$swapmax ${alignr}$swapperc% ${color1}${swapbar 4, 124}
6+${goto 24}${color1}Swap: ${color1}$swap/$swapmax ${alignr}$swapperc% ${color1}${swapbar 4, 124}${voffset 8}  
7 
8 ${goto 24}${color1}${font1}Now Playing ${font}${voffset 8}
9 ${color1}${font1}${execi 5 (/home/kat/Documents/lastfm.sh | sed 's/^/  /')}
M config/.local/bin/md2html
+3, -3
 1@@ -9,13 +9,13 @@
 2 # edit to suit your system
 3 
 4 # functions
 5-read() {
 6+fromstdin() {
 7 	# declare some vars
 8 	MDFILE="/tmp/$(openssl rand -hex 5).md"
 9 	HTMLFILE="${MDFILE%.*}.html"
10 	HTMLFILE_FINAL="${HTMLFILE%.*}_final.html"
11 	# prompt user to paste markdown formatted text, then write it to a temp file
12-	gum write > "$MDFILE"
13+	gum write --header="paste MD-formatted text below" > "$MDFILE"
14 	# the conversion!
15 	pandoc --no-highlight --wrap=none "$MDFILE" -o "$HTMLFILE"
16 	# swap unicode/HTML entities to their actual characters
17@@ -49,7 +49,7 @@ fromfile() {
18 choice() {
19 	choose=$(gum choose "paste" "file")
20 	case "$choose" in
21-		*paste) read ;;
22+		*paste) fromstdin ;;
23 		*file) fromfile ;;
24 		*) exit ;;
25 	esac
D scripts/Scripts/md2html.css
+0, -204
  1@@ -1,204 +0,0 @@
  2-@import url('https://unpkg.com/@catppuccin/palette/css/catppuccin.css');
  3-    html {
  4-      color: var(--ctp-frappe-base);
  5-      background-color: var(--ctp-latte-base);
  6-    }
  7-    body {
  8-      margin: 0;
  9-      min-height: 100vh;
 10-      line-height: 1.7;
 11-      font-family: Arial, sans-serif;
 12-      hyphens: auto;
 13-      overflow-wrap: break-word;
 14-      text-rendering: optimizeLegibility;
 15-      font-kerning: normal;
 16-    }
 17-    @media (max-width: 600px) {
 18-      body {
 19-        font-size: 0.9em;
 20-        padding: 12px;
 21-        max-width: 100%;
 22-      }
 23-      h1 {
 24-        font-size: 1.8em;
 25-      }
 26-    }
 27-    @media print {
 28-      html {
 29-        background-color: white;
 30-      }
 31-      body {
 32-        background-color: transparent;
 33-        color: black;
 34-        font-size: 12pt;
 35-      }
 36-      p, h2, h3 {
 37-        orphans: 3;
 38-        widows: 3;
 39-      }
 40-      h2, h3, h4 {
 41-        page-break-after: avoid;
 42-      }
 43-    }
 44-    p {
 45-      margin: 1em 0;
 46-    }
 47-    a, a:link, a:visited, a:link:visited {
 48-      color: var(--ctp-latte-lavender);
 49-    }
 50-    a:hover {
 51-      text-decoration: none;
 52-      color: var(--ctp-latte-text);
 53-    }
 54-    img {
 55-      max-width: 100%;
 56-      display: block;
 57-    }
 58-    svg {
 59-      height: auto;
 60-      max-width: 100%;
 61-    }
 62-    h1, h2, h3, h4, h5, h6 {
 63-      margin-top: 1.4em;
 64-      color: var(--ctp-frappe-surface0);
 65-      line-height: 1.1;
 66-    }
 67-    h5, h6 {
 68-      font-size: 1em;
 69-      font-style: italic;
 70-    }
 71-    h6 {
 72-      font-weight: normal;
 73-    }
 74-    ol, ul {
 75-      padding-left: 1.7em;
 76-      margin-top: 1em;
 77-    }
 78-    li > ol, li > ul {
 79-      margin-top: 0;
 80-    }
 81-    blockquote {
 82-      margin: 1em 0 1em 1.7em;
 83-      padding-left: 1em;
 84-      border-left: 2px solid #e6e6e6;
 85-      color: #606060;
 86-    }
 87-    code {
 88-      font-family: Menlo, Monaco, Consolas, 'Lucida Console', monospace;
 89-      font-size: 85%;
 90-      margin: 0;
 91-      hyphens: manual;
 92-    }
 93-    pre {
 94-      margin: 1em 0;
 95-      overflow: auto;
 96-      padding: 1em;
 97-      background: #303446;
 98-    }
 99-    pre code {
100-      padding: 0;
101-      overflow: visible;
102-      overflow-wrap: normal;
103-    }
104-    .sourceCode {
105-     background-color: transparent;
106-     overflow: visible;
107-    }
108-    hr {
109-      background-color: #1a1a1a;
110-      border: none;
111-      height: 1px;
112-      margin: 1em 0;
113-    }
114-    table {
115-      margin: 1em 0;
116-      border-collapse: collapse;
117-      width: 100%;
118-      overflow-x: auto;
119-      display: block;
120-      font-variant-numeric: lining-nums tabular-nums;
121-    }
122-    table caption {
123-      margin-bottom: 0.75em;
124-    }
125-    tbody {
126-      margin-top: 0.5em;
127-      border-top: 1px solid #1a1a1a;
128-      border-bottom: 1px solid #1a1a1a;
129-    }
130-    th {
131-      border-top: 1px solid #1a1a1a;
132-      padding: 0.25em 0.5em 0.25em 0.5em;
133-    }
134-    td {
135-      padding: 0.125em 0.5em 0.25em 0.5em;
136-    }
137-    header {
138-      margin-bottom: 4em;
139-      text-align: center;
140-    }
141-    #TOC li {
142-      list-style: none;
143-    }
144-    #TOC ul {
145-      padding-left: 1.3em;
146-    }
147-    #TOC > ul {
148-      padding-left: 0;
149-    }
150-    #TOC a:not(:hover) {
151-      text-decoration: none;
152-    }
153-    code{white-space: pre-wrap;}
154-    span.smallcaps{font-variant: small-caps;}
155-    div.columns{display: flex; gap: min(4vw, 1.5em);}
156-    div.column{flex: auto; overflow-x: auto;}
157-    div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
158-    /* The extra [class] is a hack that increases specificity enough to
159-       override a similar rule in reveal.js */
160-    ul.task-list[class]{list-style: none;}
161-    ul.task-list li input[type="checkbox"] {
162-      font-size: inherit;
163-      width: 0.8em;
164-      margin: 0 0.8em 0.2em -1.6em;
165-      vertical-align: middle;
166-    }
167-    .display.math{display: block; text-align: center; margin: 0.5rem auto;}
168-    
169-    ::selection {
170-      color: var(--ctp-latte-surface1);
171-      background: var(--ctp-frappe-crust);
172-    }
173-    
174-	.flow > * + * {
175-  	margin-block-start: var(--flow-space, 1em);
176-	}
177-
178-	:is(h1, h2, h3, blockquote) {
179-  	--flow-space: 1.5em;
180-	}
181-	
182-	:is(h1, h2, h3) + * {
183-  	--flow-space: 0.5em;
184-	}
185-
186-	article > * {
187-		max-width: 65ch;
188-	}
189-	
190-	article {
191-		max-width: 65ch;
192-		margin-inline: auto;
193-	}
194-	
195-	blockquote {
196-		max-width: 50ch;
197-	}
198-	
199-	h1 {
200-		max-width: 20ch;
201-	}
202-	
203-	h2,h3 {
204-		max-width: 28ch;
205-	}
D scripts/Scripts/md2html.html
+0, -88
 1@@ -1,88 +0,0 @@
 2-<!DOCTYPE html>
 3-<html lang="en">
 4-<head>
 5-  <meta charset="utf-8" />
 6-  <meta name="generator" content="pandoc" />
 7-  <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
 8-$for(author-meta)$
 9-  <meta name="author" content="$author-meta$" />
10-$endfor$
11-$if(date-meta)$
12-  <meta name="dcterms.date" content="$date-meta$" />
13-$endif$
14-$if(keywords)$
15-  <meta name="keywords" content="$for(keywords)$$keywords$$sep$, $endfor$" />
16-$endif$
17-$if(description-meta)$
18-  <meta name="description" content="$description-meta$" />
19-$endif$
20-  <title>$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$</title>
21-  
22-  <link rel="stylesheet" href="https://unpkg.com/@catppuccin/highlightjs@1.0.1/css/catppuccin-frappe.css">
23-  
24-  <link rel="stylesheet" href="../md2html.css">
25-  
26-  <script src="https://unpkg.com/@highlightjs/cdn-assets@11.9.0/highlight.min.js"></script>
27-  
28-  <script>
29-  document.getElementById("sourceCode").classList.add("language ");
30-  </script>
31-  
32-$for(header-includes)$
33-  $header-includes$
34-$endfor$
35-$if(math)$
36-  $math$
37-$endif$
38-</head>
39-<body>
40-<script>hljs.highlightAll();</script>
41-<article class="flow">
42-$for(include-before)$
43-$include-before$
44-$endfor$
45-$if(title)$
46-<header id="title-block-header">
47-<h1 class="title">$title$</h1>
48-$if(subtitle)$
49-<p class="subtitle">$subtitle$</p>
50-$endif$
51-<p>
52-$if(date)$
53-published <span class="date">$date$</span>
54-$endif$
55-</p>
56-<p>
57-$if(lastmodified)$
58-last edited <span class="date">$lastmodified$</span>
59-$endif$
60-</p>
61-<p>
62-$for(author)$
63-by <a href="https://girlonthemoon.xyz/"><span class="author">$author$</span></a>
64-$endfor$
65-</p>
66-$if(abstract)$
67-<div class="abstract">
68-<div class="abstract-title">$abstract-title$</div>
69-$abstract$
70-</div>
71-$endif$
72-</header>
73-$endif$
74-$if(toc)$
75-<nav id="$idprefix$TOC" role="doc-toc">
76-$if(toc-title)$
77-<h2 id="$idprefix$toc-title">$toc-title$</h2>
78-$endif$
79-$table-of-contents$
80-</nav>
81-$endif$
82-
83-$body$
84-$for(include-after)$
85-$include-after$
86-$endfor$
87-</article>
88-</body>
89-</html>
R scripts/Scripts/md2html_test/md2html.css => scripts/Scripts/pandoc/md2html.css
+0, -0
R scripts/Scripts/md2html_test/md2html.html => scripts/Scripts/pandoc/md2html.html
+0, -0
R scripts/Scripts/md2html => scripts/Scripts/pandoc/md2page
+3, -3
 1@@ -1,9 +1,9 @@
 2-#!/bin/bash
 3+#!/usr/bin/env bash
 4 
 5 FILE=$(gum input --placeholder "without an extension")
 6 
 7-HTML="/home/kat/Documents/Code/Templates/pandoc/md2html.html"
 8+HTML="./md2html.html"
 9 
10-CSS="/home/kat/Documents/Code/Templates/pandoc/md2html.css"
11+CSS="./md2html.css"
12 
13 pandoc --standalone "$FILE.md" --template=$HTML --no-highlight -o "$FILE.html"