https://xn--n-soa.lt/w//index.php?title=Fbwall&feed=atom&action=history
Fbwall - Versijų istorija
2024-03-29T12:23:52Z
Šio puslapio versijų istorija projekte
MediaWiki 1.35.1
https://xn--n-soa.lt/w//index.php?title=Fbwall&diff=9425&oldid=prev
\dev\null 21:01, 9 rugpjūčio 2022
2022-08-09T21:01:07Z
<p></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="lt">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Ankstesnė versija</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">21:01, 9 rugpjūčio 2022 versija</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l73" >73 eilutė:</td>
<td colspan="2" class="diff-lineno">73 eilutė:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>( cat $IMGPATH/BACKGROUND.fbimg > /dev/fb0 &) > /dev/null; fbterm</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>( cat $IMGPATH/BACKGROUND.fbimg > /dev/fb0 &) > /dev/null; fbterm</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div></Syntaxhighlight></div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div></Syntaxhighlight></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">[[Category:Scripts]]</ins></div></td></tr>
</table>
\dev\null
https://xn--n-soa.lt/w//index.php?title=Fbwall&diff=9424&oldid=prev
\dev\null 22:44, 7 rugpjūčio 2022
2022-08-07T22:44:14Z
<p></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="lt">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Ankstesnė versija</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">22:44, 7 rugpjūčio 2022 versija</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l48" >48 eilutė:</td>
<td colspan="2" class="diff-lineno">48 eilutė:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>IMAGE="$( readlink -f "$@" )"</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>IMAGE="$( readlink -f "$@" )"</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>( sleep 1; cat /dev/fb0 > $IMGPATH/BACKGROUND.fbimg ) & fbi -t 2 -1 --noverbose -a "$IMAGE"</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>( sleep 1; cat /dev/fb0 > $IMGPATH/BACKGROUND.fbimg ) & fbi -t 2 -1 --noverbose -a "$IMAGE"</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">fi</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">if [[ ! -e $IMGPATH/BACKGROUND.fbimg ]]; then</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"> echo "Generated image file not found"</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"> echo "You must run script with image file as it's first parameter"</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"> exit 1</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>fi</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>fi</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
</table>
\dev\null
https://xn--n-soa.lt/w//index.php?title=Fbwall&diff=9423&oldid=prev
\dev\null: Naujas puslapis: Scriptas skirtas uždėti wallpaperį ant linux framebuffer konsolių pasitelkiant fbterm ir fbi įrankius (pastarieji jau turi būti įdiegti sistemoje). <SyntaxHigh...
2022-08-07T22:41:44Z
<p>Naujas puslapis: Scriptas skirtas uždėti wallpaperį ant linux framebuffer konsolių pasitelkiant <a href="/w//index.php?title=Fbterm&action=edit&redlink=1" class="new" title="Fbterm (puslapis neegzistuoja)">fbterm</a> ir <a href="/w//index.php?title=Fbi&action=edit&redlink=1" class="new" title="Fbi (puslapis neegzistuoja)">fbi</a> įrankius (pastarieji jau turi būti įdiegti sistemoje). <SyntaxHigh...</p>
<p><b>Naujas puslapis</b></p><div>Scriptas skirtas uždėti wallpaperį ant linux framebuffer konsolių pasitelkiant [[fbterm]] ir [[fbi]] įrankius (pastarieji jau turi būti įdiegti sistemoje).<br />
<br />
<br />
<br />
<br />
<SyntaxHighlight lang="bash"><br />
#!/bin/bash<br />
# (c) 2022 refurbished by e1z0<br />
# source this file from your .bashrc<br />
<br />
# Original Author : Serg Kolo<br />
# Date: Dec 5, 2015<br />
# Description: Script to render image and set it as background<br />
# in conjunction with fbterm<br />
# Depends: fbterm,fbi, awk<br />
# Written for: https://askubuntu.com/q/701874/295286<br />
<br />
IMGPATH="/opt/fb"<br />
<br />
if [[ ! -d $IMGPATH ]]; then<br />
mkdir $IMGPATH<br />
fi<br />
<br />
function printUsage<br />
{<br />
echo "<<< Script to set background image in TTY console"<br />
echo "<<< Written by Serg Kolo, Dec 5 , 2015"<br />
echo "<<< First time run: fbwall /path/to/image"<br />
echo "<<< It will generate corresponding image used by fbterm"<br />
echo "<<< Second times you only need to run fbwall without any parameters"<br />
echo "<<< But if you want to change wallpaper you must run with parameter"<br />
echo "<<< Must be ran with root privileges, in TTY only"<br />
echo "exiting"<br />
<br />
}<br />
<br />
# check if we're root, if there's at least one ARG, and it is a TTY<br />
<br />
if [ "$( tty | awk '{gsub(/[[:digit:]]/,""); gsub(/\/dev\//,"");print}' )" != "tty" ] ;then<br />
exit 1<br />
fi<br />
<br />
# Launch fbi with whatever image was supplied as command line arg<br />
# then take out whatever is the data in framebuffer;<br />
# Store that data to /tmp folder<br />
<br />
if [[ "$1" != "" ]]; then<br />
IMAGE="$( readlink -f "$@" )"<br />
( sleep 1; cat /dev/fb0 > $IMGPATH/BACKGROUND.fbimg ) & fbi -t 2 -1 --noverbose -a "$IMAGE"<br />
fi<br />
<br />
# This portion is really optional; you can comment it out <br />
# if you choose so<br />
<br />
# The man page states that fbterm takes screenshot of <br />
# what is currently in framebuffer and sets it as background<br />
# if FBTERM_BACKGROUND_IMAGE is set to 1<br />
# Therefore the trick is to send the framebuffer data captured<br />
# in the last step (which will display the image on screen)<br />
# and then launch fbterm. Note, that I send output from the command<br />
# send to background in order to avoid the extra text displayed on <br />
# screen. That way we have clear image in framebuffer, without <br />
# the shell text, when we launch fbterm<br />
<br />
export FBTERM_BACKGROUND_IMAGE=1<br />
clear<br />
( cat $IMGPATH/BACKGROUND.fbimg > /dev/fb0 &) > /dev/null; fbterm<br />
</Syntaxhighlight></div>
\dev\null