Add conky files
This commit is contained in:
parent
23b44baa7a
commit
da251d1f4f
3 changed files with 183 additions and 0 deletions
15
.config/conky/conky-volume.sh
Executable file
15
.config/conky/conky-volume.sh
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
## Gets current track time for a bar in Conky.
|
||||
## Usage: Put ${execbar /path/to/script} in your .conkyrc.
|
||||
## It might be useful to use ${goto x} or ${voffset x} to adjust position, and ${color #xxxxxx} for color.
|
||||
## The 'default_bar_size x y' option can be used before the TEXT section in your .conkyrc to adjust height and width.
|
||||
## Requires 'bc' for calculating percentage.
|
||||
|
||||
VOL=$(pactl list sinks | grep -m 1 "front-left:" | awk -F" " '{print $5}' | cut -d "%" -f1)
|
||||
echo $VOL
|
||||
#if cmus-remote -Q &>/dev/null ; then
|
||||
# DUR=$( cmus-remote -Q | grep "duration" | cut -c10- )
|
||||
# POS=$( cmus-remote -Q | grep "position" | cut -c10- )
|
||||
# echo "($POS/$DUR)*100" | bc -l
|
||||
#fi
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue