Set viewport using org-mode

This commit is contained in:
Akko
2022-03-18 19:59:11 +01:00
parent 9a4c4736cb
commit fd0f4f3946
6 changed files with 106 additions and 106 deletions

View File

@@ -1,9 +1,9 @@
<!DOCTYPE html>
<html lang="en">
<head>
<!-- 2022-03-18 Fri 19:50 -->
<!-- 2022-03-18 Fri 19:59 -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="viewport" content="width=500, initial-scale=1" />
<title>About</title>
<meta name="generator" content="Org Mode" />
<style>

View File

@@ -1,9 +1,9 @@
<!DOCTYPE html>
<html lang="en">
<head>
<!-- 2022-03-18 Fri 19:50 -->
<!-- 2022-03-18 Fri 19:59 -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="viewport" content="width=500, initial-scale=1" />
<title>Index</title>
<meta name="generator" content="Org Mode" />
<style>
@@ -210,9 +210,9 @@ cute blog <br>
!
</p>
<div id="outline-container-orgf9f0a38" class="outline-2">
<h2 id="orgf9f0a38">Here&rsquo;s some headers</h2>
<div class="outline-text-2" id="text-orgf9f0a38">
<div id="outline-container-org5c04267" class="outline-2">
<h2 id="org5c04267">Here&rsquo;s some headers</h2>
<div class="outline-text-2" id="text-org5c04267">
<ol class="org-ol">
<li>chuu</li>
<li><p>
@@ -240,9 +240,9 @@ daisuki
**</b>
</p>
</div>
<div id="outline-container-org9da892f" class="outline-5">
<h5 id="org9da892f">meme</h5>
<div class="outline-text-5" id="text-org9da892f">
<div id="outline-container-orga84f992" class="outline-5">
<h5 id="orga84f992">meme</h5>
<div class="outline-text-5" id="text-orga84f992">
<table>
@@ -278,16 +278,16 @@ daisuki
</div>
</div>
<div id="outline-container-org8e8b506" class="outline-2">
<h2 id="org8e8b506">memes</h2>
<div class="outline-text-2" id="text-org8e8b506">
<div id="outline-container-org1d0066a" class="outline-2">
<h2 id="org1d0066a">memes</h2>
<div class="outline-text-2" id="text-org1d0066a">
</div>
<div id="outline-container-org66904c1" class="outline-3">
<h3 id="org66904c1"><span class="done DONE">DONE</span> chuu bf</h3>
<div id="outline-container-org70d55d7" class="outline-3">
<h3 id="org70d55d7"><span class="done DONE">DONE</span> chuu bf</h3>
</div>
<div id="outline-container-orgf931e19" class="outline-3">
<h3 id="orgf931e19"><span class="todo TODO">TODO</span> awawahehehej~~~</h3>
<div class="outline-text-3" id="text-orgf931e19">
<div id="outline-container-orgb39c92e" class="outline-3">
<h3 id="orgb39c92e"><span class="todo TODO">TODO</span> awawahehehej~~~</h3>
<div class="outline-text-3" id="text-orgb39c92e">
<p>
~
</p>

View File

