Avatar Hund

Linux, plaintext & minimalism

August 27, 2018

Adding line numbers to a list in Vim with awk

I have finally found a good way of adding line numbers to a list in Vim. Most tips I’ve found so far has been overly complicated and with various success, this option uses awk and it’s in return a bit simpler. Continue reading →

Tags: Vim
August 25, 2018

Automatically converting emojis to plain text in WeeChat

Something I’m not a huge fan of is emojis, I have always preferred using the classic emoticons like :). And it’s not that emojis are all bad, it’s just that they’re not very consistent across devices, sometimes not even across applications on the same device and some applications don’t even support emojis to begin with. Continue reading →

Tags: WeeChat | Emojis
August 20, 2018

Automatically disable syntax highlighting in Vim when editing the zsh buffer

I often edit my zsh buffer in Vim and one of the reasons for it is to have access to spell check (using GNU Aspell). Continue reading →

Tags: zsh | Vim
August 19, 2018

Edit the zsh buffer with your $EDITOR of choice

If you spend a lot of time in the shell you also probably edit a lot of commands, which at times can be tedious when they’re getting a bit to long and complex. Being able to easily fire up your $EDITOR of choice when needed can therefore be a real blessing. Continue reading →

Tags: zsh | Vim
August 15, 2018

Hiding specific nicklists in WeeChat with toggle_nicklist.py

I use Mastodon via WeeChat and Bitlbee, this means that I also get a nicklist with a lot of users from Mastodon, which is not very useful and it only takes up a lot of valuable screen space. Continue reading →

Tags: WeeChat
August 4, 2018

Spell check and auto correction of commands in zsh

It was actually very recently when I found out about this feature, I was looking for something else and happen to stumble upon this neat feature. Continue reading →

Tags: zsh
July 28, 2018

My workaround for mpv in fullscreen sometimes spawning on the wrong monitor

When I run mpv with the flag --fullscreen in my window manager i3, the client sometimes spawns on the wrong monitor. The reason for this behaviour is due to the fact that i3 doesn’t support the EMMH hint called “_NET_WM_FULLSCREEN_MONITORS”, which is something you can read more about on their issue tracker here. Continue reading →

Tags: i3 | mpv
July 19, 2018

How to delete files and folders older than N days

There’s a lot of tips and recommendations about how to delete files and folders older than <N> days on the web, but you can’t as far as I know do it with only one command. And running rm -rf in the shell without any confirmation feels a bit too risky as well. Because no matter how experienced you are, accidents do happen. :) Continue reading →

Tags: Scripts
July 13, 2018

Automatically hide your mouse cursor with Unclutter

If you almost never use the computer mouse like me, you are most likely also finding the mouse cursor distracting and in the way of your work. But there’s actually a way of automatically hiding it when it’s not being used and it’s made possible with the tool Unclutter, or more preferably with unclutter-xfixes. Continue reading →

Tags: Unclutter | Mouse
July 9, 2018

Trash-cli - A command-line interface to the FreeDesktop.org Trash

So, I’m sure I’m not the only user who has in the past mistakenly deleted the wrong file(s) in the shell. And it always seems to be that one super important document you just spent like five sweaty hours on as well. :/ Continue reading →

Tags: Trash | CLI