about summary refs log tree commit diff
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2024-12-13T19·52+0100
committerProfpatsch <mail@profpatsch.de>2024-12-13T20·28+0000
commit1ec787a4170169558e4ed9c190f91724929ec5ce (patch)
treee7cba3f2c866971b447e99a5378326b090887cf3
parente1fda52bed9a2e1b88d2e2f2277d616bf0b50e3a (diff)
fix(users/Profpatsch): remove alacritty from DisplayBrightness name r/9004
Change-Id: Ic78b17a3d5bcc96350dca8f71ad489f0ba96c6d0
Reviewed-on: https://cl.tvl.fyi/c/depot/+/12892
Reviewed-by: Profpatsch <mail@profpatsch.de>
Tested-by: BuildkiteCI
-rw-r--r--users/Profpatsch/alacritty-change-color-scheme/alacritty-change-color-scheme.js16
1 files changed, 7 insertions, 9 deletions
diff --git a/users/Profpatsch/alacritty-change-color-scheme/alacritty-change-color-scheme.js b/users/Profpatsch/alacritty-change-color-scheme/alacritty-change-color-scheme.js
index e0965fee001d..ab12a25b13ff 100644
--- a/users/Profpatsch/alacritty-change-color-scheme/alacritty-change-color-scheme.js
+++ b/users/Profpatsch/alacritty-change-color-scheme/alacritty-change-color-scheme.js
@@ -830,12 +830,10 @@ async function onDdcutilBrightnessChange(externalBrightness) {
 }
 
 async function exportDisplayBrightnessDbusInterface() {
-  console.log(
-    'Exporting display brightness interface de.profpatsch.alacritty.DisplayBrightness',
-  );
-  const ifaceName = 'de.profpatsch.alacritty.DisplayBrightness';
+  console.log('Exporting display brightness interface de.profpatsch.DisplayBrightness');
+  const ifaceName = 'de.profpatsch.DisplayBrightness';
   const iface = {
-    name: 'de.profpatsch.alacritty.DisplayBrightness',
+    name: 'de.profpatsch.DisplayBrightness',
     methods: {
       // between 0 and 10
       SetBrightnessAllMonitors: ['d', ''],
@@ -878,12 +876,12 @@ async function exportDisplayBrightnessDbusInterface() {
   try {
     const retCode = await bus.requestName(ifaceName, 0);
     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);
-    console.log('Exported interface de.profpatsch.alacritty.DisplayBrightness');
+    bus.exportInterface(ifaceImpl, '/de/profpatsch/DisplayBrightness', iface);
+    console.log('Exported interface de.profpatsch.DisplayBrightness');
   } catch (err) {
-    console.log('Error exporting interface de.profpatsch.alacritty.DisplayBrightness');
+    console.log('Error exporting interface de.profpatsch.DisplayBrightness');
     console.error(err);
   }
 }