fix(users/Profpatsch): remove alacritty from DisplayBrightness name
Change-Id: Ic78b17a3d5bcc96350dca8f71ad489f0ba96c6d0 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12892 Reviewed-by: Profpatsch <mail@profpatsch.de> Tested-by: BuildkiteCI
This commit is contained in:
parent
e1fda52bed
commit
1ec787a417
1 changed files with 7 additions and 9 deletions
|
|
@ -830,12 +830,10 @@ async function onDdcutilBrightnessChange(externalBrightness) {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function exportDisplayBrightnessDbusInterface() {
|
async function exportDisplayBrightnessDbusInterface() {
|
||||||
console.log(
|
console.log('Exporting display brightness interface de.profpatsch.DisplayBrightness');
|
||||||
'Exporting display brightness interface de.profpatsch.alacritty.DisplayBrightness',
|
const ifaceName = 'de.profpatsch.DisplayBrightness';
|
||||||
);
|
|
||||||
const ifaceName = 'de.profpatsch.alacritty.DisplayBrightness';
|
|
||||||
const iface = {
|
const iface = {
|
||||||
name: 'de.profpatsch.alacritty.DisplayBrightness',
|
name: 'de.profpatsch.DisplayBrightness',
|
||||||
methods: {
|
methods: {
|
||||||
// between 0 and 10
|
// between 0 and 10
|
||||||
SetBrightnessAllMonitors: ['d', ''],
|
SetBrightnessAllMonitors: ['d', ''],
|
||||||
|
|
@ -878,12 +876,12 @@ async function exportDisplayBrightnessDbusInterface() {
|
||||||
try {
|
try {
|
||||||
const retCode = await bus.requestName(ifaceName, 0);
|
const retCode = await bus.requestName(ifaceName, 0);
|
||||||
console.log(
|
console.log(
|
||||||
`Request name returned ${retCode} for interface de.profpatsch.alacritty.DisplayBrightness`,
|
`Request name returned ${retCode} for interface de.profpatsch.DisplayBrightness`,
|
||||||
);
|
);
|
||||||
bus.exportInterface(ifaceImpl, '/de/profpatsch/alacritty/DisplayBrightness', iface);
|
bus.exportInterface(ifaceImpl, '/de/profpatsch/DisplayBrightness', iface);
|
||||||
console.log('Exported interface de.profpatsch.alacritty.DisplayBrightness');
|
console.log('Exported interface de.profpatsch.DisplayBrightness');
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.log('Error exporting interface de.profpatsch.alacritty.DisplayBrightness');
|
console.log('Error exporting interface de.profpatsch.DisplayBrightness');
|
||||||
console.error(err);
|
console.error(err);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue