Comment static hugo blog entry with Mastodon
This post describes a simply method to link back from your static block page to Mastodon, so that people can eventually reply.
This post describes a simply method to link back from your static block page to Mastodon, so that people can eventually reply.
When I started to configure Sway, I found a lot of configurations online, but mostly were exactly the same. I too based my configuration on the given example, but disgressed quite a bit.
In my Sway configuration I have two lines that start an application in a specific way: bindsym Mod4+e exec ~/.config/sway/run-or-raise Emacs emacs bindsym Mod4+w exec ~/.config/sway/run-or-raise Firefox firefox What does this do? First, the “exec” clause calls a python script, run-or-raise. This python scripts wants two arguments. The first one is a container name. It uses swaymsg -t get_tree to get all outputs, work spaces and containers. And then it looks for any container (that is: application, Wayland client) that matches the name.
When I start Sway, I’d like to have Emacs on the left side of workspace 1, and a terminal (here Alacritty) on the right side, Unfortunately, this ~/.config/sway/config except won’t work: exec emacs exac alacritty Because alacritty starts much faster than Emacs. So I’d get the terminal on the right side of the screen. And Emacs on the left. Not good. Instead, I do this: exec emacs for_window [class="^Emacs$"] exec sh -c 'pgrep -x alacritty >/dev/null || alacritty' for_window [app_id="^emacs$"] exec sh -c 'pgrep -x alacritty >/dev/null || alacritty' That is, I start Emacs.
The default rc.lua
from Awesome 4.0 turns title bars on. Here I show
how you can turn them off, and also how I enable them only for
floating clients.
The default rc.lua
from the Awesome window manager uses a lot of
globalkeys = awful.util.table.join(...)
code.
I disliked this because …
So let’s change this …
In this post I show a nice method to define tags and associated layouts, where the tag names change dynamically when the layout changes.
This post shows how you can create a global titlebar. I personally removed the tasklist and replaced this with the titlebar. The tasklist wasn’t good looking anyway and so far I don’t miss the tasklist.
Now that I switched from Emacs’ GNUS
to Emacs’ notmuch
, I needed a
method to automatically “discard” uninteresting mails. In some Linux
mailing lists a huge amount of mails are about topics that I don’t
care. So I a little shell script bin/pollmail.sh
that polls
the mails and efficiently marks uninteresting stuff as read.
In this blog post I describe how I configured mbsync
1.3.0 and
notmuch
0.22 so that they get my mail out of GMail’s IMAP service.
I wrote my home page with various tools … Pure HTML At the beginning, I used HTML and .shtml include files Apache was told to process html include files, and I had the boilerplate and bottom in such files and included them from the per-page HTML files. Webber Later I switched to Webber. That was a python written open-source software that I published on gitorious.org. The original gitorious is now down, but you find the git tree still at https://gitorious.
When you work with embedded devices (e.g. SabreLite, Arduino, Raspberry Pi) you often need to work over a serial port, e.g. to customize the Barebox or U-Boot boot loader.
On Linux, people often use “minicom” for this. Other options are
“Putty” (yes, it’s not a Windows-only program, try “apt-get install putty
”) or even the ancient C-Kermit.
Surprisingly I found that Kermit suits my work-flow the best, when
properly configured.
Almost any site describing how to use the static web site generator Hugo uses some complicated method to get the contents publish.
Here are the bash aliases that I like and install almost everywhere.