# Removing i3 lock sound

**URL:** <https://forum.endeavouros.com/t/removing-i3-lock-sound/26226>\
**Category:** Newbie\
**Created:** [April 19, 2022, 6:28pm UTC](https://forum.endeavouros.com/t/removing-i3-lock-sound/26226 "2022-04-19T18:28:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![farfallone](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/f/47e85d/32.png) [@farfallone](https://forum.endeavouros.com/u/farfallone)\
**Post date:** [April 19, 2022, 6:28pm UTC](https://forum.endeavouros.com/t/removing-i3-lock-sound/26226/1 "2022-04-19T18:28:32Z")

</div>

# 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.

---

<div class="post-metadata">

**Author:** ![ishaan2479](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/i/41988e/32.png) [@ishaan2479](https://forum.endeavouros.com/u/ishaan2479)\
**Post date:** [April 19, 2022, 7:21pm UTC](https://forum.endeavouros.com/t/removing-i3-lock-sound/26226/2 "2022-04-19T19:21:41Z")

</div>

Hi, by default on eos i3 Mod+L executes a custom script located at `scripts/blur-lock`.

```auto
~/.config/i3/config

```

```auto
# lock by blurring the screen:
bindsym $mod+l exec ~/.config/i3/scripts/blur-lock

```

These are the contents of the script:

```auto
#!/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`:

```auto
SCREENSHOT="scrot -z $PICTURE"

```

From [https://man.archlinux.org/man/community/scrot/scrot.1.en](https://man.archlinux.org/man/community/scrot/scrot.1.en)

```auto
-z, --silent
    Prevent beeping.

```

---

<div class="post-metadata">

**Author:** ![ishaan2479](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/i/41988e/32.png) [@ishaan2479](https://forum.endeavouros.com/u/ishaan2479)\
**Post date:** [April 19, 2022, 7:29pm UTC](https://forum.endeavouros.com/t/removing-i3-lock-sound/26226/3 "2022-04-19T19:29:36Z")

</div>

I have added a pr so that @joekamprad can take a look at it:

> <https://github.com/endeavouros-team/endeavouros-i3wm-setup/pull/46>
>
> 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:

> <https://github.com/endeavouros-team/endeavouros-i3wm-setup/issues/42>
>
> 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.

> [@Removing i3 lock sound](https://forum.endeavouros.com/t/removing-i3-lock-sound/26226):
>
> 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.

---

<div class="post-metadata">

**Author:** ![joekamprad](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/joekamprad/32/77608_2.png) [@joekamprad](https://forum.endeavouros.com/u/joekamprad)\
**Post date:** [April 21, 2022, 5:53am UTC](https://forum.endeavouros.com/t/removing-i3-lock-sound/26226/4 "2022-04-21T05:53:04Z")

</div>

> <https://github.com/endeavouros-team/endeavouros-i3wm-setup/commit/cbd63bb6fdb611d8218a831106c976f052376850>
>
> Update blur-lock

---

<div class="post-metadata">

**Author:** ![farfallone](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/f/47e85d/32.png) [@farfallone](https://forum.endeavouros.com/u/farfallone)\
**Post date:** [April 23, 2022, 4:07pm UTC](https://forum.endeavouros.com/t/removing-i3-lock-sound/26226/5 "2022-04-23T16:07:54Z")

</div>

Thank you very much, it would have taken eternity for me to figure that out!
