clock colors
parent
fe2a59a6d4
commit
2d4b4d4fa1
|
@ -5,6 +5,8 @@ TINT=$(pgrep -a tint2 |cut -d' ' -f4)
|
||||||
case $LANG in
|
case $LANG in
|
||||||
pl*)
|
pl*)
|
||||||
CLOCK="Zegar"
|
CLOCK="Zegar"
|
||||||
|
FONT_COLOR="Kolor"
|
||||||
|
SET_COLOR="Ustaw kolor"
|
||||||
CLOCK_LINE1="Linia 1"
|
CLOCK_LINE1="Linia 1"
|
||||||
CLOCK_LINE2="Linia 2"
|
CLOCK_LINE2="Linia 2"
|
||||||
FORMAT="Format"
|
FORMAT="Format"
|
||||||
|
@ -17,6 +19,8 @@ case $LANG in
|
||||||
;;
|
;;
|
||||||
es*)
|
es*)
|
||||||
CLOCK="Clock"
|
CLOCK="Clock"
|
||||||
|
FONT_COLOR="Color"
|
||||||
|
SET_COLOR="Set color"
|
||||||
CLOCK_LINE1="Line 1"
|
CLOCK_LINE1="Line 1"
|
||||||
CLOCK_LINE2="Line 2"
|
CLOCK_LINE2="Line 2"
|
||||||
FORMAT="Format"
|
FORMAT="Format"
|
||||||
|
@ -29,6 +33,8 @@ case $LANG in
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
CLOCK="Clock"
|
CLOCK="Clock"
|
||||||
|
FONT_COLOR="Color"
|
||||||
|
SET_COLOR="Set color"
|
||||||
CLOCK_LINE1="Line 1"
|
CLOCK_LINE1="Line 1"
|
||||||
CLOCK_LINE2="Line 2"
|
CLOCK_LINE2="Line 2"
|
||||||
FORMAT="Format"
|
FORMAT="Format"
|
||||||
|
@ -52,7 +58,17 @@ L1_SIZE="${FL1[-1]}"
|
||||||
read -a FL2 <<< "$(grep "time2_font" ${TINT} | cut -d'=' -f2)"
|
read -a FL2 <<< "$(grep "time2_font" ${TINT} | cut -d'=' -f2)"
|
||||||
L2_FONT="${FL2[@]::${#FL2[@]}-1}" # this is crazy... all array elements but last
|
L2_FONT="${FL2[@]::${#FL2[@]}-1}" # this is crazy... all array elements but last
|
||||||
L2_SIZE="${FL2[-1]}"
|
L2_SIZE="${FL2[-1]}"
|
||||||
|
read CLR OPA <<< "$(grep "clock_font_color" ${TINT} | cut -d'=' -f2)"
|
||||||
|
|
||||||
|
out+=("^sep($CLOCK)")
|
||||||
|
out+=("<tt><span bgcolor='${CLR}'> </span></tt> $FONT_COLOR,^checkout(ccolor)")
|
||||||
|
out2+=("^tag(ccolor)")
|
||||||
|
out2+=("^sep($SET_COLOR)")
|
||||||
|
colors=("#ffffff" "#CCCCCC" "#E95420" "#18b0b0" "#3584e4" "#0e8420" "#3dd425" "#c748ba" "#c7162b" "#f4a100" "#333333" "#000000")
|
||||||
|
for i in "${colors[@]}"
|
||||||
|
do
|
||||||
|
out2+=("<tt><small>$i</small> <span bgcolor='$i'> </span></tt>,t2ctl clockcolor '${i}' ${TINT};me")
|
||||||
|
done
|
||||||
out+=("^sep($CLOCK $CLOCK_LINE1)")
|
out+=("^sep($CLOCK $CLOCK_LINE1)")
|
||||||
out+=("$FORMAT: [ <b> $(date "+${TF1}") </b> ],^checkout(cl1)")
|
out+=("$FORMAT: [ <b> $(date "+${TF1}") </b> ],^checkout(cl1)")
|
||||||
out+=("$FONT: [ <b>$L1_FONT $L1_SIZE</b> ],^checkout(fl1)")
|
out+=("$FONT: [ <b>$L1_FONT $L1_SIZE</b> ],^checkout(fl1)")
|
||||||
|
|
|
@ -84,7 +84,7 @@ out+=("$PYRADIO <span bgcolor='#333333' color='#d3d3d3'> <small>W + r</small>
|
||||||
out+=("^sep()")
|
out+=("^sep()")
|
||||||
NOWPL="0"
|
NOWPL="0"
|
||||||
|
|
||||||
pgrep -f radio-mpv > /dev/null && NOW="$(<"$NOWPLAY")" NOWPL="1" out0+=("<small> $STOP <i>$NOW</i></small>,pkill -f radio-mpv;pkill -f yt-mpv") out+=("^sep()")
|
pgrep -f radio-mpv > /dev/null && NOW="$(<"$NOWPLAY")" NOWPL="1" out0+=("<small> $STOP <i>$NOW</i></small>,pkill -f radio-mpv;pkill -f yt-mpv")
|
||||||
out+=("$LISTEN,^checkout(mpvradio)")
|
out+=("$LISTEN,^checkout(mpvradio)")
|
||||||
out2+=("^tag(mpvradio)")
|
out2+=("^tag(mpvradio)")
|
||||||
|
|
||||||
|
@ -113,7 +113,7 @@ done <<< $(grep -v '^\s*$\|^#\|^\s*#' $PLAYLIST)
|
||||||
|
|
||||||
|
|
||||||
out+=("^sep($YTMUSIC)")
|
out+=("^sep($YTMUSIC)")
|
||||||
pgrep -f yt-mpv > /dev/null && NOW="$(<"$NOWPLAYYT")" NOWPL="1" out0+=("<small> $STOP <i>$NOW</i></small>,pkill -f yt-mpv;pkill -f radio-mpv" "^sep()")
|
pgrep -f yt-mpv > /dev/null && NOW="$(<"$NOWPLAYYT")" NOWPL="1" out0+=("<small> $STOP <i>$NOW</i></small>,pkill -f yt-mpv;pkill -f radio-mpv")
|
||||||
|
|
||||||
n=$(grep -v '^\s*$\|^#\|^\s*#' ${PLAYLISTYT} |wc -l)
|
n=$(grep -v '^\s*$\|^#\|^\s*#' ${PLAYLISTYT} |wc -l)
|
||||||
|
|
||||||
|
@ -207,6 +207,7 @@ else
|
||||||
POSITION_MODE="fixed"
|
POSITION_MODE="fixed"
|
||||||
fi
|
fi
|
||||||
jgmenu_icon_size=0
|
jgmenu_icon_size=0
|
||||||
|
TABS=200
|
||||||
|
|
||||||
[ $(pidof picom) ] && MENU_RADIUS=$jgtools_radius
|
[ $(pidof picom) ] && MENU_RADIUS=$jgtools_radius
|
||||||
[ -z $jgmenu_use_borders ] && menu_border=0
|
[ -z $jgmenu_use_borders ] && menu_border=0
|
||||||
|
|
Loading…
Reference in New Issue