[x]Blackmoor Vituperative

Saturday, 2024-01-20

Color scheme for Minimal Theme for Obsidian

Filed under: Programming,Software,Writing — bblackmoor @ 13:11

I have created a color scheme for Minimal Theme for Obsidian. I mainly use Obsidian on my Boox Tab Ultra tablet, which is an e-ink device. My intention is to create a very high contrast theme that is easily legible on an e-ink device like the Boox, while also being attractive enough for desktop or color tablet use.

The theme is nowhere near as colorful as most themes. If you like everything to be a different color, this theme is probably not your cup of tea.

This is written as a CSS snippet, but my hope is that the author of Minimal will eventually allow this theme to be added to the core Minimal color schemes. Obsidian really needs a clear, readable color scheme for e-ink devices. That’s what I want, in any case.

I have posted the CSS file to my github page. If pasted into the theme.css file in Minimal (between gruvbox and macos), the code looks like this…

.theme-light.minimal-kalos-greyscale-light{--color-red-rgb:145,28,28;--color-orange-rgb:145,28,28;--color-yellow-rgb:145,28,28;--color-green-rgb:21,83,83;--color-cyan-rgb:21,83,83;--color-blue-rgb:21,83,83;--color-purple-rgb:126,32,126;--color-pink-rgb:126,32,126;--color-red:#911c1c;--color-orange:#911c1c;--color-yellow:#911c1c;--color-green:#155353;--color-cyan:#155353;--color-blue:#155353;--color-purple:#7e207e;--color-pink:#7e207e}.theme-dark.minimal-kalos-greyscale-dark{--color-red-rgb:253,245,245;--color-orange-rgb:253,245,245;--color-yellow-rgb:253,245,245;--color-green-rgb:235,250,250;--color-cyan-rgb:235,250,250;--color-blue-rgb:235,250,250;--color-purple-rgb:252,245,252;--color-pink-rgb:252,245,252;--color-red:#fdf5f5;--color-orange:#fdf5f5;--color-yellow:#fdf5f5;--color-green:#ebfafa;--color-cyan:#ebfafa;--color-blue:#ebfafa;--color-purple:#fcf5fc;--color-pink:#fcf5fc}.theme-light.minimal-kalos-greyscale-light{--base-h:0;--base-s:0;--base-l:100%;--accent-h:240;--accent-s:60%;--accent-l:10%;--bg1:#fbfbfe;--bg2:#f8f8fd;--bg3:rgba(255,255,255,.5);--ui1:#0a0a29;--ui2:#18185f;--ui3:#000;--tx1:#000;--tx2:#222;--tx3:#3d3d3d;--hl1:rgba(105,105,217,.5);--hl2:rgba(169,169,233,.5)}.theme-dark.minimal-kalos-greyscale-dark,.theme-light.minimal-kalos-greyscale-light.minimal-light-contrast .mod-left-split,.theme-light.minimal-kalos-greyscale-light.minimal-light-contrast .titlebar,.theme-light.minimal-kalos-greyscale-light.minimal-light-contrast .workspace-drawer.mod-left,.theme-light.minimal-kalos-greyscale-light.minimal-light-contrast .workspace-ribbon.mod-left:not(.is-collapsed),.theme-light.minimal-kalos-greyscale-light.minimal-light-contrast.minimal-status-off .status-bar{--base-h:0;--base-s:0;--base-l:0;--accent-h:240;--accent-s:100%;--accent-l:100%;--bg1:#050514;--bg2:#0a0a29;--bg3:rgba(0,0,0,.5);--ui1:#fbfbfe;--ui2:#18185f;--ui3:#fff;--tx1:#fff;--tx2:#fdfdfd;--tx3:#fafafa;--hl1:rgba(105,105,217,.5);--hl2:rgba(169,169,233,.5)}.theme-dark.minimal-kalos-greyscale-dark.minimal-dark-black{--ui1:#000}

Thursday, 2022-09-08

Bulk Crap Uninstaller

Filed under: Software,Windows — bblackmoor @ 14:03

If you are a Windows user looking for a replacement or alternative for Iobit Uninstaller (which has become little more than a vector for trojans), give Bulk Crap Uninstaller a try.


Monday, 2022-05-16

Getting rid of Firefox’s “downloads” popup

Filed under: Software,The Internet — bblackmoor @ 15:12

Ever since Firefox 98 (I think), a popup appears every ten minutes or so, showing files that have been downloaded successfully (or not, I assume). Whether I have downloaded anything recently or not. It does not go away until I manually close it.

That is annoying. Here is how to fix it.

Go to about:config (accepting the warning along the way).

Change browser.download.alwaysOpenPanel to false.

Friday, 2022-04-29

Trimming trailing spaces in LibreOffice Calc

Filed under: Software,Windows — bblackmoor @ 13:39

I looked for ages before I found this advice, so I am preserving it here. Credit goes to Keyboard Playing for the original post, though.

In LibreOffice Writer, you can replace \s+(\r?(\n|$)) with $1 to remove all trailing spaces. A single execution should be efficient this time.

The regular expression (aka “regex”) can be decomposed this way:

\s+ matches one or more whitespaces;
(\r?(\n|$)) matches a carriage return (\r?\n) or the end of a paragraph (\r?$) ; \r? is there only to be compatible with Windows carriage return format;
$1 is the first captured group ((\r?(\n|$))) as it was found in the text (we put back what was found).

Tuesday, 2021-08-17

Remove Proton from Firefox 91

Filed under: Software,The Internet — bblackmoor @ 17:13

Winaero has a step-by-step tutorial on how to revert Firefox (more or less) to its pre-Proton user interface. I am giving it a try. I have been using Chrome as my default browser for the past day, and I like it better than Protonic Firefox, but not as much as pre-Protonic Firefox.

Wednesday, 2021-07-14

Stop downloading images as webp

Filed under: Software,The Internet — bblackmoor @ 09:08

If you are annoyed that you download images in Firefox and they save as “*.webp”, install this addon.

Tuesday, 2021-06-01

Change Firefox tabs back to old style

Filed under: Software,The Internet — bblackmoor @ 10:21

If Firefox has updated and now your tabs are huge and you can’ t tell which tab is open by looking at them, you can switch it back. Type “about:config” in the address bar, search for “proton“, and change the “true” values to “false“.

Sunday, 2021-04-18

Rounding to significant digits in LibreOffice Calc

Filed under: Software — bblackmoor @ 12:24

Here is a formula for rounding a number to a specified number of significant digits.


In this formula, A1 is the cell with the number, and B1 is the cell with the number of significant digits.

Monday, 2021-03-01

Karelia, version 7

Filed under: Art,Gaming,Software — bblackmoor @ 09:37

Current version of Karelia map, for my maybe-I-will-maybe-I-won’t D&D game. I like the overall look, but I am bumping into limitations in Inkarnate (which is what I used to draw this). namely, there is no way to group objects into, say, “Labels”, or “Rivers”, and change the size, colour, font, etc. in a simple way. Photoshop can do that fairly easily (no great surprise), so I am thinking about doing the landmasses in Inkarnate (which is easy to do with its built-in textures and POI icons) and then doing the rivers and labels in Photoshop.

Alternately, I am playing with the idea of loading this map into Campaign Cartographer (from ProFantasy), and re-drawing it in that program. Campaign Cartographer is a much more powerful mapping program than Inkarnate, and can do everything (or nearly everything) I would like to do in Photoshop. I have owned Campaign Cartographer for literally decades, and have subscribed to their monthly “Cartographer’s Annual” since 2007, but I have never taken the dive into learning it. It has a steep learning curve.

On the other other hand, I am wondering if perhaps I have gone down a rabbit hole on this whole map thing. Maybe I should just declare it “good enough”, and move on to planning the actual game. Maybe.

Friday, 2020-06-05

MyMedia under screen

Filed under: Linux,Movies,Software — bblackmoor @ 11:47

I use a Python application called MyMedia to stream videos from my Ubuntu media server to my Roku boxes.

I installed Ubuntu 20 yesterday. The painfully slow navigation problem (caused by the slow but inevitable deprecation of python 2) re-appeared, and I tried to re-create the fix. Initially, I just succeeded in preventing MyMedia from running at all.

Here is what actually worked.

  1. First, I copied all of my backed up MyMedia files to /usr/local/bin/mymedia
  2. Then I installed python 2.7…
  3. sudo apt-get install python2
  4. Then I installed pip, but first I had to install curl…
  5. sudo apt-get install curl
  6. curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
  7. sudo python2 get-pip.py
  8. Then I installed Pillow
  9. sudo python2 -m pip install --upgrade Pillow
  10. It might not have been necessary, but I installed several image libraries…
  11. sudo apt-get install libjpeg-dev
  12. sudo ln -s /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib
  13. sudo apt-get install zlib1g-de
  14. sudo ln -s /usr/lib/x86_64-linux-gnu/libz.so /usr/lib
  15. In common.py, I made sure that this…
  16. import Image
  17. … had been replaced with this…
  18. #import Image
    from PIL import Image

Huge success!

Note that during this process, I got several warnings about Python 2.7 being deprecated, like this one:

DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support

It’s only a matter of time before MyMedia becomes unusable. I would love to get access to the git repository and try to update it for Python 3, if that’s possible. I’ve asked, but the original developer is no longer associated with the project. It may be that I’ll have to find a new solution to this problem in a year or so.

Also, I have updated my init script (/etc/init.d/memedia), which runs mymedia in a screen

# Provides: minidlna
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: mymedia server
# Description: mymedia media server.

# Do NOT "set -e"

# PATH should only include /usr/* if it runs after the mountnfs.sh script
DESC="MyMedia media server"

case "$1" in
su - $USER -c "cd $DAEMONPATH; screen -dm -S $SCREENNAME python2 $DAEMON"
su - $USER -c "screen -S $SCREENNAME -X quit"
su - $USER -c "screen -wipe"
su - $USER -c "screen -list | grep $SCREENNAME"
echo "Usage: $SCRIPTNAME {start|stop|status}" >&2
exit 3

Next Page »