conky contextmenu pick colors fix
This commit is contained in:
parent
4d6499568a
commit
f132019078
19
bin/conkyctl
19
bin/conkyctl
@ -242,6 +242,16 @@ restartone () {
|
|||||||
makemovableall () {
|
makemovableall () {
|
||||||
echo "dupa"
|
echo "dupa"
|
||||||
}
|
}
|
||||||
|
resetcolors () {
|
||||||
|
transparent_all false
|
||||||
|
win_bgcolor_all '#142c2c'
|
||||||
|
draw_borders_all true
|
||||||
|
stippled_borders_all 0
|
||||||
|
default_color_all '#309552'
|
||||||
|
color0_all '#accdc7'
|
||||||
|
color1_all '#61c4bc'
|
||||||
|
color2_all '#61c4bc'
|
||||||
|
}
|
||||||
|
|
||||||
languages () {
|
languages () {
|
||||||
case "$LANG" in
|
case "$LANG" in
|
||||||
@ -335,8 +345,9 @@ single () {
|
|||||||
filename=${1##*/}
|
filename=${1##*/}
|
||||||
name=${filename%%_mb*}
|
name=${filename%%_mb*}
|
||||||
title=${name//_/ }
|
title=${name//_/ }
|
||||||
|
# breaks mbclr color picking from contextmenu, leave it as "colorizer-conky -s" for now
|
||||||
if [[ "$2" == "s" ]];then
|
if [[ "$2" == "s" ]];then
|
||||||
me=""
|
me="colorizer-conky -s"
|
||||||
else
|
else
|
||||||
me="colorizer-conky -s"
|
me="colorizer-conky -s"
|
||||||
fi
|
fi
|
||||||
@ -468,7 +479,7 @@ single () {
|
|||||||
out2+=("$NO,conkyctl transparent false ${1};$me")
|
out2+=("$NO,conkyctl transparent false ${1};$me")
|
||||||
out2+=("^sep()")
|
out2+=("^sep()")
|
||||||
out2+=("<small><span bgcolor='$WINCLR'> </span></small> $BACKGROUND,^pipe(mbclr '$WINCLR' conkyctl win_bgcolor '${BACKGROUND}' '$me' ${1})")
|
out2+=("<small><span bgcolor='$WINCLR'> </span></small> $BACKGROUND,^pipe(mbclr '$WINCLR' conkyctl win_bgcolor '${BACKGROUND}' '$me' ${1})")
|
||||||
|
#notify-send.sh "1" "${1}"
|
||||||
if [[ "$1" != *"logo_mbcolor"* ]]; then
|
if [[ "$1" != *"logo_mbcolor"* ]]; then
|
||||||
if [[ "$1" != *"quoter_mbcolor"* ]]; then
|
if [[ "$1" != *"quoter_mbcolor"* ]]; then
|
||||||
out+=("$FONTS [ <b>$FONT $FONTSIZE</b> ],^checkout(fontsingle)")
|
out+=("$FONTS [ <b>$FONT $FONTSIZE</b> ],^checkout(fontsingle)")
|
||||||
@ -580,7 +591,7 @@ contextmenu () {
|
|||||||
jgmenu_icon_size=0
|
jgmenu_icon_size=0
|
||||||
mkconfigfile
|
mkconfigfile
|
||||||
|
|
||||||
single "$CONKYCFG" "s"
|
single "${CONKYCFG}" "s"
|
||||||
|
|
||||||
case "$LANG" in
|
case "$LANG" in
|
||||||
pl*)
|
pl*)
|
||||||
@ -643,6 +654,6 @@ case "$1" in
|
|||||||
contextmenu) contextmenu;;
|
contextmenu) contextmenu;;
|
||||||
makemovableall) makemovableall;;
|
makemovableall) makemovableall;;
|
||||||
saveposall) saveposall;;
|
saveposall) saveposall;;
|
||||||
reset) reset ;;
|
resetcolors) resetcolors ;;
|
||||||
*) : ;;
|
*) : ;;
|
||||||
esac
|
esac
|
||||||
|
11
bin/conkymountpoints.sh
Executable file
11
bin/conkymountpoints.sh
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
getdata () {
|
||||||
|
df -h | grep -v "boot" | grep '^/dev' | while read DEVICE SIZE USED FREE PERCENT MOUNT
|
||||||
|
do
|
||||||
|
[[ "${#MOUNT}" -gt "12" ]] && MOUNTLBL=${MOUNT##*/} || MOUNTLBL=${MOUNT}
|
||||||
|
echo "$MOUNTLBL\${goto 90}\${color2}\${fs_bar 6,64 $MOUNT}\${color}\${goto 160}$USED\${goto 200}$PERCENT\${alignr}$SIZE"
|
||||||
|
done
|
||||||
|
}
|
||||||
|
echo "\${goto 160}used\${goto 200}%\${alignr}size"
|
||||||
|
getdata
|
@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# mbclr current polecenie funkcja argument backprg [config_file]
|
# mbclr current polecenie funkcja argument backprg [config_file]
|
||||||
# mbclr
|
# mbclr
|
||||||
|
#notify-send.sh "mbclr" "${1}\n${2}\n${3}\n${4}\n${5}\n${6}"
|
||||||
case "$LANG" in
|
case "$LANG" in
|
||||||
pl*)
|
pl*)
|
||||||
SELECT_COLOR="Wybierz kolor"
|
SELECT_COLOR="Wybierz kolor"
|
||||||
|
Loading…
Reference in New Issue
Block a user