Summary: | Terminal bell does not trigger system (visual) bell | ||
---|---|---|---|
Product: | [Applications] konsole | Reporter: | Ralf Jung <post> |
Component: | general | Assignee: | Konsole Developer <konsole-devel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | a.samirh78, jurajoravec, mglb, nate, tim.baverstock |
Priority: | NOR | ||
Version: | 18.04.0 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/utilities/konsole/commit/de9e92b81f57723c6578aed2c991b653243359f5 | Version Fixed In: |
Description
Ralf Jung
2019-05-22 08:43:27 UTC
Hello, Have you checked?: Menu > Settings > Configure Notifications... - Bell in Focused Session - Bell in Unfocused session I have seen that, yes. There is no option "trigger system bell" there that I can see. "kcmshell5 kcmaccess" (or use the systemsettings application to find this page). Yes I know how to configure what happens when the system bell gets triggered. It flashes the window, inverting it 100ms. But Konsole does not trigger that bell. I have described the steps to reproduce and the observed and expected result in my original report. Which part is not clear? To make it work Konsole should call XkbBell() when BEL code is received. https://www.x.org/releases/X11R7.5/doc/man/man3/XkbBell.3.html *** Bug 412840 has been marked as a duplicate of this bug. *** I struggled with this as well. Very complicated! had to remove non-connected bluetooth audiodevices and reboot. finally it works as kinda expected. should be simpler so as to not be unaware of big issues because audio notifications kinda drop dead. While digging around for something else I stumbled upon https://cgit.kde.org/konsole.git/tree/src/Enumeration.h#n106 It's not exposed in the edit profile dialog; you can edit ~/.local/share/konsole/<profile name>.profile, under the "[Terminal Features]" group add: BellMode=2 start a new konsole window and test: tput bel > BellMode=2
Interesting option, thanks! This still does not trigger a system bell, but it means that Konsole manually replicates the behavior of the system bell (if that is set to flash, too).
Of course, it would be much better if Konsole could just respect my global configuration.
That would make the terminal flash, for other options, from the link I posted: enum BellModeEnum { /** trigger system beep. */ SystemBeepBell = 0, /** trigger system notification. */ NotifyBell = 1, /** trigger visual bell(inverting the display's colors briefly). */ VisualBell = 2, /** No bell effects */ NoBell = 3 }; Remember you need to launch a new konsole after editing the .profile manually. What is missing from that list is "call XkbBell", which seems to be the standard way of triggering the system bell in X11. (I tried SystemBeepBell, but it doesn't seem to do that.) Git commit de9e92b81f57723c6578aed2c991b653243359f5 by Kurt Hindenburg, on behalf of Ahmad Samir. Committed on 30/12/2020 at 02:20. Pushed by hindenburg into branch 'master'. EditProfileDialog: add GUI to change the terminal bell mode The feature has been in the profile settings for a long time, but without being exposed in the UI. Related: bug 425759 M +12 -0 src/widgets/EditProfileDialog.cpp M +18 -0 src/widgets/EditProfileGeneralPage.ui https://invent.kde.org/utilities/konsole/commit/de9e92b81f57723c6578aed2c991b653243359f5 |