CLI and GUI tools for smooth workflow

Published: Jun 13, 2021 • Lastmod: Jun 13, 2021 • Author: Leela Venkaiah G • 7 min read

Tags: #fedora#productivity

Between choosing fedora + gnome + required tools and fedora + tiling window manager + only required tools, I chose the former as I felt it fits my workflow good enough not to be obstructed.

On that note, I want to present tools that I use which are as per my needs and I feel you may also find some good ones to add to your tool chain even if you skim through this post.

Entire post is divided into two sections CLI and GUI which contain programs that you invoke when needed or silently running in the background. As the list is on a higher side and some may require an entire blog post I’ll mention one or two use-cases only. ๐Ÿ˜…

Just choosing the alphabetical order, so your discretion is needed when one tool references other which may be at the end ๐Ÿ˜„

Unlike other posts of mine, I’m keeping this blog post short and simple and you can follow respective links for knowing more.

CLI Tools: ยง

Ansible : When there are more than ~6 servers and need to run a remote command, I’ll be using ansible. Less than 6, tmux is the way to go ๐Ÿ˜‰

Bash : I use bash shell with very little customization and below snippet (I don’t remember the source ๐Ÿ˜ž) is worth having in your bashrc if you want to preserve you command line history

for FILE in ~/.bash_history ~/.python_history
    BACKUP=$FILE.$(date +%y%m)
    if [ -s "$FILE" -a "$FILE" -nt "$BACKUP" ]; then
        # history file is newer than backup
        if [[ -f $BACKUP ]]; then
            # there is already a backup
            /usr/bin/cp -f $FILE $BACKUP
            # create new backup, leave last few commands and reinitialize
            mv -f $FILE $BACKUP
            tail -n$KEEP $BACKUP > $FILE
            history -r

Bat : Bat uses powerful syntect library for syntax highlighting of text. bat --plain is a full replacement for cat command and you can inform bat to use a language syntax by passing -l <lang> option if a file doesn’t have an extenstion.

Dotfiles : This isn’t strictly a tool which you install, just stating here hoping it might help others on how I structure my dotfiles.

FZF : A fuzzy finder. The basic idea is simple, you provide some text and fzf provides an interface for you to filter/find searches of text on each key press. It doesn’t matter where the text is coming from and I mostly use it for it’s vim integration

Hugo : The static site generator that I use to generate this website.

Jump : Straight forward, cd into a nested directory from wherever you are in the file system tree and it learns (~ranks) overtime so you’ll mostly be landing in correct directory most if not all the times.

K3D : For quickly setting up a local kubernetes cluster with all the niceties that come with k3s distribution.

Kyrat : The original repo of sshrc disappeared from github and found kyrat as a good alternative. In addition to some dotfiles I transport my /etc/hosts as well into remote host to change the prompt dynamically.

At times I had to manage close to ~20 servers and this tool is very helpful to figure out on which server I’m working on by looking at the prompt. I maintain a fork of this for my additional requirements.

Neovim : Yes, I’m reaping the benefits of my initial investment of putting my own init.vim.

One nicety among hundreds is file system bookmarks, irrespective of wherever you are in the file system tree or tmux session, you can summon bookmarked file in nvim. For example, mark init.vim with mV and in any nvim window you can open init.vim using 'V mark.

Python : When bash data structures become cumbersome that’s the time for python’s list comprehensions (for quickly creating bricks string in gluster volume create commands)

Ripgrep : Better defaults than grep and I mostly use it as a companion for neovim and fzf vim integration.

TLP : I wasn’t able to setup official tuned program correctly and so has to use tlp which is surprisingly good with only exception being to be cautious when performing major upgrades.

I’m a fan of clean desk and don’t want cables running around, tlp is able to get me through the day (if there are less meetings) without plugging power adapter.

TMUX : Elephant in the room in terms of usage, the terminal multiplexer. I prefer restoring tmux sessions via continuum rather than modeling sessions from get go.

I follow one project per session and below snippet might be a good addition to your tmux.conf which adds IN_SYNC text to your status bar when panes are synchronized.

