diff options
Diffstat (limited to '.config/quickshell/Song.qml')
| -rw-r--r-- | .config/quickshell/Song.qml | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/.config/quickshell/Song.qml b/.config/quickshell/Song.qml deleted file mode 100644 index 14d7704..0000000 --- a/.config/quickshell/Song.qml +++ /dev/null @@ -1,31 +0,0 @@ -pragma Singleton - -import Quickshell -import Quickshell.Io -import QtQuick - -Singleton { - id: root - property string artist - property string title - - Process { - id: songProc - command: ["rmpc", "song"] - running: true - stdout: StdioCollector { - onStreamFinished: { - var obj = JSON.parse(this.text); - root.artist = obj.metadata.artist - root.title = obj.metadata.title - } - } - } - - Timer { - interval: 5000 - running: true - repeat: true - onTriggered: songProc.running = true - } -} |
