Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 4f4e6ed

Browse files
author
dylan araps
committed
Big update, check the releases page
1 parent 148ec7a commit 4f4e6ed

File tree

2 files changed

+207
-141
lines changed

2 files changed

+207
-141
lines changed

Readme.md

Lines changed: 36 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# fetch.sh
2+
### Check the releases page
23

34
https://github.com/dylanaraps/fetch.sh
45

@@ -18,24 +19,35 @@ for as many people as possible.
1819

1920
## Dependencies
2021

21-
These are the script's dependencies:
22+
These are the script's required dependencies
23+
24+
- Text formatting, dynamic image size and padding: tput
25+
26+
These are the script's optional dependencies:
2227

2328
- Displaying Images: w3m
2429
- Image Cropping: ImageMagick
2530
- Display Wallpaper: feh
2631
- Current Song: mpc
2732

28-
These are the script's optional dependencies
29-
- Window Manager Detection: wmctrl
30-
- You can manually set this at launch with:
31-
32-
```sh
33-
scrot.sh --winman string
34-
```
3533

3634
## Usage
3735

38-
The whitespace
36+
The script now supports dynamic image sizing and padding,
37+
<br\> they're enabled by default and there's a variable you
38+
<br\> need to set for it to work correctly.
39+
40+
You can either change the variable $fontwidth inside of the
41+
<br\> script or launch it with "--fontwidth num".
42+
43+
Once you set the var the script will scale the image and padding
44+
<br\> to fit your terminal window.
45+
46+
You can disable this by changing the var "$img_auto" or by launching
47+
<br\> the script with "--size px".
48+
49+
Please report any bugs or issues you're having with this as I can't
50+
<br\> test with many configurations.
3951

4052

4153
```
@@ -64,24 +76,33 @@ Text Colors:
6476
--coloncol num Change the color of the colons
6577
--infocol num Change the color of the info
6678
79+
Text Formatting:
80+
--nowrap Disable line wrapping
81+
--nobold Disable bold text
82+
6783
Color Blocks:
6884
--printcols start end Range of colors to print as blocks
85+
--blockwidth num Width of color blocks"
6986
--nopal Disable the color blocks
7087
7188
Image:
7289
--image Image to display with the script
7390
The image gets priority over other
7491
images: (wallpaper, \$img)
92+
93+
--fontwidth Used to automatically size the image
7594
--size px Change the size of the image
7695
--cropoffset value Change the crop offset. Possible values:
7796
northwest, north, northeast, west, center
7897
east, southwest, south, southeast
79-
--padding How many spaces to pad the text
98+
--padding num How many spaces to pad the text
8099
to the right
81100
--xoffset px How close the image will be
82101
to the left edge of the window
83102
--yoffset px How close the image will be
84103
to the top edge of the window
104+
105+
--gap num Gap between image and text right side
85106
--noimg Disable all images
86107
--nowall Disable the wallpaper function
87108
and fallback to \$img
@@ -97,11 +118,9 @@ Other:
97118
Here's what's on my todo list
98119

99120
- Add an easy way to define info prefixes at launch.
100-
- Find a reliable way to set the text padding dynamically. I can get this to
101-
<br/> work based on font width but there's no reliable way of getting
102-
<br/> fontwidth for every terminal afaik.
103-
104-
If you've got any ideas on how to solve these problems, let me know!
121+
- Finish adding an option to smart crop images with plain color backgrounds.
122+
<br/>What this means is that your solid bg waifu wallpaper will be cropped around
123+
<br/>your waifu no matter where she is in the image.
105124

106125

107126
## Customization
@@ -113,9 +132,10 @@ fetch () {
113132
fetch.sh \
114133
--printcols 1 7 \
115134
--cpu "AMD FX-6300" \
116-
--song "$(mpc current | cut -c 1-30)" \
117135
--uptime "$(uptime -p | sed -e 's/minutes/mins/')" \
118136
--title "dylan's pc" \
137+
--nowrap \
138+
--nobold \
119139
$@
120140
}
121141
```

0 commit comments

Comments
 (0)