Page 1 of 1

screenFetch - The Bash Screenshot Information Tool

Posted: Mon Apr 05, 2010 11:32 am
by KittyKatt
screenFetch

The title pretty much explains it. screenFetch is a screenshot information tool, similar to archinfo and archey, except in Bash instead of Perl or Python. ;)

Features:
- Detects Desktop Environment, Kernel, Uptime, Window Manager, Window Manager Theme, GTK Theme, GTK Icon Theme, and GTK Font. It also attempts to detect running distribution, but it's a little sketchy at the moment and needs a lot of testing.
- Supported distros: Arch Linux, Linux Mint, Ubuntu, Debian, Fedora (untested), Slackware, SUSE (untested), Mandriva/Mandrake (untested), Crunchbang (untested), Gentoo (untested), and Tiny Core.
- Supported Desktop Environments: KDE, GNOME, XFCE, LXDE, and "Not Present".
- Supported Window Managers: PekWM, OpenBox, FluxBox, BlackBox, Xfwm4m, Metacity, KWin, IceWM, FVWM, DWM, Awesome, and WindowMaker (if you can find files or syntaxes to detect the theme of more window managers, let me know!)
- Outputs ASCII logo with information, though you may specify to only output information and no ASCII art.
- Flag to execute a scrot command to take screenshot named 'screenFetch-(YEAR)-(MONTH)-(DAY).png'
- Ability to specify custom distribution name and custom screenshot command in execution on command-line.
- Verbose output

Screenshots:

My official screenshots
Current
Image
Image
Old
Image
Image Image

I made most of these ASCII logos myself, so don't be too critical. ;)


User Contributed Screenshots
Image


More to come!


And finally, the source code can be found at either github or code.google.com (github will be more up to date as I am personally maintaining that one):

http://git.silverirc.com/cgit.cgi/screenfetch-dev.git


Latest version can always be found in this folder: http://git.silverirc.com/cgit.cgi/scree ... .git/tree/
Latest raw source (wget/curl-able) can always be found here: http://git.silverirc.com/cgit.cgi/scree ... nfetch-dev
NEW! Debian package - http://served.kittykatt.us/projects/scr ... -2.4.0.deb

Current Latest Version: v2.4.0

Before you say it, yes I do realize some of this is horribly ugly coding. This is one of my first big projects, so I'm welcome to constructive criticism. I'd rather not get "Go home. Try again." types of responses, if you wouldn't mind. ^^;

Any suggestions will be welcome! email me at kittykattATkittykattDOTus or stop by my IRC network, SilverIRC, at irc://kittykatt.silverirc.com/randomz or irc://kittykatt.silverirc.com/me0wz

Re: screenFetch - The Bash Screenshot Information Tool

Posted: Mon Apr 05, 2010 11:46 am
by remoulder
Hey that's pretty impressive, hate your ascii art though! :D

Re: screenFetch - The Bash Screenshot Information Tool

Posted: Mon Apr 05, 2010 1:04 pm
by KittyKatt
remoulder wrote:Hey that's pretty impressive, hate your ascii art though! :D
Well, I'm ALWAYS welcome to new ideas. If you've got some better ones in mind, go ahead and post them and I'll have a look. :D

Re: screenFetch - The Bash Screenshot Information Tool

Posted: Mon Apr 12, 2010 9:55 am
by piratesmack
KittyKatt wrote:Slackware (untested)
Tested and working,
Nice script! :)

Re: screenFetch - The Bash Screenshot Information Tool

Posted: Tue Apr 13, 2010 11:08 am
by KittyKatt
piratesmack wrote:
KittyKatt wrote:Slackware (untested)
Tested and working,
Nice script! :)
Awesome! :D I'll mark it as working.

Re: screenFetch - The Bash Screenshot Information Tool

Posted: Mon May 03, 2010 7:04 pm
by ShexNivis
awesome ascii art imo

Re: screenFetch - The Bash Screenshot Information Tool

Posted: Wed May 05, 2010 10:31 am
by KittyKatt
ShexNivis wrote:awesome ascii art imo
Heh. Thanks. ^^;

Re: screenFetch - The Bash Screenshot Information Tool

Posted: Wed Sep 29, 2010 4:18 pm
by KittyKatt
WELL! I haven't posted in this in awhile. screenFetch is up to version 2.1.5 now, so if you're using a version lower than that go ahead and check the GIT repo for a new release. Also, I've moved screenfetch to SilverIRC's own GIT repository and updated all of the links in the original post to reflect that.

One problem I've been running into involves the way gdm3 launches X, at least on LMDE. I'm running a default LMDE install on one of my partitions (GNOME DE w/ Metacity/Compiz) and there is no "gnome-session" process in the process tree like I expect there to be. So how does one detect GNOME? Right now I'm just checking for gnome-settings-daemon, but that will break as soon as someone uses a GNOME app outside of GNOME itself.

Any ideas?

Re: screenFetch - The Bash Screenshot Information Tool

Posted: Mon Feb 06, 2012 3:55 am
by KittyKatt
I've made a lot of changes and forgotten to bump this thread with them.

Version is now 2.3.9 and there's support for a LOT more stuff now. Go check it out on my github or at http://git.silverirc.com

There's also now a DEB that I created myself. This is my first time with Debian packaging standards...EVER. So let me know what I did wrong. :) Here's the link: http://served.kittykatt.us/projects/scr ... -2.3.9.deb

Updated original post. :)

Re: screenFetch - The Bash Screenshot Information Tool

Posted: Fri Feb 10, 2012 8:35 am
by KittyKatt
sF now displays total number of packages, CPU information, and RAM usage. :)

http://served.kittykatt.us/projects/scr ... -2.4.0.deb

Another couple of version changes!
Bump for a couple of version changes (v2.4.3 now) and a cool new feature for you all: you can now color the output as you wish!

Here's how: I've redone the flags a little bit so that -c now has a different functionality. When called, -c will take the argument it's given in the following format [0-9][0-9],[0-9][0-9]. Both arguments are optional (meaning you can specify one side of the comma and not the other). The first argument will control all of the colors of the ASCII logo and the label colors. The second argument will control the color of the result text. Want some screenshots? Sure, here ya go.


Image

Re: screenFetch - The Bash Screenshot Information Tool

Posted: Sat Apr 13, 2013 5:24 am
by Brahim Salem
How can I install it :roll: :roll: :roll:

Re: screenFetch - The Bash Screenshot Information Tool

Posted: Sat Apr 13, 2013 8:07 pm
by KittyKatt
All you have to do is download the screenfetch-dev file, make it executable, and run it in a terminal. :)

Re: screenFetch - The Bash Screenshot Information Tool

Posted: Sat Jul 05, 2014 2:32 am
by PatH57
Hi,

I was trying to get your files but couldn't ...Are they still online?
Would love to try it on mint 13 mate and 17 mate.
TA
Patrick

Re: screenFetch - The Bash Screenshot Information Tool

Posted: Sat Jul 05, 2014 2:48 am
by xenopeek
screenFetch is in KittyKatt's github repo: https://github.com/KittyKatt/screenFetch. Follow the instructions there, though where it tells you to get screenfetch-dev file from "http://git.silverirc.com/cgit.cgi/scree ... nfetch-dev" ignore that and instead get if from that same page instead (in the list of files at the top).