Regenerated
This commit is contained in:
+339
-349
File diff suppressed because it is too large
Load Diff
+7
-17
@@ -2781,14 +2781,14 @@ ShellRoot {
|
|||||||
// Focus / open the active player app
|
// Focus / open the active player app
|
||||||
Process {
|
Process {
|
||||||
id: focusProc
|
id: focusProc
|
||||||
property string cmd: ""
|
command: ["bash", "-c",
|
||||||
command: ["bash", "-c", cmd]
|
media.isSpotify
|
||||||
|
? "hyprctl dispatch focuswindow class:^(Spotify)$ 2>/dev/null || spotify &"
|
||||||
|
: "hyprctl dispatch focuswindow class:^(" + media.player.split('.')[0] + ")$ 2>/dev/null || " + media.player.split('.')[0].toLowerCase() + " &"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
function focusPlayer() {
|
function focusPlayer() {
|
||||||
var cls = media.isSpotify ? "Spotify" : media.player.split(".")[0]
|
|
||||||
var bin = cls.toLowerCase()
|
|
||||||
focusProc.cmd = "hyprctl dispatch focuswindow class:^(" + cls + ")$ 2>/dev/null || " + bin + " &"
|
|
||||||
focusProc.running = true
|
focusProc.running = true
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2803,6 +2803,7 @@ ShellRoot {
|
|||||||
visible: true
|
visible: true
|
||||||
implicitWidth: 300
|
implicitWidth: 300
|
||||||
implicitHeight: 440
|
implicitHeight: 440
|
||||||
|
property bool isFocused: Window.active
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
|
|
||||||
Shortcut {
|
Shortcut {
|
||||||
@@ -2816,7 +2817,7 @@ ShellRoot {
|
|||||||
anchors.margins: -2
|
anchors.margins: -2
|
||||||
radius: 18
|
radius: 18
|
||||||
z: -1
|
z: -1
|
||||||
opacity: root.active ? 0 : 1
|
opacity: root.isFocused ? 0 : 1
|
||||||
Behavior on opacity {
|
Behavior on opacity {
|
||||||
NumberAnimation { duration: 150 }
|
NumberAnimation { duration: 150 }
|
||||||
}
|
}
|
||||||
@@ -3033,17 +3034,6 @@ ShellRoot {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Shuffle mode label
|
|
||||||
Text {
|
|
||||||
Layout.alignment: Qt.AlignHCenter
|
|
||||||
text: media.shuffleMode === 1 ? "Shuffle"
|
|
||||||
: media.shuffleMode === 2 ? "Smart Shuffle"
|
|
||||||
: ""
|
|
||||||
color: media.shuffleMode === 2 ? colors.mauve : colors.blue
|
|
||||||
font.pixelSize: 10
|
|
||||||
visible: media.isSpotify && media.shuffleMode !== 0
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -152,14 +152,14 @@ ShellRoot {
|
|||||||
// Focus / open the active player app
|
// Focus / open the active player app
|
||||||
Process {
|
Process {
|
||||||
id: focusProc
|
id: focusProc
|
||||||
property string cmd: ""
|
command: ["bash", "-c",
|
||||||
command: ["bash", "-c", cmd]
|
media.isSpotify
|
||||||
|
? "hyprctl dispatch focuswindow class:^(Spotify)$ 2>/dev/null || spotify &"
|
||||||
|
: "hyprctl dispatch focuswindow class:^(" + media.player.split('.')[0] + ")$ 2>/dev/null || " + media.player.split('.')[0].toLowerCase() + " &"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
function focusPlayer() {
|
function focusPlayer() {
|
||||||
var cls = media.isSpotify ? "Spotify" : media.player.split(".")[0]
|
|
||||||
var bin = cls.toLowerCase()
|
|
||||||
focusProc.cmd = "hyprctl dispatch focuswindow class:^(" + cls + ")$ 2>/dev/null || " + bin + " &"
|
|
||||||
focusProc.running = true
|
focusProc.running = true
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -174,6 +174,7 @@ ShellRoot {
|
|||||||
visible: true
|
visible: true
|
||||||
implicitWidth: 300
|
implicitWidth: 300
|
||||||
implicitHeight: 440
|
implicitHeight: 440
|
||||||
|
property bool isFocused: Window.active
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
|
|
||||||
Shortcut {
|
Shortcut {
|
||||||
@@ -187,7 +188,7 @@ ShellRoot {
|
|||||||
anchors.margins: -2
|
anchors.margins: -2
|
||||||
radius: 18
|
radius: 18
|
||||||
z: -1
|
z: -1
|
||||||
opacity: root.active ? 0 : 1
|
opacity: root.isFocused ? 0 : 1
|
||||||
Behavior on opacity {
|
Behavior on opacity {
|
||||||
NumberAnimation { duration: 150 }
|
NumberAnimation { duration: 150 }
|
||||||
}
|
}
|
||||||
@@ -404,17 +405,6 @@ ShellRoot {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Shuffle mode label
|
|
||||||
Text {
|
|
||||||
Layout.alignment: Qt.AlignHCenter
|
|
||||||
text: media.shuffleMode === 1 ? "Shuffle"
|
|
||||||
: media.shuffleMode === 2 ? "Smart Shuffle"
|
|
||||||
: ""
|
|
||||||
color: media.shuffleMode === 2 ? colors.mauve : colors.blue
|
|
||||||
font.pixelSize: 10
|
|
||||||
visible: media.isSpotify && media.shuffleMode !== 0
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user