1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-12-25 03:22:58 +03:00

tell the user how to mute the WSL bell (fixes #413)

This commit is contained in:
Eugene Pankov 2018-10-13 14:14:39 +02:00
parent d7db132c76
commit a0e3b0b033
2 changed files with 18 additions and 2 deletions

View File

@ -29,7 +29,11 @@ h3.mt-3.mb-3 Terminal
[value]='"audible"'
)
| Audible
.alert.alert-info.d-flex.align-items-center(*ngIf='config.store.terminal.bell != "audible" && config.store.terminal.shell.startsWith("wsl")')
.mr-auto WSL terminal bell can only be muted via Volume Mixer
button.btn.btn-secondary((click)='openWSLVolumeMixer()') Show Mixer
.form-line
.header
.title Right click

View File

@ -1,5 +1,6 @@
import { Component } from '@angular/core'
import { ConfigService } from 'terminus-core'
import { ConfigService, ElectronService } from 'terminus-core'
import { TerminalService } from '../services/terminal.service'
@Component({
template: require('./terminalSettingsTab.component.pug'),
@ -7,5 +8,16 @@ import { ConfigService } from 'terminus-core'
export class TerminalSettingsTabComponent {
constructor (
public config: ConfigService,
private electron: ElectronService,
private terminal: TerminalService,
) { }
openWSLVolumeMixer () {
this.electron.shell.openItem('sndvol.exe')
this.terminal.openTab({
id: '',
command: 'wsl.exe',
args: ['tput', 'bel'],
}, null, true)
}
}