Simplify opening a new application in a new workspace in i3-wm

We often use i3-msg to open applications in new workspaces. However to type all the name of our custom workspaces is tiresome. I created a simple (very simple) script to use just the number to specify the workspace and open the application in that workspace. This is a python script, which you can put inside a bin directory and execute it with the number of the workspace and the application you want to execute in that workspace. For this to work, change the custom workspace names that matches the names you have defined for your workspaces in i3. Save the following file as i3openit.sh.

Continue reading

Leave a comment

Filed under Uncategorized

Convert list of manga directories to comic book archive

Suppose you have a list of manga directories i.e folders with images that have numbers as names. Although applications like MComix can read such directories without any problem, you might feel like creating a proper comic book archive using these images. Here is what I do to convert these directories to cbz files.

Continue reading

Leave a comment

Filed under Uncategorized

Using mpv to escape start and end of videos (like in anime, tv shows etc)

Introduction

Sometimes we like to watch cool starting and ends of videos (like the heart touching ending), but after a time those could become repetitive and boring. Also, if you are just starting to watch a series recommended by others, those extra 5 minutes could be saved to watch next video and progress quickly. In this tutorial, I wish to tackle that problem. Since I love mplayer/smplayer for playing most videos, I am not going to deviate from those lines. Therefore, I am going to use mpv (mpv is a fork of mplayer2 and MPlayer) for our purpose.

Continue reading

3 Comments

Filed under Uncategorized

Using Transmission Remote as your default bittorrent client

Introduction

Transmission is a torrent client that comes pre-installed with most linux based operating systems like Ubuntu, Elementary OS, Linux Mint etc. However, in this post I am going to talk about transmission-remote, a command line variant of this popular torrent client. I have been using it for past 6 months, and I like it very much. With it I can control the client using terminal commands, using a web browser or “transmission remote” android or a gtk GUI applications. I also use different key bindings to control behaviors like pause the torrents, start them, or use alternate speeds. I also use other torrent clients for smaller download sessions, but transmission-remote is my default torrent client for most of my downloads. I use “transmission-remote-gtk” GUI tool for commands I don’t want to remember e.g creating labels (a label is an alias for specifying a download directory and you can have as many as you like), changing the queue size etc.

Continue reading

4 Comments

Filed under Uncategorized

Learning Emacs

Introduction

In this tutorial, I am going to talk about setting up emacs so that it will be easier for new users to get to their programming or editing tasks without much barrier.

Basics

If you don’t know emacs’s basic keys (at least the movement and editing keys), you need to keep a note of some of the most frequently used ones. You can copy the commands using some websites containing the basics (e.g http://mally.stanford.edu/~sr/computing/emacs.html) or use the list from “Movement” section below.

Continue reading

Leave a comment

Filed under Uncategorized

Toggle keyboard keys in Linux using terminal commands

Introduction

It is easier to use GUI tools to setup keyboard shortcuts, but sometimes you need to map certain keys for typical purpose (e.g swapping caps and esc when using vim). In this tutorial I will try to list different linux tools and scripts that you can use to do these tasks (you might have to install them from your distribution’s repository).

Continue reading

2 Comments

Filed under Uncategorized

Few vim tricks

1. Ctags

Ctags lets you tag your current code and header files. It supports many languages. With tagging, when you are writing code, you can quickly traverse to the declarations and definitions of functions and variables. Once you install ctags in your distribution issue following command to tag source code (after you know where the source code for the library or program you want to tag exists).

Continue reading

Leave a comment

Filed under Uncategorized