You are Here:
Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section



trash-empty-sound

Author (Read 8434 times)

0 Members and 1 Guest are viewing this topic.

Re: trash-empty-sound
« Reply #4 on: March 15, 2021, 10:32:33 PM »
 

bitsnpcs

  • Platinum Level Poster
  • **********
  • 3237
    Posts
  • Reputation: 305
    • View Profile
    • Try to Grow

  • Kernel: 4.x
It is good it had already began working since your first message.
Thank You for still trying it. :)
I first began to use Linux (Linux Lite) 5 years ago.
I tried to learn about Linux, and about code for about 3+ years, just at home, then I stopped trying to learn, which was about 2 years ago.
Example - I mean I have not learned (or tried to learn) a single thing on a computer in over 2 years, and I realize I have also forgotten many of the things I had began to learn at the start.
Hope you have a great day too!
« Last Edit: March 15, 2021, 10:36:34 PM by bitsnpcs »
 

Re: trash-empty-sound
« Reply #3 on: March 15, 2021, 07:58:17 PM »
 

shamu

  • New to Forums
  • *
  • 11
    Posts
  • Reputation: 1
  • Linux Lite Member
    • View Profile

  • CPU: E5800

  • MEMORY: 8Gb

  • Kernel: 5.x
Thank you bitsnpcs for responding!
Funny thing, this morning I booted into my LL, emptied my trash and I got only a single sound! Not the first time it happened, a single logout or reboot after making some changes does not take effect immediately, but being shut down overnight does. Is it Linux or my old hardware, who knows??
Anyway, I did what you suggested, it did not make any difference after all, but I will leave it that way, see what happens tomorrow...
You were a beginner 2 years ago??? You have learned a lot in two years my friend!!! I have no idea what TOT1 or TOT2 means.
Thanks again, have a great day!
 

Re: trash-empty-sound
« Reply #2 on: March 15, 2021, 06:14:13 PM »
 

bitsnpcs

  • Platinum Level Poster
  • **********
  • 3237
    Posts
  • Reputation: 305
    • View Profile
    • Try to Grow

  • Kernel: 4.x
Hello shamu,
best to await other replies, as I may be wrong, it has been over 2 years since I tried any code, and I was just beginner.
The script has a missing ;
sleep 1;
My guessing for that is without this semi colon, it means TOT1 and TOT2, both look to have the same parameters, then it says if left parameter is greater than right parameter to play the sound, so it plays TOT1 and TOT2, eg; plays it 2 times.
It would be easy to add the semi colon and if it does not solve it to remove it again.
« Last Edit: March 15, 2021, 06:19:30 PM by bitsnpcs »
 

trash-empty-sound
« Reply #1 on: March 15, 2021, 04:45:06 PM »
 

shamu

  • New to Forums
  • *
  • 11
    Posts
  • Reputation: 1
  • Linux Lite Member
    • View Profile

  • CPU: E5800

  • MEMORY: 8Gb

  • Kernel: 5.x
Hi LL Forum!
I try to have a sound when emptying the trash and found this script: https://forums.linuxmint.com/viewtopic.php?t=304391

I modified the command "mplayer" to "play" and "trash-empty.wav" file. It does work fine, however: it plays the sound file twice, I don't know why??? I know nothing about how to write scripts but I love the way how they work in Linux, well, if you know what to do...
Could any of you help me to fix this please???
Thank you!
Linux Lite 5.2
 

 

-->
X Close Ad

Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section