forked from Shinonome/dots-hyprland
fix #329
This commit is contained in:
@@ -208,6 +208,12 @@ export default () => {
|
|||||||
return EventBox({
|
return EventBox({
|
||||||
onScrollUp: (self) => switchToRelativeWorkspace(self, -1),
|
onScrollUp: (self) => switchToRelativeWorkspace(self, -1),
|
||||||
onScrollDown: (self) => switchToRelativeWorkspace(self, +1),
|
onScrollDown: (self) => switchToRelativeWorkspace(self, +1),
|
||||||
|
child: Box({
|
||||||
|
className: 'spacing-h-4',
|
||||||
|
children: [
|
||||||
|
SystemResourcesOrCustomModule(),
|
||||||
|
EventBox({
|
||||||
|
child: BarGroup({ child: musicStuff }),
|
||||||
onPrimaryClick: () => showMusicControls.setValue(!showMusicControls.value),
|
onPrimaryClick: () => showMusicControls.setValue(!showMusicControls.value),
|
||||||
onSecondaryClick: () => execAsync(['bash', '-c', 'playerctl next || playerctl position `bc <<< "100 * $(playerctl metadata mpris:length) / 1000000 / 100"` &']).catch(print),
|
onSecondaryClick: () => execAsync(['bash', '-c', 'playerctl next || playerctl position `bc <<< "100 * $(playerctl metadata mpris:length) / 1000000 / 100"` &']).catch(print),
|
||||||
onMiddleClick: () => execAsync('playerctl play-pause').catch(print),
|
onMiddleClick: () => execAsync('playerctl play-pause').catch(print),
|
||||||
@@ -215,11 +221,7 @@ export default () => {
|
|||||||
if (event.get_button()[1] === 8) // Side button
|
if (event.get_button()[1] === 8) // Side button
|
||||||
execAsync('playerctl previous').catch(print)
|
execAsync('playerctl previous').catch(print)
|
||||||
}),
|
}),
|
||||||
child: Box({
|
})
|
||||||
className: 'spacing-h-4',
|
|
||||||
children: [
|
|
||||||
SystemResourcesOrCustomModule(),
|
|
||||||
BarGroup({ child: musicStuff }),
|
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user