forked from Shinonome/dots-hyprland
bar: right click right side for next track
This commit is contained in:
@@ -6,6 +6,7 @@ import QtQuick.Controls
|
|||||||
import QtQuick.Layouts
|
import QtQuick.Layouts
|
||||||
import Quickshell
|
import Quickshell
|
||||||
import Quickshell.Io
|
import Quickshell.Io
|
||||||
|
import Quickshell.Services.Mpris
|
||||||
|
|
||||||
Scope {
|
Scope {
|
||||||
id: bar
|
id: bar
|
||||||
@@ -258,6 +259,9 @@ Scope {
|
|||||||
if (event.button === Qt.LeftButton) {
|
if (event.button === Qt.LeftButton) {
|
||||||
openSidebarRight.running = true
|
openSidebarRight.running = true
|
||||||
}
|
}
|
||||||
|
else if (event.button === Qt.RightButton) {
|
||||||
|
MprisController.activePlayer.next()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// Scroll to change volume
|
// Scroll to change volume
|
||||||
WheelHandler {
|
WheelHandler {
|
||||||
|
|||||||
Reference in New Issue
Block a user