Annoying loud sound
I’m running i3wm installed with the default installer.
Every time I lock the screen with $mod+l
there’s this extremely loud bip which is pretty annoying. I tried looking in the config file and I see it that it launch a perl script but I could not find anything about sound.
Anybody have the same problem or it is just me? I’ve no idea where to look to solve this.
Hi, by default on eos i3 Mod+L executes a custom script located at scripts/blur-lock
.
~/.config/i3/config
# lock by blurring the screen:
bindsym $mod+l exec ~/.config/i3/scripts/blur-lock
These are the contents of the script:
#!/usr/bin/env bash
PICTURE=/tmp/i3lock.png
SCREENSHOT="scrot $PICTURE"
BLUR="5x4"
$SCREENSHOT
convert $PICTURE -blur $BLUR $PICTURE
i3lock -i $PICTURE
rm $PICTURE
You can stop the beep sound just by editing the file and adding a -z
option after scrot
:
SCREENSHOT="scrot -z $PICTURE"
From https://man.archlinux.org/man/community/scrot/scrot.1.en
-z, --silent
Prevent beeping.
2 Likes
I have added a pr so that @joekamprad can take a look at it:
endeavouros-team:main
← ishaanbhimwal:patch-1
opened 07:26PM - 19 Apr 22 UTC
Adding the `-z` option before scrots prevents the beep sound after executing the… script on locking the system with <kbd>Mod+L</kbd>.
Fixes:
*https://github.com/endeavouros-team/endeavouros-i3wm-setup/issues/42
*https://forum.endeavouros.com/t/removing-i3-lock-sound/26226.
Adding the -z option before scrots prevents the beep sound after executing the script on locking the system with Mod+L.
Fixes:
opened 02:03AM - 20 Mar 22 UTC
closed 06:13AM - 25 Apr 22 UTC
I was recently doing some digging to configure myself a combination lock and sus… pend on top of the base EndevourOS i3 and I had some thoughts for discussion.
- It appears the blur-lock implementation is a verbatim copy of [this repo](https://github.com/leonmutschke/i3lock-config), and it does not appear that any credit is given to the author(s). While their script is extremely useful, it is not complicated, but nevertheless it seems right to credit them given that it's a direct copy. Also, their code has no license, which could be a problem.
- There is an [umerged PR](https://github.com/leonmutschke/i3lock-config/pull/2) on said code that offers a very nice suggestion (adding `-z` to the `scrot` call to ensure no beep). On my system the beep is horrible and jolting, and I think this flag should definitely be added to our version.
- How do people feel about a lock+suspend entry in the menu, or replacing the command for the "suspend" with lock+suspend commands (my preference and current config)? Personally, I think this is much more useful and desirable than a plain suspend, and I believe most desktop environments also lean this way (calling it suspend and doing a lock+suspend). It also keeps from having a lock but no sleep/dark case, which I have had multiple times, and is quite frustrating and possibly bad for your screen.
Annoying loud sound
I’m running i3wm installed with the default installer.
Every time I lock the screen with $mod+l there’s this extremely loud bip which is pretty annoying. I tried looking in the config file and I see it that it launch a perl script but I could not find anything about sound.
Anybody have the same problem or it is just me? I’ve no idea where to look to solve this.
1 Like
Thank you very much, it would have taken eternity for me to figure that out!