mirror of
https://github.com/KittyKatt/screenFetch.git
synced 2026-04-24 03:00:16 -04:00
Fixed some typos and updated README/CHANGELOG
This commit is contained in:
@@ -6,6 +6,8 @@
|
||||
v1.7.9
|
||||
- Added support to DETECT the following window managers: dwm, awesome, and WindowMaker
|
||||
- Added support for lighter backgrounds. If you have a lighter background, specify -l as a flag on the command-line. This will turn all white output to dark gray output.
|
||||
- screenFetch was featured in the ALM (Arch Linux Magazine)! The issue can be found
|
||||
and downloaded at http://www.archlinux.org/static/magazine/2010/ALM-2010-Apr.pdf
|
||||
|
||||
v1.7.7
|
||||
- Added FVWM support per request of goran'agar on the Arch forums.
|
||||
|
||||
22
README
22
README
@@ -1,22 +0,0 @@
|
||||
screenFetch - A system/theme information fetcher for Linux screenshots.
|
||||
|
||||
This handy Bash script can be used to generate one of those nifty
|
||||
terminal theme information + ASCII distribution logos you see in
|
||||
everyone's screenshots nowadays. You choose the distribution logo, and
|
||||
can customize the colors and commands that the script uses to take the
|
||||
actual screenshot.
|
||||
|
||||
This script is very easy to add to and can easily be extended. If you
|
||||
have any ideas/additions to make, please do so at
|
||||
http://github.com/KittyKatt/screenFetch or by emailing me at
|
||||
kittykatt@archlinux.us . You can also reach me by connecting to my IRC
|
||||
network, SilverIRC, at irc://kittykatt.silverirc.com:6669/me0wz . Any
|
||||
ASCII logo additions would be welcome, as well.
|
||||
|
||||
All you need to do is download the file "screenFetch" and edit the
|
||||
settings at the top of the file. There are comments that should make all
|
||||
of the settings fairly easy to edit there.
|
||||
|
||||
Have fun and happy screenshotting. ;)
|
||||
|
||||
~KittyKatt (Brett Bohnenkamper)
|
||||
61
README.mkdn
Normal file
61
README.mkdn
Normal file
@@ -0,0 +1,61 @@
|
||||
screenFetch - The Bash Screenshot Information Tool
|
||||
===============
|
||||
|
||||
What is screenFetch?
|
||||
---------------------
|
||||
|
||||
screenFetch is a "Bash Screenshot Information Tool". This handy Bash
|
||||
script can be used to generate one of those nifty terminal theme
|
||||
information + ASCII distribution logos you see in everyone's screenshots
|
||||
nowadays. It will auto-detect your distribution and display an ASCII
|
||||
version of that distribution's logo and some valuable information to the
|
||||
right. There are options to specify no ascii art, colors, taking a
|
||||
screenshot upon displaying info, and even customizing the screenshot
|
||||
command! This script is very easy to add to and can easily be extended.
|
||||
|
||||
How do I get screenFetch?
|
||||
---------------------
|
||||
|
||||
Arch Linux Users:
|
||||
1. Install screenfetch-git from the AUR. That's it!
|
||||
|
||||
Others:
|
||||
1. Download the latest source.
|
||||
Found at http://github.com/KittyKatt/screenFetch/raw/master/latest/screenFetch
|
||||
2. In a terminal, make the file executable by doing the following:
|
||||
`chmod +x /path/to/screenFetch`
|
||||
3. Then, either keep it there, or move it to somewhere in your $PATH to make it
|
||||
available without having to use the full path to the script.
|
||||
|
||||
That's it!
|
||||
|
||||
|
||||
How to run screenFetch
|
||||
------------------------
|
||||
|
||||
To run screenFetch, open a terminal of some sort and type in the command `screenFetch`
|
||||
or wherever you saved the script to. This will generate an ascii logo with the
|
||||
information printed to the side of the logo. There are some options that may be
|
||||
specifiedon the command line, and those are shown below or by executing `screenFetch -h`:
|
||||
|
||||
-v Verbose output.
|
||||
-n Do no display ASCII distribution logo.
|
||||
-s Using this flag tells the script that you want it to
|
||||
take a screenshot.
|
||||
-c 'COMMAND' Here you can specify a custom screenshot command for
|
||||
the script to execute. Surrounding quotes are required.
|
||||
-D 'DISTRO' Here you can specify your distribution for the script
|
||||
to use. Surrounding quotes are required.
|
||||
-V Specify that you have a light background. This
|
||||
turns all white text into dark gray text (in ascii
|
||||
logos and in information output).
|
||||
-V Display current script version.
|
||||
-h Display this help.
|
||||
|
||||
|
||||
Contact Me
|
||||
------------------------
|
||||
If you would like to suggest something new, inform me of an issue in the
|
||||
script, become part of the project, or talk to me about anything else,
|
||||
you can either email me at `kittykattATarchlinuxDOTus` or you can connect
|
||||
to my IRC server on SilverIRC at irc://kittykatt.silverirc.com/me0wz
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
#
|
||||
# screenFetch (v1.7.7-dev)
|
||||
# screenFetch (v1.7.9)
|
||||
#
|
||||
# Script to fetch system and theme settings for screenshots in most mainstream
|
||||
# Linux distributions.
|
||||
@@ -28,7 +28,7 @@
|
||||
# to put forth suggestions/ideas. Thank you.
|
||||
#
|
||||
|
||||
scriptVersion="1.7.7-dev"
|
||||
scriptVersion="1.7.9"
|
||||
|
||||
######################
|
||||
# Settings for fetcher
|
||||
@@ -86,16 +86,16 @@ while getopts ":hsvVnlc:D:" flags; do
|
||||
echo "screenFetch - a CLI Bash script to show system/theme info in screenshots."
|
||||
echo ""
|
||||
echo -e "${underline}Supported Distributions${c0}: Arch Linux, Linux Mint, Ubuntu, Crunchbang, Debian, Fedora, and BSD"
|
||||
echo -e "${underline}Supported Desktop Managers${c0}: KDE, GNOME, XFCE, and LXDE"
|
||||
echo -e "${underline}Supported Window Managers${c0}: PekWM, OpenBox, FluxBox, BlackBox, Xfwm4m, Metacity, KWin, IceWM and FVWM"
|
||||
echo -e "${underline}Supported Desktop Managers${c0}: KDE, GNOME, XFCE, and LXDE, and Not Present"
|
||||
echo -e "${underline}Supported Window Managers${c0}: PekWM, OpenBox, FluxBox, BlackBox, Xfwm4m, Metacity, KWin, IceWM, FVWM, DWM, Awesome, and WindowMaker"
|
||||
echo ""
|
||||
echo -e "${underline}Options${c0}:"
|
||||
echo -e " ${bold}-v${c0} Verbose output."
|
||||
echo -e " ${bold}-n${c0} Do no display ASCII distribution logo."
|
||||
echo -e " ${bold}-s${c0} Using this flag tells the script that you want it to take a screenshot."
|
||||
echo -e " ${bold}-l${c0} Specify that you have a light background. This turns all white text into dark gray text (in ascii logos and in information output)."
|
||||
echo -e " ${bold}-c 'COMMAND'${c0} Here you can specify a custom screenshot command for the script to execute. Surrounding quotes are required."
|
||||
echo -e " ${bold}-D 'DISTRO'${c0} Here you can specify your distribution for the script to use. Surrounding quotes are required."
|
||||
echo -e " ${bold}-l${c0} Specify that you have a light background. This turns all white text into dark gray text (in ascii logos and in information output)."
|
||||
echo -e " ${bold}-V${c0} Display current script version."
|
||||
echo -e " ${bold}-h${c0} Display this help."
|
||||
exit
|
||||
@@ -233,7 +233,7 @@ detectwmtheme () {
|
||||
'FluxBox') if [ -f $HOME/.fluxbox/init ]; then Win_theme=`awk -F"/" '/styleFile/ {print $NF}' $HOME/.fluxbox/init`; fi;;
|
||||
'BlackBox') if [ -f $HOME/.blackboxrc ]; then Win_theme=`awk -F"/" '/styleFile/ {print $NF}' $HOME/.blackbox/init`; fi;;
|
||||
'Metacity') if gconftool-2 -g /apps/metacity/general/theme; then Win_theme=`gconftool-2 -g /apps/metacity/general/theme`; fi;;
|
||||
'Xfwm4') if [ -f $HOME/.config/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml ]; then Win_theme=`xfconf-query -c xfwm4 -p /general/theme`; fi;;
|
||||
'XFCE') if [ -f $HOME/.config/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml ]; then Win_theme=`xfconf-query -c xfwm4 -p /general/theme`; fi;;
|
||||
'IceWM') if [ -f $HOME/.icewm/theme ]; then Win_theme=`awk -F"[\",/]" '!/#/ {print $2}' $HOME/.icewm/theme`; fi;;
|
||||
'KWin') if [ -f $HOME/.kde/share/config/kwinrc ]; then Win_theme=`awk -F"[<,>]" '/<theme/ { getline; print $3 }' $HOME/.config/openbox/rc.xml`; fi;;
|
||||
'Emerald') if [ -f $HOME/.emerald/theme/theme.ini ]; then Win_theme=`for a in /usr/share/emerald/themes/* $HOME/.emerald/themes/*; do cmp "$HOME/.emerald/theme/theme.ini" "$a/theme.ini" &>/dev/null && basename "$a"; done`; fi;;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
#
|
||||
# screenFetch (v1.7.7-dev)
|
||||
# screenFetch (v1.7.9)
|
||||
#
|
||||
# Script to fetch system and theme settings for screenshots in most mainstream
|
||||
# Linux distributions.
|
||||
@@ -28,7 +28,7 @@
|
||||
# to put forth suggestions/ideas. Thank you.
|
||||
#
|
||||
|
||||
scriptVersion="1.7.7-dev"
|
||||
scriptVersion="1.7.9"
|
||||
|
||||
######################
|
||||
# Settings for fetcher
|
||||
@@ -86,16 +86,16 @@ while getopts ":hsvVnlc:D:" flags; do
|
||||
echo "screenFetch - a CLI Bash script to show system/theme info in screenshots."
|
||||
echo ""
|
||||
echo -e "${underline}Supported Distributions${c0}: Arch Linux, Linux Mint, Ubuntu, Crunchbang, Debian, Fedora, and BSD"
|
||||
echo -e "${underline}Supported Desktop Managers${c0}: KDE, GNOME, XFCE, and LXDE"
|
||||
echo -e "${underline}Supported Window Managers${c0}: PekWM, OpenBox, FluxBox, BlackBox, Xfwm4m, Metacity, KWin, IceWM and FVWM"
|
||||
echo -e "${underline}Supported Desktop Managers${c0}: KDE, GNOME, XFCE, and LXDE, and Not Present"
|
||||
echo -e "${underline}Supported Window Managers${c0}: PekWM, OpenBox, FluxBox, BlackBox, Xfwm4m, Metacity, KWin, IceWM, FVWM, DWM, Awesome, and WindowMaker"
|
||||
echo ""
|
||||
echo -e "${underline}Options${c0}:"
|
||||
echo -e " ${bold}-v${c0} Verbose output."
|
||||
echo -e " ${bold}-n${c0} Do no display ASCII distribution logo."
|
||||
echo -e " ${bold}-s${c0} Using this flag tells the script that you want it to take a screenshot."
|
||||
echo -e " ${bold}-l${c0} Specify that you have a light background. This turns all white text into dark gray text (in ascii logos and in information output)."
|
||||
echo -e " ${bold}-c 'COMMAND'${c0} Here you can specify a custom screenshot command for the script to execute. Surrounding quotes are required."
|
||||
echo -e " ${bold}-D 'DISTRO'${c0} Here you can specify your distribution for the script to use. Surrounding quotes are required."
|
||||
echo -e " ${bold}-l${c0} Specify that you have a light background. This turns all white text into dark gray text (in ascii logos and in information output)."
|
||||
echo -e " ${bold}-V${c0} Display current script version."
|
||||
echo -e " ${bold}-h${c0} Display this help."
|
||||
exit
|
||||
@@ -233,7 +233,7 @@ detectwmtheme () {
|
||||
'FluxBox') if [ -f $HOME/.fluxbox/init ]; then Win_theme=`awk -F"/" '/styleFile/ {print $NF}' $HOME/.fluxbox/init`; fi;;
|
||||
'BlackBox') if [ -f $HOME/.blackboxrc ]; then Win_theme=`awk -F"/" '/styleFile/ {print $NF}' $HOME/.blackbox/init`; fi;;
|
||||
'Metacity') if gconftool-2 -g /apps/metacity/general/theme; then Win_theme=`gconftool-2 -g /apps/metacity/general/theme`; fi;;
|
||||
'Xfwm4') if [ -f $HOME/.config/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml ]; then Win_theme=`xfconf-query -c xfwm4 -p /general/theme`; fi;;
|
||||
'XFCE') if [ -f $HOME/.config/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml ]; then Win_theme=`xfconf-query -c xfwm4 -p /general/theme`; fi;;
|
||||
'IceWM') if [ -f $HOME/.icewm/theme ]; then Win_theme=`awk -F"[\",/]" '!/#/ {print $2}' $HOME/.icewm/theme`; fi;;
|
||||
'KWin') if [ -f $HOME/.kde/share/config/kwinrc ]; then Win_theme=`awk -F"[<,>]" '/<theme/ { getline; print $3 }' $HOME/.config/openbox/rc.xml`; fi;;
|
||||
'Emerald') if [ -f $HOME/.emerald/theme/theme.ini ]; then Win_theme=`for a in /usr/share/emerald/themes/* $HOME/.emerald/themes/*; do cmp "$HOME/.emerald/theme/theme.ini" "$a/theme.ini" &>/dev/null && basename "$a"; done`; fi;;
|
||||
|
||||
Reference in New Issue
Block a user