mirror of
https://github.com/danbulant/dots-hyprland
synced 2026-05-24 12:22:09 +00:00
music: no [FREE DOWNLOAD]
This commit is contained in:
parent
26a0e34b8b
commit
ba195e2ec2
2 changed files with 7 additions and 7 deletions
|
|
@ -7,9 +7,9 @@ import { AnimatedCircProg } from "../../lib/animatedcircularprogress.js";
|
|||
import { showMusicControls } from '../../variables.js';
|
||||
|
||||
function trimTrackTitle(title) {
|
||||
// Removes stuff like【C93】 at beginning
|
||||
var pattern = /【[^】]*】/;
|
||||
var cleanedTitle = title.replace(pattern, '');
|
||||
var cleanedTitle = title;
|
||||
cleanedTitle = cleanedTitle.replace(/【[^】]*】/, ''); // Remove stuff like【C93】 at beginning
|
||||
cleanedTitle = cleanedTitle.replace(/\[FREE DOWNLOAD\]/g, ''); // Remove F-777's [FREE DOWNLOAD]
|
||||
return cleanedTitle.trim();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -75,9 +75,9 @@ function getTrackfont(player) {
|
|||
return DEFAULT_MUSIC_FONT;
|
||||
}
|
||||
function trimTrackTitle(title) {
|
||||
// Removes stuff like【C93】 at beginning
|
||||
var pattern = /【[^】]*】/;
|
||||
var cleanedTitle = title.replace(pattern, '');
|
||||
var cleanedTitle = title;
|
||||
cleanedTitle = cleanedTitle.replace(/【[^】]*】/, ''); // Remove stuff like【C93】 at beginning
|
||||
cleanedTitle = cleanedTitle.replace(/\[FREE DOWNLOAD\]/g, ''); // Remove F-777's [FREE DOWNLOAD]
|
||||
return cleanedTitle.trim();
|
||||
}
|
||||
|
||||
|
|
@ -301,7 +301,7 @@ const PlayState = ({ player }) => {
|
|||
overlays: [
|
||||
Widget.Button({
|
||||
className: 'osd-music-playstate-btn',
|
||||
onClicked: () => { console.log('uwu'); execAsync('playerctl play-pause').catch(print) },
|
||||
onClicked: () => execAsync('playerctl play-pause').catch(print),
|
||||
child: Widget.Label({
|
||||
justification: 'center',
|
||||
hpack: 'fill',
|
||||
|
|
|
|||
Loading…
Reference in a new issue