From 700f1070ca9ed6a129f8e4ecb57187099f585317 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Tue, 14 May 2024 22:03:04 +0700 Subject: [PATCH] format --- .config/ags/modules/bar/normal/music.js | 15 +++++++-------- .../sideright/centermodules/audiocontrols.js | 2 +- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.config/ags/modules/bar/normal/music.js b/.config/ags/modules/bar/normal/music.js index f261e9ea3..72d471f6f 100644 --- a/.config/ags/modules/bar/normal/music.js +++ b/.config/ags/modules/bar/normal/music.js @@ -19,7 +19,7 @@ const CUSTOM_MODULE_SCROLLDOWN_SCRIPT = `${GLib.get_home_dir()}/.cache/ags/user/ function trimTrackTitle(title) { if (!title) return ''; const cleanPatterns = [ - /【[^】]*】/, // Touhou n weeb stuff + /【[^】]*】/, // Touhou n weeb stuff " [FREE DOWNLOAD]", // F-777 ]; cleanPatterns.forEach((expr) => title = title.replace(expr, '')); @@ -67,13 +67,12 @@ const BarResource = (name, icon, command, circprogClassName = 'bar-batt-circprog resourceProgress, resourceLabel, ], - setup: (self) => self - .poll(5000, () => execAsync(['bash', '-c', command]) - .then((output) => { - resourceCircProg.css = `font-size: ${Number(output)}px;`; - resourceLabel.label = `${Math.round(Number(output))}%`; - widget.tooltipText = `${name}: ${Math.round(Number(output))}%`; - }).catch(print)) + setup: (self) => self.poll(5000, () => execAsync(['bash', '-c', command]) + .then((output) => { + resourceCircProg.css = `font-size: ${Number(output)}px;`; + resourceLabel.label = `${Math.round(Number(output))}%`; + widget.tooltipText = `${name}: ${Math.round(Number(output))}%`; + }).catch(print)) , }) }); diff --git a/.config/ags/modules/sideright/centermodules/audiocontrols.js b/.config/ags/modules/sideright/centermodules/audiocontrols.js index 3163219df..fc309c5c4 100644 --- a/.config/ags/modules/sideright/centermodules/audiocontrols.js +++ b/.config/ags/modules/sideright/centermodules/audiocontrols.js @@ -102,7 +102,7 @@ const AudioDevices = (input = false) => { maxWidthChars: 10, label: `${input ? '[In]' : '[Out]'}`, setup: (self) => self.hook(Audio, (self) => { - self.label = `${input ? '[In]' : '[Out]'} ${input ? Audio.microphone.description : Audio.speaker.description}`; + self.label = `${input ? '[In]' : '[Out]'} ${input ? Audio.microphone.description : Audio.speaker.description}`; }) }), Label({