screenFetch - The Bash Screenshot Information Tool

About programming and getting involved with Linux Mint development
Forum rules
Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
KittyKatt
Level 3
Level 3
Posts: 116
Joined: Sun Jun 14, 2009 12:12 pm
Contact:

screenFetch - The Bash Screenshot Information Tool

Post 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
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 7 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
remoulder
Level 17
Level 17
Posts: 7621
Joined: Fri May 09, 2008 1:14 pm

Re: screenFetch - The Bash Screenshot Information Tool

Post by remoulder »

Hey that's pretty impressive, hate your ascii art though! :D
[Edit] your original post and add [SOLVED] once your question is resolved.

“The people are my God” stressing the factor determining man’s destiny lies within man not in anything outside man, and thereby defining man as the dominator and remoulder of the world.
User avatar
KittyKatt
Level 3
Level 3
Posts: 116
Joined: Sun Jun 14, 2009 12:12 pm
Contact:

Re: screenFetch - The Bash Screenshot Information Tool

Post 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
piratesmack

Re: screenFetch - The Bash Screenshot Information Tool

Post by piratesmack »

KittyKatt wrote:Slackware (untested)
Tested and working,
Nice script! :)
User avatar
KittyKatt
Level 3
Level 3
Posts: 116
Joined: Sun Jun 14, 2009 12:12 pm
Contact:

Re: screenFetch - The Bash Screenshot Information Tool

Post by KittyKatt »

piratesmack wrote:
KittyKatt wrote:Slackware (untested)
Tested and working,
Nice script! :)
Awesome! :D I'll mark it as working.
ShexNivis

Re: screenFetch - The Bash Screenshot Information Tool

Post by ShexNivis »

awesome ascii art imo
User avatar
KittyKatt
Level 3
Level 3
Posts: 116
Joined: Sun Jun 14, 2009 12:12 pm
Contact:

Re: screenFetch - The Bash Screenshot Information Tool

Post by KittyKatt »

ShexNivis wrote:awesome ascii art imo
Heh. Thanks. ^^;
User avatar
KittyKatt
Level 3
Level 3
Posts: 116
Joined: Sun Jun 14, 2009 12:12 pm
Contact:

Re: screenFetch - The Bash Screenshot Information Tool

Post 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?
User avatar
KittyKatt
Level 3
Level 3
Posts: 116
Joined: Sun Jun 14, 2009 12:12 pm
Contact:

Re: screenFetch - The Bash Screenshot Information Tool

Post 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. :)
User avatar
KittyKatt
Level 3
Level 3
Posts: 116
Joined: Sun Jun 14, 2009 12:12 pm
Contact:

Re: screenFetch - The Bash Screenshot Information Tool

Post 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
Brahim Salem

Re: screenFetch - The Bash Screenshot Information Tool

Post by Brahim Salem »

How can I install it :roll: :roll: :roll:
User avatar
KittyKatt
Level 3
Level 3
Posts: 116
Joined: Sun Jun 14, 2009 12:12 pm
Contact:

Re: screenFetch - The Bash Screenshot Information Tool

Post by KittyKatt »

All you have to do is download the screenfetch-dev file, make it executable, and run it in a terminal. :)
PatH57

Re: screenFetch - The Bash Screenshot Information Tool

Post 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
User avatar
xenopeek
Level 25
Level 25
Posts: 29459
Joined: Wed Jul 06, 2011 3:58 am

Re: screenFetch - The Bash Screenshot Information Tool

Post 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).
Image
Locked

Return to “Programming & Development”