Showing posts with label script. Show all posts
Showing posts with label script. Show all posts

Improved ls command to list your linux files.


If you use Linux on a daily basis, then you probably run the 'ls' commands several times a day to list files. This is one of the most used commands on Linux (aside from 'cd') and still, it is sometimes a mess. With the following script, you can "wrap" the normal 'ls' command to:
  1. Highlight folders with colors, to better distinguish them from files.
  2. Sort folders before regular files
  3. Sort hidden folders and hidden files last
  4. Print information in a human-readable format

Arch Linux Update Helper

https://yalneb.blogspot.com/2018/01/arch-linux-update-helper.html

Keeping your Arch Linux system up to date is a good habit, and something you should definitively be doing. It can however become time consuming (specially if you do it on a weekly basis), reason enough to postpone it for too long.

This script will guide you intuitively through the update process, tidy after it, and also optimize your pacman package manager.

Fancy bash prompt with colors

Read full article: Fancy bash prompt

I got bored of the normal bash promt a long time ago, which lead me to configure my .bashrc to betther highlight terminal inputs. Still, I used to see some terminal on the net with a very fancy looking bash promt that I found really appealing. After some googling I decided to give it a go and try to generate my own. All it takes is a fancy triangle character to create the colored overlaps, shown in the above figure, and some tweaking. All in all, the end result speaks for itself.

Check out my implementation after the break, and leave a comment if you like it or want to make some suggestions to further improve it!

Update: a new and easy to install version can be found here.

Delete songs from HDD while listening to them on audacious

http://yalneb.blogspot.com/2017/05/audacious-delete.html


I digitalized my old CD music collection a (very) long time ago. And the other day ,listening to it, I stumbled over some tracks I did really not like. I used to simply ignore them (unless I was willing to stand up and press the next track on my Hi-Fi), but the time has come to... delete them!

In this post I want to share a small script that can be bound to any key combination on your keyboard. When a song comes up that you don't like, simply invoke it and it will not only move the current song to the trash (you don't want to listen to it forever, right?) but also delete it from Audaciou's playlist.