conky handling update
This commit is contained in:
31
bin/conkyctl
31
bin/conkyctl
@@ -493,7 +493,7 @@ languages () {
|
||||
BORDERS="Obramowanie"
|
||||
EDIT="Edytuj plik Conky"
|
||||
RELOAD="Przeładuj"
|
||||
KILL="Zabij"
|
||||
KILL="Wyłącz"
|
||||
LOGOSIZE="Rozmiar logo"
|
||||
SMALL="Małe"
|
||||
NORMAL="Normalne"
|
||||
@@ -504,7 +504,7 @@ languages () {
|
||||
SOLID_LINE="linia ciągła"
|
||||
NOT_WORKING="Nie działa? Naprawmy to :)"
|
||||
MOUNTPOINTS="Dyski (punkty montowania)"
|
||||
_ACTIONS="Działania"
|
||||
_ACTIONS="Zaawansowane"
|
||||
;;
|
||||
*)
|
||||
UNSUPPORTED="partially supported!!!"
|
||||
@@ -512,7 +512,7 @@ languages () {
|
||||
CONVERT_OLD="Try to convert to new syntax?"
|
||||
CONVERT_OLD_TRY="Yes, try to convert"
|
||||
POSITION="Position"
|
||||
MAKEMOVEABLE="Make moveable all..."
|
||||
MAKEMOVEABLE="Rearrange widget positions"
|
||||
MARKNEWPOS="New position (<i>mark on the screen</i>)..."
|
||||
ALIGNMENT="Alignment"
|
||||
TOPLEFT="TopLeft"
|
||||
@@ -565,7 +565,7 @@ languages () {
|
||||
BORDERS="Borders"
|
||||
EDIT="Edit Conky file"
|
||||
RELOAD="Reload"
|
||||
KILL="Kill"
|
||||
KILL="Quit"
|
||||
LOGOSIZE="Logo size"
|
||||
SMALL="Small"
|
||||
NORMAL="Normal"
|
||||
@@ -576,7 +576,7 @@ languages () {
|
||||
SOLID_LINE="solid line"
|
||||
NOT_WORKING="Not working? Try to fix"
|
||||
MOUNTPOINTS="Discs (mount points)"
|
||||
_ACTIONS="Actions"
|
||||
_ACTIONS="Advanced"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
@@ -670,7 +670,9 @@ mapfile -t w < "$WALLPALDIR/$NAME.clr"
|
||||
out+=("^sep(Conky: [ ${title^} ]")
|
||||
out+=("^sep(<span bgcolor='red' fgcolor='white'> ${UNSUPPORTED} </span>)")
|
||||
fi
|
||||
|
||||
### TUKILL
|
||||
out+=(" $KILL ${title^},conkyctl kill ${1##*/};${me}")
|
||||
out+=("^sep()")
|
||||
if [[ "$OLD_SYNTAX" = "true" ]];then
|
||||
out+=("$OLD_SYNTAX_DETECTED,^checkout(oldsyntax)")
|
||||
out2+=("^tag(oldsyntax)")
|
||||
@@ -901,7 +903,7 @@ read SIZE <<< "$(grep minimum_height ${1} | cut -d'=' -f2 | cut -d"," -f1)"
|
||||
[[ "${TYP}" == *"square"* ]] && out+=("<big>綠</big> <b>$_SQUARE</b>,mabox-logo type square") || out+=("<big>祿</big> $_SQUARE,mabox-logo type square")
|
||||
[[ "${TYP}" == *"circle"* ]] && out+=("<big>綠</big> <b>$_CIRCLE</b>,mabox-logo type circle") || out+=("<big>祿</big> $_CIRCLE,mabox-logo type circle")
|
||||
out+=("^sep()")
|
||||
out+=("$_LOGOSIZE [ <b>${SIZE}</b> x <b>${SIZE}</b> ],^checkout(logosize)")
|
||||
out+=("$_LOGOSIZE [ <b>${SIZE}</b>x<b>${SIZE}</b> ],^checkout(logosize)")
|
||||
out2+=("^tag(logosize)")
|
||||
out2+=("^sep($_LOGOSIZE (px))")
|
||||
for s in 32 48 64 96 128 256 512;do
|
||||
@@ -1089,11 +1091,13 @@ if [[ "$FONT" != "" ]];then
|
||||
done
|
||||
fi
|
||||
fi #OLD SYNTAX CHECK
|
||||
# BASICMODE
|
||||
if [[ "${conky_basicmode}" != "on" ]];then
|
||||
out+=("^sep($_ACTIONS)")
|
||||
out+=(" $EDIT ${title^},xdg-open ${1}")
|
||||
out+=("北 $RELOAD ${title^},conkyctl restartone ${1}")
|
||||
out+=("^sep()")
|
||||
out+=(" $KILL ${title^},conkyctl kill ${1##*/};${me}")
|
||||
fi
|
||||
|
||||
}
|
||||
pipemenu () {
|
||||
single "$1"
|
||||
@@ -1174,7 +1178,7 @@ contextmenu () {
|
||||
jgtools_padding=4
|
||||
MENU_PADDING_TOP=${jgtools_padding:-0}
|
||||
|
||||
TABS=140
|
||||
TABS=120
|
||||
jgmenu_icon_size=0
|
||||
|
||||
|
||||
@@ -1186,13 +1190,16 @@ contextmenu () {
|
||||
CONKY_WIDGET_MNGR="<b>Menadżer</b> widżetów <b>Conky</b>";;
|
||||
*)
|
||||
EDIT_CUSTOMCOMMANDS=" Edit cmd menu (<i>left-clik</i>) for <b>${name^}</b>"
|
||||
CONKY_WIDGET_MNGR="<b>Conky</b> Widget <b>Manager</b>"
|
||||
CONKY_WIDGET_MNGR="<b>Conky</b> Widget <b>Manager</b> "
|
||||
;;
|
||||
esac
|
||||
## BASICMODE
|
||||
if [[ "${conky_basicmode}" != "on" ]];then
|
||||
out+=("^sep()")
|
||||
out+=("$EDIT_CUSTOMCOMMANDS,conkyctl cmdmenu_edit ${name}")
|
||||
fi
|
||||
out+=("^sep()")
|
||||
out+=(" ${arrow_string_left} $CONKY_WIDGET_MNGR,colorizer-conky -s")
|
||||
out+=(" ${arrow_string_left} ${arrow_string_left} ${arrow_string_left} $CONKY_WIDGET_MNGR,colorizer-conky -s")
|
||||
|
||||
if [[ "$CONKYCFG" =~ "mount_points" ]]; then
|
||||
out+=("^sep($MOUNTPOINTS)")
|
||||
|
||||
Reference in New Issue
Block a user