transpcava
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#: transparent-cava (height in pixels) (width full, half or third)
|
#: transparent-cava (height in pixels) (width full, half or third)
|
||||||
|
|
||||||
|
wmctrl -R cavatransparent && exit 0
|
||||||
|
|
||||||
. ~/.config/mabox/mabox.conf
|
. ~/.config/mabox/mabox.conf
|
||||||
|
|
||||||
@@ -30,6 +31,9 @@ cat <<EOF > ${CONFIG_FILE}
|
|||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
cava_geometry=${cava_geometry:-false}
|
||||||
|
|
||||||
|
if [ "$cava_geometry" == "false" ];then
|
||||||
|
|
||||||
CAVA_HEIGHT=${cava_height:-200}
|
CAVA_HEIGHT=${cava_height:-200}
|
||||||
CAVA_WIDTH=${cava_width:-half}
|
CAVA_WIDTH=${cava_width:-half}
|
||||||
@@ -48,3 +52,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
terminator -b -g "${CONFIG_FILE}" -T cavatransparent --geometry "${WIDTH}x${CAVA_HEIGHT}+${LEFT}+${TOP}" -i amarok_playcount
|
terminator -b -g "${CONFIG_FILE}" -T cavatransparent --geometry "${WIDTH}x${CAVA_HEIGHT}+${LEFT}+${TOP}" -i amarok_playcount
|
||||||
|
|
||||||
|
else
|
||||||
|
terminator -b -g "${CONFIG_FILE}" -T cavatransparent --geometry "${cava_geometry}" -i amarok_playcount
|
||||||
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user