set -g status-right "#{?pane_synchronized, #[fg=red]IN_SYNC#[default],}"
set -ag status-right " #h %a %d-%b-%y %I:%M %p"


Vnstat : Well, this simple utility takes note of your network usage and displays in a nice tabular format for easy review. This is a pretty nice utility and I can’t resist from sharing output from this and we can listen on any particular interface to check on live traffic as well.

-> vnstat -d 2

 wlp0s20f3  /  daily

          day        rx      |     tx      |    total    |   avg. rate
     2021-06-12     2.13 GiB |   43.65 MiB |    2.17 GiB |  215.52 kbit/s
     2021-06-13   166.89 MiB |   13.60 MiB |  180.49 MiB |   34.57 kbit/s
     estimated    329.20 MiB |   26.83 MiB |  356.03 MiB |

I use hotspot from a mobile powered by Sailfish OS which gives me maximum control over it and below is the data usage from that

-> $ ssh nemo@
nemo@'s password: 
Last login: Sun Jun 13 08:56:11 2021 from
| Sailfish OS (Koli)
[nemo@Sailfish ~]$ vnstat -y

 wlan0  /  yearly

         year        rx      |     tx      |    total    |   avg. rate
          2021    191.26 GiB |  393.47 GiB |  584.73 GiB |  355.54 kbit/s
     estimated    426.95 GiB |  878.35 GiB |    1.27 TiB |

Webify : A simple utility to serve static files which I prefer over python3 -m http.server

GUI Tools: ยง

Joplin : The note taking app with good synchronization capabilities among the devices that I use

Konsole : Only reason, konsole supports ligatures out of the box and I don’t mind spending a bit more of CPU/Memory resources on this.

Victor Mono : Not strictly a tool, but good looking fonts. I moved from fira code due to an extra step needed to bake in some of the variants in ttf files.

Virt Manager : For creating a base VM on a KVM hypervisor or if I miss enabling serial-getty@ttyS0 on a VM.

GNOME Tweaks: ยง

In addition to tweaking look and feel of a fedora workstation there are a set of extensions which enhance user experience. I find this article to be helpful as it targets firmare upgrade as well and also makes a note about tweaks .

You can install below packages and later visit extensions page to install shell extensions.

-> sudo dnf install -y gnome-extensions-app gnome-tweaks
-> sudo dnf install -y gnome-shell-extension-appindicator

Below are some of the notable tweaks among many others that I use. Most of the times, when you upgrade an extension the status of that extension in UI may change to ERROR state and in those cases logging out and logging in helps.

Bing Wallpaper : Change background image daily

Clipboard Indicator : Saves last n entries of yank into clipboard and can select particular entry for current paste

Dash to Panel : Change and position panel layout, comes with many customizations and don’t get lost in it ๐Ÿ˜ƒ

EasyScreenCast : Probably the only extension that support Wayland compositor. The name says it all, you can record screen casts.

GSConnect : Think of AirPlay with just enough functionality that makes sharing/controlling devices simpler.

In the companion kdeconnect mobile app, you can set below run commands to lock and unlock your fedora remotely when you are on same network.

-> Lock: loginctl lock-session
-> Unlock: loginctl unlock-session

WinTile : I can get away with not using dual monitors with this extension and at most I open not more than 4 windows and able to manage my screen estate just good enough. gui

Misc: ยง

I wasn’t able to segregate some in above buckets due to their less frequency of use by me or widely known to others and here they are:

  • Swapping Ctrl and CapsLock functionality
  • Octotree , Github code tree navigation
  • Virtualization tools: libvirt and it’s entire suite of tools notably virsh, virt-df, virt-sysprep, virt-builder, virt-clone among others
  • Git , ExplainShell , PipTools , Dive

Well, we reached the end and I’ll update the post if there are any tools worth mentioning here and explain some of the tools in depth if I get any requests ๐Ÿ˜„

Thanks for your time and I hope it is well spent, I'll be very happy to hear your thoughts in comments section or you can contact me by any means mentioned in the footer 😄.

Share on ...

So long 👋 ...