This commit is contained in:
flickowoa
2025-02-17 00:01:27 +05:30
parent 2246d278a5
commit bad7c9a83e
2 changed files with 9 additions and 6 deletions

View File

@@ -1,2 +1,2 @@
#! /bin/bash
printf "[general]\nframerate=60\nbars=$1\n[output]\nmethod = raw\nraw_target = /dev/stdout\ndata_format = ascii\nascii_max_range = 1000\n[smoothing]\nintegral = 0\nwaves=0\ngravity = 10000000\n[input]\nmethod=pulse\nsource=auto" | cava -p /dev/stdin
printf "[general]\nframerate=165\nbars=$1\n[output]\nmethod = raw\nraw_target = /dev/stdout\ndata_format = ascii\nascii_max_range = 1000\n[smoothing]\nintegral = 0\nwaves=0\ngravity = 10000000\n[input]\nmethod=pulse\nsource=auto" | cava -p /dev/stdin

View File

@@ -41,16 +41,17 @@ Rectangle {
ShaderEffectSource {
id: cava
// visible: false
visible: false
height: Config.pillHeight
width: Config.pillWidth * 4
mipmap: true
anchors {
horizontalCenter: parent.horizontalCenter
}
sourceItem: contentwrap
live: true
// live: true
wrapMode: ShaderEffectSource.ClampToEdge
hideSource: true
// hideSource: true
}
Item {
id: contentwrap
@@ -75,7 +76,7 @@ Rectangle {
implicitWidth: content.width
implicitHeight: Config.pillHeight * 0.5
radius: 50
radius: content.radius
layer.enabled: true
@@ -84,8 +85,10 @@ Rectangle {
// visible: false
color: "white"
// radius: 0
y: 0
width: childrenRect.width ? childrenRect.width + Config.pillHPadding : Config.pillWidth * 4
width: childrenRect.width ? childrenRect.width + Config.pillHPadding : Config.pillWidth * 4 + 5
height: Config.pillHeight
anchors {