NERDBUDE

[ code. keyboards. terminals. cyber. ]

[HOWTO] [WHOAMI] [PODCAST] [FRANKENSWITCHES] [GERMAN]

TWTERM



Twitter - but in the Linux terminal



The terminal is the natural habitat of many nerdettes and nerds - including mine.
The vice of social media, especially Twitter, is also involved. Both can be combined well.
As long as the terminal category is built in here at the Nerdbude (yes spoilers!) here's a little tooltip again for a wonderful little piece of software called twterm.

The name says it all. It is a Twitter client for the terminal.
Now there are some of them but twterm is a bit more special. On the one hand runs twterm with Vim-keys (nice!) and on the other hand, it is wonderful to obtain and install via Nix.

Installation

The installation is done quickly. You only need to add the Github repo to the NixOS channel:

Installation (NixOS)
nix-channel --add https://github.com/ryota-ka/twterm/archive/master.tar.gz twterm


After this you can install it for your local user:

for user
nix-channel --update
nix-env -iA twterm


Thanks to fleaz (... again :D ). fleaz give me the Code-Snippet for the configuration.nix:

configuration.nix
{ config, pkgs, ... }:
let
    unstable = import <twterm> {};
in {
    environment.systemPackages = [
        twterm.twterm
    ];
};


Config

The configuration of twterm lruns very simple over single config files. The files are stored in your $HOME directory, in the folder .twterm. The following config files are located here:

$HOME
config
keys.toml
preferences.toml


The config contains your credentials to log in to Twitter:

config
:access_token: XXXX
:access_token_secret: XXXX
:screen_name: XXXX
:user_id: XXXX


The keys.toml contains the keybindings with which twterm is controlled. Here is the content:

keys.toml
[app]
cheatsheet = "F1"
me = "m"
quit = "F10"
 
[Cursor]
bottom_of_window = "L"
middle_of_window = "M"
top_of_window = "H"
...


The preferences.toml contains the configuration for the tool itself. Here you can also define how e.g. images should be handled (imgcat).

preferences.toml
[control]
scroll_direction = "traditional"
 
[notification_backend]
inline = true
 
[photo_viewer_backend]
imgcat = true
...


So lots of configuration possibilities.
The tool was developed by Ryota Kameoka and was written in Ruby. You can find twterm on Github: twterm.

Thanks for the tool and have fun with it!

EDIT:
[2021-04-21] - adding configuration.nix code-snippet (THX fleaz)




//EOF