Answer the question
In order to leave comments, you need to log in
How to generate desktop wallpaper with laptop options?
Hi all!
I have such a problem: we have a small network of electronics stores, for laptops that we put on the showcase there are several requirements:
Answer the question
In order to leave comments, you need to log in
So write yourself at least in PHP, at least in bash.
There's work for an hour, including googling.
#!/bin/bash
get_hardware () {
echo "'"
grep 'model name' /proc/cpuinfo | uniq | sed 's/model name/CPU/' |sed 's// /g'
echo "RAM: $(free -m | awk '/Mem:/ {print $2}') MB"
echo "Disk model: $(LANG=C sudo lshw -class disk | awk '/product:/ {gsub (" product: ", "") ; print}')"
echo "Disk capacity: $(LANG=C sudo lshw -class disk | awk '/size:/ {gsub (" size: ", "") ; print}')"
echo "'"
}
convert -size 1600x900 xc:transparent -font Ubuntu-Regular -pointsize 72 -channel RGBA -fill black -draw "text 20,55 $(get_hardware)" fuzzy-tweaks.png
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question