sunshine config and todo_rollover script

This commit is contained in:
connor committed 2026-09-22 10:30:34 -04:00
1 parent 40f6cba599
commit 56c9d4a4d7
13 files changed
+845

No files matched your search

+59
View File
@@ -0,0 +1,59 @@
#!/usr/bin/env bash
# On-demand rollover of a todo note.
# By default copies yesterday's note to today, pruning finished work and retitling.
# Usage: todo_rollover [source_date] [target_date]
# source_date defaults to yesterday (YYYY-MM-DD)
# target_date defaults to today
# Set TODO_NOTES to override notes directory.
# Set TODO_PRUNE to override prune script.
set -euo pipefail
NOTES=${TODO_NOTES:-$HOME/docs/notes/todo}
PRUNE=${TODO_PRUNE:-$HOME/.local/lib/todo/prune.py}
src_date=${1:-$(date -d yesterday +%Y-%m-%d)}
target_date=${2:-$(date +%Y-%m-%d)}
src="$NOTES/$src_date.md"
dst="$NOTES/$target_date.md"
if [[ ! -f $src ]]; then
echo "todo_rollover: source note $src not found" >&2
exit 1
fi
if [[ -f $dst ]]; then
echo "todo_rollover: target $dst already exists, skipping (use --force to overwrite)" >&2
echo " Existing target was created from a previous rollover. If you really want to replace it, remove it first." >&2
exit 2
fi
mkdir -p "$NOTES"
tmp=$(mktemp)
trap 'rm -f "$tmp"' EXIT
if [[ -x $PRUNE ]]; then
python3 "$PRUNE" "$src" > "$tmp"
else
# fallback: just copy
cp "$src" "$tmp"
fi
# Retitle first line to target date, matching rollover.py behavior
# Only replace line 1 if it looks like a date heading
first_line=$(head -n1 "$tmp")
if [[ $first_line =~ ^#\ [0-9]{4}-[0-9]{2}-[0-9]{2}$ ]]; then
sed -i "1s/.*/# $target_date/" "$tmp"
else
# prepend heading
printf "# %s\n\n" "$target_date" | cat - "$tmp" > "${tmp}.new"
mv "${tmp}.new" "$tmp"
fi
# Preserve mode of source
mode=$(stat -c %a "$src")
cp -p "$src" "$dst" # to get mode
cat "$tmp" > "$dst"
echo "todo_rollover: created $dst from $src_date.md (pruned)"
+441
View File
@@ -0,0 +1,441 @@
/* md_to_pdf: structure and typography. All colour lives in themes/*.css. */
:root {
--font-body: "Bitstream Charter", "Charter", "Noto Serif", Georgia, serif;
--font-head: "Lato", "Noto Sans", "Helvetica Neue", sans-serif;
--font-mono: "JetBrainsMono Nerd Font Mono", "JetBrains Mono", "Fira Code", monospace;
--measure-leading: 1.55;
}
@page {
size: letter;
margin: 0.9in 1in 0.9in 1in;
background: var(--bg);
@top-right {
content: string(doctitle);
font-family: var(--font-head);
font-size: 7.5pt;
letter-spacing: 0.09em;
text-transform: uppercase;
color: var(--fg-faint);
vertical-align: bottom;
padding-bottom: 0.28in;
}
@bottom-right {
content: counter(page);
font-family: var(--font-head);
font-size: 8.5pt;
color: var(--fg-faint);
vertical-align: top;
padding-top: 0.3in;
}
}
@page :first {
@top-right { content: none; }
@bottom-right { content: none; }
}
html {
font-size: 10pt;
background: var(--bg);
}
body {
margin: 0;
background: var(--bg);
color: var(--fg);
font-family: var(--font-body);
font-size: 1rem;
line-height: var(--measure-leading);
font-kerning: normal;
font-variant-numeric: oldstyle-num proportional-nums;
hyphens: auto;
text-align: justify;
text-justify: inter-word;
orphans: 2;
widows: 2;
}
/* ---------- title block ---------- */
.title-block {
margin: 0 0 2.6rem;
padding-bottom: 1.1rem;
border-bottom: 2px solid var(--accent);
text-align: left;
hyphens: none;
}
.doc-title {
string-set: doctitle content(text);
font-family: var(--font-head);
font-size: 2.35rem;
font-weight: 900;
line-height: 1.12;
letter-spacing: -0.021em;
color: var(--fg-strong);
margin: 0;
padding: 0;
border: 0;
}
.doc-subtitle {
font-family: var(--font-head);
font-size: 1.16rem;
font-weight: 300;
line-height: 1.35;
color: var(--fg-muted);
margin: 0.55rem 0 0;
}
.doc-meta {
font-family: var(--font-head);
font-size: 0.72rem;
font-weight: 600;
letter-spacing: 0.13em;
text-transform: uppercase;
color: var(--fg-faint);
margin: 1.05rem 0 0;
font-variant-numeric: normal;
}
.doc-meta .sep { padding: 0 0.35em; color: var(--accent); }
/* ---------- headings ---------- */
h1, h2, h3, h4, h5, h6 {
font-family: var(--font-head);
color: var(--fg-strong);
hyphens: none;
text-align: left;
break-after: avoid;
break-inside: avoid;
font-variant-numeric: normal;
}
h1 {
font-size: 1.62rem;
font-weight: 800;
letter-spacing: -0.014em;
line-height: 1.2;
margin: 2.5rem 0 0.95rem;
padding-bottom: 0.34rem;
border-bottom: 1px solid var(--border);
}
h2 {
font-size: 1.32rem;
font-weight: 700;
letter-spacing: -0.008em;
line-height: 1.25;
margin: 2rem 0 0.6rem;
}
h3 {
font-family: var(--font-body);
font-size: 1.12rem;
font-style: italic;
font-weight: 700;
line-height: 1.3;
margin: 1.5rem 0 0.45rem;
}
h4 {
font-size: 0.84rem;
font-weight: 700;
letter-spacing: 0.075em;
text-transform: uppercase;
color: var(--fg-muted);
margin: 1.3rem 0 0.35rem;
}
h5, h6 {
font-size: 0.92rem;
font-weight: 600;
font-style: italic;
color: var(--fg-muted);
margin: 1.15rem 0 0.3rem;
}
:is(h1, h2, h3, h4, h5, h6) > .header-section-number {
color: var(--accent);
font-weight: 600;
padding-right: 0.42em;
}
/* ---------- flow ---------- */
p { margin: 0 0 0.82rem; }
:is(h1, h2, h3, h4, h5, h6) + p { margin-top: 0; }
main > :first-child { margin-top: 0; }
a {
color: var(--accent);
text-decoration: none;
overflow-wrap: break-word;
}
strong { font-weight: 700; color: var(--fg-strong); }
em { font-style: italic; }
del { color: var(--fg-muted); }
sup, sub { line-height: 0; font-size: 0.72em; }
abbr { letter-spacing: 0.04em; }
hr {
border: 0;
border-top: 1px solid var(--border);
width: 22%;
margin: 2rem auto;
}
/* ---------- lists ---------- */
ul, ol { margin: 0 0 0.82rem; padding-left: 1.45rem; }
li { margin: 0.16rem 0; }
li > ul, li > ol { margin: 0.16rem 0 0.3rem; }
ul { list-style: none; }
ul > li { position: relative; }
ul > li::before {
content: "\2013";
position: absolute;
left: -1.1rem;
color: var(--accent);
font-weight: 700;
}
ul ul > li::before { content: "\00B7"; }
ul ul ul > li::before { content: "\2013"; opacity: 0.55; }
ol { list-style: decimal; padding-left: 1.75rem; }
ol > li::marker { color: var(--accent); font-family: var(--font-head); font-weight: 600; font-size: 0.9em; }
/* task lists */
ul.task-list input[type="checkbox"] { display: none; }
ul.task-list > li::before {
content: "";
display: inline-block;
position: static;
width: 0.6em;
height: 0.6em;
margin: 0 0.5em 0 -1.1em;
border: 1.1px solid var(--fg-faint);
border-radius: 2px;
}
ul.task-list > li:has(input:checked)::before {
background: var(--accent);
border-color: var(--accent);
}
dl { margin: 0 0 0.82rem; }
dt {
font-weight: 700;
color: var(--fg-strong);
margin-top: 0.6rem;
hyphens: none;
}
dd { margin: 0.1rem 0 0.4rem 1.35rem; color: var(--fg-muted); }
/* ---------- quotes ---------- */
blockquote {
margin: 1.1rem 0;
padding: 0.15rem 0 0.15rem 1.15rem;
border-left: 2.5px solid var(--quote-bar);
color: var(--quote-fg);
break-inside: avoid;
}
blockquote > :last-child { margin-bottom: 0; }
blockquote blockquote { margin: 0.7rem 0; opacity: 0.88; }
/* ---------- code ---------- */
code, kbd, samp {
font-family: var(--font-mono);
font-size: 0.855em;
font-variant-ligatures: none;
font-variant-numeric: lining-nums tabular-nums;
}
:not(pre) > code {
background: var(--inline-code-bg);
color: var(--inline-code-fg);
font-size: 0.82em;
padding: 0.08em 0.3em;
border-radius: 3px;
overflow-wrap: break-word;
}
pre {
background: var(--code-bg);
color: var(--code-fg);
border: 1px solid var(--code-border);
border-radius: 5px;
padding: 0.72rem 0.9rem;
margin: 1.05rem 0;
line-height: 1.48;
white-space: pre-wrap;
overflow-wrap: anywhere;
tab-size: 4;
hyphens: none;
text-align: left;
orphans: 2;
widows: 2;
}
pre > code {
background: none;
padding: 0;
border-radius: 0;
font-size: 0.845rem;
color: inherit;
}
/* pandoc highlight classes */
pre code span.co, pre code span.do { color: var(--hl-comment); font-style: italic; }
pre code span.kw, pre code span.cf { color: var(--hl-keyword); font-weight: 600; }
pre code span.st, pre code span.ss, pre code span.vs, pre code span.ch, pre code span.sc { color: var(--hl-string); }
pre code span.dv, pre code span.bn, pre code span.fl { color: var(--hl-number); }
pre code span.fu { color: var(--hl-function); }
pre code span.dt, pre code span.at { color: var(--hl-type); }
pre code span.va { color: var(--hl-variable); }
pre code span.op { color: var(--hl-operator); }
pre code span.cn, pre code span.bu, pre code span.ex { color: var(--hl-builtin); }
pre code span.im, pre code span.pp { color: var(--hl-preproc); }
pre code span.an, pre code span.cv, pre code span.in { color: var(--hl-comment); }
pre code span.al, pre code span.er { color: var(--hl-error); font-weight: 600; }
pre code span.wa { color: var(--hl-error); font-style: italic; }
/* ---------- tables ---------- */
table {
width: 100%;
border-collapse: collapse;
margin: 1.2rem 0;
font-size: 0.93rem;
font-variant-numeric: lining-nums tabular-nums;
hyphens: none;
text-align: left;
break-inside: auto;
}
thead { display: table-header-group; }
tr { break-inside: avoid; }
thead th {
font-family: var(--font-head);
font-size: 0.72rem;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--fg-muted);
background: var(--table-head-bg);
border-top: 1.4px solid var(--fg-faint);
border-bottom: 1.4px solid var(--fg-faint);
padding: 0.5rem 0.6rem;
vertical-align: bottom;
}
tbody td {
padding: 0.42rem 0.6rem;
border-bottom: 1px solid var(--border-faint);
vertical-align: top;
}
tbody tr:last-child td { border-bottom: 1.4px solid var(--fg-faint); }
caption {
caption-side: bottom;
font-size: 0.85rem;
font-style: italic;
color: var(--fg-muted);
padding-top: 0.5rem;
text-align: left;
}
/* ---------- figures ---------- */
img { max-width: 100%; height: auto; border-radius: 4px; }
figure {
margin: 1.4rem 0;
text-align: center;
break-inside: avoid;
}
figcaption {
font-size: 0.85rem;
font-style: italic;
color: var(--fg-muted);
margin-top: 0.5rem;
text-align: center;
}
/* ---------- table of contents ---------- */
#TOC {
margin: 0 0 2.4rem;
padding: 0 0 1.4rem;
border-bottom: 1px solid var(--border);
hyphens: none;
text-align: left;
break-after: page;
}
#TOC .toc-title {
font-family: var(--font-head);
font-size: 0.75rem;
font-weight: 700;
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--fg-faint);
margin: 0 0 0.85rem;
}
#TOC ul { list-style: none; padding-left: 0; margin: 0; }
#TOC ul ul { padding-left: 1.15rem; }
#TOC li { margin: 0.14rem 0; }
#TOC li::before { content: none; }
#TOC a {
color: var(--fg);
font-family: var(--font-head);
font-size: 0.9rem;
}
#TOC > ul > li > a { font-weight: 700; }
#TOC ul ul a { color: var(--fg-muted); font-size: 0.85rem; }
#TOC a::after {
content: leader(". ") target-counter(attr(href), page);
color: var(--fg-faint);
font-size: 0.82rem;
font-variant-numeric: lining-nums;
}
/* ---------- footnotes ---------- */
.footnote-ref { text-decoration: none; color: var(--accent); font-weight: 600; }
.footnotes {
margin-top: 2.4rem;
padding-top: 0.9rem;
border-top: 1px solid var(--border);
font-size: 0.87rem;
color: var(--fg-muted);
}
.footnotes hr { display: none; }
.footnotes ol { padding-left: 1.45rem; }
.footnotes li::marker { color: var(--fg-faint); font-weight: 400; font-variant-numeric: lining-nums; }
.footnotes p { margin-bottom: 0.35rem; }
.footnotes .footnote-back { color: var(--fg-faint); font-weight: 400; padding-left: 0.3em; }
+61
View File
@@ -0,0 +1,61 @@
<!DOCTYPE html>
<html$if(lang)$ lang="$lang$"$else$ lang="en"$endif$>
<head>
<meta charset="utf-8">
$if(basehref)$
<base href="$basehref$">
$endif$
<title>$if(title)$$title$$else$$pagetitle$$endif$</title>
$for(css)$
<link rel="stylesheet" href="$css$">
$endfor$
<style>
@page {
size: $if(papersize)$$papersize$$else$letter$endif$;
margin: $if(margin)$$margin$$else$0.95in 1.1in$endif$;
}
html { font-size: $if(fontsize)$$fontsize$$else$11pt$endif$; }
$if(bodyfont)$
:root { --font-body: $bodyfont$; }
$endif$
$if(headfont)$
:root { --font-head: $headfont$; }
$endif$
$if(monofont)$
:root { --font-mono: $monofont$; }
$endif$
$if(ragged)$
body { text-align: left; }
$endif$
</style>
$for(header-includes)$
$header-includes$
$endfor$
</head>
<body>
$if(title)$
<header class="title-block">
<h1 class="doc-title">$title$</h1>
$if(subtitle)$
<p class="doc-subtitle">$subtitle$</p>
$endif$
$if(author)$
<p class="doc-meta">$for(author)$$author$$sep$<span class="sep">&bull;</span>$endfor$$if(date)$<span class="sep">&bull;</span>$date$$endif$</p>
$else$
$if(date)$
<p class="doc-meta">$date$</p>
$endif$
$endif$
</header>
$endif$
$if(toc)$
<nav id="TOC" role="doc-toc">
<h2 class="toc-title">$if(toc-title)$$toc-title$$else$Contents$endif$</h2>
$table-of-contents$
</nav>
$endif$
<main>
$body$
</main>
</body>
</html>
+31
View File
@@ -0,0 +1,31 @@
/* dracula */
:root {
--bg: #282a36;
--fg: #f8f8f2;
--fg-strong: #ffffff;
--fg-muted: #9ba0bd;
--fg-faint: #6272a4;
--accent: #bd93f9;
--border: #3d4055;
--border-faint: #343747;
--code-bg: #21222c;
--code-fg: #f8f8f2;
--code-border: #3d4055;
--inline-code-bg: #343747;
--inline-code-fg: #f1fa8c;
--quote-bar: #4d5273;
--quote-fg: #d5d7e3;
--table-head-bg: #2f3140;
--hl-comment: #6272a4;
--hl-keyword: #ff79c6;
--hl-string: #f1fa8c;
--hl-number: #bd93f9;
--hl-function: #50fa7b;
--hl-type: #8be9fd;
--hl-variable: #ffb86c;
--hl-operator: #ff79c6;
--hl-builtin: #ffb86c;
--hl-preproc: #ff79c6;
--hl-error: #ff5555;
}
+31
View File
@@ -0,0 +1,31 @@
/* gruvbox */
:root {
--bg: #282828;
--fg: #ebdbb2;
--fg-strong: #fbf1c7;
--fg-muted: #bdae93;
--fg-faint: #928374;
--accent: #83a598;
--border: #3c3836;
--border-faint: #32302f;
--code-bg: #1d2021;
--code-fg: #ebdbb2;
--code-border: #3c3836;
--inline-code-bg: #32302f;
--inline-code-fg: #d3869b;
--quote-bar: #504945;
--quote-fg: #d5c4a1;
--table-head-bg: #32302f;
--hl-comment: #928374;
--hl-keyword: #fb4934;
--hl-string: #b8bb26;
--hl-number: #d3869b;
--hl-function: #8ec07c;
--hl-type: #fabd2f;
--hl-variable: #83a598;
--hl-operator: #ebdbb2;
--hl-builtin: #fe8019;
--hl-preproc: #8ec07c;
--hl-error: #fb4934;
}
+31
View File
@@ -0,0 +1,31 @@
/* ink */
:root {
--bg: #14161b;
--fg: #c9cdd6;
--fg-strong: #eef1f6;
--fg-muted: #8f96a3;
--fg-faint: #5d6470;
--accent: #7aa2f7;
--border: #2a2e38;
--border-faint: #21252d;
--code-bg: #1a1d24;
--code-fg: #c9cdd6;
--code-border: #272b35;
--inline-code-bg: #232733;
--inline-code-fg: #e0af68;
--quote-bar: #3d4450;
--quote-fg: #a2a9b6;
--table-head-bg: #1a1d24;
--hl-comment: #6b7285;
--hl-keyword: #bb9af7;
--hl-string: #9ece6a;
--hl-number: #ff9e64;
--hl-function: #7aa2f7;
--hl-type: #2ac3de;
--hl-variable: #f7768e;
--hl-operator: #89ddff;
--hl-builtin: #e0af68;
--hl-preproc: #bb9af7;
--hl-error: #f7768e;
}
+31
View File
@@ -0,0 +1,31 @@
/* latte */
:root {
--bg: #eff1f5;
--fg: #4c4f69;
--fg-strong: #383a4a;
--fg-muted: #6c6f85;
--fg-faint: #8c8fa1;
--accent: #1e66f5;
--border: #ccd0da;
--border-faint: #dce0e8;
--code-bg: #e6e9ef;
--code-fg: #4c4f69;
--code-border: #ccd0da;
--inline-code-bg: #dce0e8;
--inline-code-fg: #ea76cb;
--quote-bar: #bcc0cc;
--quote-fg: #5c5f77;
--table-head-bg: #e6e9ef;
--hl-comment: #8c8fa1;
--hl-keyword: #8839ef;
--hl-string: #40a02b;
--hl-number: #fe640b;
--hl-function: #1e66f5;
--hl-type: #df8e1d;
--hl-variable: #d20f39;
--hl-operator: #04a5e5;
--hl-builtin: #fe640b;
--hl-preproc: #8839ef;
--hl-error: #d20f39;
}
+31
View File
@@ -0,0 +1,31 @@
/* mocha */
:root {
--bg: #1e1e2e;
--fg: #cdd6f4;
--fg-strong: #e6e9f5;
--fg-muted: #a6adc8;
--fg-faint: #7f849c;
--accent: #89b4fa;
--border: #313244;
--border-faint: #292a3b;
--code-bg: #181825;
--code-fg: #cdd6f4;
--code-border: #313244;
--inline-code-bg: #313244;
--inline-code-fg: #f9e2af;
--quote-bar: #45475a;
--quote-fg: #bac2de;
--table-head-bg: #26273a;
--hl-comment: #7f849c;
--hl-keyword: #cba6f7;
--hl-string: #a6e3a1;
--hl-number: #fab387;
--hl-function: #89b4fa;
--hl-type: #f9e2af;
--hl-variable: #f38ba8;
--hl-operator: #89dceb;
--hl-builtin: #fab387;
--hl-preproc: #cba6f7;
--hl-error: #f38ba8;
}
+31
View File
@@ -0,0 +1,31 @@
/* nord */
:root {
--bg: #2e3440;
--fg: #d8dee9;
--fg-strong: #eceff4;
--fg-muted: #9aa5b6;
--fg-faint: #6b7688;
--accent: #88c0d0;
--border: #3b4252;
--border-faint: #353c4a;
--code-bg: #2b303b;
--code-fg: #d8dee9;
--code-border: #3b4252;
--inline-code-bg: #3b4252;
--inline-code-fg: #ebcb8b;
--quote-bar: #4c566a;
--quote-fg: #c3ccda;
--table-head-bg: #333a47;
--hl-comment: #6b7688;
--hl-keyword: #81a1c1;
--hl-string: #a3be8c;
--hl-number: #b48ead;
--hl-function: #88c0d0;
--hl-type: #8fbcbb;
--hl-variable: #d8dee9;
--hl-operator: #81a1c1;
--hl-builtin: #ebcb8b;
--hl-preproc: #5e81ac;
--hl-error: #bf616a;
}
+31
View File
@@ -0,0 +1,31 @@
/* paper */
:root {
--bg: #ffffff;
--fg: #23262b;
--fg-strong: #0f1115;
--fg-muted: #5a6069;
--fg-faint: #9aa1ab;
--accent: #1b5e8c;
--border: #dfe2e6;
--border-faint: #eceef1;
--code-bg: #f7f8fa;
--code-fg: #23262b;
--code-border: #e4e7ea;
--inline-code-bg: #f0f2f5;
--inline-code-fg: #9b2c5a;
--quote-bar: #c8ced6;
--quote-fg: #4b5159;
--table-head-bg: #fafbfc;
--hl-comment: #8a8f98;
--hl-keyword: #a626a4;
--hl-string: #3f8e3e;
--hl-number: #986801;
--hl-function: #3068d8;
--hl-type: #b07d02;
--hl-variable: #d1453b;
--hl-operator: #454850;
--hl-builtin: #0184bc;
--hl-preproc: #a626a4;
--hl-error: #d1453b;
}
+31
View File
@@ -0,0 +1,31 @@
/* solarized */
:root {
--bg: #fdf6e3;
--fg: #586e75;
--fg-strong: #073642;
--fg-muted: #657b83;
--fg-faint: #93a1a1;
--accent: #268bd2;
--border: #e3dcc4;
--border-faint: #eee8d5;
--code-bg: #f4eeda;
--code-fg: #586e75;
--code-border: #e2dbc3;
--inline-code-bg: #eee8d5;
--inline-code-fg: #d33682;
--quote-bar: #d5cdb4;
--quote-fg: #657b83;
--table-head-bg: #f5efdc;
--hl-comment: #93a1a1;
--hl-keyword: #859900;
--hl-string: #2aa198;
--hl-number: #d33682;
--hl-function: #268bd2;
--hl-type: #b58900;
--hl-variable: #cb4b16;
--hl-operator: #586e75;
--hl-builtin: #cb4b16;
--hl-preproc: #6c71c4;
--hl-error: #dc322f;
}
+13
View File
@@ -25,3 +25,16 @@ csrf_allowed_origins = https://10.0.0.2:47990,https://mainframe:47990,https://lo
# Web UI reachable from the LAN, not just this machine.
origin_web_ui_allowed = lan
# Emulate an Xbox 360 pad regardless of what the client actually holds.
# The default (auto) mirrors the client's controller, which for a DualSense
# means Sunshine creates a PlayStation-style HID pad. Steam Big Picture claims
# that pad through its own HID driver ("Controller 0 mapping uses xinput:
# false" in ~/.local/share/Steam/logs/controller.txt) and hands input to games
# only via the Steam Input API. Risk of Rain 2 uses Rewired/XInput and does not
# speak Steam Input, so it saw a grabbed device and nothing else: the pad works
# in the Steam UI and is dead the moment a game starts.
#
# x360 is the one type Wine's xinput maps directly, so Proton games get a
# working pad whether or not Steam Input is in the way.
gamepad = x360
+23
View File
@@ -29,6 +29,29 @@ exec systemctl --user import-environment WAYLAND_DISPLAY DISPLAY SWAYSOCK XDG_CU
# though nobody is sitting at this machine. Without them the Desktop app
# streams an empty screen with no way to open anything.
set $mod Mod4
# Floating, not tiling. Nobody sits at this machine and nothing here is a
# workstation: the stream shows one thing at a time, usually Steam fullscreen.
# Tiling only ever meant a dialog box stealing half the screen. Both criteria
# are needed - app_id matches Wayland clients, class matches Xwayland ones,
# and Steam is an X client.
for_window [app_id=".*"] floating enable
for_window [class=".*"] floating enable
# Title bars are the handle you grab with the mouse, so floating windows keep
# a real border rather than the thin default.
default_floating_border normal 2
# Super+drag moves a window, Super+right-drag resizes it. Without this the
# only way to move a window is the title bar, which a fullscreen app has none of.
floating_modifier $mod normal
# The stream forwards a mouse, so pointing and clicking is the primary way
# around; these are for when the pointer is not enough.
bindsym Alt+Tab focus next
bindsym Alt+Shift+Tab focus prev
bindsym $mod+f fullscreen
bindsym $mod+Return exec kitty
bindsym $mod+d exec wofi --show drun
bindsym $mod+Shift+q kill