not really, it was offered as bundle for openbox for RC1 (now archived) eg. http://mirrors.dotsrc.org/porteus/x86_6 ... 1/bundles/
it would seem it still works for RC3
not really, it was offered as bundle for openbox for RC1 (now archived) eg. http://mirrors.dotsrc.org/porteus/x86_6 ... 1/bundles/
I presumed geany would not go down the dark and dirty path Mousepad uses. testing it it seems my presumption was correct.ncmprhnsbl wrote: ↑04 Oct 2021, 01:45text editors should (auto)set syntax highlighting based on content, not file extension..
Code: Select all
root@porteus:/tmp# stat /usr/local/bin/ffplay-hide_banner-drawtext /tmp/ffplay-hide_banner-drawtext*|grep -E "File:|Access: \("
File: /usr/local/bin/ffplay-hide_banner-drawtext
Access: (0755/-rwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
File: /tmp/ffplay-hide_banner-drawtext
Access: (0755/-rwxr-xr-x) Uid: ( 1000/ guest) Gid: ( 100/ users)
File: /tmp/ffplay-hide_banner-drawtext.sh
Access: (0755/-rwxr-xr-x) Uid: ( 1000/ guest) Gid: ( 100/ users)
Code: Select all
guest@porteus:/tmp$ mousepad ffplay-hide_banner-drawtext*
Code: Select all
ffplay-hide_banner
Code: Select all
#!/bin/sh
VERSION="0.2"
MYNAME="ffplay-hide_banner"
echo -e "$MYNAME V$VERSION"
ffprobe -hide_banner 2>&1 "$*" |grep Stream|grep "Video:" >/dev/null
if [ $? -eq 0 ]; then
# return-value zero -> video: default
ffplay -autoexit -hide_banner -i "$*"
else
# return-value non-zero -> audio only - adjusting…
ffplay -autoexit -hide_banner -showmode waves -x 500 -y 150 -i "$*"
fi
Code: Select all
ffprobe -hide_banner 2>&1 "$*" |grep Stream|grep "Video:" >/dev/null
Code: Select all
#for debugging purposes only!
echo "______________________________________
"
ffprobe -hide_banner 2>&1 "$*"
echo "______________________________________"
ffprobe -hide_banner 2>&1 "$*" |grep Stream|grep "Video:" >/dev/null
Code: Select all
#!/bin/sh
MYVERSION=V3.45# please add V at the beginning!
# V3.4 - $1 is the relative folder with the files, will be stripped of any "/" - e.g. Filme or Filme/ works but not /mnt/sda1/video/Filme nor /mnt/sda1/video/Filme/
# for now supported file endings are
# avi flv mp3 mp4 mpg mkv ogv TS ts webm divx VOB vob
# V3.4: now added "chmod -v a+x "$PARAMETER".sh - will create error message on NTFS or VFAT fs, necessary for Linux fs like ext2,ext3 etcetera.
# V3.5: now uses ffplay-hide_banner script instead of calling ffplay itself. ffplay-hide_banner distinguishes between video and media-file that is sound only. In the latter case the following is added: -showmode waves -x 500 -y 150
echo make-ffplay-script $MYVERSION
PARAMETER=$(echo "$1"|sed 's|/||g')
if [ -d "$PARAMETER" ]; then
echo working on "$PARAMETER"… writing into "$PARAMETER".sh
echo '#!/bin/sh
echo "$0"' >"$PARAMETER".sh
find "$PARAMETER" |grep -E "\.avi$|\.flv$|\.mp[34g]$|\.mkv$|\.ogv$|\.[tT][sS]$|\.webm$|\.divx$|\.[vV][oO][bB]$" |sort | while read line ; do
{
echo ffplay-hide_banner \"${line}\" >>"$PARAMETER".sh
} ; done
chmod -v a+x "$PARAMETER".sh
else
echo Given parameter "$PARAMETER" is not a directory. Abort.
exit 1
fi
Code: Select all
chmod: changing permissions of 'Scissor Seven.sh': Operation not permitted
failed to change mode of 'Scissor Seven.sh' from 0777 (rwxrwxrwx) to 0777 (rwxrwxrwx)
Code: Select all
#!/bin/sh
VERSION="0.2"
MYNAME="ffplay-hide_banner-loop"
echo -e "$MYNAME V$VERSION"
ffprobe -hide_banner 2>&1 "$*" |grep Stream|grep "Video:" >/dev/null
if [ $? -eq 0 ]; then
# return value zero -> video : default
ffplay -autoexit -hide_banner -loop 0 -i "$*"
else
# return value non-zero -> audio only - adjusting…
ffplay -autoexit -hide_banner -loop 0 -showmode waves -x 500 -y 150 -i "$*"
fi
# V0.2 using ffprobe to determining if file is sound only, then alter the window appearance and visualisation
Thanks, you are welcome, but others on here are at least as talented as I am.
RL does not give me the time. USM is a huge project that does a lot. When there are other volunteers (at least 2 more besides me) to share the workload, I could help. But by myself? Nope.
Code: Select all
ffplay -autoexit -hide_banner -i "$*"
Code: Select all
ffplay -autoexit -hide_banner -showmode waves -x 500 -y 150 -i "$*"
Code: Select all
root@porteus:~# type psg
psg is a function
psg ()
{
/bin/ps ax | /bin/grep $* | /bin/grep -v grep
}
root@porteus:~# psg ffplay-hide_banner
1526 tty2 S 0:00 /bin/sh /usr/local/bin/ffplay-hide_banner /sound/Clannad Original Soundtrack (Full Album)-J-0twocIam4.webm
9275 tty2 S 0:00 /bin/sh /usr/local/bin/ffplay-hide_banner /video/Filme/Love, Chunibyo & Other Delusions the Movie - Rikka Takanashi Revision.mp4
9330 tty2 S 0:00 /bin/sh /usr/local/bin/ffplay-hide_banner-loop /sound/WhiteNoise - 10 Hours.aac
31158 tty2 S 0:00 /bin/sh /usr/local/bin/ffplay-hide_banner /sound/VIOLET EVERGARDEN: Echo Through Eternity non singing+2.webm
Code: Select all
root@porteus:~# psg ffplay|grep -v ffplay-hide_banner
1532 tty2 SLl 17:09 ffplay -autoexit -hide_banner -showmode waves -x 500 -y 150 -i /sound/Clannad Original Soundtrack (Full Album)
9288 tty2 SLl 0:05 ffplay -autoexit -hide_banner -i /video/Filme/Love, Chunibyo & Other Delusions the Movie - Rikka Takanashi Rev
9336 tty2 SLl 0:05 ffplay -autoexit -hide_banner -loop 0 -showmode waves -x 500 -y 150 -i /sound/WhiteNoise/Hairdryer White Noise
31164 tty2 SLl 29:21 ffplay -autoexit -hide_banner -showmode waves -x 500 -y 150 -i /sound/VIOLET EVERGARDEN: Echo Through Eternity non sing
Code: Select all
root@porteus:~# psg ffplay|grep -v ffplay-hide_banner|grep Narayan,Ram
9507 pts/7 SLl+ 0:05 ffplay -autoexit -hide_banner -showmode waves -x 500 -y 150 -i Narayan,Ram/Masters of Raga/01 Rag Marwa- Alap.mp3
Code: Select all
<!doctype html public "-//w3c//dtd html 4.1 strict//en">
<!-- V 0.47 2021-09-25 mailto: linux at ***CENSORED*** -->
<html lang="de"><head>
<link rel="icon" type="image/png" href="data:image/png;base64,/9j/4AAQS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AAAAAAAAAAAAABEQAQ/9oACAEBAAE/ECQLoRCvKhLiAJuwhoeQUXCbSnJiNZMPWF5ttzXL0UiEhwP/2Q=="/>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="file:///E:/mb.css">
<title>Dr. Copy & Mr. Paste - Textfeld V0.47 2021-09-25 - für FullHD</title>
</head><body>
<form action="dummy.html">
<p>
<textarea name="dummy" cols="91" rows="20" style="border : dotted 2px black;"></textarea>
</p>
</form>
</body>
</html>
Code: Select all
cd $(realpath .)
Code: Select all
$ type lcrt
lcrt is a function
lcrt ()
{
/bin/ls -oatr --time-style=long-iso "$@" | tail -n 26 | cut -c 14-93
}
Code: Select all
help.7z help.mmv
help.COLUMNS+LINES help.mount
help.EMPTY help.mplayer
help.TZ help.mtpaint
help.appimage help.nero
help.aria2c help.notify-send
help.cdda2wav help.opera
help.cdparanoia help.perl
help.cdrdao help.qiv
help.cdrecord help.realpath
help.cp help.recordmydesktop
help.ctorrent help.regex
help.date+hwclock help.rename
help.dd.random+cp help.ripit
help.diff help.setarch
help.digest help.shred
help.du help.slackyd
help.fdupes_clone help.stat
help.ffmpeg help.swap
help.ffplay help.tar
help.find help.time
help.firefox help.top
help.gm help.toupper
help.growisofs help.truecrypt
help.gvfsd-metadata help.unset
help.hexedit help.wget
help.less help.while-true-loop-oneliners.sh
help.mkisofs help.xzip
help.mlabel help.youtube-dl
Code: Select all
#!/bin/bash
# Maintained since 1998.
# Cave! You should no longer refer to it as /usr/local/bin/echo.colors! Use the
# system variable $ECHO_COLORS instead which is the FQPN to this file.
# details see echo.farben if installed; else: man ls; man console_codes
bld="\033[1m" # bold [0;1m <- as true escape-sequence even without echo -e
und="\033[4m" # underline [0;4m
fla="\033[5m" # flashing [0;5m
red="\033[31m" # red [0;31m
gre="\033[32m" # green [0;32m
yel="\033[33m" # yellow [0;33m
blu="\033[34m" # blue [0;34m
mag="\033[35m" # magenta [0;35m
cya="\033[36m" # cyan [0;36m
#spc="\033[60G" # right-aligned (column 60)
off="\033[m" # off [0;m
# MORE THAN ONE IN ONE GO, e.g. red and bold:
# \033[01;31m
hexdump prints all non-printable characters on its rightmost columns as "." - so a "." displayed there can be a literal "." or any non-printable characters like escape 0x1b - Linux new line (LF aka line feed) 0x0a - tab 0x09 etcetera.000001f0 67 72 65 3d 22 5c 30 33 33 5b 33 32 6d 22 09 23 |gre="\033[32m".#|
00000200 20 67 72 65 65 6e 20 09 1b 5b 30 3b 33 32 6d 0a | green ..[0;32m.|
(you just gotta ♥ your geany)red="\033[31m" # red ESC[0;31m
man ls; man console_codes
Code: Select all
grep -C num
Code: Select all
guest@porteus:~$ ls --help|grep "follow symbolic links"
follow symbolic links listed on the command line
Code: Select all
guest@porteus:~$ ls --help|grep -C 2 "follow symbolic links"
--si likewise, but use powers of 1000 not 1024
-H, --dereference-command-line
follow symbolic links listed on the command line
--dereference-command-line-symlink-to-dir
follow each command line symbolic link