mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-09 22:10:09 +00:00
tell the user how to mute the WSL bell (fixes #413)
This commit is contained in:
parent
d7db132c76
commit
a0e3b0b033
@ -30,6 +30,10 @@ h3.mt-3.mb-3 Terminal
|
|||||||
)
|
)
|
||||||
| 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
|
.form-line
|
||||||
.header
|
.header
|
||||||
.title Right click
|
.title Right click
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import { Component } from '@angular/core'
|
import { Component } from '@angular/core'
|
||||||
import { ConfigService } from 'terminus-core'
|
import { ConfigService, ElectronService } from 'terminus-core'
|
||||||
|
import { TerminalService } from '../services/terminal.service'
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
template: require('./terminalSettingsTab.component.pug'),
|
template: require('./terminalSettingsTab.component.pug'),
|
||||||
@ -7,5 +8,16 @@ import { ConfigService } from 'terminus-core'
|
|||||||
export class TerminalSettingsTabComponent {
|
export class TerminalSettingsTabComponent {
|
||||||
constructor (
|
constructor (
|
||||||
public config: ConfigService,
|
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)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user