Shell Script

Change wallpaper with simple command

Submitted by ravisagar on Sun, 02/19/2023 - 10:04

I started using a polished background before I start recording my videos and I do it using a shell script with different functions.

#shell #xwallpaper

How to handle more than nine parameters?

Submitted by ravisagar on Sun, 01/15/2023 - 16:32

I use shell scripts a lot and some of my scripts have more than 9 parameters which can cause problems. Let me show you how to handle it.


How I manage my environment variables with tokens?

Submitted by ravisagar on Thu, 01/05/2023 - 17:23

I use a host specific file to store my tokens in environment variables which I manage using .xinitrc file. It is simple setup and works well.

#archlinux #environmentvariables

Run commands when you undock your Laptop

Submitted by ravisagar on Wed, 10/19/2022 - 17:09

I run a shell script every minute to check whether my laptop is docked or not and then run some commands. It works really nicely.

#shell #dock

Ravi Sagar Newsletter

Honestly I hardly send out mails but I guess there is no harm in at least having a newsletter. I will only send newsletter when I have something important to share or an update. People are busy and no one has time to read emails these days. If you really like my content then I guess you will remember my site and come back for more.

Want to contact me?