How about alert.sh? Or beep-alert.sh?
What is it that you do?
Code: Select all
# lsxzm alarm+beep+notifications.mp3.xzm
/usr
/usr/local
/usr/local/bin
/usr/local/bin/alarm.sh
/usr/local/bin/beep
/usr/local/bin/beep2
/usr/local/share
/usr/local/share/notification_-12dB.mp3
/usr/local/share/notification_-15dB.mp3
Code: Select all
root@porteus:/Porteus_modules/dir2xzm/usr/local/bin# grep mpg *
alarm.sh: mpg123 "$soundfile" >/dev/null 2>&1
beep: mpg123 "$soundfile" >/dev/null 2>&1
beep2: mpg123 "$soundfile" >/dev/null 2>&1
Code: Select all
guest@porteus:~$ alarm.sh
daueralarm.sh V1.3 - sound file is /usr/local/share/notification_-15dB.mp3
pause length: 2 seconds - Aboard with Strg+C
^C
guest@porteus:~$ alarm.sh 1
daueralarm.sh V1.3 - sound file is /usr/local/share/notification_-15dB.mp3
pause length: 2 seconds - Aboard with Strg+C
^C
guest@porteus:~$ alarm.sh 5
daueralarm.sh V1.3 - sound file is /usr/local/share/notification_-15dB.mp3
pause length: 5 seconds - Aboard with Strg+C
^C
guest@porteus:~$
Looks like you just forgot to activate alarm+beep+notifications.mp3.xzmEd_P wrote: ↑01 Feb 2022, 07:46Ok, what am I doing wrong??Code: Select all
[…] guest@porteus:~$ ls /mnt/live/memory/images 000-kernel.xzm/ 001-core.xzm/ 002-xorg.xzm/ 002-xtra.xzm/ 003-cinnamon-20220118.xzm/ 004-brave-browser-1.34.81-linux-amd64.xzm/ 07-printing-x86_64-2021-11-07.xzm/ firefox-94.0.2-x86_64-en-US.xzm/ keepassx-2.0.3-x86_64-bundle.xzm/ kernel-firmware-20211229_57d6b95-noarch-1.xzm/ mychanges.xzm/ guest@porteus:~$
Code: Select all
root@porteus:/Porteus_modules/dir2xzm# ls -lad . usr/
drwxr-xr-x 3 root root 4096 Jan 31 14:41 .
drwxr-xr-x 3 root root 4096 Jan 31 14:41 usr/
root@porteus:/Porteus_modules/dir2xzm# stat usr/
File: usr/
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: 8,5 Inode: 1193874 Links: 3
Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2022-01-31 14:41:51.261390437 +0100
Modify: 2022-01-31 14:41:51.266390375 +0100
Change: 2022-01-31 14:41:51.266390375 +0100
Birth: 2022-01-31 14:41:51.261390437 +0100
Yes, I screwed up and activated the wrong module.
Hmmm… do you have mpg123 in your system?
Code: Select all
mpg123 "$soundfile" >/dev/null 2>&1
Code: Select all
mpg123 "$soundfile" # >/dev/null 2>&1
Code: Select all
mpg123 /usr/local/share/notification_-12dB.mp3
Code: Select all
guest@porteus:~$ mpg123 /usr/local/share/notification_-12dB.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
version 1.29.2; written and copyright by Michael Hipp and others
free software (LGPL) without any warranty but with best wishes
Directory: /usr/local/share/
Terminal control enabled, press 'h' for listing of keys and functions.
Playing MPEG stream 1 of 1: notification_-12dB.mp3 ...
MPEG 1.0 L III cbr128 44100 mono
[0:00] Decoding of notification_-12dB.mp3 finished.
guest@porteus:~$
Code: Select all
volume=75%
Code: Select all
guest@porteus:~$ mpg123 /usr/local/share/notification_-12dB.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
version 1.29.3; written and copyright by Michael Hipp and others
free software (LGPL) without any warranty but with best wishes
Directory: /usr/local/share/
Terminal control enabled, press 'h' for listing of keys and functions.
Playing MPEG stream 1 of 1: notification_-12dB.mp3 ...
MPEG 1.0 L III cbr128 44100 mono
[0:00] Decoding of notification_-12dB.mp3 finished.
guest@porteus:~$ mpg123 /usr/local/share/notification_-12dB.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
version 1.29.3; written and copyright by Michael Hipp and others
free software (LGPL) without any warranty but with best wishes
Directory: /usr/local/share/
Terminal control enabled, press 'h' for listing of keys and functions.
Playing MPEG stream 1 of 1: notification_-12dB.mp3 ...
MPEG 1.0 L III cbr128 44100 mono
[0:00] Decoding of notification_-12dB.mp3 finished.
guest@porteus:~$
So, seems your speakers are less sensitive to lower volumes than mine are, then.
Code: Select all
usr/share/sounds/uget/notification.wav
Code: Select all
guest@porteus:/tmp$ ls -l notification.*
-rw-r--r-- 1 guest users 2924 Feb 1 12:30 notification.mp3
-rw-r--r-- 1 guest users 11008 Dec 3 2013 notification.wav
guest@porteus:/tmp$ md5sum notification.*
810cc1a60751247bde54bbe914f861d9 notification.mp3
02689c2c14d4a0dc1bff40c3c54b327c notification.wav
Code: Select all
root@porteus:/Porteus_modules/dir2xzm/usr/local/bin# grep soundfile= *
alarm.sh:soundfile="/usr/local/share/notification.mp3"
beep:soundfile=/usr/local/share/notification.mp3
beep2:soundfile=/usr/local/share/notification_-12dB.mp3
Code: Select all
root@porteus:/Porteus_modules# dir2xzm dir2xzm/ alarm+beep+notifications.mp3_no-dB-reduction.xzm
Code: Select all
root@porteus:/Porteus_modules# lsxzm alarm+beep+notifications.mp3_no-dB-reduction.xzm
/usr
/usr/local
/usr/local/bin
/usr/local/bin/alarm.sh
/usr/local/bin/beep
/usr/local/bin/beep2
/usr/local/share
/usr/local/share/notification.mp3
/usr/local/share/notification_-12dB.mp3
Code: Select all
guest@porteus:~$ ls /usr/share/sounds/uget
/bin/ls: cannot access '/usr/share/sounds/uget': No such file or directory
guest@porteus:~$ ls -l notification.*
/bin/ls: cannot access 'notification.*': No such file or directory
guest@porteus:~$ cd /tmp
guest@porteus:/tmp$ ls -l notification.*
/bin/ls: cannot access 'notification.*': No such file or directory
guest@porteus:/tmp$
I assume all my Porteus live folders are POSIX file systems: /tmp, /home/guest/Downloads, /root/Downloads, ...
"lame"?
I like this option better. Thank you.
You not know of lame as in "lame ain't no mp3 encoder", said to be the best mp3 encoder out there?
Code: Select all
root@porteus:~# lame
LAME 64bits version 3.100 (http://lame.sf.net)
usage: lame [options] <infile> [outfile]
<infile> and/or <outfile> can be "-", which means stdin/stdout.
Try:
"lame --help" for general usage information
or:
"lame --preset help" for information on suggested predefined settings
or:
"lame --longhelp"
or "lame -?" for a complete options list
Code: Select all
root@porteus:~# lame -?|wc
164 1005 7804
Hope you approve of the notification.mp3 volume.
Code: Select all
guest@porteus:~$ lame
LAME 64bits version 3.100 (http://lame.sf.net)
usage: lame [options] <infile> [outfile]
<infile> and/or <outfile> can be "-", which means stdin/stdout.
Try:
"lame --help" for general usage information
or:
"lame --preset help" for information on suggested predefined settings
or:
"lame --longhelp"
or "lame -?" for a complete options list
guest@porteus:~$ alarm.sh
daueralarm.sh V1.4 - sound file is /usr/local/share/notification.mp3
pause length: 2 seconds - Aboard with Strg+C
^C
guest@porteus:~$ alarm.sh
daueralarm.sh V1.4 - sound file is /usr/local/share/notification.mp3
pause length: 2 seconds - Aboard with Strg+C
^C
guest@porteus:~$
And with 13% all other sounds, like your average mp3 collection or some youtube video are heard okay? Especially considering some video files are encoded to have reduced dB…
No, and sometimes I have my sound off all together, so as to not disturb others. But the alarm.sh has value for some things that I do. It would also be good if it did the repeat sound after a period of time the user could input so I may be playing with it in the future.