glyphicons
This commit is contained in:
56
bin/colorizer
Executable file → Normal file
56
bin/colorizer
Executable file → Normal file
@@ -16,7 +16,8 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
. $HOME/.config/mabox/mabox.conf
|
||||
. /usr/share/mb-jgtools/jgtools.inc
|
||||
|
||||
|
||||
CNF_DIR="$HOME/.config/colorizer"
|
||||
mkdir -p "$CNF_DIR"
|
||||
@@ -114,7 +115,7 @@ case "$LANG" in
|
||||
_AUTOTH_SETTINGS="Ustawienia Auto theming"
|
||||
_APPLY_COLORSCHEME_TO="Zastosuj kolory tapety do..."
|
||||
_APPLY_TO_ALL="<b>Wszystko</b>"
|
||||
_APPLY_REVERSE="<b>Wszystko</b> odwrotnie (jasny 易 ciemny)"
|
||||
_APPLY_REVERSE="<b>Wszystko</b> odwrotnie (jasny ciemny)"
|
||||
_APPLY_ONLY_TO="Zastosuj tylko do..."
|
||||
_RESET_WP_THEMES="Reset tapety i motywów"
|
||||
_ENABLED="włączony"
|
||||
@@ -194,7 +195,7 @@ case "$LANG" in
|
||||
_AUTOTH_SETTINGS="Auto theming settings"
|
||||
_APPLY_COLORSCHEME_TO="Apply wallpaper colors to..."
|
||||
_APPLY_TO_ALL="<b>All</b> elements"
|
||||
_APPLY_REVERSE="<b>All</b> elements inversely (dark 易 light)"
|
||||
_APPLY_REVERSE="<b>All</b> elements inversely (dark light)"
|
||||
_APPLY_ONLY_TO="Apply only to..."
|
||||
_RESET_WP_THEMES="Reset (wallpaper and themes)"
|
||||
_ENABLED="enabled"
|
||||
@@ -292,7 +293,7 @@ out+=("<big></big> $_APPLY_COLORSCHEME_TO,^checkout(applyto)")
|
||||
out2+=("^tag(applyto)")
|
||||
out2+=("^sep($_APPLY_COLORSCHEME_TO)")
|
||||
out2+=("<big></big> $_APPLY_TO_ALL,w2theme colorize;$me applyto")
|
||||
out2+=("<big>敏</big> $_APPLY_REVERSE,w2theme reverse;$me applyto")
|
||||
out2+=("<big></big> $_APPLY_REVERSE,w2theme reverse;$me applyto")
|
||||
out2+=("^sep($_APPLY_ONLY_TO)")
|
||||
out2+=("^sep(Menu)")
|
||||
out2+=(" $_LIGHTBG,w2theme menu light;$me applyto")
|
||||
@@ -310,37 +311,37 @@ out2+=(" $_DARKBG,w2theme ob dark;$me applyto")
|
||||
out+=("^sep()")
|
||||
|
||||
|
||||
[[ "$wall2themes" == "yes" ]] && out+=("<big></big> $_AUTOTH_SETTINGS,^checkout(autotheming)") || out+=("<big></big> $_AUTOTH_SETTINGS,^checkout(autotheming)")
|
||||
[[ "$wall2themes" == "yes" ]] && out+=("<big>${cbon}</big> $_AUTOTH_SETTINGS,^checkout(autotheming)") || out+=("<big>${cboff}</big> $_AUTOTH_SETTINGS,^checkout(autotheming)")
|
||||
|
||||
out2+=("^tag(autotheming)")
|
||||
out2+=("^sep($_AUTOTH_SETTINGS (beta))")
|
||||
[[ "$wall2themes" == "yes" ]] && out2+=("<big>綠</big> $_ENABLED") || out2+=("<big>祿</big> $_ENABLED,mb-setvar wall2themes=yes $COLORIZER_CONF;$me")
|
||||
[[ "$wall2themes" != "yes" ]] && out2+=("<big>綠</big> $_DISABLED") || out2+=("<big>祿</big> $_DISABLED,mb-setvar wall2themes=no $COLORIZER_CONF;$me")
|
||||
[[ "$wall2themes" == "yes" ]] && out2+=("<big>${ron}</big> $_ENABLED") || out2+=("<big>${roff}</big> $_ENABLED,mb-setvar wall2themes=yes $COLORIZER_CONF;$me")
|
||||
[[ "$wall2themes" != "yes" ]] && out2+=("<big>${ron}</big> $_DISABLED") || out2+=("<big>${roff}</big> $_DISABLED,mb-setvar wall2themes=no $COLORIZER_CONF;$me")
|
||||
|
||||
out2+=("^sep(<i>OpenBox</i>)")
|
||||
[[ "$wall2themes_ob" == "light" ]] && out2+=("<big>綠</big> $_LIGHTBG") || out2+=("<big>祿</big> $_LIGHTBG,mb-setvar wall2themes_ob=light $COLORIZER_CONF;$me autoth")
|
||||
[[ "$wall2themes_ob" == "dark" ]] && out2+=("<big>綠</big> $_DARKBG") || out2+=("<big>祿</big> $_DARKBG,mb-setvar wall2themes_ob=dark $COLORIZER_CONF;$me autoth")
|
||||
[[ "$wall2themes_ob" == "light" ]] && out2+=("<big>${ron}</big> $_LIGHTBG") || out2+=("<big>${roff}</big> $_LIGHTBG,mb-setvar wall2themes_ob=light $COLORIZER_CONF;$me autoth")
|
||||
[[ "$wall2themes_ob" == "dark" ]] && out2+=("<big>${ron}</big> $_DARKBG") || out2+=("<big>${roff}</big> $_DARKBG,mb-setvar wall2themes_ob=dark $COLORIZER_CONF;$me autoth")
|
||||
out2+=("^sep()")
|
||||
[[ "$wall2themes_ob" == "none" ]] && out2+=("<big>綠</big> $_NONE") || out2+=("<big>祿</big> $_NONE,mb-setvar wall2themes_ob=none $COLORIZER_CONF;$me autoth")
|
||||
[[ "$wall2themes_ob" == "none" ]] && out2+=("<big>${ron}</big> $_NONE") || out2+=("<big>${roff}</big> $_NONE,mb-setvar wall2themes_ob=none $COLORIZER_CONF;$me autoth")
|
||||
out2+=("^sep(<i>Menu</i>)")
|
||||
[[ "$wall2themes_menu" == "light" ]] && out2+=("<big>綠</big> $_LIGHTBG") || out2+=("<big>祿</big> $_LIGHTBG,mb-setvar wall2themes_menu=light $COLORIZER_CONF;$me autoth")
|
||||
[[ "$wall2themes_menu" == "dark" ]] && out2+=("<big>綠</big> $_DARKBG") || out2+=("<big>祿</big> $_DARKBG,mb-setvar wall2themes_menu=dark $COLORIZER_CONF;$me autoth")
|
||||
[[ "$wall2themes_menu" == "light" ]] && out2+=("<big>${ron}</big> $_LIGHTBG") || out2+=("<big>${roff}</big> $_LIGHTBG,mb-setvar wall2themes_menu=light $COLORIZER_CONF;$me autoth")
|
||||
[[ "$wall2themes_menu" == "dark" ]] && out2+=("<big>${ron}</big> $_DARKBG") || out2+=("<big>${roff}</big> $_DARKBG,mb-setvar wall2themes_menu=dark $COLORIZER_CONF;$me autoth")
|
||||
out2+=("^sep()")
|
||||
[[ "$wall2themes_menu" == "none" ]] && out2+=("<big>綠</big> $_NONE") || out2+=("<big>祿</big> $_NONE,mb-setvar wall2themes_menu=none $COLORIZER_CONF;$me autoth")
|
||||
[[ "$wall2themes_menu" == "none" ]] && out2+=("<big>${ron}</big> $_NONE") || out2+=("<big>${roff}</big> $_NONE,mb-setvar wall2themes_menu=none $COLORIZER_CONF;$me autoth")
|
||||
out2+=("^sep(<i>Conky</i>)")
|
||||
[[ "$wall2themes_conky" == "light" ]] && out2+=("<big>綠</big> $_LIGHTBG") || out2+=("<big>祿</big> $_LIGHTBG,mb-setvar wall2themes_conky=light $COLORIZER_CONF;$me autoth")
|
||||
[[ "$wall2themes_conky" == "dark" ]] && out2+=("<big>綠</big> $_DARKBG") || out2+=("<big>祿</big> $_DARKBG,mb-setvar wall2themes_conky=dark $COLORIZER_CONF;$me autoth")
|
||||
[[ "$wall2themes_conky" == "light" ]] && out2+=("<big>${ron}</big> $_LIGHTBG") || out2+=("<big>${roff}</big> $_LIGHTBG,mb-setvar wall2themes_conky=light $COLORIZER_CONF;$me autoth")
|
||||
[[ "$wall2themes_conky" == "dark" ]] && out2+=("<big>${ron}</big> $_DARKBG") || out2+=("<big>${roff}</big> $_DARKBG,mb-setvar wall2themes_conky=dark $COLORIZER_CONF;$me autoth")
|
||||
out2+=("^sep()")
|
||||
[[ "$wall2themes_conky" == "none" ]] && out2+=("<big>綠</big> $_NONE") || out2+=("<big>祿</big> $_NONE,mb-setvar wall2themes_conky=none $COLORIZER_CONF;$me autoth")
|
||||
[[ "$wall2themes_conky" == "none" ]] && out2+=("<big>${ron}</big> $_NONE") || out2+=("<big>${roff}</big> $_NONE,mb-setvar wall2themes_conky=none $COLORIZER_CONF;$me autoth")
|
||||
|
||||
out2+=("^sep(PyRadio / Cava)")
|
||||
out2+=("PyRadio and Cava,^checkout(pycava)")
|
||||
out3+=("^tag(pycava)")
|
||||
out3+=("^sep(Pyradio)")
|
||||
[[ "$wall2themes_pyradio" == "light" ]] && out3+=("<big>綠</big> $_LIGHTBG") || out3+=("<big>祿</big> $_LIGHTBG,mb-setvar wall2themes_pyradio=light $COLORIZER_CONF;$me autoth")
|
||||
[[ "$wall2themes_pyradio" == "dark" ]] && out3+=("<big>綠</big> $_DARKBG") || out3+=("<big>祿</big> $_DARKBG,mb-setvar wall2themes_pyradio=dark $COLORIZER_CONF;$me autoth")
|
||||
[[ "$wall2themes_pyradio" == "light" ]] && out3+=("<big>${ron}</big> $_LIGHTBG") || out3+=("<big>${roff}</big> $_LIGHTBG,mb-setvar wall2themes_pyradio=light $COLORIZER_CONF;$me autoth")
|
||||
[[ "$wall2themes_pyradio" == "dark" ]] && out3+=("<big>${ron}</big> $_DARKBG") || out3+=("<big>${roff}</big> $_DARKBG,mb-setvar wall2themes_pyradio=dark $COLORIZER_CONF;$me autoth")
|
||||
out3+=("^sep()")
|
||||
[[ "$wall2themes_pyradio" == "none" ]] && out3+=("<big>綠</big> $_NONE") || out3+=("<big>祿</big> $_NONE,mb-setvar wall2themes_pyradio=none $COLORIZER_CONF;$me autoth")
|
||||
[[ "$wall2themes_pyradio" == "none" ]] && out3+=("<big>${ron}</big> $_NONE") || out3+=("<big>${roff}</big> $_NONE,mb-setvar wall2themes_pyradio=none $COLORIZER_CONF;$me autoth")
|
||||
out3+=("^sep(Cava)")
|
||||
out3+=("^sep(<small><i>not implemented yet</i></small>)")
|
||||
out3+=("Use Colorizer Cava,colorizer-cava -s")
|
||||
@@ -405,14 +406,14 @@ out2+=("^tag(settings)")
|
||||
|
||||
|
||||
out2+=("^sep($GRADIENTS_ACT)")
|
||||
[[ "$gradient_obtheme" == "yes" ]] && out2+=("<big></big> $GRAD_OB,mb-setvar gradient_obtheme=no $CNF_FILE;colorizer -s") || out2+=("<big></big> $GRAD_OB,mb-setvar gradient_obtheme=yes $CNF_FILE;colorizer -s")
|
||||
[[ "$gradient_obtheme" == "yes" ]] && out2+=("<big>${cbon}</big> $GRAD_OB,mb-setvar gradient_obtheme=no $CNF_FILE;colorizer -s") || out2+=("<big>${cboff}</big> $GRAD_OB,mb-setvar gradient_obtheme=yes $CNF_FILE;colorizer -s")
|
||||
#out2+=("$GRAD_OB [ <b>${gradient_obtheme}</b> ],^checkout(grad_ob)")
|
||||
#out3+=("^tag(grad_ob")
|
||||
#out3+=("^sep($GRAD_OB)")
|
||||
#out3+=("$YES,mb-setvar gradient_obtheme=yes $CNF_FILE;colorizer -s")
|
||||
#out3+=("$NO,mb-setvar gradient_obtheme=no $CNF_FILE;colorizer -s")
|
||||
|
||||
[[ "$gradient_menu" == "yes" ]] && out2+=("<big></big> $GRAD_MENU,mb-setvar gradient_menu=no $CNF_FILE;colorizer -s") || out2+=("<big></big> $GRAD_MENU,mb-setvar gradient_menu=yes $CNF_FILE;colorizer -s")
|
||||
[[ "$gradient_menu" == "yes" ]] && out2+=("<big>${cbon}</big> $GRAD_MENU,mb-setvar gradient_menu=no $CNF_FILE;colorizer -s") || out2+=("<big>${cboff}</big> $GRAD_MENU,mb-setvar gradient_menu=yes $CNF_FILE;colorizer -s")
|
||||
#out2+=("$GRAD_MENU [ <b>${gradient_menu}</b> ],^checkout(grad_menu)")
|
||||
#out3+=("^tag(grad_menu")
|
||||
#out3+=("^sep($GRAD_MENU)")
|
||||
@@ -437,22 +438,21 @@ out3+=("^tag(csize)")
|
||||
out3+=("^sep($HEIGHT)")
|
||||
out3+=("$FULL,mb-setvar colorizer_size=full $CNF_FILE;colorizer -s")
|
||||
out3+=("$COMPACT,mb-setvar colorizer_size=compact $CNF_FILE;colorizer -s")
|
||||
[[ "$related_tools" == "show" ]] && out2+=("<big></big> $SHOW_RELATED,^checkout(related)") || out2+=("<big></big> $SHOW_RELATED,^checkout(related)")
|
||||
[[ "$related_tools" == "show" ]] && out2+=("<big>${cbon}</big> $SHOW_RELATED,^checkout(related)") || out2+=("<big>${cboff}</big> $SHOW_RELATED,^checkout(related)")
|
||||
out3+=("^tag(related)")
|
||||
out3+=("^sep($SHOW_RELATED)")
|
||||
[[ "$related_tools" == "show" ]] && out3+=("<big>綠</big> $SHOW,colorizer -s" "<big>祿</big> $HIDE,mb-setvar related_tools=hide $CNF_FILE;colorizer -s") || out3+=("<big>祿</big> $SHOW,mb-setvar related_tools=show $CNF_FILE;colorizer -s" "<big>綠</big> $HIDE,colorizer -s")
|
||||
[[ "$related_tools" == "show" ]] && out3+=("<big>${ron}</big> $SHOW,colorizer -s" "<big>${roff}</big> $HIDE,mb-setvar related_tools=hide $CNF_FILE;colorizer -s") || out3+=("<big>${roff}</big> $SHOW,mb-setvar related_tools=show $CNF_FILE;colorizer -s" "<big>${ron}</big> $HIDE,colorizer -s")
|
||||
out3+=("^sep()")
|
||||
out3+=(" $EDIT_RELATED,xdg-open $CUSTOM_COMMANDS_FILE")
|
||||
out3+=(" $EDIT_RELATED,xdg-open $CUSTOM_COMMANDS_FILE")
|
||||
out3+=(" $RESET_RELATED,rm $CUSTOM_COMMANDS_FILE;colorizer -s")
|
||||
out2+=("^sep()")
|
||||
out2+=(" $EDITCONF,xdg-open $CNF_FILE")
|
||||
out2+=(" $EDITCONF,xdg-open $CNF_FILE")
|
||||
out2+=(" $RESET,rm $CNF_FILE;colorizer -s")
|
||||
|
||||
|
||||
### RUN
|
||||
if [[ "$1" == "-s" ]]; then
|
||||
. /usr/share/mb-jgtools/pipemenu-standalone.cfg
|
||||
. $HOME/.config/mabox/mabox.conf
|
||||
|
||||
|
||||
if [[ "$colorizer_size" == "full" ]];then
|
||||
eval $(xdotool getdisplaygeometry --shell)
|
||||
@@ -504,7 +504,7 @@ if [[ "$1" == "-s" ]]; then
|
||||
if [[ "$wall2themes" == "yes" ]]; then
|
||||
AUTOTHEME_IND="
|
||||
@rect,,$((jgtools_padding+4)),$((jgtools_padding + 6)),262,20,0,left,top,#222222 20,#222222 70,
|
||||
@text,,$((jgtools_padding+8)),$((jgtools_padding + 6)),262,22,0,left,top,#FFFFFF,#222222 70, <span fgcolor='white'><big></big> </span> Auto theming <b><i>$_ENABLED</i></b> !
|
||||
@text,,$((jgtools_padding+8)),$((jgtools_padding + 6)),262,22,0,left,top,#FFFFFF,#222222 70, <span fgcolor='white'><big>${cbon}</big> </span> Auto theming <b><i>$_ENABLED</i></b> !
|
||||
"
|
||||
fi
|
||||
|
||||
|
||||
@@ -16,7 +16,8 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
source ~/.config/mabox/mabox.conf
|
||||
. /usr/share/mb-jgtools/jgtools.inc
|
||||
|
||||
|
||||
SYSSCHEMES="/usr/share/mabox-colorizer/colorschemes/conky.csv"
|
||||
#USERSCHEMES="$HOME/.config/colorizer/conky/c_userschemes.csv"
|
||||
@@ -385,7 +386,7 @@ if pgrep -u $USER -af "conky.*mbcolor" >/dev/null; then
|
||||
sizes=(12 11 10 9 8)
|
||||
for i in "${sizes[@]}"
|
||||
do
|
||||
[[ "$FONTSIZE" == "$i" ]] && out2+=("<big>綠</big> <b>$i px</b>,conkyctl basefont_size_all $i;$me") || out2+=("<big>祿</big> $i px,conkyctl basefont_size_all $i;$me")
|
||||
[[ "$FONTSIZE" == "$i" ]] && out2+=("<big>${ron}</big> <b>$i px</b>,conkyctl basefont_size_all $i;$me") || out2+=("<big>${roff}</big> $i px,conkyctl basefont_size_all $i;$me")
|
||||
done
|
||||
if [ -f "$HOME/.config/mabox/fonts.list" ];then
|
||||
mapfile -t favfonts < <( grep -vE "^($|#)" ~/.config/mabox/fonts.list)
|
||||
@@ -397,37 +398,37 @@ if pgrep -u $USER -af "conky.*mbcolor" >/dev/null; then
|
||||
if [ "${#favfonts[@]}" -gt 0 ];then
|
||||
out2+=("^sep($FONTFAMILY_LBL)")
|
||||
for fon in "${favfonts[@]}";do
|
||||
[[ "$FONT" == "$fon" ]] && out2+=("<big>綠</big> <span font_family=\"${fon}\">${fon}</span>,$me") || out2+=("<big>祿</big> <span font_family=\"${fon}\">${fon}</span>,conkyctl basefont_family_all \"${fon}\";$me")
|
||||
[[ "$FONT" == "$fon" ]] && out2+=("<big>${ron}</big> <span font_family=\"${fon}\">${fon}</span>,$me") || out2+=("<big>${roff}</big> <span font_family=\"${fon}\">${fon}</span>,conkyctl basefont_family_all \"${fon}\";$me")
|
||||
done
|
||||
fi
|
||||
out2+=("^sep()")
|
||||
out2+=("<small> $_EDIT_FAVFONTS</small>,geany ~/.config/mabox/fonts.list")
|
||||
|
||||
|
||||
[[ "$SHADOWS" == "shadow" ]] && out+=("<big></big> $SHADOW,conkyctl shades_all no;$me") || out+=("<big></big> $SHADOW,conkyctl shades_all shadow;$me")
|
||||
[[ "$SHADOWS" == "outline" ]] && out+=("<big></big> $OLINE,conkyctl shades_all no;$me") || out+=("<big></big> $OLINE,conkyctl shades_all outline;$me")
|
||||
[[ "$SHADOWS" == "shadow" ]] && out+=("<big>${cbon}</big> $SHADOW,conkyctl shades_all no;$me") || out+=("<big>${cboff}</big> $SHADOW,conkyctl shades_all shadow;$me")
|
||||
[[ "$SHADOWS" == "outline" ]] && out+=("<big>${cbon}</big> $OLINE,conkyctl shades_all no;$me") || out+=("<big>${cboff}</big> $OLINE,conkyctl shades_all outline;$me")
|
||||
out+=("^sep()")
|
||||
|
||||
[[ "$BORD" == false ]] && out+=("<big></big> $BORDERS [ <b>$BWIDTH px</b> ],^checkout(border)") || out+=("<big></big> $BORDERS [ <b>$BWIDTH px</b> ],^checkout(border)")
|
||||
[[ "$BORD" == false ]] && out+=("<big>${cboff}</big> $BORDERS [ <b>$BWIDTH px</b> ],^checkout(border)") || out+=("<big>${cbon}</big> $BORDERS [ <b>$BWIDTH px</b> ],^checkout(border)")
|
||||
|
||||
out2+=("^tag(border)")
|
||||
out2+=("^sep($DRAW $BORDERS?)")
|
||||
[[ "$BORD" == false ]] && out2+=("<big>祿</big> $YES,conkyctl draw_borders_all true;$me") || out2+=("<big>綠</big> $YES,conkyctl draw_borders_all false;$me")
|
||||
[[ "$BORD" == false ]] && out2+=("<big>綠</big> $NO,conkyctl draw_borders_all true;$me") || out2+=("<big>祿</big> $NO,conkyctl draw_borders_all false;$me")
|
||||
[[ "$BORD" == false ]] && out2+=("<big>${roff}</big> $YES,conkyctl draw_borders_all true;$me") || out2+=("<big>${ron}</big> $YES,conkyctl draw_borders_all false;$me")
|
||||
[[ "$BORD" == false ]] && out2+=("<big>${ron}</big> $NO,conkyctl draw_borders_all true;$me") || out2+=("<big>${roff}</big> $NO,conkyctl draw_borders_all false;$me")
|
||||
|
||||
out2+=("^sep($_BORDER_WIDTH)")
|
||||
[[ "${BWIDTH}" == "1" ]] && out2+=("<big>綠</big> <b>1 px</b> ${_OLD_STYLE}") || out2+=("<big>祿</big> 1 px ${_OLD_STYLE},conkyctl border_width_all 1")
|
||||
[[ "${BWIDTH}" == "1" ]] && out2+=("<big>${ron}</big> <b>1 px</b> ${_OLD_STYLE}") || out2+=("<big>${roff}</big> 1 px ${_OLD_STYLE},conkyctl border_width_all 1")
|
||||
for i in 2 4 6 8 10;do
|
||||
[[ "${BWIDTH}" == "${i}" ]] && out2+=("<big>綠</big> <b>${i} px</b>") || out2+=("<big>祿</big> ${i} px,conkyctl border_width_all ${i}")
|
||||
[[ "${BWIDTH}" == "${i}" ]] && out2+=("<big>${ron}</big> <b>${i} px</b>") || out2+=("<big>${roff}</big> ${i} px,conkyctl border_width_all ${i}")
|
||||
done
|
||||
|
||||
out2+=("^sep($STIPPLED_BORDERS?)")
|
||||
[[ "$STIP" == 0 ]] && out2+=("<big>綠</big> 0 ($SOLID_LINE),conkyctl stippled_borders_all 0;$me") || out2+=("<big>祿</big> 0 ($SOLID_LINE),conkyctl stippled_borders_all 0;$me")
|
||||
[[ "$STIP" == 0 ]] && out2+=("<big>${ron}</big> 0 ($SOLID_LINE),conkyctl stippled_borders_all 0;$me") || out2+=("<big>${roff}</big> 0 ($SOLID_LINE),conkyctl stippled_borders_all 0;$me")
|
||||
out2+=("^sep()")
|
||||
[[ "$STIP" == 1 ]] && out2+=("<big>綠</big> 1 px,conkyctl stippled_borders_all 1;$me") || out2+=("<big>祿</big> 1 px,conkyctl stippled_borders_all 1;$me")
|
||||
[[ "$STIP" == 2 ]] && out2+=("<big>綠</big> 2 px,conkyctl stippled_borders_all 2;$me") || out2+=("<big>祿</big> 2 px,conkyctl stippled_borders_all 2;$me")
|
||||
[[ "$STIP" == 3 ]] && out2+=("<big>綠</big> 3 px,conkyctl stippled_borders_all 3;$me") || out2+=("<big>祿</big> 3 px,conkyctl stippled_borders_all 3;$me")
|
||||
[[ "$STIP" == 4 ]] && out2+=("<big>綠</big> 4 px,conkyctl stippled_borders_all 4;$me") || out2+=("<big>祿</big> 4 px,conkyctl stippled_borders_all 4;$me")
|
||||
[[ "$STIP" == 1 ]] && out2+=("<big>${ron}</big> 1 px,conkyctl stippled_borders_all 1;$me") || out2+=("<big>${roff}</big> 1 px,conkyctl stippled_borders_all 1;$me")
|
||||
[[ "$STIP" == 2 ]] && out2+=("<big>${ron}</big> 2 px,conkyctl stippled_borders_all 2;$me") || out2+=("<big>${roff}</big> 2 px,conkyctl stippled_borders_all 2;$me")
|
||||
[[ "$STIP" == 3 ]] && out2+=("<big>${ron}</big> 3 px,conkyctl stippled_borders_all 3;$me") || out2+=("<big>${roff}</big> 3 px,conkyctl stippled_borders_all 3;$me")
|
||||
[[ "$STIP" == 4 ]] && out2+=("<big>${ron}</big> 4 px,conkyctl stippled_borders_all 4;$me") || out2+=("<big>${roff}</big> 4 px,conkyctl stippled_borders_all 4;$me")
|
||||
|
||||
out+=("^sep()")
|
||||
out+=("<big><span bgcolor='$WINCLR' bgalpha='${bga}%'><span bgcolor='$CLR'> </span> <span fgcolor='$CLR0'></span> <span fgcolor='$CLR1'></span> <span fgcolor='$CLR2'></span> <span bgcolor='$CLR'> </span></span></big> $REGENERATE,^checkout(regenconky)")
|
||||
@@ -480,7 +481,7 @@ if pgrep -u $USER -af "conky.*mbcolor" >/dev/null; then
|
||||
else
|
||||
out+=("$BACKGROUND <span> transparent </span> ,^pipe(mbclr '$WINCLR' conkyctl win_bgcolor_all '${BACKGROUND}' '$me')")
|
||||
fi
|
||||
[[ "$WINTRANS" == false ]] && out+=("<big></big> $TRANSPARENT,conkyctl transparent_all true;$me") || out+=("<big></big> $TRANSPARENT,conkyctl transparent_all false;$me")
|
||||
[[ "$WINTRANS" == false ]] && out+=("<big>${cboff}</big> $TRANSPARENT,conkyctl transparent_all true;$me") || out+=("<big>${cbon}</big> $TRANSPARENT,conkyctl transparent_all false;$me")
|
||||
out+=("^sep()")
|
||||
|
||||
if [[ "${recolor3}" == "1" ]];then
|
||||
@@ -498,10 +499,10 @@ if pgrep -u $USER -af "conky.*mbcolor" >/dev/null; then
|
||||
out+=(" $_ADVANCED,^checkout(adv)")
|
||||
out2+=("^tag(adv)")
|
||||
out2+=("^sep($_ADVANCED)")
|
||||
[[ "${conky_leftclick}" == "off" ]] && out2+=("<big></big> $_C_LCLICK,mb-setvar conky_leftclick=on;$me") || out2+=("<big></big> $_C_LCLICK,mb-setvar conky_leftclick=off;$me")
|
||||
[[ "${conky_rightclick}" == "off" ]] && out2+=("<big></big> $_C_RCLICK,mb-setvar conky_rightclick=on;$me") || out2+=("<big></big> $_C_RCLICK,mb-setvar conky_rightclick=off;$me")
|
||||
[[ "${conky_leftclick}" == "off" ]] && out2+=("<big>${cboff}</big> $_C_LCLICK,mb-setvar conky_leftclick=on;$me") || out2+=("<big>${cbon}</big> $_C_LCLICK,mb-setvar conky_leftclick=off;$me")
|
||||
[[ "${conky_rightclick}" == "off" ]] && out2+=("<big>${cboff}</big> $_C_RCLICK,mb-setvar conky_rightclick=on;$me") || out2+=("<big>${cbon}</big> $_C_RCLICK,mb-setvar conky_rightclick=off;$me")
|
||||
out+=("^sep()")
|
||||
[[ "${conky_basicmode}" == "on" ]] && out2+=("<big></big> $_C_SIMPLIFIEDMENU,mb-setvar conky_basicmode=off;$me") || out2+=("<big></big> $_C_SIMPLIFIEDMENU,mb-setvar conky_basicmode=on;$me")
|
||||
[[ "${conky_basicmode}" == "on" ]] && out2+=("<big>${cbon}</big> $_C_SIMPLIFIEDMENU,mb-setvar conky_basicmode=off;$me") || out2+=("<big>${cboff}</big> $_C_SIMPLIFIEDMENU,mb-setvar conky_basicmode=on;$me")
|
||||
|
||||
|
||||
|
||||
@@ -540,8 +541,6 @@ fi
|
||||
|
||||
### RUN
|
||||
if [[ "$1" == "-s" ]]; then
|
||||
. /usr/share/mb-jgtools/pipemenu-standalone.cfg
|
||||
. $HOME/.config/mabox/mabox.conf
|
||||
|
||||
source $HOME/.config/colorizer/colorizer.conf
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
. $HOME/.config/mabox/mabox.conf
|
||||
. /usr/share/mb-jgtools/jgtools.inc
|
||||
|
||||
me="colorizer-fonts -s"
|
||||
|
||||
@@ -113,8 +113,8 @@ case "$LANG" in
|
||||
esac
|
||||
|
||||
getvalues () {
|
||||
GTK2RC="$HOME"/.gtkrc-2.0
|
||||
GTK_FONT=( $(grep "gtk-font-name" ${GTK2RC} | cut -d'"' -f2) )
|
||||
GTK3RC="$HOME"/.config/gtk-3.0/settings.ini
|
||||
GTK_FONT=( $(grep "gtk-font-name" ${GTK3RC} | cut -d'=' -f2) )
|
||||
GTK_FAMILY=${GTK_FONT[@]::${#GTK_FONT[@]}-1}
|
||||
GTK_SIZE=${GTK_FONT[-1]}
|
||||
|
||||
@@ -210,26 +210,26 @@ out2+=("^sep()")
|
||||
sizes=(16 15 14 13 12 11 10 9 8)
|
||||
for i in "${sizes[@]}"
|
||||
do
|
||||
[[ "$OBFSIZE" == "$i" ]] && out2+=("<big>綠</big> <b>$i px</b>,obtctl fontsize $i;$me") || out2+=("<big>祿</big> $i px,fontctl ob_fontsize $i;$me")
|
||||
[[ "$OBFSIZE" == "$i" ]] && out2+=("<big>${ron}</big> <b>$i px</b>,obtctl fontsize $i;$me") || out2+=("<big>${roff}</big> $i px,fontctl ob_fontsize $i;$me")
|
||||
done
|
||||
out2+=("^sep($_FONT_FAMILY)")
|
||||
|
||||
if [ "${#favfonts[@]}" -gt 0 ];then
|
||||
for fon in "${favfonts[@]}";do
|
||||
[[ "${OBFNAME}" == "$fon" ]] && out2+=("<big>綠</big> <span font_family=\"${fon}\">${fon}</span>,$me") || out2+=("<big>祿</big> <span font_family=\"${fon}\">${fon}</span>,obtctl fontfamily \"${fon}\";$me")
|
||||
[[ "${OBFNAME}" == "$fon" ]] && out2+=("<big>${ron}</big> <span font_family=\"${fon}\">${fon}</span>,$me") || out2+=("<big>${roff}</big> <span font_family=\"${fon}\">${fon}</span>,obtctl fontfamily \"${fon}\";$me")
|
||||
done
|
||||
fi
|
||||
|
||||
|
||||
out2+=("^sep()")
|
||||
[[ "$WEIGHT" =~ .*"old" ]] && out2+=("<big></big> <b>$_BOLD</b>,obtctl fontweight Normal;$me") || out2+=("<big></big> <b>$_BOLD</b>,obtctl fontweight Bold;$me")
|
||||
[[ "$SLANT" =~ .*"talic" ]] && out2+=("<big></big> <i>$_ITALIC</i>,obtctl fontslant Normal;$me") || out2+=("<big></big> <i>$_ITALIC</i>,obtctl fontslant Italic;$me")
|
||||
[[ "$WEIGHT" =~ .*"old" ]] && out2+=("<big>${cbon}</big> <b>$_BOLD</b>,obtctl fontweight Normal;$me") || out2+=("<big>${cboff}</big> <b>$_BOLD</b>,obtctl fontweight Bold;$me")
|
||||
[[ "$SLANT" =~ .*"talic" ]] && out2+=("<big>${cbon}</big> <i>$_ITALIC</i>,obtctl fontslant Normal;$me") || out2+=("<big>${cboff}</big> <i>$_ITALIC</i>,obtctl fontslant Italic;$me")
|
||||
|
||||
#SHADOW
|
||||
out2+=("^sep($_TEXTALIGN)")
|
||||
[[ "$TXTJUST" = left ]] && out2+=("<big>綠 </big> $_LEFT,obtctl textjustify left;$me")||out2+=("<big>祿 </big> $_LEFT,obtctl textjustify left;$me")
|
||||
[[ "$TXTJUST" = center ]] && out2+=("<big>綠 </big> $_CENTER,obtctl textjustify center;$me")||out2+=("<big>祿 </big> $_CENTER,obtctl textjustify center;$me")
|
||||
[[ "$TXTJUST" = right ]] && out2+=("<big>綠 </big> $_RIGHT,obtctl textjustify right;$me")||out2+=("<big>祿 </big> $_RIGHT,obtctl textjustify right;$me")
|
||||
[[ "$TXTJUST" = left ]] && out2+=("<big>${ron} </big> $_LEFT,obtctl textjustify left;$me")||out2+=("<big>${roff} </big> $_LEFT,obtctl textjustify left;$me")
|
||||
[[ "$TXTJUST" = center ]] && out2+=("<big>${ron} </big> $_CENTER,obtctl textjustify center;$me")||out2+=("<big>${roff} </big> $_CENTER,obtctl textjustify center;$me")
|
||||
[[ "$TXTJUST" = right ]] && out2+=("<big>${ron} </big> $_RIGHT,obtctl textjustify right;$me")||out2+=("<big>${roff} </big> $_RIGHT,obtctl textjustify right;$me")
|
||||
|
||||
|
||||
|
||||
@@ -246,13 +246,13 @@ out2+=("^sep()")
|
||||
sizes=(14 13 12 11 10 9 8)
|
||||
for i in "${sizes[@]}"
|
||||
do
|
||||
[[ "$menu_sep_font_size" == "$i" ]] && out2+=("<big>綠</big> <b>$i px</b>,$me") || out2+=("<big>祿</big> $i px,mb-setvar menu_sep_font_size=$i;$me")
|
||||
[[ "$menu_sep_font_size" == "$i" ]] && out2+=("<big>${ron}</big> <b>$i px</b>,$me") || out2+=("<big>${roff}</big> $i px,mb-setvar menu_sep_font_size=$i;$me")
|
||||
done
|
||||
|
||||
if [ "${#favfonts[@]}" -gt 0 ];then
|
||||
out2+=("^sep($_FONT_FAMILY)")
|
||||
for fon in "${favfonts[@]}";do
|
||||
[[ "$menu_sep_font_family" == "$fon" ]] && out2+=("<big>綠</big> <span font_family=\"${fon}\">${fon}</span>,$me") || out2+=("<big>祿</big> <span font_family=\"${fon}\">${fon}</span>,mb-setvar \"menu_sep_font_family='${fon}'\";$me")
|
||||
[[ "$menu_sep_font_family" == "$fon" ]] && out2+=("<big>${ron}</big> <span font_family=\"${fon}\">${fon}</span>,$me") || out2+=("<big>${roff}</big> <span font_family=\"${fon}\">${fon}</span>,mb-setvar \"menu_sep_font_family='${fon}'\";$me")
|
||||
done
|
||||
fi
|
||||
out2+=("^sep()")
|
||||
@@ -273,13 +273,13 @@ out2+=("^sep()")
|
||||
sizes=(14 13 12 11 10 9 8)
|
||||
for i in "${sizes[@]}"
|
||||
do
|
||||
[[ "$menu_font_size" == "$i" ]] && out2+=("<big>綠</big> <b>$i px</b>,$me") || out2+=("<big>祿</big> $i px,mb-setvar menu_font_size=$i;$me")
|
||||
[[ "$menu_font_size" == "$i" ]] && out2+=("<big>${ron}</big> <b>$i px</b>,$me") || out2+=("<big>${roff}</big> $i px,mb-setvar menu_font_size=$i;$me")
|
||||
done
|
||||
|
||||
if [ "${#favfonts[@]}" -gt 0 ];then
|
||||
out2+=("^sep($_FONT_FAMILY)")
|
||||
for fon in "${favfonts[@]}";do
|
||||
[[ "$menu_font_family" == "$fon" ]] && out2+=("<big>綠</big> <span font_family=\"${fon}\">${fon}</span>,$me") || out2+=("<big>祿</big> <span font_family=\"${fon}\">${fon}</span>,mb-setvar \"menu_font_family='${fon}'\";$me")
|
||||
[[ "$menu_font_family" == "$fon" ]] && out2+=("<big>${ron}</big> <span font_family=\"${fon}\">${fon}</span>,$me") || out2+=("<big>${roff}</big> <span font_family=\"${fon}\">${fon}</span>,mb-setvar \"menu_font_family='${fon}'\";$me")
|
||||
done
|
||||
fi
|
||||
out2+=("^sep()")
|
||||
@@ -299,21 +299,21 @@ out2+=("^sep()")
|
||||
sizes=(14 13 12 11 10 9 8 7 6)
|
||||
for i in "${sizes[@]}"
|
||||
do
|
||||
[[ "$C_FONTSIZE" == "$i" ]] && out2+=("<big>綠</big> <b>$i px</b>,conkyctl basefont_size_all $i;$me") || out2+=("<big>祿</big> $i px,conkyctl basefont_size_all $i;$me")
|
||||
[[ "$C_FONTSIZE" == "$i" ]] && out2+=("<big>${ron}</big> <b>$i px</b>,conkyctl basefont_size_all $i;$me") || out2+=("<big>${roff}</big> $i px,conkyctl basefont_size_all $i;$me")
|
||||
done
|
||||
|
||||
if [ "${#favfonts[@]}" -gt 0 ];then
|
||||
out2+=("^sep($_FONT_FAMILY)")
|
||||
for fon in "${favfonts[@]}";do
|
||||
[[ "$C_FONT" == "$fon" ]] && out2+=("<big>綠</big> <span font_family=\"${fon}\">${fon}</span>,$me") || out2+=("<big>祿</big> <span font_family=\"${fon}\">${fon}</span>,conkyctl basefont_family_all \"${fon}\";$me")
|
||||
[[ "$C_FONT" == "$fon" ]] && out2+=("<big>${ron}</big> <span font_family=\"${fon}\">${fon}</span>,$me") || out2+=("<big>${roff}</big> <span font_family=\"${fon}\">${fon}</span>,conkyctl basefont_family_all \"${fon}\";$me")
|
||||
done
|
||||
fi
|
||||
out2+=("^sep()")
|
||||
out2+=("<small> $_EDIT_FAVFONTS</small>,geany ~/.config/mabox/fonts.list")
|
||||
|
||||
out2+=("^sep($_C_EFFCTS)")
|
||||
[[ "$SHADOWS" == "shadow" ]] && out2+=("<big></big> $_SHADOW,conkyctl shades_all no;$me") || out2+=("<big></big> $_SHADOW,conkyctl shades_all shadow;$me")
|
||||
[[ "$SHADOWS" == "outline" ]] && out2+=("<big></big> $_OUTLINE,conkyctl shades_all no;$me") || out2+=("<big></big> $_OUTLINE,conkyctl shades_all outline;$me")
|
||||
[[ "$SHADOWS" == "shadow" ]] && out2+=("<big>${cbon}</big> $_SHADOW,conkyctl shades_all no;$me") || out2+=("<big>${cboff}</big> $_SHADOW,conkyctl shades_all shadow;$me")
|
||||
[[ "$SHADOWS" == "outline" ]] && out2+=("<big>${cbon}</big> $_OUTLINE,conkyctl shades_all no;$me") || out2+=("<big>${cboff}</big> $_OUTLINE,conkyctl shades_all outline;$me")
|
||||
|
||||
|
||||
|
||||
@@ -329,13 +329,13 @@ out2+=("^sep()")
|
||||
sizes=(14 13 12 11 10 9 8)
|
||||
for i in "${sizes[@]}"
|
||||
do
|
||||
[[ "$GTK_SIZE" == "$i" ]] && out2+=("<big>綠</big> <b>$i px</b>,$me") || out2+=("<big>祿</big> $i px,fontctl gtk_fontsize $i;$me")
|
||||
[[ "$GTK_SIZE" == "$i" ]] && out2+=("<big>${ron}</big> <b>$i px</b>,$me") || out2+=("<big>${roff}</big> $i px,fontctl gtk_fontsize $i;$me")
|
||||
done
|
||||
|
||||
if [ "${#favfonts[@]}" -gt 0 ];then
|
||||
out2+=("^sep($_FONT_FAMILY)")
|
||||
for fon in "${favfonts[@]}";do
|
||||
[[ "$GTK_FAMILY" == "$fon" ]] && out2+=("<big>綠</big> <span font_family=\"${fon}\">${fon}</span>,$me") || out2+=("<big>祿</big> <span font_family=\"${fon}\">${fon}</span>,fontctl gtk_fontfamily \"${fon}\";$me")
|
||||
[[ "$GTK_FAMILY" == "$fon" ]] && out2+=("<big>${ron}</big> <span font_family=\"${fon}\">${fon}</span>,$me") || out2+=("<big>${roff}</big> <span font_family=\"${fon}\">${fon}</span>,fontctl gtk_fontfamily \"${fon}\";$me")
|
||||
done
|
||||
fi
|
||||
out2+=("^sep()")
|
||||
@@ -343,7 +343,6 @@ fi
|
||||
|
||||
### RUN
|
||||
if [[ "$1" == "-s" ]]; then
|
||||
. /usr/share/mb-jgtools/pipemenu-standalone.cfg
|
||||
|
||||
|
||||
CNF_DIR="$HOME/.config/colorizer"
|
||||
|
||||
84
bin/conkyctl
84
bin/conkyctl
@@ -582,6 +582,7 @@ languages () {
|
||||
}
|
||||
|
||||
single () {
|
||||
. /usr/share/mb-jgtools/glyphicons.inc
|
||||
unset NOT_SUPPORTED OLD_SYNTAX
|
||||
|
||||
SYSSCHEMES="/usr/share/mabox-colorizer/colorschemes/conky.csv"
|
||||
@@ -687,7 +688,7 @@ if [[ "$OLD_SYNTAX" = "true" ]];then
|
||||
#out+=("^sep($POSITION)")
|
||||
out2+=("^tag(position)")
|
||||
out2+=("^sep($POSITION)")
|
||||
out2+=("<big></big> $MARKNEWPOS,conkyctl setpos ${1};$me")
|
||||
out2+=("<big></big> $MARKNEWPOS,conkyctl setpos ${1};$me")
|
||||
#out2+=("^sep()")
|
||||
out2+=("^sep($ALIGNMENT)")
|
||||
out2+=("<big></big> $TOPLEFT,conkyctl pos top_left ${1};$me")
|
||||
@@ -770,7 +771,7 @@ if [[ "$OLD_SYNTAX" = "true" ]];then
|
||||
if [ "${#favfonts[@]}" -gt 0 ];then
|
||||
out2+=("^sep($FONTFAMILY_LBL)")
|
||||
for fon in "${favfonts[@]}";do
|
||||
[[ "$fon" == "$font_name" ]] && out2+=("<big>綠</big> <span font_family=\"${fon}\">${fon}</span>,$me") || out2+=("<big>祿</big> <span font_family=\"${fon}\">${fon}</span>,mb-setvar 'font_name=\"${fon}\"' $Q_CFG;conkyctl restartone ${1}")
|
||||
[[ "$fon" == "$font_name" ]] && out2+=("<big>${ron}</big> <span font_family=\"${fon}\">${fon}</span>,$me") || out2+=("<big>${roff}</big> <span font_family=\"${fon}\">${fon}</span>,mb-setvar 'font_name=\"${fon}\"' $Q_CFG;conkyctl restartone ${1}")
|
||||
done
|
||||
fi
|
||||
fi
|
||||
@@ -845,7 +846,7 @@ if [[ "${WINCLASS}" != *"nobg"* ]];then
|
||||
out+=("<small><span bgcolor='$WINCLR'> transparent </span></small> $BACKGROUND,^pipe(mbclr '$WINCLR' conkyctl win_bgcolor '${BACKGROUND}' '$me' ${1})")
|
||||
fi
|
||||
fi
|
||||
[[ "$WINTRANS" == false ]] && out+=("<big></big> $TRANSPARENT,conkyctl transparent true ${1}") || out+=("<big></big> $TRANSPARENT,conkyctl transparent false ${1}")
|
||||
[[ "$WINTRANS" == false ]] && out+=("<big>${cboff}</big> $TRANSPARENT,conkyctl transparent true ${1}") || out+=("<big>${cbon}</big> $TRANSPARENT,conkyctl transparent false ${1}")
|
||||
out+=("^sep()")
|
||||
|
||||
if [[ "$1" != *"logo_mbcolor"* ]]; then
|
||||
@@ -899,15 +900,15 @@ read SIZE <<< "$(grep minimum_height ${1} | cut -d'=' -f2 | cut -d"," -f1)"
|
||||
. ~/.config/mabox/mabox.conf
|
||||
#notify-send.sh "Colors" "${logo_in_color} ${logo_in_opacity}\n${logo_out_color} ${logo_out_opacity}"
|
||||
out+=("^sep($_VARIANT_AND_SIZE)")
|
||||
[[ "${TYP}" == *"3d"* ]] && out+=("<big>綠</big> <b>$_3D</b>,mabox-logo type 3d") || out+=("<big>祿</big> $_3D,mabox-logo type 3d")
|
||||
[[ "${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")
|
||||
[[ "${TYP}" == *"3d"* ]] && out+=("<big>${ron}</big> <b>$_3D</b>,mabox-logo type 3d") || out+=("<big>${roff}</big> $_3D,mabox-logo type 3d")
|
||||
[[ "${TYP}" == *"square"* ]] && out+=("<big>${ron}</big> <b>$_SQUARE</b>,mabox-logo type square") || out+=("<big>${roff}</big> $_SQUARE,mabox-logo type square")
|
||||
[[ "${TYP}" == *"circle"* ]] && out+=("<big>${ron}</big> <b>$_CIRCLE</b>,mabox-logo type circle") || out+=("<big>${roff}</big> $_CIRCLE,mabox-logo type circle")
|
||||
out+=("^sep()")
|
||||
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
|
||||
[[ "${SIZE}" == "${s}" ]] && out2+=("<big>綠</big> <b>${s}</b>,mabox-logo size ${s}") || out2+=("<big>祿</big> ${s},mabox-logo size ${s}")
|
||||
[[ "${SIZE}" == "${s}" ]] && out2+=("<big>${ron}</big> <b>${s}</b>,mabox-logo size ${s}") || out2+=("<big>${roff}</big> ${s},mabox-logo size ${s}")
|
||||
done
|
||||
out+=("^sep($_COLORS)")
|
||||
out+=("<span bgcolor='#32B557'> </span><span bgcolor='${logo_in_color}'> </span> $_INNER_COLOR,^pipe(mbclr '${logo_in_color}' mabox-logo ic '$_INNER_COLOR')")
|
||||
@@ -926,13 +927,13 @@ read SIZE <<< "$(grep minimum_height ${1} | cut -d'=' -f2 | cut -d"," -f1)"
|
||||
out2+=("^tag(iopa)")
|
||||
out2+=("^sep($_INNER_OPACITY)")
|
||||
for o in 1 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0;do
|
||||
[[ "${logo_in_opacity}" == "$o" ]] && out2+=("<big>綠</big> <b>${o}</b>,mabox-logo io ${o}") || out2+=("<big>祿</big> ${o},mabox-logo io ${o}")
|
||||
[[ "${logo_in_opacity}" == "$o" ]] && out2+=("<big>${ron}</big> <b>${o}</b>,mabox-logo io ${o}") || out2+=("<big>${roff}</big> ${o},mabox-logo io ${o}")
|
||||
done
|
||||
out+=("<span bgcolor='${logo_out_color}'> </span> $_OUTER_OPACITY [ <b>${logo_out_opacity}</b> ],^checkout(oopa)")
|
||||
out2+=("^tag(oopa)")
|
||||
out2+=("^sep($_OUTER_OPACITY)")
|
||||
for o in 1 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0;do
|
||||
[[ "${logo_out_opacity}" == "$o" ]] && out2+=("<big>綠</big> <b>${o}</b>,mabox-logo oo ${o}") || out2+=("<big>祿</big> ${o},mabox-logo oo ${o}")
|
||||
[[ "${logo_out_opacity}" == "$o" ]] && out2+=("<big>${ron}</big> <b>${o}</b>,mabox-logo oo ${o}") || out2+=("<big>${roff}</big> ${o},mabox-logo oo ${o}")
|
||||
done
|
||||
fi # END LOGO SVG
|
||||
|
||||
@@ -972,19 +973,19 @@ read DCOLOR <<< "$(grep color9 ${1} | cut -d'=' -f2 | cut -d"'" -f2)"
|
||||
read TCOLOR <<< "$(grep color8 ${1} | cut -d'=' -f2 | cut -d"'" -f2)"
|
||||
|
||||
#out+=("\"\"\"<big></big> _TIMEFORMAT [ <b>${TIMEFORMAT}</b> ]\"\"\"")
|
||||
[[ "${TIMEFORMAT}" == "%H:%M" ]] && out+=("<big>綠</big> <b>$(date +%H:%M)</b> <small>( %H:%M )</small>") || out+=("<big>祿</big> <b>$(date +%H:%M)</b> <small>( %H:%M )</small>,conkyctl bc_tformat \"%H:%M\"")
|
||||
[[ "${TIMEFORMAT}" == "%H:%M:%S" ]] && out+=("<big>綠</big> <b>$(date +%H:%M:%S)</b> <small>( %H:%M:%S )</small>") || out+=("<big>祿</big> <b>$(date +%H:%M:%S)</b> <small>( %H:%M:%S )</small>,conkyctl bc_tformat \"%H:%M:%S\"")
|
||||
[[ "${TIMEFORMAT}" == "%I:%M %p" ]] && out+=("<big>綠</big> <b>$(date +"%I:%M %p")</b> <small>( %I:%M %p )</small>") || out+=("<big>祿</big> <b>$(date +"%I:%M %p")</b> <small>( %I:%M %p )</small>,conkyctl bc_tformat \"%I:%M %p\"")
|
||||
[[ "${TIMEFORMAT}" == "%-I:%M %p" ]] && out+=("<big>綠</big> <b>$(date +"%-I:%M %p")</b> <small>( %-I:%M %p )</small>") || out+=("<big>祿</big> <b>$(date +"%-I:%M %p")</b> <small>( %-I:%M %p )</small>,conkyctl bc_tformat \"%-I:%M %p\"")
|
||||
[[ "${TIMEFORMAT}" == "%H:%M (%a)" ]] && out+=("<big>綠</big> <b>$(date +"%H:%M (%a)")</b> <small>( %H:%M (%a) )</small>") || out+=("<big>祿</big> <b>$(date +"%H:%M (%a)")</b> <small>( %H:%M (%a) )</small>,conkyctl bc_tformat \"%H:%M (%a)\"")
|
||||
[[ "${TIMEFORMAT}" == "%H:%M" ]] && out+=("<big>${ron}</big> <b>$(date +%H:%M)</b> <small>( %H:%M )</small>") || out+=("<big>${roff}</big> <b>$(date +%H:%M)</b> <small>( %H:%M )</small>,conkyctl bc_tformat \"%H:%M\"")
|
||||
[[ "${TIMEFORMAT}" == "%H:%M:%S" ]] && out+=("<big>${ron}</big> <b>$(date +%H:%M:%S)</b> <small>( %H:%M:%S )</small>") || out+=("<big>${roff}</big> <b>$(date +%H:%M:%S)</b> <small>( %H:%M:%S )</small>,conkyctl bc_tformat \"%H:%M:%S\"")
|
||||
[[ "${TIMEFORMAT}" == "%I:%M %p" ]] && out+=("<big>${ron}</big> <b>$(date +"%I:%M %p")</b> <small>( %I:%M %p )</small>") || out+=("<big>${roff}</big> <b>$(date +"%I:%M %p")</b> <small>( %I:%M %p )</small>,conkyctl bc_tformat \"%I:%M %p\"")
|
||||
[[ "${TIMEFORMAT}" == "%-I:%M %p" ]] && out+=("<big>${ron}</big> <b>$(date +"%-I:%M %p")</b> <small>( %-I:%M %p )</small>") || out+=("<big>${roff}</big> <b>$(date +"%-I:%M %p")</b> <small>( %-I:%M %p )</small>,conkyctl bc_tformat \"%-I:%M %p\"")
|
||||
[[ "${TIMEFORMAT}" == "%H:%M (%a)" ]] && out+=("<big>${ron}</big> <b>$(date +"%H:%M (%a)")</b> <small>( %H:%M (%a) )</small>") || out+=("<big>${roff}</big> <b>$(date +"%H:%M (%a)")</b> <small>( %H:%M (%a) )</small>,conkyctl bc_tformat \"%H:%M (%a)\"")
|
||||
out+=("^sep()")
|
||||
[[ -f "${CONKYDIR}/menuscripts/.seconds" ]] && out+=("<big></big> $_SHOW_SECONDS,rm ${CONKYDIR}/menuscripts/.seconds") || out+=("<big></big> $_SHOW_SECONDS,touch ${CONKYDIR}/menuscripts/.seconds")
|
||||
[[ -f "${CONKYDIR}/menuscripts/.seconds" ]] && out+=("<big>${cbon}</big> $_SHOW_SECONDS,rm ${CONKYDIR}/menuscripts/.seconds") || out+=("<big>${cboff}</big> $_SHOW_SECONDS,touch ${CONKYDIR}/menuscripts/.seconds")
|
||||
out+=("^sep()")
|
||||
out+=("<big></big> <span font='${FONTTIME}'>${FONTTIME} ${FSTIME}</span>,^checkout(ftime)")
|
||||
out2+=("^tag(ftime)")
|
||||
out2+=("^sep($_FONT_TIME)")
|
||||
for si in 128 96 64 48 32;do
|
||||
[[ "${FSTIME}" == "$si" ]] && out2+=("<big>綠</big> <b>${si} px</b>") || out2+=("<big>祿</big> ${si} px,conkyctl bc_fstime ${si}")
|
||||
[[ "${FSTIME}" == "$si" ]] && out2+=("<big>${ron}</big> <b>${si} px</b>") || out2+=("<big>${roff}</big> ${si} px,conkyctl bc_fstime ${si}")
|
||||
done
|
||||
out2+=("^sep()")
|
||||
|
||||
@@ -996,35 +997,35 @@ else
|
||||
fi
|
||||
if [ "${#favfonts[@]}" -gt 0 ];then
|
||||
for fon in "${favfonts[@]}";do
|
||||
[[ "$fon" == "${FONTTIME}" ]] && out2+=("<big>綠</big> <span font_family=\"${fon}\">${fon}</span>,$me") || out2+=("<big>祿</big> <span font_family=\"${fon}\">${fon}</span>,conkyctl bc_ftime \"${fon}\"")
|
||||
[[ "$fon" == "${FONTTIME}" ]] && out2+=("<big>${ron}</big> <span font_family=\"${fon}\">${fon}</span>,$me") || out2+=("<big>${roff}</big> <span font_family=\"${fon}\">${fon}</span>,conkyctl bc_ftime \"${fon}\"")
|
||||
done
|
||||
fi
|
||||
|
||||
out+=("^sep()")
|
||||
out+=("<span bgcolor='$TCOLOR'> </span> $_TIMECOLOR,^pipe(mbclr '$TCOLOR' conkyctl color8 '$_TIMECOLOR' '$me' ${1})")
|
||||
out+=("^sep($_DATE)")
|
||||
[[ -f "${CONKYDIR}/menuscripts/.date" ]] && out+=("<big></big> $_SHOW_DATE,rm ${CONKYDIR}/menuscripts/.date") || out+=("<big></big> $_SHOW_DATE,touch ${CONKYDIR}/menuscripts/.date")
|
||||
[[ -f "${CONKYDIR}/menuscripts/.date" ]] && out+=("<big>${cbon}</big> $_SHOW_DATE,rm ${CONKYDIR}/menuscripts/.date") || out+=("<big>${cboff}</big> $_SHOW_DATE,touch ${CONKYDIR}/menuscripts/.date")
|
||||
if [[ -f "${CONKYDIR}/menuscripts/.date" ]];then
|
||||
out+=("^sep()")
|
||||
#out+=("\"\"\"_DATEFORMAT [ <b>${DATEFORMAT}</b> ]\"\"\"")
|
||||
[[ "${DATEFORMAT}" == "%A, %B %e" ]] && out+=("\"\"\"<big>綠</big> <b>$(date "+%A, %B %e")</b> <small>( %A, %B %e )</small>\"\"\"") || out+=("\"\"\"<big>祿</big> <b>$(date "+%A, %B %e")</b> <small>( %A, %B %e )</small>\"\"\",\"\"\"conkyctl bc_dformat '%A, %B %e'\"\"\"")
|
||||
[[ "${DATEFORMAT}" == "%A %e %B" ]] && out+=("<big>綠</big> <b>$(date "+%A %e %B")</b> <small>( %A %e %B )</small>") || out+=("<big>祿</big> <b>$(date "+%A %e %B")</b> <small>( %A %e %B )</small>,conkyctl bc_dformat '%A %e %B'")
|
||||
[[ "${DATEFORMAT}" == "%a %e %b" ]] && out+=("<big>綠</big> <b>$(date "+%a %e %b")</b> <small>( %a %e %b )</small>") || out+=("<big>祿</big> <b>$(date "+%a %e %b")</b> <small>( %a %e %b )</small>,conkyctl bc_dformat '%a %e %b'")
|
||||
[[ "${DATEFORMAT}" == "%F" ]] && out+=("\"\"\"<big>綠</big> <b>$(date "+%F")</b> <small>( %F )</small>\"\"\"") || out+=("<big>祿</big> <b>$(date "+%F")</b> <small>( %F )</small>,conkyctl bc_dformat \"%F\"")
|
||||
[[ "${DATEFORMAT}" == "%x" ]] && out+=("\"\"\"<big>綠</big> <b>$(date "+%x")</b> <small>( %x )</small>\"\"\"") || out+=("<big>祿</big> <b>$(date "+%x")</b> <small>( %x )</small>,conkyctl bc_dformat \"%x\"")
|
||||
[[ "${DATEFORMAT}" == "%m-%d-%Y" ]] && out+=("\"\"\"<big>綠</big> <b>$(date "+%m-%d-%Y")</b> <small>( %m-%d-%Y )</small>\"\"\"") || out+=("<big>祿</big> <b>$(date "+%m-%d-%Y")</b> <small>( %m-%d-%Y )</small>,conkyctl bc_dformat \"%m-%d-%Y\"")
|
||||
[[ "${DATEFORMAT}" == "%A, %B %e" ]] && out+=("\"\"\"<big>${ron}</big> <b>$(date "+%A, %B %e")</b> <small>( %A, %B %e )</small>\"\"\"") || out+=("\"\"\"<big>${roff}</big> <b>$(date "+%A, %B %e")</b> <small>( %A, %B %e )</small>\"\"\",\"\"\"conkyctl bc_dformat '%A, %B %e'\"\"\"")
|
||||
[[ "${DATEFORMAT}" == "%A %e %B" ]] && out+=("<big>${ron}</big> <b>$(date "+%A %e %B")</b> <small>( %A %e %B )</small>") || out+=("<big>${roff}</big> <b>$(date "+%A %e %B")</b> <small>( %A %e %B )</small>,conkyctl bc_dformat '%A %e %B'")
|
||||
[[ "${DATEFORMAT}" == "%a %e %b" ]] && out+=("<big>${ron}</big> <b>$(date "+%a %e %b")</b> <small>( %a %e %b )</small>") || out+=("<big>${roff}</big> <b>$(date "+%a %e %b")</b> <small>( %a %e %b )</small>,conkyctl bc_dformat '%a %e %b'")
|
||||
[[ "${DATEFORMAT}" == "%F" ]] && out+=("\"\"\"<big>${ron}</big> <b>$(date "+%F")</b> <small>( %F )</small>\"\"\"") || out+=("<big>${roff}</big> <b>$(date "+%F")</b> <small>( %F )</small>,conkyctl bc_dformat \"%F\"")
|
||||
[[ "${DATEFORMAT}" == "%x" ]] && out+=("\"\"\"<big>${ron}</big> <b>$(date "+%x")</b> <small>( %x )</small>\"\"\"") || out+=("<big>${roff}</big> <b>$(date "+%x")</b> <small>( %x )</small>,conkyctl bc_dformat \"%x\"")
|
||||
[[ "${DATEFORMAT}" == "%m-%d-%Y" ]] && out+=("\"\"\"<big>${ron}</big> <b>$(date "+%m-%d-%Y")</b> <small>( %m-%d-%Y )</small>\"\"\"") || out+=("<big>${roff}</big> <b>$(date "+%m-%d-%Y")</b> <small>( %m-%d-%Y )</small>,conkyctl bc_dformat \"%m-%d-%Y\"")
|
||||
|
||||
out+=("^sep()")
|
||||
out+=("<big></big> <span font_family='${FONTDATE}'>${FONTDATE} ${FSDATE}</span>,^checkout(fdate)")
|
||||
out2+=("^tag(fdate)")
|
||||
out2+=("^sep($_FONT_DATE)")
|
||||
for si in 32 24 20 16 12 10;do
|
||||
[[ "${FSDATE}" == "$si" ]] && out2+=("<big>綠</big> <b>${si} px</b>") || out2+=("<big>祿</big> ${si} px,conkyctl bc_fsdate ${si}")
|
||||
[[ "${FSDATE}" == "$si" ]] && out2+=("<big>${ron}</big> <b>${si} px</b>") || out2+=("<big>${roff}</big> ${si} px,conkyctl bc_fsdate ${si}")
|
||||
done
|
||||
out2+=("^sep()")
|
||||
if [ "${#favfonts[@]}" -gt 0 ];then
|
||||
for fon in "${favfonts[@]}";do
|
||||
[[ "$fon" == "${FONTDATE}" ]] && out2+=("<big>綠</big> <span font_family=\"${fon}\">${fon}</span>,$me") || out2+=("<big>祿</big> <span font_family=\"${fon}\">${fon}</span>,conkyctl bc_fdate \"${fon}\"")
|
||||
[[ "$fon" == "${FONTDATE}" ]] && out2+=("<big>${ron}</big> <span font_family=\"${fon}\">${fon}</span>,$me") || out2+=("<big>${roff}</big> <span font_family=\"${fon}\">${fon}</span>,conkyctl bc_fdate \"${fon}\"")
|
||||
done
|
||||
fi
|
||||
out+=("^sep()")
|
||||
@@ -1048,7 +1049,7 @@ if [[ "$FONT" != "" ]];then
|
||||
sizes=(12 11 10 9 8 )
|
||||
for i in "${sizes[@]}"
|
||||
do
|
||||
[[ "$FONTSIZE" == "$i" ]] && out2+=("<big>綠</big> <b>$i px</b>,conkyctl basefont_size ${1} $i;$me") || out2+=("<big>祿</big> $i px,conkyctl basefont_size ${1} $i;$me")
|
||||
[[ "$FONTSIZE" == "$i" ]] && out2+=("<big>${ron}</big> <b>$i px</b>,conkyctl basefont_size ${1} $i;$me") || out2+=("<big>${roff}</big> $i px,conkyctl basefont_size ${1} $i;$me")
|
||||
done
|
||||
|
||||
if [ -f "$HOME/.config/mabox/fonts.list" ];then
|
||||
@@ -1061,33 +1062,33 @@ if [[ "$FONT" != "" ]];then
|
||||
if [ "${#favfonts[@]}" -gt 0 ];then
|
||||
out2+=("^sep($FONTFAMILY_LBL)")
|
||||
for fon in "${favfonts[@]}";do
|
||||
[[ "$FONT" == "$fon" ]] && out2+=("<big>綠</big> <span font_family=\"${fon}\">${fon}</span>,$me") || out2+=("<big>祿</big> <span font_family=\"${fon}\">${fon}</span>,conkyctl basefont_family ${1} \"${fon}\";$me")
|
||||
[[ "$FONT" == "$fon" ]] && out2+=("<big>${ron}</big> <span font_family=\"${fon}\">${fon}</span>,$me") || out2+=("<big>${roff}</big> <span font_family=\"${fon}\">${fon}</span>,conkyctl basefont_family ${1} \"${fon}\";$me")
|
||||
done
|
||||
fi
|
||||
out2+=("^sep()")
|
||||
out2+=("<small> $_EDIT_FAVFONTS</small>,geany ~/.config/mabox/fonts.list")
|
||||
|
||||
fi
|
||||
[[ "$SHADOWS" == "shadow" ]] && out+=("<big></big> $SHADOW,conkyctl shades no ${1};$me") || out+=("<big></big> $SHADOW,conkyctl shades shadow ${1};$me")
|
||||
[[ "$SHADOWS" == "outline" ]] && out+=("<big></big> $OLINE,conkyctl shades no ${1};$me") || out+=("<big></big> $OLINE,conkyctl shades outline ${1};$me")
|
||||
[[ "$SHADOWS" == "shadow" ]] && out+=("<big>${cbon}</big> $SHADOW,conkyctl shades no ${1};$me") || out+=("<big>${cboff}</big> $SHADOW,conkyctl shades shadow ${1};$me")
|
||||
[[ "$SHADOWS" == "outline" ]] && out+=("<big>${cbon}</big> $OLINE,conkyctl shades no ${1};$me") || out+=("<big>${cboff}</big> $OLINE,conkyctl shades outline ${1};$me")
|
||||
#out+=("^sep()")
|
||||
fi
|
||||
|
||||
[[ "$BORD" == false ]] && out+=("<big></big> $BORDERS [ <b>$BWIDTH px</b> ],^checkout(bordersingle)") || out+=("<big></big> $BORDERS [ <b>$BWIDTH px</b> ],^checkout(bordersingle)")
|
||||
[[ "$BORD" == false ]] && out+=("<big>${cboff}</big> $BORDERS [ <b>$BWIDTH px</b> ],^checkout(bordersingle)") || out+=("<big>${cbon}</big> $BORDERS [ <b>$BWIDTH px</b> ],^checkout(bordersingle)")
|
||||
out2+=("^tag(bordersingle)")
|
||||
out2+=("^sep($DRAW $BORDERS?)")
|
||||
[[ "$BORD" == false ]] && out2+=("<big>祿</big> $YES,conkyctl draw_borders true ${1};$me") || out2+=("<big>綠</big> $YES,conkyctl draw_borders false ${1};$me")
|
||||
[[ "$BORD" == false ]] && out2+=("<big>綠</big> $NO,conkyctl draw_borders true ${1};$me") || out2+=("<big>祿</big> $NO,conkyctl draw_borders false ${1};$me")
|
||||
[[ "$BORD" == false ]] && out2+=("<big>${roff}</big> $YES,conkyctl draw_borders true ${1};$me") || out2+=("<big>${ron}</big> $YES,conkyctl draw_borders false ${1};$me")
|
||||
[[ "$BORD" == false ]] && out2+=("<big>${ron}</big> $NO,conkyctl draw_borders true ${1};$me") || out2+=("<big>${roff}</big> $NO,conkyctl draw_borders false ${1};$me")
|
||||
out2+=("^sep($_BORDER_WIDTH)")
|
||||
[[ "${BWIDTH}" == "1" ]] && out2+=("<big>綠</big> <b>1 px</b> ${_OLD_STYLE}") || out2+=("<big>祿</big> 1 px ${_OLD_STYLE},conkyctl border_width 1 ${1}")
|
||||
[[ "${BWIDTH}" == "1" ]] && out2+=("<big>${ron}</big> <b>1 px</b> ${_OLD_STYLE}") || out2+=("<big>${roff}</big> 1 px ${_OLD_STYLE},conkyctl border_width 1 ${1}")
|
||||
for i in 2 4 6 8 10;do
|
||||
[[ "${BWIDTH}" == "${i}" ]] && out2+=("<big>綠</big> <b>${i} px</b>") || out2+=("<big>祿</big> ${i} px,conkyctl border_width ${i} ${1}")
|
||||
[[ "${BWIDTH}" == "${i}" ]] && out2+=("<big>${ron}</big> <b>${i} px</b>") || out2+=("<big>${roff}</big> ${i} px,conkyctl border_width ${i} ${1}")
|
||||
done
|
||||
out2+=("^sep($STIPPLED_BORDERS ?)")
|
||||
[[ "${STIP}" == "0" ]] && out2+=("<big>綠</big> <b>0 ($SOLID_LINE)</b>") || out2+=("<big>祿</big> 0 ($SOLID_LINE),conkyctl stippled_borders 0 ${1};$me")
|
||||
[[ "${STIP}" == "0" ]] && out2+=("<big>${ron}</big> <b>0 ($SOLID_LINE)</b>") || out2+=("<big>${roff}</big> 0 ($SOLID_LINE),conkyctl stippled_borders 0 ${1};$me")
|
||||
out2+=("^sep()")
|
||||
for st in 1 2 3 4;do
|
||||
[[ "${STIP}" == "${st}" ]] && out2+=("<big>綠</big> <b>${st} px</b>") || out2+=("<big>祿</big> ${st} px,conkyctl stippled_borders ${st} ${1};$me")
|
||||
[[ "${STIP}" == "${st}" ]] && out2+=("<big>${ron}</big> <b>${st} px</b>") || out2+=("<big>${roff}</big> ${st} px,conkyctl stippled_borders ${st} ${1};$me")
|
||||
done
|
||||
fi
|
||||
fi #OLD SYNTAX CHECK
|
||||
@@ -1095,7 +1096,7 @@ fi #OLD SYNTAX CHECK
|
||||
if [[ "${conky_basicmode}" != "on" ]];then
|
||||
out+=("^sep($_ACTIONS)")
|
||||
out+=(" $EDIT ${title^},xdg-open ${1}")
|
||||
out+=("北 $RELOAD ${title^},conkyctl restartone ${1}")
|
||||
out+=(" $RELOAD ${title^},conkyctl restartone ${1}")
|
||||
fi
|
||||
|
||||
}
|
||||
@@ -1108,8 +1109,8 @@ pipemenu () {
|
||||
}
|
||||
|
||||
contextmenu () {
|
||||
|
||||
source "$HOME/.config/mabox/mabox.conf"
|
||||
. /usr/share/mb-jgtools/jgtools.inc
|
||||
|
||||
if [[ "$conky_rightclick" == "off" ]];then
|
||||
exit 0
|
||||
fi
|
||||
@@ -1167,8 +1168,7 @@ contextmenu () {
|
||||
#notify-send.sh -t 0 "Window" "z xdotool: ${WINDOW} \n X $X \n Y $Y \n hexid: $hexid \n $CONKYCFG \n ${WINCLR}\n ${name}\n $HOME/.config/mabox/${name}.csv"
|
||||
|
||||
|
||||
. /usr/share/mb-jgtools/pipemenu-standalone.cfg
|
||||
. $HOME/.config/mabox/mabox.conf
|
||||
|
||||
CONFIG_FILE=$(mktemp)
|
||||
MENU_ITEMS=$(mktemp)
|
||||
trap "rm -f ${CONFIG_FILE} ${MENU_ITEMS}" EXIT
|
||||
|
||||
@@ -9,7 +9,7 @@ get_gtkfont() {
|
||||
GTK2RC="$HOME"/.gtkrc-2.0
|
||||
GTK3RC="$HOME"/.config/gtk-3.0/settings.ini
|
||||
|
||||
GTK_FONT=( $(grep "gtk-font-name" ${GTK2RC} | cut -d'"' -f2) )
|
||||
GTK_FONT=( $(grep "gtk-font-name" ${GTK3RC} | cut -d'=' -f2) )
|
||||
GTK_FAMILY=${GTK_FONT[@]::${#GTK_FONT[@]}-1}
|
||||
GTK_SIZE=${GTK_FONT[-1]}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user