general cleanup, mostly around TITLE

This commit is contained in:
yosh 2024-01-10 19:13:15 -05:00
parent 9dc7acbec1
commit b92ca14e52
11 changed files with 68 additions and 29 deletions

View File

@ -1,4 +1,8 @@
<?shp
# my post titles will always be the first thing, so this is fine
read -r __post_title
[ -z "$TITLE" ] && TITLE="${__post_title#*>}" && TITLE="${TITLE%<*}"
include header-unified.shp
echo "<main>"
@ -6,8 +10,6 @@ echo "<main>"
# metadata processed before this will generate the titlebar
gen_titlebar
# my post titles will always be the first thing, so this is fine
read -r __post_title
echo "$__post_title"
# date below title

View File

@ -6,7 +6,8 @@ gen_titlebar() {
# make sure this matches /src/style/titlebars.css
set -- teal brown lgrey dgrey lblue purple white lblue dblue green pink
if [ "$__tb_color" = "random" ]; then
__d="8$(tr -Cd '[:digit:]' < /dev/urandom | dd bs=1 count=2 2>/dev/null)"
# gotta start with nonzero so printf doesn't interpret as octal
__d="1$(tr -Cd '[:digit:]' < /dev/urandom | dd bs=1 count=3 2>/dev/null)"
eval '__tb_color=${'$((__d % $# + 1))'}'
fi
printf '<div class="titlebar tb-%s" aria-hidden="true">

View File

@ -3,11 +3,15 @@
<head>
<meta charset="utf8">
<title><?shp printf '%s' "${TITLE:-~yosh}" ?></title>
<!-- sets "$TITLE | ~yosh" if TITLE exists, otherwise "~yosh" -->
<?shp
TITLE="$(escape "${TITLE:+"$TITLE | "}~yosh")"
printf "<title>%s</title>\n" "$TITLE"
?>
<link rel="stylesheet" href="/~yosh/style/style.css">
<link rel="alternate" type="application/atom+xml" title="blog atom feed" href="/~yosh/blog/feed.atom">
<?shp printf '<meta property="og:title" content="%s" />\n' "$(escape "${TITLE:-~yosh}")" ?>
<?shp printf '<meta property="og:title" content="%s" />\n' "$TITLE" ?>
<meta property="og:type" content="website" />
<?shp # printf '<meta property="og:url" content="https://unix.dog/~yosh/%s" />' "${_FILE#"${_SRCDIR}/"}" ?>
</head>

View File

@ -1,5 +1,5 @@
<?shp
TITLE="blog | ~yosh"
TITLE="blog"
include header-unified.shp
?>

View File

@ -1,55 +1,55 @@
2023-07-10_intimacy-via-jankiness.md
TITLE="intimacy via jankiness | ~yosh"
TITLE="intimacy via jankiness"
TB_TITLE="intimacy via jankiness"
POST_TIME=2023-07-10T19:30:00Z
ENTRY_UUID=366ccb73-5e9b-4c31-b8c2-2f93887f970b
2023-07-18_discourse.md
TITLE="discourse | ~yosh"
TITLE="discourse"
TB_TITLE="discourse"
POST_TIME=2023-07-18T05:55:00Z
ENTRY_UUID=7051f435-4aae-4121-8774-be41dbce9b90
2023-08-16_dreams-of-form.md
TITLE="dreams of form | ~yosh"
TITLE="dreams of form"
TB_TITLE="dreams of form"
POST_TIME=2023-08-16T03:00:00Z
ENTRY_UUID=212025c9-1f85-4b81-8553-d863ed798fcb
2023-09-07_moving-away-from-github.md
TITLE="moving away from github | ~yosh"
TITLE="moving away from github"
TB_COLOR=white
TB_TITLE=github
POST_TIME=2023-09-07T04:00:00Z
ENTRY_UUID=f843b7c3-c27b-447b-bedc-2b1d4a2f7714
2023-10-16_things-i-dont-understand.md
TITLE="things I don't understand | ~yosh"
TITLE="things I don't understand"
TB_COLOR=white
TB_TITLE="the unknowable"
POST_TIME=2023-10-16T05:30:00Z
ENTRY_UUID=935ddb27-4ca5-4840-bec9-934f39af198c
2023-11-18_thoughts_on_yash.md
TITLE="thoughts on yash | ~yosh"
TITLE="thoughts on yash"
TB_TITLE="yash"
POST_TIME=2023-11-18T01:47:00Z
ENTRY_UUID=d6659f13-4ed1-4894-8fd5-4d3a931ce45d
2023-11-20_shp-hypertext-processor.md
TITLE="shell: hypertext processor | ~yosh"
TITLE="shell: hypertext processor"
TB_TITLE="shp"
POST_TIME=2023-11-20T23:40:00Z
ENTRY_UUID=14f1934b-76d1-4dd4-ae1c-65bf0e305eea
2024-01-03_2023-music.md
TITLE="2023 music I downloaded | ~yosh"
TITLE="2023 music I downloaded"
TB_TITLE="2023 music"
POST_TIME=2024-01-03T00:00:00Z
ENTRY_UUID=ed4f7623-c7f2-4c3a-b73e-bc5eb6c46736
2024-01-09_quartus-linux.md
TITLE="quartus prime on void linux | ~yosh"
TITLE="quartus prime on void linux"
TB_TITLE="quartus"
POST_TIME=2024-01-09T02:15:00Z
ENTRY_UUID=6e4e758b-7090-4c35-b20b-a5fbacd0e0d8

View File

@ -1,5 +1,5 @@
<?shp
TITLE="info | ~yosh"
TITLE="info"
include header-unified.shp
?>

View File

@ -1,7 +1,7 @@
credits.md
TITLE="credits | ~yosh"
TITLE="credits"
TB_TITLE="credits"
my-things.md
TITLE="my things | ~yosh"
TITLE="my things"
TB_TITLE="my things"

View File

@ -1,36 +1,36 @@
index.md
TITLE="documentation and information | ~yosh"
TITLE="documentation and information"
TB_TITLE="information window"
TB_COLOR="lblue"
darktable-shenanigans.md
TITLE="darktable stuff | ~yosh"
TITLE="darktable stuff"
TB_TITLE="darktable information"
furry-weekend-atlanta.md
TITLE="furry weekend atlanta | ~yosh"
TITLE="furry weekend atlanta"
TB_TITLE="furry weekend atlanta"
TB_COLOR=purple
fursuit-making.md
TITLE="fursuit making | ~yosh"
TITLE="fursuit making"
TB_TITLE="fursuit making!!"
posix-shell-tips.md
TITLE="posix shell tips | ~yosh"
TITLE="posix shell tips"
TB_TITLE="posix shell"
printers.md
TITLE="printers | ~yosh"
TITLE="printers"
TB_TITLE="printers."
TB_COLOR=lblue
resonite-desktop-workflow.md
TITLE="resonite desktop workflow | ~yosh"
TITLE="resonite desktop workflow"
TB_TITLE="resonite"
TB_COLOR=purple
ytdl.md
TITLE="downloading from youtube | ~yosh"
TITLE="downloading from youtube"
TB_TITLE="yt-dlp"
TB_COLOR=pink

View File

@ -0,0 +1,3 @@
<ul>
<li>&#47;usr&#47;local&#47;lib in addendums</li>
</ul>

View File

@ -1,15 +1,15 @@
index.md
TITLE="void linux | ~yosh"
TITLE="void linux"
TB_TITLE="void linux"
TB_COLOR=green
SIDEBARS="top bot-void"
installation.md
TITLE="void linux | ~yosh"
TITLE="void linux"
TB_TITLE="void linux | installation"
SIDEBARS="top bot-void"
setup.md
TITLE="void linux | ~yosh"
TITLE="void linux"
TB_TITLE="void linux | setup"
SIDEBARS="top bot-void"

View File

@ -0,0 +1,29 @@
<?shTITLE="voidlinux|"./head.sh?>
<body>
<?sh./header.sh?>
<?sh./sidebar.shtopbottom?>
<main>
<?shTB_TITLE="voidlinux|xorg"./titlebar.sh?>
<h1>voidlinux-xorg</h1>
<p>bynow,youshouldstartdoingtherestofthisguideasanormaluserandusing<code>doas</code>or<code>su-</code>toinstallpackagesoreditconfigfilesthatrequireroot</p>
<p>I'llmakethisspecificpartbrief.install<code>xorg-minimal</code>,<code>xorg-fonts</code>,yourfavoriteterminalemulator(<code>rxvt-unicode</code>forme),yourfavoritewindowmanager,andthedriversforyourgraphicscard(youcanseewhichpackageyouneedtoinstallwith<code>xbps-query-Rsxf86-video</code>.somethingImuststressisthatIamonlyfamiliarwithxorgthroughthelensof"non-integrating"windowmanagers.thatmeansnooverarchingDElikekde,gnome,etc.ordisplaymanagerlikelightdm,etc.Icannotguaranteeeverythingonthispagewillapplyperfectlytothosekindsofsetups</p>
<h3>disablingrootpriviledge</h3>
</p>voidlinuxrunsxorgasrootbydefault.Idonotknowwhy.tomyknowledgethereiszerobreakagewithmysetupwhenyouconfigureittonotrunasroot.todothat,create/edit<code>/etc/X11/Xwrapper.config</code>withthefollowing:
<codeclass="codeblock">
<pre>
needs_root_rights=no
</pre>
</code>
<p>that'sit.nowxorgwillnotrunwithrootrightsandlogto<code>~/.local/share/xorg/Xorg.DISP.log</code>.followthe<ahref="https://docs.voidlinux.org/config/graphical-session/xorg.html">manual</a>foraddingyourwindowmanagerto~/.xinitrc,thenuse<code>startx</code>tolaunchanXsession</p>
<h2id="local-services">localservices</h2>
<p>settinguplocalservicesisincrediblyuseful.however,Idon'tlikethewaythemanualdescribessettingthemup.itseverelylimitswhatservicesyoucanuseasawholeandlikestobefinnickywithstufflikepipewireforme.sohere'showIsetuplocalservices</p>
<p>maketwodirectories,<code>~/.local/sv</code>and<code>~/.local/service</code>.thesewillactjustlike<code>/etc/sv</code>and<code>/var/service</code></p>
<p>inyourxinitrc,addtheline<code>runsvdir"$HOME/.local/service"&amp;</code><b>before</b>the<code>execyour-window-manager</code>line.now,wheneveryou<code>startx</code>,arunitrunsvprogramwillsuperviseyourlocalservicedirectory,justlikehowitdoesasroot.now,thisdoesn'tallowforservicesinatty,butI'vehonestlyneverneededanylocaluserspecificserviceswhileinattybefore,sothisworksforme</p>
<footer>
<h2id="pipewire">pipewire(-pulse)</h2>
</footer>
</main>
<?sh./footer.sh?>
</body>
</html>