dt.iki.fi

All Articles (119)

Use dash as /bin/sh

This article only slightly expands on what the archwiki says about it. Linking /bin/sh to dash instead of bash is not the same as "changing your default shell". I want startup scripts and everything that has a #!/bin/sh shebang to use the lightest possible shell by default, but I still want my tru.....

Openbox: change keybind action depending on active window

The situation under Xorg: I have an application with keybinds that cannot be changed, namely Signal for Linux desktop. One of these keybinds has been my probably most used keybind for a long time, namely Shift-Return to open an application launcher. Solution: Openbox allows me to execute different a.....

Creating Udev Rules

Scenario: Ignore a permanently connected backup drive Also see this related article. I have a WD USB drive - it's some cheapo variant, never get one of these! It's in an enclosure but can't be taken out and connected directly, like they used to, and suffers a lack of configurability as hdparm show.....

Firefox: user.js to tighten security

I finally manned up to tackle the ghacks (now arkenfox on github) user.js for Firefox. I felt that if I want to continue using Firefox I really have to do this, since it's making more and more unbidden connections. Thankfully it is possible to disable most. It's a lot of work to customise - you can'.....

Firefox: Where is the old, sortable about:config?

At some point Firefox developers "simplified" the Advanced Configuration Editor a.k.a. about:config - one cannot even sort by columns anymore! Which makes it extremely tedious to hunt down user modified settings. Fortunately, the previous, more useful editor is still available at chrome://global/co.....

Restoring Mimetype Associations

I deliberately deleted all mime*.* files I could find in ~/.local/share/applications /usr/share/applications ~/.config I might also have deleted /usr/share/mime/mime.cache. I definitely deleted the directory ~/.local/share/mime (it seemed to contain stuff only related to WINE). I was hoping to fix s.....

A collection of Forum Posts I Don't Want to Sink into Oblivion

Sometimes I get a creative kick when writing a reply on some forum, and then I feel a little sorry to think that this "gem" will soon be forgotten and unfindable. So I decided to copy-paste some of these outbursts to a dedicated page. It's a little narcissistic. Entries should be in chronological or.....

Change XTerm's Window Icon

Venerable and versatile XTerm. Carrying cruft from four decades. I am a big friend of lightweight terminal emulators - I want them to pop up immediately, without having to run a daemon. Despite all its baggage, xterm is extremely fast. Change the Window Icon (pixmap) The default icon is absolutely h.....