Using tput to save, clear and restore the terminal contents

2010-06-17 1 min read Linux

Using tput to save, clear and restore the terminal contents $ tput smcup; echo ”Doing some things…”; sleep 2; tput rmcup Very useful for interactive scripts where you would like to return the terminal contents to its original state before the script was run. This would be similar to how vi exits and returns you to your original terminal screen.

Save and clear the terminal contents with:

tput smcup

Continue reading

Linux command to repeat a string n times

2010-06-17 1 min read Bash

There are more than one situation where you wished that there was a simple way to print a character n number of times. At least I face that quite often, especially when you want to print a menu. I found this post today which has pretty good solution and also the way how it works :
<a href="http://superuser.com/questions/86340/linux-command-to-repeat-a-string-n-times">http://superuser.com/questions/86340/linux-command-to-repeat-a-string-n-times

\"Enhanced

Change pidgin status from the command line

2010-06-16 1 min read Bash Fedora Linux

$ purple-remote "setstatus?status=away&message=AFK" Thanks for the comment oshazard, i wasn&#8217;t aware of purple-remote existence.

  • <a href="http://www.commandlinefu.com/commands/view/4554/change-pidgin-status">View this command to comment, vote or add to favourites
  • <a href="http://feeds2.feedburner.com/commands/by/unixApe">View all commands by <a href="http://feeds2.feedburner.com/commands/by/unixApe">unixApe

<a href="http://www.commandlinefu.com"><img src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/header-logo.jpg" alt="" align="bottom" />

by David Winterbottom (<a href="http://codeinthehole.com">codeinthehole.com)

<a href="http://feedads.g.doubleclick.net/~a/xmocNuFfObClC-QnA38odl3AWt8/0/da"><img src="http://blog.amit-agarwal.com/wp-content/uploads/img.zemanta.com/~a/xmocNuFfObClC-QnA38odl3AWt8/0/di" alt="" align="bottom" />
<a href="http://feedads.g.doubleclick.net/~a/xmocNuFfObClC-QnA38odl3AWt8/1/da"><img src="http://blog.amit-agarwal.com/wp-content/uploads/img.zemanta.com/~a/xmocNuFfObClC-QnA38odl3AWt8/1/di" alt="" align="bottom" />

<img src="http://blog.amit-agarwal.com/wp-content/uploads/img.zemanta.com/~r/Command-line-fu/~4/Ky02xAVnP7w" alt="" width="1" height="1" align="bottom" />

URL: <a href="http://feedproxy.google.com/~r/Command-line-fu/~3/Ky02xAVnP7w/change-pidgin-status">http://feedproxy.google.com/~r/Command-line-fu/~3/Ky02xAVnP7w/change-pidgin-status

Teaching Kids Programming with Free Programming Languages

2010-06-16 1 min read Linux

<a href="http://blog.amit-agarwal.co.in/category/linux/">Bookmark this category
Teaching Kids Programming with Free Programming Languages Tech Source From Bohol: &#8221;Most of these languages are graphics-based that makes them fun and attractive for young ones or even for adults who are absolute beginner in programming. So enjoy and teach your kids programming with these free programming languages.&#8221;

URL: <a href="http://linuxtoday.com/news_story.php3?ltsn=2009-10-02-010-35-OS-SW-DV">http://linuxtoday.com/news_story.php3?ltsn=2009-10-02-010-35-OS-SW-DV

wmctrl – window control manager

2010-06-16 0 min read Fedora Linux
\"Blue
Image via Wikipedia

What is <a class="zem_slink freebase/en/wmctrl" title="Wmctrl" rel="wikipedia" href="http://en.wikipedia.org/wiki/Wmctrl">wmctrl?

wmctrl  is  a  command that can be used to interact with an X Window manager that is compatible with the EWMH/NetWM specification.  wmctrl can query the <a class="zem_slink freebase/en/window_manager" title="Window manager" rel="wikipedia" href="http://en.wikipedia.org/wiki/Window_manager">window manager for information, and it can request that certain window management actions be taken.

Continue reading

Periodically download and use as wallpaper from Flickr in Fedora using Webilder.

2010-06-16 1 min read Fedora

Ever wanted to have wallpaper downloaded from Flickr directly using the tags and then apply them as wallpaper, then the way to go is download Webilder <a href="http://www.webilder.org/static/downloads/Webilder-0.6.3.tar.gz">here. Just do the regular stuff to install the same.

tar xvfz

cd

./configure

make

sudo make install

And then right click on the gnome panel and add the widget. Configure the tags to download and the duration to change the wallpaper and enjoy.

Continue reading

17 Cool firefox tweaks.

2010-06-16 1 min read Fedora Firefox Linux

A very nice article on firefox can be found here. Though written for Ubuntu should be applicable to all distro&#8217;s.

<a href="http://www.ubuntu-inside.me/2009/07/17-cool-firefox-aboutconfig-tricks.html">http://www.ubuntu-inside.me/2009/07/17-cool-firefox-aboutconfig-tricks.html

Most of it was done in my machine even before I read the article but good to see all of them together 🙂

Older posts Newer posts