You are Here:
Download Linux Lite 5.6 Final today - See Release Announcements



X Close Ad
X Close Ad
trash-empty-sound

Author (Read 1967 times)

0 Members and 2 Guests are viewing this topic.

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

shamu

  • New to Forums
  • *
  • 7
    Posts
  • Country: us
  • Reputation: 1
  • Linux Lite Member

  • Linux Lite: 4.8 64bit

  • CPU: E5800

  • MEMORY: 8Gb
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
 


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

bitsnpcs

  • Platinum Level Poster
  • **********
  • 3237
    Posts
  • Country: 00
  • Reputation: 305
    • Try to Grow

  • Linux Lite: 3.2 64bit

  • 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
 

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

shamu

  • New to Forums
  • *
  • 7
    Posts
  • Country: us
  • Reputation: 1
  • Linux Lite Member

  • Linux Lite: 4.8 64bit

  • CPU: E5800

  • MEMORY: 8Gb
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 #3 on: March 15, 2021, 10:32:33 PM »
 

bitsnpcs

  • Platinum Level Poster
  • **********
  • 3237
    Posts
  • Country: 00
  • Reputation: 305
    • Try to Grow

  • Linux Lite: 3.2 64bit

  • 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
 


Tags: xfce4 sound trash-empty 
 

X Close Ad
X Close Ad

Download Linux Lite 5.6 Final today - See Release Announcements