View Single Post
Posts: 10 | Thanked: 5 times | Joined on Jan 2010 @ Tasmania, Australia
#186
Apologies for the double post

Originally Posted by thesnake505 View Post
hay guys, i was wondering if there is a list, like a wiki page of comands that will work with dsew widget?
also is it possible to get "top" working, iv had a qucik go, including following some advice to try

top -b

however all i get is invalid command

cheers snake
To get the top two applications I use top -bn 1 | grep -v top | head -n 5 | tail -n 2. This will always exclude top itself. You should also give due consideration to having a .toprc file (see the top man page for details). Beware though: having this widget uses a surprising amount of CPU, so only refresh occasionally (i.e. probably not on switch and every minute).

To get more you have to change n for both head and tail (i.e. for top three apps it's head -n 6 | tail -n 3, for top one is head -n 4 | tail -n 1).