4/26
This commit is contained in:
parent
2ca5c136da
commit
1dd4472634
44
config
44
config
@ -11,12 +11,12 @@ SCRIPT_DIR=/home/arco/.config/i3blocks/scripts
|
|||||||
separator=true
|
separator=true
|
||||||
separator_block_width=30
|
separator_block_width=30
|
||||||
|
|
||||||
#[mediaplayer2]
|
[mediaplayer2]
|
||||||
#command=$SCRIPT_DIR/mediaplayer2
|
command=$SCRIPT_DIR/mediaplayer2
|
||||||
#label=[ ♪ ]
|
label=[ ♪ ]
|
||||||
#CONCISE=false
|
CONCISE=false
|
||||||
#interval=1
|
interval=1
|
||||||
#color=#ebdbb2
|
color=#ECEFF4
|
||||||
|
|
||||||
#[mediaplayer]
|
#[mediaplayer]
|
||||||
#command=$SCRIPT_DIR/mediaplayer
|
#command=$SCRIPT_DIR/mediaplayer
|
||||||
@ -27,7 +27,7 @@ separator_block_width=30
|
|||||||
[check-security-key]
|
[check-security-key]
|
||||||
command=$SCRIPT_DIR/check_security_key
|
command=$SCRIPT_DIR/check_security_key
|
||||||
interval=1
|
interval=1
|
||||||
color=#ebdbb2
|
color=#ECEFF4
|
||||||
|
|
||||||
#[rofi-wttr]
|
#[rofi-wttr]
|
||||||
#command=$SCRIPT_DIR/rofi-wttr
|
#command=$SCRIPT_DIR/rofi-wttr
|
||||||
@ -59,7 +59,7 @@ STEP=5%
|
|||||||
MIXER=pulse
|
MIXER=pulse
|
||||||
#SCONTROL=[determined automatically]
|
#SCONTROL=[determined automatically]
|
||||||
NATURAL_MAPPING=0
|
NATURAL_MAPPING=0
|
||||||
color=#ebdbb2
|
color=#ECEFF4
|
||||||
|
|
||||||
[dunst]
|
[dunst]
|
||||||
command=$SCRIPT_DIR/dunst
|
command=$SCRIPT_DIR/dunst
|
||||||
@ -74,7 +74,7 @@ command=$SCRIPT_DIR/disk
|
|||||||
DIR=/
|
DIR=/
|
||||||
LABEL=[ 🖴 ]
|
LABEL=[ 🖴 ]
|
||||||
interval=30
|
interval=30
|
||||||
color=#ebdbb2
|
color=#ECEFF4
|
||||||
|
|
||||||
[batterybar]
|
[batterybar]
|
||||||
command=$SCRIPT_DIR/batterybar
|
command=$SCRIPT_DIR/batterybar
|
||||||
@ -83,24 +83,24 @@ interval=5
|
|||||||
markup=pango
|
markup=pango
|
||||||
min_width=bat: ■■■■■
|
min_width=bat: ■■■■■
|
||||||
# Discharging colors low to high
|
# Discharging colors low to high
|
||||||
C1=#cc241d
|
C1=#BF616A
|
||||||
C2=#d65d0e
|
C2=#BF616A
|
||||||
C3=#d79921
|
C3=#D08770
|
||||||
C4=#fabd2f
|
C4=#D08770
|
||||||
C5=#8ec07c
|
C5=#EBCB8B
|
||||||
C6=#689d6a
|
C6=#EBCB8B
|
||||||
C7=#b8bb26
|
C7=#A3BE8C
|
||||||
C8=#98971a
|
C8=#A3BE8C
|
||||||
CHARGING_COLOR=#458588
|
CHARGING_COLOR=#88C0D0
|
||||||
FULL_COLOR=#ebdbb2
|
FULL_COLOR=#ECEFF4
|
||||||
AC_COLOR=#535353
|
AC_COLOR=#88C0D0
|
||||||
color=#ebdbb2
|
color=#ECEFF4
|
||||||
|
|
||||||
[time]
|
[time]
|
||||||
label=[ 🕰 ]
|
label=[ 🕰 ]
|
||||||
command=date '+%m/%d/%Y %H:%M'
|
command=date '+%m/%d/%Y %H:%M'
|
||||||
interval=15
|
interval=15
|
||||||
color=#ebdbb2
|
color=#ECEFF4
|
||||||
|
|
||||||
#[laptop_mode]
|
#[laptop_mode]
|
||||||
#full_text= ↺ Laptop Mode
|
#full_text= ↺ Laptop Mode
|
||||||
|
@ -6,7 +6,11 @@ ALBUM=$(playerctl metadata album) # Command to get album
|
|||||||
|
|
||||||
MAXCHAR="128" # Maximum characters allowed in string
|
MAXCHAR="128" # Maximum characters allowed in string
|
||||||
|
|
||||||
if [ ${CONCISE} == "false" ]; then
|
playerctl metadata title > /dev/null
|
||||||
|
|
||||||
|
if [ "$?" != 0 ]; then
|
||||||
|
printf "No players found"
|
||||||
|
elif [ ${CONCISE} == "false" ]; then
|
||||||
printf "%.${MAXCHAR}s\n" "${TRACK} - by ${ARTIST} - on ${ALBUM}"
|
printf "%.${MAXCHAR}s\n" "${TRACK} - by ${ARTIST} - on ${ALBUM}"
|
||||||
elif [ ${CONCISE} == "true" ]; then
|
elif [ ${CONCISE} == "true" ]; then
|
||||||
printf "%.${MAXCHAR}s\n" "${ARTIST} - ${TRACK}"
|
printf "%.${MAXCHAR}s\n" "${ARTIST} - ${TRACK}"
|
||||||
|
Loading…
Reference in New Issue
Block a user