@@ -1,9 +1,9 @@
<!DOCTYPE html>
<html lang="en">
<head>
<!-- 2022-03-18 Fri 19:50 -->
<!-- 2022-03-18 Fri 19:59 -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="viewport" content="width=500, initial-scale=1" />
<title>Emacs Log 1: This Blog</title>
<meta name="generator" content="Org Mode" />
<style>
@@ -204,9 +204,9 @@
</div>
<div id="content" class="content">
<div id="outline-container-org33f9376" class="outline-2">
<h2 id="org33f9376">Emacs Log 1: This Blog</h2>
<div class="outline-text-2" id="text-org33f9376">
<div id="outline-container-org53557a6" class="outline-2">
<h2 id="org53557a6">Emacs Log 1: This Blog</h2>
<div class="outline-text-2" id="text-org53557a6">
<p>
<span class="underline"><i><b>WARNING:</b></i></span> This blog post is still under construction!
</p>
@@ -217,9 +217,9 @@ This blog is built on top of <code>org-mode</code>&rsquo;s publishing capabiliti
</div>
</div>
<div id="outline-container-org660c9ca" class="outline-2">
<h2 id="org660c9ca">Appendix A: config.el snippet</h2>
<div class="outline-text-2" id="text-org660c9ca">
<div id="outline-container-orgbb894dc" class="outline-2">
<h2 id="orgbb894dc">Appendix A: config.el snippet</h2>
<div class="outline-text-2" id="text-orgbb894dc">
<div class="org-src-container">
<pre class="src src-emacs-lisp"><span class="org-rainbow-delimiters-depth-1">(</span><span class="org-constant">require</span> <span class="org-highlight-quoted-quote">'</span><span class="org-constant">ox-publish</span><span class="org-rainbow-delimiters-depth-1">)</span>

View File

@@ -1,9 +1,9 @@
<!DOCTYPE html>
<html lang="en">
<head>
<!-- 2022-03-18 Fri 19:50 -->
<!-- 2022-03-18 Fri 19:59 -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="viewport" content="width=500, initial-scale=1" />
<title>Framework Laptop Review</title>
<meta name="generator" content="Org Mode" />
<style>
@@ -204,13 +204,13 @@
</div>
<div id="content" class="content">
<div id="outline-container-org23a8d25" class="outline-2">
<h2 id="org23a8d25">My Experience with the Framework Laptop</h2>
<div class="outline-text-2" id="text-org23a8d25">
<div id="outline-container-orgbc69aa7" class="outline-2">
<h2 id="orgbc69aa7">My Experience with the Framework Laptop</h2>
<div class="outline-text-2" id="text-orgbc69aa7">
</div>
<div id="outline-container-org1b45b36" class="outline-3">
<h3 id="org1b45b36">Ordering</h3>
<div class="outline-text-3" id="text-org1b45b36">
<div id="outline-container-org64cd0b8" class="outline-3">
<h3 id="org64cd0b8">Ordering</h3>
<div class="outline-text-3" id="text-org64cd0b8">
<p>
I&rsquo;d been eyeing the <a href="https:frame.work">Framework laptop</a> since somewhere in October 2021, but the EU release got delayed and they were very hesitant to give time estimates. I only managed to get my hands on it in late February, and I ended up having to have it delivered to France. I understand the difficulty of setting up logistics especially these days, but I broke my previous laptop and being stuck in limbo like this was not fun.
</p>
@@ -222,13 +222,13 @@ I asked their customer service to make a small change to the delivery address, b
</div>
</div>
<div id="outline-container-orgc76e92f" class="outline-3">
<h3 id="orgc76e92f">Set-up</h3>
<div class="outline-text-3" id="text-orgc76e92f">
<div id="outline-container-org3764bde" class="outline-3">
<h3 id="org3764bde">Set-up</h3>
<div class="outline-text-3" id="text-org3764bde">
</div>
<div id="outline-container-org89e026e" class="outline-4">
<h4 id="org89e026e">Hardware</h4>
<div class="outline-text-4" id="text-org89e026e">
<div id="outline-container-org42a537a" class="outline-4">
<h4 id="org42a537a">Hardware</h4>
<div class="outline-text-4" id="text-org42a537a">
<p>
I got the DIY edition with the (lowest-end) i5-1135G7 CPU, 2x16GB RAM. I brought my own 1TB SSD. The higher spec CPUs didn&rsquo;t seem worth the money to me. The RAM is probably overkill.
</p>
@@ -259,9 +259,9 @@ The more you look at it, the nicer it gets!
</p>
</div>
</div>
<div id="outline-container-orgda79e61" class="outline-4">
<h4 id="orgda79e61">Software</h4>
<div class="outline-text-4" id="text-orgda79e61">
<div id="outline-container-orgfd832e7" class="outline-4">
<h4 id="orgfd832e7">Software</h4>
<div class="outline-text-4" id="text-orgfd832e7">
<p>
I installed Gentoo GNU+Linux on the laptop, just like I have on my desktop. I used an Ubuntu live CD as the install medium together with the Gentoo stage3 tarball, and it worked well. I didn&rsquo;t really have to jump through any laptop-specific hoops, it was a very nice experience. I did use the dist-kernel rather than configuring my own.
</p>
@@ -271,9 +271,9 @@ The laptop held up well during compiling. It&rsquo;s not as fast as a desktop of
</p>
</div>
<div id="outline-container-orgdb08d1e" class="outline-5">
<h5 id="orgdb08d1e">Display scaling</h5>
<div class="outline-text-5" id="text-orgdb08d1e">
<div id="outline-container-orgdaf47bb" class="outline-5">
<h5 id="orgdaf47bb">Display scaling</h5>
<div class="outline-text-5" id="text-orgdaf47bb">
<p>
Simply setting <code>Xft.dpi: 192</code> in .Xresources was enough for the vast majority of applications to use 2x scaling, which looks very good on this display. This is on X11 obviously; I don&rsquo;t use Wayland.
</p>
@@ -283,36 +283,36 @@ The odd application requires its own scaling setting. Rofi requires setting <cod
</p>
</div>
</div>
<div id="outline-container-org09abb34" class="outline-5">
<h5 id="org09abb34">Display manager</h5>
<div class="outline-text-5" id="text-org09abb34">
<div id="outline-container-org2924a82" class="outline-5">
<h5 id="org2924a82">Display manager</h5>
<div class="outline-text-5" id="text-org2924a82">
<p>
I used SDDM which works very well. I wanted to go for something a bit fancier looking, and this delivers. I don&rsquo;t usually use things in the whole QT ecosystem, so it&rsquo;s refreshing.
</p>
</div>
</div>
<div id="outline-container-orgd85f27c" class="outline-5">
<h5 id="orgd85f27c">Hibernate/suspend-to-disk</h5>
<div class="outline-text-5" id="text-orgd85f27c">
<div id="outline-container-org2fdbcd9" class="outline-5">
<h5 id="org2fdbcd9">Hibernate/suspend-to-disk</h5>
<div class="outline-text-5" id="text-org2fdbcd9">
<p>
This required setting up a swap file and setting a kernel command line parameter to refer to it, but it was easy to do. It works well. I&rsquo;ve observed the laptop auto-hibernating when the battery runs out, but it doesn&rsquo;t do this reliably, so I should probably configure it myself.
</p>
</div>
</div>
<div id="outline-container-org879b891" class="outline-5">
<h5 id="org879b891"><a href="http://guake-project.org/">Guake</a>-like transient terminal</h5>
<div class="outline-text-5" id="text-org879b891">
<div id="outline-container-org88619e7" class="outline-5">
<h5 id="org88619e7"><a href="http://guake-project.org/">Guake</a>-like transient terminal</h5>
<div class="outline-text-5" id="text-org88619e7">
<p>
Using some <code>fish</code> scripts, <code>bspwm</code>, <code>picom</code> and <code>xst</code> I rigged up a transient, transparent terminal to use for quick shell jobs. I used the scripts and config file in <a href="#org329b7c8">Appendix A</a> to do this. The implementation is a bit hacky, and it&rsquo;s not impossible to break, but it serves my purposes well (and more important, it was fun to make)!
Using some <code>fish</code> scripts, <code>bspwm</code>, <code>picom</code> and <code>xst</code> I rigged up a transient, transparent terminal to use for quick shell jobs. I used the scripts and config file in <a href="#orga48c283">Appendix A</a> to do this. The implementation is a bit hacky, and it&rsquo;s not impossible to break, but it serves my purposes well (and more important, it was fun to make)!
</p>
</div>
</div>
<div id="outline-container-orgf6ca54d" class="outline-5">
<h5 id="orgf6ca54d">Wallpaper-setting script</h5>
<div class="outline-text-5" id="text-orgf6ca54d">
<div id="outline-container-org29c165d" class="outline-5">
<h5 id="org29c165d">Wallpaper-setting script</h5>
<div class="outline-text-5" id="text-org29c165d">
<p>
I wrote a script to set a random wallpaper.
</p>
@@ -339,11 +339,11 @@ I wrote a script to set a random wallpaper.
</div>
</div>
<div id="outline-container-org2dab9ab" class="outline-5">
<h5 id="org2dab9ab">Lockscreen</h5>
<div class="outline-text-5" id="text-org2dab9ab">
<div id="outline-container-orga45f0c8" class="outline-5">
<h5 id="orga45f0c8">Lockscreen</h5>
<div class="outline-text-5" id="text-orga45f0c8">
<p>
I hacked together some <a href="#org21fd1dc">pretty crappy code</a> to lock the screen using <code>i3lock</code>, with my wallpaper composed with a little lock icon as the background. Very overengineered.
I hacked together some <a href="#orgeda57f7">pretty crappy code</a> to lock the screen using <code>i3lock</code>, with my wallpaper composed with a little lock icon as the background. Very overengineered.
</p>
<p width="60%" class="center">
@@ -357,34 +357,34 @@ Is there a better lockscreen out there that will let me set my own image as the
</div>
</div>
<div id="outline-container-org5428627" class="outline-5">
<h5 id="org5428627">TODO</h5>
<div class="outline-text-5" id="text-org5428627">
<div id="outline-container-org1d054a3" class="outline-5">
<h5 id="org1d054a3">TODO</h5>
<div class="outline-text-5" id="text-org1d054a3">
</div>
<ul class="org-ul">
<li><a id="org55a5cfa"></a>Battery level notifications<br></li>
<li><a id="org32c2c2d"></a>sleep-then-hibernate<br></li>
<li><a id="orgf273d61"></a>Battery tuning<br></li>
<li><a id="orgef1cabc"></a>Battery level notifications<br></li>
<li><a id="orgb23beb7"></a>sleep-then-hibernate<br></li>
<li><a id="org0354298"></a>Battery tuning<br></li>
</ul>
</div>
</div>
</div>
<div id="outline-container-orga3f6d9a" class="outline-3">
<h3 id="orga3f6d9a">Impressions</h3>
<div class="outline-text-3" id="text-orga3f6d9a">
<div id="outline-container-orgc0ec95c" class="outline-3">
<h3 id="orgc0ec95c">Impressions</h3>
<div class="outline-text-3" id="text-orgc0ec95c">
</div>
<div id="outline-container-org80b6a06" class="outline-5">
<h5 id="org80b6a06">Build Quality</h5>
<div class="outline-text-5" id="text-org80b6a06">
<div id="outline-container-orgd07bd3b" class="outline-5">
<h5 id="orgd07bd3b">Build Quality</h5>
<div class="outline-text-5" id="text-orgd07bd3b">
<p>
The laptop is made of aluminium and feels solid but light. The screen does seem pretty flimsy, though. I probably wouldn&rsquo;t want to drop this thing. It looks sleek and elegant, but pretty muted.
</p>
</div>
</div>
<div id="outline-container-orgadd59f4" class="outline-5">
<h5 id="orgadd59f4">Screen</h5>
<div class="outline-text-5" id="text-orgadd59f4">
<div id="outline-container-org0525fcd" class="outline-5">
<h5 id="org0525fcd">Screen</h5>
<div class="outline-text-5" id="text-org0525fcd">
<p>
This is my first time ever using a high-DPI screen, and I&rsquo;m very impressed by it. Text looks unbelievably crisp and pleasant to read. I was somewhat worried about the linux high DPI situation, but I am having no issues whatsoever.
</p>
@@ -399,27 +399,27 @@ The brightness goes up quite high, but colours feel somewhat washed out at high
</div>
</div>
<div id="outline-container-org600b404" class="outline-5">
<h5 id="org600b404">Keyboard</h5>
<div class="outline-text-5" id="text-org600b404">
<div id="outline-container-org978869e" class="outline-5">
<h5 id="org978869e">Keyboard</h5>
<div class="outline-text-5" id="text-org978869e">
<p>
Framework seems to advertise their keyboard as having particularly deep travel, but it mostly just feels like any chiclet keyboard to me. Not a bad chiclet keyboard, but not that great, either. The layout is fine, but it makes me miss the thinkpad.
</p>
</div>
</div>
<div id="outline-container-org3b08f67" class="outline-5">
<h5 id="org3b08f67">Touchpad</h5>
<div class="outline-text-5" id="text-org3b08f67">
<div id="outline-container-orgc642400" class="outline-5">
<h5 id="orgc642400">Touchpad</h5>
<div class="outline-text-5" id="text-orgc642400">
<p>
I&rsquo;ve never had a decent touchpad before, so I was pleasantly surprised. I expected to miss the trackpoint on the thinkpad a lot, but this is fine, though it&rsquo;s still a step down. Pinch to zoom doesn&rsquo;t work very well, but I don&rsquo;t use that functionality a lot. I miss having dedicated mouse buttons; the clicking functionality on this touchpad works fine for me, but it&rsquo;s hard not to mess up left/middle/right click. That&rsquo;s a good incentive for me to practice relying on the mouse less, though. There&rsquo;s plenty of <a href="https://linuxtouchpad.org/">work being done</a> on the Linux touchpad experience software-side, too. It&rsquo;s a nice time to be a linux laptop user!
</p>
</div>
</div>
<div id="outline-container-org073d1c6" class="outline-5">
<h5 id="org073d1c6">Battery</h5>
<div class="outline-text-5" id="text-org073d1c6">
<div id="outline-container-org3cc7a3d" class="outline-5">
<h5 id="org3cc7a3d">Battery</h5>
<div class="outline-text-5" id="text-org3cc7a3d">
<p>
With the disclaimer that I haven&rsquo;t tested very intensely and I haven&rsquo;t tuned power settings very much. <br>
I seem to get about 6.5 hours of real-world use time when using Emacs and doing light web browsing. I don&rsquo;t have a good benchmark for more intensive tasks, but compiling does hit the battery pretty hard. All in all I&rsquo;m very happy with it, getting decent battery life on Linux is hard. It might be worth eventually buying a power bank for it though, for travel~
@@ -427,18 +427,18 @@ I seem to get about 6.5 hours of real-world use time when using Emacs and doing
</div>
</div>
<div id="outline-container-org84d0822" class="outline-5">
<h5 id="org84d0822">Expansion cards/ports</h5>
<div class="outline-text-5" id="text-org84d0822">
<div id="outline-container-orgc83d0c6" class="outline-5">
<h5 id="orgc83d0c6">Expansion cards/ports</h5>
<div class="outline-text-5" id="text-orgc83d0c6">
<p>
The little expansion cards are one of Framework&rsquo;s big marketing things. I think they&rsquo;re pretty neat, though I don&rsquo;t always quite understand the way people talk about them, as &ldquo;dongle killers&rdquo;. I would find hotswapping these about equally obnoxious as carrying dongles. The idea of aftermarket expansion cards is interesting, though - these are low level, high bandwidth ports, with I think similar capabilities to the ExpressCard ports on old business laptops, but more modern with a USB-C port. I&rsquo;m looking forward to the USB4 era!
</p>
</div>
</div>
<div id="outline-container-org87daad3" class="outline-5">
<h5 id="org87daad3">Performance</h5>
<div class="outline-text-5" id="text-org87daad3">
<div id="outline-container-org640df38" class="outline-5">
<h5 id="org640df38">Performance</h5>
<div class="outline-text-5" id="text-org640df38">
<p>
So far I haven&rsquo;t felt limited by performance at all, the experience has been really snappy. I haven&rsquo;t thrown particularly difficult things at it, though, but that&rsquo;s fine - most of what I do on a laptop is reading, web browsing, and text editing. I played some Factorio on it and that seemed fine, but using the touchpad felt limiting so I didn&rsquo;t play very much.
</p>
@@ -446,9 +446,9 @@ So far I haven&rsquo;t felt limited by performance at all, the experience has be
</div>
</div>
<div id="outline-container-org335d47a" class="outline-3">
<h3 id="org335d47a">Closing words</h3>
<div class="outline-text-3" id="text-org335d47a">
<div id="outline-container-org5247cc8" class="outline-3">
<h3 id="org5247cc8">Closing words</h3>
<div class="outline-text-3" id="text-org5247cc8">
<p>
Getting this laptop set up has been really fun! It&rsquo;s a good opportunity to take stock of where we&rsquo;re at. On the hardware side, I am very impressed that it&rsquo;s now possible to make a laptop that&rsquo;s this user-servicable, this well-specced and still not <i>that</i> expensive. It&rsquo;s a reminder of how much better things could be.
</p>
@@ -466,9 +466,9 @@ Personally, I&rsquo;m getting a rare chance to critically examine all the little
<div id="outline-container-org329b7c8" class="outline-2">
<h2 id="org329b7c8">Appendix A: Transient Terminal Sources</h2>
<div class="outline-text-2" id="text-org329b7c8">
<div id="outline-container-orga48c283" class="outline-2">
<h2 id="orga48c283">Appendix A: Transient Terminal Sources</h2>
<div class="outline-text-2" id="text-orga48c283">
<p>
<code>togglescratch</code>
</p>
@@ -533,9 +533,9 @@ opacity-rule=["90:name = 'scratchterminal'"];
</div>
</div>
<div id="outline-container-org21fd1dc" class="outline-2">
<h2 id="org21fd1dc">Appendix B: lock.py</h2>
<div class="outline-text-2" id="text-org21fd1dc">
<div id="outline-container-orgeda57f7" class="outline-2">
<h2 id="orgeda57f7">Appendix B: lock.py</h2>
<div class="outline-text-2" id="text-orgeda57f7">
<div class="org-src-container">
<pre class="src src-python"><span class="org-comment-delimiter">#</span><span class="org-comment">!/usr/bin/python3</span>
<span class="org-keyword">import</span> os

View File

@@ -1,9 +1,9 @@
<!DOCTYPE html>
<html lang="en">
<head>
<!-- 2022-03-18 Fri 19:50 -->
<!-- 2022-03-18 Fri 19:59 -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="viewport" content="width=500, initial-scale=1" />
<title>Resources</title>
<meta name="generator" content="Org Mode" />
<style>

View File

@@ -1,9 +1,9 @@
<!DOCTYPE html>
<html lang="en">
<head>
<!-- 2022-03-18 Fri 19:50 -->
<!-- 2022-03-18 Fri 19:59 -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="viewport" content="width=500, initial-scale=1" />
<title>Sitemap for project pages</title>
<meta name="generator" content="Org Mode" />
<style>