linux

Getting Started Tiling Wm [Part 6] I3 Rounded Corners

Jan 10, 2022
#tech #tiling-vm #linux

According to Reddis post and i3-gaps issue, it seems like a lot of people would like this. But Airblade - i3-gaps maintainer doesn’t like it. But nevermind, we still have two ways to achieve it. 1. Rounded i3-gaps # Resloved have an awesome fork to implement rounded corners. I fork it again to keep it up-to-date with the upstream i3-gaps. You can check it here. Install i3-gaps. # Dependencies sudo apt install git libxcb1-dev libxcb-keysyms1-dev libpango1. ...

Rename Files in Linux

Dec 16, 2021
#linux #tech

Rename a single file with mv. Just a basic thing. Rename multiple files with mv. # Rename files with suffix .yaml to yml for f in *.yaml; do mv -- "$f" "${f%.yaml}.yml" done Rename multiple files with rename. # Install rename command # Ubuntu/Debian-derived distros sudo apt install rename # RedHat-derived distros sudo yum install prename # The follow examples are performed in Ubuntu/Debian-derived distros rename 's/.yaml/.yml/' *.yaml # Replace all occurrences of "prev_" with "next_" rename 's/prev_/next_' *. ...

Getting Started with Tiling WM [Part 1] - I3

Apr 19, 2021
#tiling-wm #linux #tech #i3

Disclaimer I love customizing desktop. I make changes in my desktop everyday, make it look eye candy. My colleagues ask me how to make their desktop look like mine. But there are many steps and things to learn and follow, I know because I’ve gone throught it. Therefore I decide to write this getting-started guide to give people a shortest path to Fancy world. 1. Overview Window Manager # First of all, you have to know the basic concepts. ...

Getting Started with Tiling WM [Part 2] - Rofi

Apr 19, 2021
#tiling-wm #linux #tech #rofi

In the part1, I’ve used rofi instead of dmenu. This part will show you how to start with rofi. 1. Introduction # Rofi is a window switcher, application launcher and dmenu replacement. Features: Fully configurable keyboard navigation. Type to filer. Built-in modes: Window switcher mode. Application laucher. Desktop file application launcher. SSH laucher mode. History-based ordering. … 2. Getting started # Installing rofi is quite easy. sudo apt install rofi -y Run it for the first time. ...

Linux tools that you never knew you needed

Apr 07, 2021
#linux #tips #tech

1. bat - (cat alternative) # bat: A cat(1) clone with syntax highlighting and Git integration. Example: 2. fd - (find alternative) # fd: a simple, fast and user-friendly alternative to find. Examples: 3. httpie - (wget/curl alternative) # httpie: a user-friendly command-line HTTP client for the API era. It comes with JSON support, syntax highlighting, persistent sessions, wget-like downloads, plugins, and more. Examples: # Hello world $ http httpie. ...

Set Animated Gif as Wallpaper

Jan 14, 2021
#linux #tips #tech

NOTE: Environment Ubuntu 20.04 Dependencies # Xwinwrap: sudo apt-get install xorg-dev build-essential libx11-dev x11proto-xext-dev libxrender-dev libxext-dev git clone https://github.com/ujjwal96/xwinwrap.git cd xwinwrap make sudo make install make clean Gifsicle: sudo apt install gifsicle The helper script # A helper script to setup animated .gif in dual monitors. #!/bin/bash # Uses xwinwrap to display given animated .gif in dual monitors. if [ $# -ne 1 ]; then echo 1>&2 Usage: $0 image. ...

Swap space note

May 20, 2020
#linux #tech

1. What is Swap? # Swap file systems support virtual memory, data is written to a swap file system when there is not enough RAM to store the data your system is processing. 2. Swap partition size # 2.1. Old rule of thumb # swap = 2 * the-amount-of-RAM So if a computer had 64KB of RAM, a swap partition of 128KB would be an optimum size. This rule took into the facts that RAM sizes were typically quite small at the time. ...