big update

master 0.9.10
Daniel Napora 2022-12-19 22:22:23 +01:00
parent 4d3c79a930
commit 66ef501bae
12 changed files with 504 additions and 132 deletions

View File

@ -138,7 +138,7 @@ case "$LANG" in
ACCENT="<b>accent</b> - zmień kolor akcentu"
SELECT="<b>select</b> - wybierz akcję..."
DIFF_CONKY_COLORS="Różne kolory dla Conky"
HELP="Pomoc"
HELP="Okno główne i Pomoc"
RESET_COLORS="Resetuj kolory"
RESET_CHOOSE="Resetuj..."
RESET_SEP="Resetuj kolory dla"
@ -229,7 +229,7 @@ case "$LANG" in
ACCENT="<b>accent</b> - chenge accent color"
SELECT="<b>select</b> - select action"
DIFF_CONKY_COLORS="Different colors for each Conky"
HELP="About and Help"
HELP="Main Window and Help"
RESET_COLORS="Reset Colors"
RESET_CHOOSE="Reset..."
RESET_SEP="Resey Colors of ..."
@ -274,20 +274,12 @@ out+=("^sep(Mabox Colorizer)")
out+=(" $SETTINGS,^checkout(settings)")
LNG=${LANG:0:2}
if [[ -f "/usr/share/mabox-colorizer/help/$LNG.html" ]];then
out+=(" $HELP,yhtml /usr/share/mabox-colorizer/help/$LNG.html 'Mabox Help - Colorizer'")
out+=(" $HELP,yhtml /usr/share/mabox-colorizer/help/$LNG.html 'Mabox Colorizer'")
else
out+=(" $HELP,yhtml /usr/share/mabox-colorizer/help/en.html 'Mabox Help - Colorizer'")
out+=(" $HELP,yhtml /usr/share/mabox-colorizer/help/en.html 'Mabox Colorizer'")
fi
out+=("^sep()")
out+=("北 $REGENERATE,^checkout(regen)")
out2+=("^tag(regen)")
out2+=("^sep($REGENERATEALL)")
out2+=(" $ASCONFIGURED,w2theme colorize;colorizer -s")
out2+=(" $REVERSE,w2theme reverse;colorizer -s")
#out2+=("^sep($CURRENTCONF)")
#out2+=("$MENUPANELS [ <b>${wall2themes_menu}</b> ],^checkout(mp)")
#out2+=("Conky [ <b>${wall2themes_conky}</b> ],^checkout(conky)")
#out2+=("PyRadio [ <b>${wall2themes_pyradio}</b> ],^checkout(pyradio)")
out+=(" Randomizer,^pipe(randomizer c)")
out+=("^sep($MODULES)")
out+=("$OBTHEME,^pipe(colorizer-ob)")
out+=("Conky,^pipe(colorizer-conky)")
@ -301,6 +293,16 @@ if pgrep -f pyradio >/dev/null ;then
fi
out+=("^sep($WALLCOLORS)")
out+=("北 $REGENERATE,^checkout(regen)")
out2+=("^tag(regen)")
out2+=("^sep($REGENERATEALL)")
out2+=(" $ASCONFIGURED,w2theme colorize;colorizer -s")
out2+=(" $REVERSE,w2theme reverse;colorizer -s")
#out2+=("^sep($CURRENTCONF)")
#out2+=("$MENUPANELS [ <b>${wall2themes_menu}</b> ],^checkout(mp)")
#out2+=("Conky [ <b>${wall2themes_conky}</b> ],^checkout(conky)")
#out2+=("PyRadio [ <b>${wall2themes_pyradio}</b> ],^checkout(pyradio)")
[[ $rootcolors = select ]]&& out+=("^sep($SELECT_ACTION)")||out+=("^sep($ACCENTINFO)")
n=0
for i in "${w[@]}"
@ -512,15 +514,16 @@ if [[ "$gradient_obtheme" == "yes" || "$gradient_menu" == "yes" ]];then
out+=("^sep($GRADIENTS <small>$OBGRAD $MENUGRAD</small>)")
out+=("<tt><span bgcolor='#16a084'> </span><span bgcolor='#43a480'> </span><span bgcolor='#5da97b'> </span><span bgcolor='#72ad77'> </span><span bgcolor='#84b171'> </span><span bgcolor='#95b66c'> </span><span bgcolor='#a5ba66'> </span><span bgcolor='#b5be61'> </span><span bgcolor='#c3c15a'> </span><span bgcolor='#d1c753'> </span><span bgcolor='#dfc94c'> </span><span bgcolor='#edce44'> </span><span bgcolor='#f4d03f'> </span></tt> $PRE_GRADIENTS,^pipe(mbgrad)")
fi
out+=("^sep($RESET_COLORS)")
out+=("$RESET_CHOOSE,^checkout(resetroot)")
out2+=("^tag(resetroot)")
out2+=("^sep($RESET_SEP)")
out2+=("$RES_OB_WD,obtctl resetMBcolors;colorizer -s")
out2+=("$RES_MENU,jgctl reset;colorizer -s")
out2+=("$RES_CONKY,conkyctl resetcolorsall;colorizer -s")
out2+=("^sep()")
out2+=("\"\"\"$RES_ALL\"\"\",obtctl resetMBcolors;conkyctl resetcolorsall;jgctl reset;colorizer -s")
### RESET ACTIONS (replaced by Randomizer)
#out+=("^sep($RESET_COLORS)")
#out+=("$RESET_CHOOSE,^checkout(resetroot)")
#out2+=("^tag(resetroot)")
#out2+=("^sep($RESET_SEP)")
#out2+=("$RES_OB_WD,obtctl resetMBcolors;colorizer -s")
#out2+=("$RES_MENU,jgctl reset;colorizer -s")
#out2+=("$RES_CONKY,conkyctl resetcolorsall;colorizer -s")
#out2+=("^sep()")
#out2+=("\"\"\"$RES_ALL\"\"\",obtctl resetMBcolors;conkyctl resetcolorsall;jgctl reset;colorizer -s")
if [[ "$related_tools" == "show" ]];then
out+=(". $CUSTOM_COMMANDS_FILE")
@ -692,8 +695,8 @@ if [[ "$1" == "-s" ]]; then
mkconfigfile
#THUMB="$(DISPLAY=:0 scrot -t 220x100 -o $HOME/.config/mabox/colorizer.png -e 'echo $m')"
case "$LANG" in
pl*) THGEN="generuj motywy :";;
*) THGEN="theme generation:";;
pl*) THGEN="generuj motywy:";;
*) THGEN="auto theming:";;
esac
if [ "$wall2themes" = "yes" ]; then
FGCOL="limegreen"

View File

@ -137,7 +137,7 @@ if pgrep -af "conky.*mbcolor" >/dev/null; then
[[ "$WINTRANS" == false ]] && BG="bgcolor='$WINCLR'" || BG=""
out+=("^sep($COLORIZECONKY)")
out+=(" $MOVEABLEALL,conkyctl makemoveableall")
out+=(" $MOVEABLEALL,conkyctl makemoveableall")
out+=("^sep(<small><i>$GLOBALSETTINGS</i></small>)")
out+=("<span bgcolor='#282828'> <span fgcolor='#ebdbb2'></span> <span fgcolor='#98971a'></span> <span fgcolor='#d79921'></span> <span fgcolor='#cc241d'></span> </span> $REGENERATE,^checkout(regenconky)")
out2+=("^tag(regenconky)")

View File

@ -309,15 +309,15 @@ out2+=("$SUNKEN,obtctl raised 2;$me")
#GRADIENT
out2+=("^tag(gradient)")
out2+=("^sep($GRADIENT_TYPE)")
out2+=("$SOLID_COLOR,obtctl gradient solid;$me")
out2+=("$SOLID_COLOR,obtctl gradient_type solid;$me")
out2+=("^sep()")
out2+=("$VERTICAL,obtctl gradient vertical;$me")
out2+=("$HORIZONTAL,obtctl gradient horizontal;$me")
out2+=("$MIRRORHORIZONTAL,obtctl gradient mirrorhorizontal;$me")
out2+=("$SPLITVERTICAL,obtctl gradient splitvertical;$me")
out2+=("$DIAGONAL,obtctl gradient diagonal;$me")
out2+=("$CROSSDIAGONAL,obtctl gradient crossdiagonal;$me")
out2+=("$PYRAMID,obtctl gradient pyramid;$me")
out2+=("$VERTICAL,obtctl gradient_type vertical;$me")
out2+=("$HORIZONTAL,obtctl gradient_type horizontal;$me")
out2+=("$MIRRORHORIZONTAL,obtctl gradient_type mirrorhorizontal;$me")
out2+=("$SPLITVERTICAL,obtctl gradient_type splitvertical;$me")
out2+=("$DIAGONAL,obtctl gradient_type diagonal;$me")
out2+=("$CROSSDIAGONAL,obtctl gradient_type crossdiagonal;$me")
out2+=("$PYRAMID,obtctl gradient_type pyramid;$me")
#HANDLE
out2+=("^tag(handle)")

View File

@ -1,12 +1,12 @@
#!/bin/bash
#
# conkyctl
# conkyctl - script to handle various Conky operations in Mabox
CONKYDIR="$HOME/.config/conky"
BASECONKY="$CONKYDIR/sysinfo_mbcolor.conkyrc"
SESSIONFILE="$CONKYDIR/conky-sessionfile"
COLORIZERDIR="$HOME/.config/colorizer"
CONKYTHEMEDIR="$COLORIZERDIR/conky/themes"
CONKYTHEMEDIR="$COLORIZERDIR/conky/themes"
if [ ! -d "$CONKYTHEMEDIR" ];then
mkdir -p "$CONKYTHEMEDIR"
rsync -a /usr/share/mabox-colorizer/themes/conky/* ${CONKYTHEMEDIR}/
@ -35,8 +35,7 @@ win_bgcolor_all () {
win_bgcolor () {
sd "own_window_colour .*=.*$" "own_window_colour = '${1}'," ${2}
sd "own_window_transparent.*$" "own_window_transparent = false," ${2}
#notify-send.sh "${FG_COLOR}" "${2}"
}
draw_borders_all () {
sd "draw_borders.*$" "draw_borders = ${1}," ${CONKYDIR}/*mbcolor.conkyrc
@ -556,11 +555,11 @@ single () {
[[ "$WINTRANS" == false ]] && BG="bgcolor='$WINCLR'" || BG=""
out+=("^sep(Conky: [ ${title^} ])")
out+=(" $POSITION,^checkout(position)")
if [[ "$1" =~ "etwork_mbcolor" ]]; then
out+=("$NOT_WORKING,conkyctl netdevice")
fi
#out+=("^sep($POSITION)")
out+=(" $POSITION,^checkout(position)")
out2+=("^tag(position)")
out2+=("^sep($POSITION)")
out2+=(" $MARKNEWPOS,conkyctl setpos ${1};$me")
@ -794,12 +793,6 @@ 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"
#if [ ! -f ${CONKYDIR}/menuscripts/${name}.csv ]; then
#touch $HOME/.config/mabox/${name}.csv
#CUSTOMCOMMANDS=""
#else
#CUSTOMCOMMANDS=". ${CONKYDIR}/menuscripts/${name}.csv"
#fi
. /usr/share/mb-jgtools/pipemenu-standalone.cfg
. $HOME/.config/mabox/mabox.conf
@ -899,10 +892,10 @@ cmdmenu () {
bash "${CONKYDIR}/menuscripts/${name}"
exit 0
fi
# if CSV for menu exist show it
if [ -f ${CONKYDIR}/menuscripts/${name}.csv ]; then
LINES=$(grep -Ev "^#|^$" ${CONKYDIR}/menuscripts/${name}.csv|wc -l)
notify-send.sh "$LINES"
#notify-send.sh "$LINES"
if [ ${LINES} != 0 ]; then
CUSTOMCOMMANDS=". ${CONKYDIR}/menuscripts/${name}.csv"
else
@ -912,8 +905,7 @@ cmdmenu () {
contextmenu
fi
#notify-send.sh "Conky cmdmenu" "${filename}\n${name}\n${title}"
# otherwise build and show standalone menu with custom commands
# otherwise build and show standalone menu with custom commands
sleep .2
read WINTRANS <<< "$(grep own_window_transparent ${CONKYCFG} | cut -d'=' -f2 | cut -d"," -f1)"

View File

@ -15,12 +15,21 @@ esac
if [ ! -f "${THEMERC}.bak" ]; then
cp ${THEMERC} ${THEMERC}.bak
fi
theme () {
mb-setvar jgmenu_theme=${1}
}
reset () {
rm ${THEMERC}
mv ${THEMERC}.bak ${THEMERC}
}
resetMBcolors() {
mb-setvar jgmenu_theme=MBcolors
reset
case "$1" in
show) colorizer-menus -s;;
*):;;
esac
}
color_menu_bg () {
read MBG MBGA<<< "$(grep 'color_menu_bg ' ${THEMERC} | cut -d'=' -f2)"
case "${#1}" in
@ -206,7 +215,9 @@ color_sel_border () {
esac
}
case "$1" in
theme) theme "$2";;
reset) reset ;;
resetMBcolors) resetMBcolors "$2";;
color_menu_bg) color_menu_bg "$2";;
color_menu_bg_to) color_menu_bg_to "$2";;
color_menu_border) color_menu_border "$2";;

View File

@ -92,12 +92,10 @@ out2+=("<tt><small> 5</small> <span bgcolor='$1' bgalpha='5%'> </span><
out2+=("<tt><small> 0</small> <span bgcolor='$1' bgalpha='1%'> </span><span bgcolor='$1'> </span></tt>,jgctl $3 0 ;${5}")
fi
#Current
out+=("^sep($SELECT_COLOR)")
out+=(" $PICK_FROM_SCREEN,mbclr pixelcolor $2 $3 ${5} ${6}")
out+=(" $SELECT_OR_PICK,mbclr pick $2 $3 ${5} ${6}")
out+=(" $PICK_FROM_SCREEN,mbclr pixelcolor $2 $3 ${5} ${6}")
out+=(" $SELECT_OR_PICK,mbclr pick $2 $3 ${5} ${6}")
out+=("^sep()")
out+=("<tt><span bgcolor='$1'> </span></tt> $SHADES_OF_CURRENT (<small>$1</small>),^checkout(curshades)")

View File

@ -26,6 +26,19 @@ reset () {
resetMBcolors() {
theme MBcolors
rsync -a /usr/share/mabox-colorizer/themes/MBcolors/openbox-3/* ${MBCOLORSDIR}/
#set font
nspace="http://openbox.org/3.4/rc"
cfg="$HOME/.config/openbox/rc.xml"
xmlstarlet ed -L -N a="$nspace" -u '/a:openbox_config/a:theme/a:font[@place="ActiveWindow"]/a:name' -v "Ubuntu" "$cfg"
xmlstarlet ed -L -N a="$nspace" -u '/a:openbox_config/a:theme/a:font[@place="ActiveWindow"]/a:size' -v "9" "$cfg"
xmlstarlet ed -L -N a="$nspace" -u '/a:openbox_config/a:theme/a:font[@place="ActiveWindow"]/a:weight' -v "Bold" "$cfg"
xmlstarlet ed -L -N a="$nspace" -u '/a:openbox_config/a:theme/a:font[@place="ActiveWindow"]/a:slant' -v "Normal" "$cfg"
xmlstarlet ed -L -N a="$nspace" -u '/a:openbox_config/a:theme/a:font[@place="InactiveWindow"]/a:name' -v "Ubuntu" "$cfg"
xmlstarlet ed -L -N a="$nspace" -u '/a:openbox_config/a:theme/a:font[@place="InactiveWindow"]/a:size' -v "9" "$cfg"
xmlstarlet ed -L -N a="$nspace" -u '/a:openbox_config/a:theme/a:font[@place="InactiveWindow"]/a:weight' -v "Bold" "$cfg"
xmlstarlet ed -L -N a="$nspace" -u '/a:openbox_config/a:theme/a:font[@place="InactiveWindow"]/a:slant' -v "Normal" "$cfg"
}
borderWidth () {
@ -84,17 +97,17 @@ textjustify () {
}
shadow () {
case "$1" in
0)
0|no)
sd "\.active.label.text.font:.*$" ".active.label.text.font: shadow=n:shadowtint=70:shadowoffset=1" ${THEMERC}
sd "\.inactive.label.text.font:.*$" ".inactive.label.text.font: shadow=n:shadowtint=20:shadowoffset=1" ${THEMERC}
;;
1)
1|dark)
sd "\.active.label.text.font:.*$" ".active.label.text.font: shadow=y:shadowtint=70:shadowoffset=1" ${THEMERC}
sd "\.inactive.label.text.font:.*$" ".inactive.label.text.font: shadow=y:shadowtint=20:shadowoffset=1" ${THEMERC}
#sd "\.inactive.label.text.font:.*$" ".inactive.label.text.font: shadow=y:shadowtint=20:shadowoffset=1" ${THEMERC}
;;
2)
sd "\.active.label.text.font:.*$" ".active.label.text.font: shadow=y:shadowtint=-70:shadowoffset=1" ${THEMERC}
sd "\.inactive.label.text.font:.*$" ".inactive.label.text.font: shadow=y:shadowtint=-20:shadowoffset=1" ${THEMERC}
2|light)
sd "\.active.label.text.font:.*$" ".active.label.text.font: shadow=y:shadowtint=-40:shadowoffset=1" ${THEMERC}
#sd "\.inactive.label.text.font:.*$" ".inactive.label.text.font: shadow=y:shadowtint=-20:shadowoffset=1" ${THEMERC}
;;
esac
@ -106,24 +119,24 @@ raised () {
#flat 0 or raised 1 or sunken 2
read WINRAISED REST <<< "$(grep .title.bg: ${THEMERC} | cut -d':' -f2)"
case "$1" in
0)
0|flat)
sd "\.title.bg:.*$" ".title.bg: flat ${REST}" ${THEMERC}
sd "\.handle.bg:.*$" ".handle.bg: flat ${REST}" ${THEMERC}
sd "\.grip.bg:.*$" ".grip.bg: flat ${REST}" ${THEMERC}
;;
1)
1|raised)
sd "\.title.bg:.*$" ".title.bg: raised ${REST}" ${THEMERC}
sd "\.handle.bg:.*$" ".handle.bg: raised ${REST}" ${THEMERC}
sd "\.grip.bg:.*$" ".grip.bg: raised ${REST}" ${THEMERC}
;;
2)
2|sunken)
sd "\.title.bg:.*$" ".title.bg: sunken ${REST}" ${THEMERC}
sd "\.handle.bg:.*$" ".handle.bg: sunken ${REST}" ${THEMERC}
sd "\.grip.bg:.*$" ".grip.bg: sunken ${REST}" ${THEMERC}
;;
esac
}
gradient () {
gradient_type () {
#solid or gradient gradient-type
read WINRAISED REST <<< "$(grep .title.bg: ${THEMERC} | cut -d':' -f2)"
case "$1" in
@ -139,6 +152,14 @@ gradient () {
;;
esac
}
random_gradient () {
GRADIENT_FILE="$HOME"/.config/colorizer/gradients_all.inc
if [ ! -f $GRADIENT_FILE ]; then
cp -a /usr/share/mabox-colorizer/gradients_all.inc $GRADIENT_FILE
fi
read CLR CLRTO REST <<< "$(shuf -n 1 $GRADIENT_FILE)"
activegradient "$CLR" "$CLRTO"
}
activegradient () {
#notify-send.sh "zmiennne obtctl" "${1} ${2}"
#sd "\.active.handle.bg.color:.*$" ".active.handle.bg.color: ${1}" ${THEMERC}
@ -159,6 +180,17 @@ activegradient () {
# Button colors
activebuttonscolors "${TITLE_FG}"
# Shadow
read SHADOW <<< "$(grep .active.label.text.font: ${THEMERC} | cut -d':' -f2| cut -d'=' -f2)"
if [ "$SHADOW" == "y" ];then
if [ "$TITLE_FG" == "#EEEEEE" ];then
shadow dark
else
shadow light
fi
fi
}
activegradient_reverse () {
:
@ -275,6 +307,7 @@ clrnormalbgto () {
}
activetextcolor () {
sd "\.active.label.text.color:.*$" ".active.label.text.color: ${1}" ${THEMERC}
activebuttonscolors ${1}
}
inactivetextcolor () {
sd "\.inactive.label.text.color:.*$" ".inactive.label.text.color: ${1}" ${THEMERC}
@ -292,6 +325,13 @@ activebuttonscolors () {
#disabled=$()
sd "^window.active.button.*.hover.image.color:.*$" "window.active.button.*.hover.image.color: ${hover}" ${THEMERC}
}
fontfamily () {
nspace="http://openbox.org/3.4/rc"
cfg="$HOME/.config/openbox/rc.xml"
xmlstarlet ed -L -N a="$nspace" -u '/a:openbox_config/a:theme/a:font[@place="ActiveWindow"]/a:name' -v "${1}" "$cfg"
xmlstarlet ed -L -N a="$nspace" -u '/a:openbox_config/a:theme/a:font[@place="InactiveWindow"]/a:name' -v "${1}" "$cfg"
}
fontsize () {
nspace="http://openbox.org/3.4/rc"
cfg="$HOME/.config/openbox/rc.xml"
@ -318,6 +358,14 @@ fontsize () {
;;
esac
}
fontweight () {
nspace="http://openbox.org/3.4/rc"
cfg="$HOME/.config/openbox/rc.xml"
xmlstarlet ed -L -N a="$nspace" -u '/a:openbox_config/a:theme/a:font[@place="ActiveWindow"]/a:weight' -v "${1}" "$cfg"
xmlstarlet ed -L -N a="$nspace" -u '/a:openbox_config/a:theme/a:font[@place="InactiveWindow"]/a:weight' -v "${1}" "$cfg"
}
fontweighttoggle (){
nspace="http://openbox.org/3.4/rc"
cfg="$HOME/.config/openbox/rc.xml"
@ -328,6 +376,13 @@ fontweighttoggle (){
xmlstarlet ed -L -N a="$nspace" -u '/a:openbox_config/a:theme/a:font[@place="ActiveWindow"]/a:weight' -v "Normal" "$cfg"
fi
}
fontslant (){
nspace="http://openbox.org/3.4/rc"
cfg="$HOME/.config/openbox/rc.xml"
xmlstarlet ed -L -N a="$nspace" -u '/a:openbox_config/a:theme/a:font[@place="ActiveWindow"]/a:slant' -v "${1}" "$cfg"
xmlstarlet ed -L -N a="$nspace" -u '/a:openbox_config/a:theme/a:font[@place="InactiveWindow"]/a:slant' -v "${1}" "$cfg"
}
fontslanttoggle (){
nspace="http://openbox.org/3.4/rc"
cfg="$HOME/.config/openbox/rc.xml"
@ -338,6 +393,119 @@ fontslanttoggle (){
xmlstarlet ed -L -N a="$nspace" -u '/a:openbox_config/a:theme/a:font[@place="ActiveWindow"]/a:slant' -v "Normal" "$cfg"
fi
}
randomizer () {
# TODO: - maybe put all options to cnf file and let users cistomize oprions???
### ensure we use MBColors at the moment
theme MBcolors
### SHADOW (here, because we must know if is set later when title font color is calculated)
SHADOWS=(no dark light)
rand=$((RANDOM%3))
SHADOW="${SHADOWS[$rand]}"
obtctl shadow "${SHADOW}"
### RANDOM GRADIENT COLORS
GRADIENT_FILE="$HOME"/.config/colorizer/gradients_all.inc
if [ ! -f $GRADIENT_FILE ]; then
cp -a /usr/share/mabox-colorizer/gradients_all.inc $GRADIENT_FILE
fi
read CLR CLRTO GRAD_NAME <<< "$(shuf -n 1 $GRADIENT_FILE)"
#obtctl random_gradient
activegradient "$CLR" "$CLRTO"
### rand gradient type
TYPES=(solid vertical horizontal mirrorhorizontal splitvertical)
rand=$((RANDOM%5))
G_TYPE="${TYPES[$rand]}"
gradient_type "${G_TYPE}"
#rand
### Random border
BORDERS=(0 1 2 4)
rand=$((RANDOM%4))
BORDER="${BORDERS[$rand]}"
borderWidth "${BORDER}"
### Random padding
PADDINGS=(2 4 8 12 16)
rand=$((RANDOM%4))
PADDING="${PADDINGS[$rand]}"
paddingHeight "${PADDING}"
### TITLEBAR STYLE
STYLES=(flat raised sunken)
rand=$((RANDOM%3))
STYLE="${STYLES[$rand]}"
raised "${STYLE}"
### Buttons
BUTTONS=(tiny normal bold dots)
rand=$((RANDOM%4))
BUTTON="${BUTTONS[$rand]}"
buttons "${BUTTON}"
### TEXT ALIGN
ALIGNS=(left center right)
rand=$((RANDOM%3))
ALIGN="${ALIGNS[$rand]}"
textjustify "${ALIGN}"
### FONT FAMILY
FAMILIES=(Ubuntu Sans Serif "Roboto Condensed" "GE Inspira")
rand=$((RANDOM%5))
FAMILY="${FAMILIES[$rand]}"
fontfamily "${FAMILY}"
### FONT WEIGHT
WEIGHTS=(Bold Normal)
rand=$((RANDOM%2))
WEIGHT="${WEIGHTS[$rand]}"
fontweight "${WEIGHT}"
### FONT SLANT
SLANTS=(Italic Normal)
rand=$((RANDOM%2))
SLANT="${SLANTS[$rand]}"
fontslant "${SLANT}"
### FONT SIZE
FONTSIZES=(8 10 11 12 14 16)
rand=$((RANDOM%6))
FONTSIZE="${FONTSIZES[$rand]}"
fontsize "${FONTSIZE}"
MSG="
Openbox Window Decoration settings
Gradient
name: <b>${GRAD_NAME}</b>
colors: <b>${CLR}</b> to <b>${CLRTO}</b>
type: <b>$G_TYPE</b>
Border: <b>${BORDER}</b>
Padding: <b>${PADDING}</b>
Titlebar style: <b>${STYLE}</b>
Buttons: <b>${BUTTON}</b>
Title align: <b>${ALIGN}</b>
Font: <b>${FAMILY} ${WEIGHT} ${SLANT} ${FONTSIZE}</b>
"
notify-send.sh -R /tmp/randomizer_notify -t 10000 -i mbcc "Mabox Colorizer" "${MSG}" \
-o "Regenerate:randomizer ob" -o "Customize:colorizer-ob -s"
}
case "$1" in
theme) theme "$2";;
@ -352,7 +520,8 @@ case "$1" in
shadow) shadow "$2";;
handlewidth) handlewidth "$2";;
raised) raised "$2";;
gradient) gradient "$2";;
gradient_type) gradient_type "$2";;
random_gradient) random_gradient;;
activegradient) activegradient "$2" "$3";;
activehandle) activehandle "$2";;
clractivebg) clractivebg "$2";;
@ -363,9 +532,13 @@ case "$1" in
inactivetextcolor) inactivetextcolor "$2";;
buttons) buttons "$2";;
activebuttonscolors) activebuttonscolors "$2";;
fontfamily) fontfamily "$2";;
fontweight) fontweight "$2";;
fontslant) fontslant "$2";;
fontsize) fontsize "$2";;
fontweighttoggle) fontweighttoggle;;
fontslanttoggle) fontslanttoggle;;
randomizer) randomizer;;
*) : ;;
esac

104
bin/randomizer 100755
View File

@ -0,0 +1,104 @@
#!/bin/bash
# randomizer
ob () {
obtctl randomizer
}
menu () {
mb-setvar jgmenu_theme=$(basename -s .colorrc $(ls ~/.config/mabox/jgobthemes/*.colorrc | shuf -n 1))
case "$1" in
show) colorizer-menus -s;;
*):;;
esac
}
conky () {
#set random saved colorscheme
COLORIZERDIR="$HOME/.config/colorizer"
CONKYTHEMEDIR="$COLORIZERDIR/conky/themes"
if [ ! -d "$CONKYTHEMEDIR" ];then
mkdir -p "$CONKYTHEMEDIR"
rsync -a /usr/share/mabox-colorizer/themes/conky/* ${CONKYTHEMEDIR}/
fi
RAND_FILENAME=$(ls ~/.config/colorizer/conky/themes/*.colors|shuf -n 1)
RAND_THEME=${RAND_FILENAME##*/}
#notify-send.sh "$RAND_THEME"
conkyctl settheme_all ${RAND_THEME}
}
wp () {
: # Może niepotrzebne tu
}
all () {
ob
conky
menu colorizer-menus
}
resetall () {
conkyctl resetcolorsall
obtctl resetMBcolors
jgctl resetMBcolors show
}
pipemenu () {
me=""
[[ "$1" == "l" ]] && me="mb-jgtools places"
[[ "$1" == "c" ]] && me="colorizer -s"
#notify-send.sh "Me $me"
case "$LANG" in
pl*)
SETRANDOM="Ustaw losowy motyw dla..."
MENUS="Menu i Panele boczne"
OBWD="Dekoracja okien Openbox"
ALL="Wszystko"
RESET_TO_DEFAULT="Resetuj do ustawień domyślnych..."
HELP="Okno Główne i Pomoc"
;;
es*)
SETRANDOM="Set random colorscheme for..."
MENUS="Menus n Panels"
OBWD="OpenBox Window Decoration"
ALL="All"
RESET_TO_DEFAULT="Reset to default settings..."
HELP="Main Window and Help"
;;
en*)
SETRANDOM="Set random colorscheme for..."
MENUS="Menus n Panels"
OBWD="OpenBox Window Decoration"
ALL="All"
RESET_TO_DEFAULT="Reset to default settings..."
HELP="Main Window and Help"
;;
esac
out+=("^sep($SETRANDOM)")
out+=("$MENUS,randomizer menu;$me")
out+=("$OBWD,randomizer ob;$me")
out+=("Conky,randomizer conky;$me")
out+=("^sep()")
out+=("$ALL,randomizer all;$me")
out+=("^sep($RESET_TO_DEFAULT)")
out+=("$MENUS,jgctl resetMBcolors;$me")
out+=("$OBWD,obtctl resetMBcolors;$me")
out+=("Conky,conkyctl resetcolorsall;$me")
out+=("^sep()")
out+=("$ALL,randomizer resetall;$me")
out+=("^sep(Colorizer)")
out+=("Colorizer - $HELP,ycolorizer")
printf '%s\n' "${out[@]}"
}
case "$1" in
ob) ob;;
menu) menu "${2}";;
conky) conky;;
wp) wp;;
all) all;;
resetall)resetall;;
l|c|*) pipemenu "$1";;
esac

10
bin/ycolorizer 100755
View File

@ -0,0 +1,10 @@
#!/bin/bash
# ycolorizer - launch Colorizer main window and Help
LNG=${LANG:0:2}
if [[ -f "/usr/share/mabox-colorizer/help/$LNG.html" ]];then
yhtml /usr/share/mabox-colorizer/help/$LNG.html 'Mabox Colorizer'
else
yhtml /usr/share/mabox-colorizer/help/en.html 'Mabox Colorizer'
fi

View File

@ -6,7 +6,7 @@ Comment=Mabox Colorizer
Keywords=
StartupNotify=false
Icon=colorizer
TryExec=colorizer -s
Exec=colorizer -s
TryExec=ycolorizer
Exec=ycolorizer
Categories=Settings;
#NoDisplay=true

View File

@ -12,7 +12,7 @@ div.fixed {
position: fixed;
top: 0;
right: 0;
width: 200px;
width: 400px;
}
div.fixeddown {
position: fixed;
@ -33,10 +33,10 @@ p a.w3-tag:hover {text-decoration:none; border:none;}
<div class="w3-sidebar w3-bar-block w3-dark-grey w3-card" style="width:160px">
<div class="w3-center w3-margin"><img src="./img/colorizer.png" class="link" title="Colorizer" onclick="openTab(event, 'Colorizer')"></div>
<button class="w3-bar-item w3-button w3-small tablink" onclick="openTab(event, 'Colorizer')">Colorizer</button>
<button class="w3-bar-item w3-button w3-small tablink" onclick="openTab(event, 'Wall2theme')">Auto Theming</button>
<button class="w3-bar-item w3-button w3-small tablink" onclick="openTab(event, 'Openbox')">Openbox Theme</button>
<button class="w3-bar-item w3-button w3-small tablink" onclick="openTab(event, 'Jgmenu')">Menu/Sidepanels</button>
<button class="w3-bar-item w3-button w3-small tablink" onclick="openTab(event, 'Conky')">Conky</button>
<button class="w3-bar-item w3-button w3-small tablink" onclick="openTab(event, 'Wall2theme')">Auto Theming</button>
<button class="w3-bar-item w3-button w3-small tablink" onclick="openTab(event, 'Tint2')">Tint2 Panel</button>
<button class="w3-bar-item w3-button w3-small tablink" onclick="openTab(event, 'Terminal')">Terminal theme</button>
<button class="w3-bar-item w3-button w3-small tablink" onclick="openTab(event, 'Save')">Save and Restore</button>
@ -47,19 +47,45 @@ p a.w3-tag:hover {text-decoration:none; border:none;}
<section id="Colorizer" class="w3-container tab" style="min-height:100vh;">
<div class="w3-container">
<img src="/usr/share/mabox-colorizer/img/colorizer.png" class="w3-margin"/>
<h2>Mabox Colorizer <span class="w3-tiny">beta</span></h2>
<em>(Colorizer is in rapid development ... this help may be incomplete prior to 1.0 release)</em>
<p>a set of tools to easily customize your Mabox Linux Desktop</p>
<div class="w3-display-container" style="min-height:90vh">
<img src="/usr/share/mabox-colorizer/img/colorizer.png" class="w3-margin-top w3-right"/>
<br/>
<h2 class="w3-center">Mabox Colorizer <span class="w3-tiny">beta</span></h2>
<p class="w3-center">a set of tools to easily customize<br/>your Mabox Linux Desktop</p>
<br/>
<p>Easily change look and feel of:
<ul>
<li><strong><span class="w3-tag w3-round w3-tiny w3-green link" onclick="openTab(event, 'Openbox')">Openbox theme</span></strong> (windows decorations)</li>
<li><strong><span class="w3-tag w3-round w3-tiny w3-green link" onclick="openTab(event, 'Openbox')">Openbox theme</span></strong> (window decorations)</li>
<li><strong><span class="w3-tag w3-round w3-tiny w3-green link" onclick="openTab(event, 'Jgmenu')">Menu/Sidepanels</span></strong> and other <i>jgmenu-based</i> <strong>Mabox tools</strong></li>
<li><strong><span class="w3-tag w3-round w3-tiny w3-green link" onclick="openTab(event, 'Conky')">Conkies</span></strong></li>
<li><strong>PyRadio</strong> - Internet Radio Player</li>
<!--<li><strong>PyRadio</strong> - Internet Radio Player</li>//-->
</ul></p>
<strong><span class="w3-tag w3-round w3-tiny w3-green link" onclick="openTab(event, 'Wall2theme')">Automatically generate themes</span></strong> for all above <strong>from Wallpaper colors</strong> <span class="w3-tag w3-round w3-red">New!</span>
<!--<strong><span class="w3-tag w3-round w3-tiny w3-green link" onclick="openTab(event, 'Wall2theme')">Automatically generate themes</span></strong> for all above <strong>from Wallpaper colors</strong>//-->
<br />
<p class="w3-center"><span class="w3-tag w3-round w3-red">New!</span>  Randomizer - set color themes quickly and securely</p>
<div class="w3-row w3-margin-top">
<div class="w3-half w3-container">
<div class="w3-card w3-round w3-padding w3-deep-purple"><span class="w3-right w3-xxlarge"></span><p><em>Quickly <strong>randomize</strong> <br />colorschemes for...</em></p>
<div class="w3-bar-block w3-grey"><a class="w3-button w3-bar-item w3-tiny" href="run://randomizer ob">Openbox theme</a>
<a class="w3-button w3-bar-item w3-tiny" href="run://randomizer menu show">Menu / Sidepanels</a>
<a class="w3-button w3-bar-item w3-tiny" href="run://randomizer conky">Conkies</a>
<a class="w3-button w3-bar-item w3-tiny w3-hover-yellow" href="run://randomizer all">All above</a>
</div>
</div>
</div>
<div class="w3-half w3-container">
<div class="w3-card w3-round w3-padding w3-grey"><span class="w3-right w3-xxlarge"></span><p><em><strong>Reset</strong> to defaults...<br />(restore fresh install settings)</em></p>
<div class="w3-bar-block w3-dark-grey"><a class="w3-button w3-bar-item w3-tiny" href="run://obtctl resetMBcolors">Openbox theme</a>
<a class="w3-button w3-bar-item w3-tiny" href="run://jgctl resetMBcolors show">Menu / Sidepanels</a>
<a class="w3-button w3-bar-item w3-tiny" href="run://conkyctl resetcolorsall">Conkies</a>
<a class="w3-button w3-bar-item w3-tiny w3-hover-yellow" href="run://randomizer resetall">All above</a>
</div>
</div>
</div>
</div>
</div>
<div class="fixeddown">
<div class="w3-bar w3-tiny">
@ -71,22 +97,14 @@ p a.w3-tag:hover {text-decoration:none; border:none;}
</div>
</div>
</section>
<section id="Wall2theme" class="w3-container tab" style="display:none;min-height:100vh;">
<div class="fixed"><a class="w3-button w3-round w3-small w3-lime w3-hover-yellow w3-margin w3-display-topright" href="run://colorizer -s"> Colorizer</a></div>
<h2>Auto theming</h2>
<p>Colorizer automatically generates a color palette from the currently set wallpaper.</p>
<h3>Automatic themes generation</h3>
<p>Colorizar will automatically generate themes after wallpaper change (if configured, see:<br /> <b>Colorizer</b> -> <b>Settings</b> -> <b>Autogenerate themes</b></p>
<p>For fast preview do not use Nitrogen GUI, better use:</p>
<ul>
<li>Random wallpaper option from Colorizer (sysytem or users wallpapers)</li>
<li>any option from Wallpaper menu should work (also slideshow)</li>
<li>you can also set wallpaper from file manager image context menu</li>
</ul>
<p></p>
</section>
<section id="Openbox" class="w3-container tab" style="display:none;min-height:100vh;">
<div class="fixed"><a class="w3-button w3-round w3-small w3-lime w3-hover-yellow w3-margin w3-display-topright" href="run://colorizer-ob -s"> OBtheme menu</a></div>
<div class="fixed">
<div class="w3-bar">
<a class="w3-button w3-bar-item w3-small w3-grey w3-hover-amber w3-right" href="run://colorizer-ob -s"> OBtheme menu</a>
<a class="w3-button w3-bar-item w3-small w3-grey w3-hover-amber w3-right" href="run://obtctl resetMBcolors"> Reset</a>
<a class="w3-button w3-bar-item w3-small w3-grey w3-hover-amber w3-right" href="run://randomizer ob"> Randomize</a>
</div>
</div>
<h2>Openbox theme</h2>
<p>The Openbox module allows you to easily customize the appearance of window decorations.</p>
<p>It works only with special theme - <strong>MBcolors</strong> <a class="w3-tag w3-round w3-green w3-tiny" href="run://obtctl theme MBcolors">switch to</a> <a class="w3-tag w3-round w3-green w3-tiny" href="run://obtctl resetMBcolors">Reset MBcolors</a></p>
@ -260,14 +278,14 @@ p a.w3-tag:hover {text-decoration:none; border:none;}
<div class="w3-col w3-black m6 w3-round">
<h5 class="w3-center">Gradient type</h5>
<p class="w3-center">
<a href="run://obtctl gradient solid"><img src="./img/solid.png"></a>
<a href="run://obtctl gradient vertical"><img src="./img/vertical.png"></a>
<a href="run://obtctl gradient horizontal"><img src="./img/horizontal.png"></a>
<a href="run://obtctl gradient mirrorhorizontal"><img src="./img/mirrorhorizontal.png"></a>
<a href="run://obtctl gradient splitvertical"><img src="./img/splitvertical.png"></a>
<a href="run://obtctl gradient diagonal"><img src="./img/diagonal.png"></a>
<a href="run://obtctl gradient crossdiagonal"><img src="./img/crossdiagonal.png"></a>
<a href="run://obtctl gradient pyramid"><img src="./img/pyramid.png"></a>
<a href="run://obtctl gradient_type solid"><img src="./img/solid.png"></a>
<a href="run://obtctl gradient_type vertical"><img src="./img/vertical.png"></a>
<a href="run://obtctl gradient_type horizontal"><img src="./img/horizontal.png"></a>
<a href="run://obtctl gradient_type mirrorhorizontal"><img src="./img/mirrorhorizontal.png"></a>
<a href="run://obtctl gradient_type splitvertical"><img src="./img/splitvertical.png"></a>
<a href="run://obtctl gradient_type diagonal"><img src="./img/diagonal.png"></a>
<a href="run://obtctl gradient_type crossdiagonal"><img src="./img/crossdiagonal.png"></a>
<a href="run://obtctl gradient_type pyramid"><img src="./img/pyramid.png"></a>
</p>
<p class="w3-padding">More than 300 beautifull pre-defined gradients are available from Colorizer OBtheme menu.</p>
</div>
@ -281,14 +299,26 @@ p a.w3-tag:hover {text-decoration:none; border:none;}
</section>
<section id="Jgmenu" class="w3-container tab" style="display:none;min-height:100vh">
<div class="fixed"><a class="w3-button w3-round w3-small w3-lime w3-hover-yellow w3-margin w3-display-topright" href="run://colorizer-menus -s"> Menus module</a></div>
<div class="fixed">
<div class="w3-bar">
<a class="w3-button w3-bar-item w3-small w3-grey w3-hover-amber w3-right" href="run://colorizer-menus -s"> Menu module</a>
<a class="w3-button w3-bar-item w3-small w3-grey w3-hover-amber w3-right" href="run://jgctl resetMBcolors show"> Reset</a>
<a class="w3-button w3-bar-item w3-small w3-grey w3-hover-amber w3-right" href="run://randomizer menu show"> Randomize</a>
</div>
</div>
<h2>Menu / Sidepanels</h2>
<p>Menu / Sidepanels module ...</p>
</section>
<section id="Conky" class="w3-container tab" style="display:none;min-height:100vh;">
<div class="fixed"><a class="w3-button w3-round w3-small w3-lime w3-hover-yellow w3-margin w3-display-topright" href="run://colorizer-conky -s"> Conky menu</a></div>
<div class="fixed">
<div class="w3-bar">
<a class="w3-button w3-bar-item w3-small w3-grey w3-hover-amber w3-right" href="run://colorizer-conky -s"> Conky menu</a>
<a class="w3-button w3-bar-item w3-small w3-grey w3-hover-amber w3-right" href="run://conkyctl resetcolorsall"> Reset</a>
<a class="w3-button w3-bar-item w3-small w3-grey w3-hover-amber w3-right" href="run://randomizer conky"> Randomize</a>
</div>
</div>
<h2>Conky</h2>
<p>Mabox provides nine Conky configs that you can easily customize with the Colorizer Conky module.</p>
<p>You can easily set up:
@ -314,7 +344,20 @@ p a.w3-tag:hover {text-decoration:none; border:none;}
</ul></p>
</section>
<section id="Wall2theme" class="w3-container tab" style="display:none;min-height:100vh;">
<div class="fixed"><a class="w3-button w3-round w3-small w3-lime w3-hover-yellow w3-margin w3-display-topright" href="run://colorizer -s"> Colorizer</a></div>
<h2>Auto theming</h2>
<p>Colorizer automatically generates a color palette from the currently set wallpaper.</p>
<h3>Automatic themes generation</h3>
<p>Colorizar can automatically generate themes after wallpaper change (if configured, see:<br /> <b>Colorizer</b> -> <b>Settings</b> -> <b>Autogenerate themes</b></p>
<p>For fast preview do not use Nitrogen GUI, better use:</p>
<ul>
<li>Random wallpaper option from Colorizer (sysytem or users wallpapers)</li>
<li>any option from Wallpaper menu should work (also slideshow)</li>
<li>you can also set wallpaper from file manager image context menu</li>
</ul>
<p></p>
</section>
<section id="Terminal" class="w3-container tab" style="display:none;min-height:100vh">
<div class="fixed">
<a class="w3-button w3-round w3-tiny w3-lime w3-hover-yellow w3-margin w3-display-topright" href="termo://theme.sh -i2">Launch Terminal theme selector</a>

View File

@ -12,7 +12,7 @@ div.fixed {
position: fixed;
top: 0;
right: 0;
width: 200px;
width: 400px;
}
div.fixeddown {
position: fixed;
@ -33,35 +33,55 @@ p a.w3-tag:hover {text-decoration:none; border:none;}
<div class="w3-sidebar w3-bar-block w3-dark-grey w3-card" style="width:160px">
<div class="w3-center w3-margin"><img src="./img/colorizer.png" class="link" title="Colorizer" onclick="openTab(event, 'Colorizer')"></div>
<button class="w3-bar-item w3-button w3-small tablink" onclick="openTab(event, 'Colorizer')">Colorizer</button>
<button class="w3-bar-item w3-button w3-small tablink" onclick="openTab(event, 'Wall2theme')">Generowanie Motywów</button>
<button class="w3-bar-item w3-button w3-small tablink" onclick="openTab(event, 'Openbox')">Motyw Openbox</button>
<button class="w3-bar-item w3-button w3-small tablink" onclick="openTab(event, 'Jgmenu')">Menu/Panele Boczne</button>
<button class="w3-bar-item w3-button w3-small tablink" onclick="openTab(event, 'Conky')">Conky</button>
<button class="w3-bar-item w3-button w3-small tablink" onclick="openTab(event, 'Wall2theme')">Generowanie Motywów</button>
<button class="w3-bar-item w3-button w3-small tablink" onclick="openTab(event, 'Tint2')">Panel Tint2</button>
<button class="w3-bar-item w3-button w3-small tablink" onclick="openTab(event, 'Terminal')">Kolory Terminala</button>
<button class="w3-bar-item w3-button w3-small tablink" onclick="openTab(event, 'Save')">Zapisywanie</button>
<a class="w3-button w3-round w3-tiny w3-lime w3-margin" href="run://colorizer -s">Colorizer</a>
<a class="w3-button w3-round w3-tiny w3-lime w3-margin" href="run://colorizer -s">Colorizer</a>
</div>
<div style="margin-left:160px;" class="w3-small">
<section id="Colorizer" class="w3-container tab" style="min-height:100vh;">
<div class="w3-container">
<img src="/usr/share/mabox-colorizer/img/colorizer.png" class="w3-margin"/>
<h2>Mabox Colorizer <span class="w3-tiny">beta</span></h2>
<small>(Colorizer jest w fazie szybkiego rozwoju ... ta pomoc może być niekompletna przed wydaniem 1.0)</small>
<p>narzędzie do ustawiania Pulpitu Mabox Linux</p>
<div class="w3-display-container" style="min-height:90vh">
<img src="/usr/share/mabox-colorizer/img/colorizer.png" class="w3-margin-top w3-right"/>
<br/>
<h2 class="w3-center">Mabox Colorizer <span class="w3-tiny">beta</span></h2>
<p class="w3-center">narzędzie do ustawiania<br /> Pulpitu Mabox Linux</p>
<br />
<p>Z łatwością zmienisz wygląd:
<ul>
<li><strong><span class="w3-tag w3-round w3-tiny w3-green link" onclick="openTab(event, 'Openbox')">motywu Openbox</span></strong> (dekoracje okien)</li>
<li><strong><span class="w3-tag w3-round w3-tiny w3-green link" onclick="openTab(event, 'Openbox')">Motywu Openbox</span></strong> (dekoracje okien)</li>
<li><strong><span class="w3-tag w3-round w3-tiny w3-green link" onclick="openTab(event, 'Jgmenu')">Menu oraz Paneli bocznych</span></strong> oraz innych <i>bazujących na jgmenu</i> <strong>narzędzi Mabox</strong></li>
<li><strong><span class="w3-tag w3-round w3-tiny w3-green link" onclick="openTab(event, 'Conky')">Conky</span></strong></li>
<li><strong>PyRadio</strong> - Internetowy Radio Odtwarzacz</li>
</ul></p>
<p><span class="w3-tag w3-round w3-red">Nowe!</span> <strong><span class="w3-tag w3-round w3-tiny w3-green link" onclick="openTab(event, 'Wall2theme')">Automatyczne generowanie kolorystyki</span></strong> na podstawie <strong>kolorów tapety</strong></p>
<a class="w3-button w3-round w3-small w3-lime w3-margin" href="run://colorizer -s">Uruchom Colorizer</a>
<br />
<p class="w3-center"><span class="w3-tag w3-round w3-red">Nowe!</span>  Randomizer - szybko i bezpiecznie zmieniaj motywy</p>
<div class="w3-row w3-margin-top">
<div class="w3-half w3-container">
<div class="w3-card w3-round w3-padding w3-deep-purple"><span class="w3-right w3-xxlarge"></span><p><em>Ustaw <strong>losowy</strong> <br />motyw kolorystyczny dla...</em></p>
<div class="w3-bar-block w3-grey"><a class="w3-button w3-bar-item w3-tiny" href="run://randomizer ob">Dekoracje okien Openbox</a>
<a class="w3-button w3-bar-item w3-tiny" href="run://randomizer menu show">Menu / Panele boczne</a>
<a class="w3-button w3-bar-item w3-tiny" href="run://randomizer conky">Conky</a>
<a class="w3-button w3-bar-item w3-tiny w3-hover-yellow" href="run://randomizer all">Wszystko co powyżej</a>
</div>
</div>
</div>
<div class="w3-half w3-container">
<div class="w3-card w3-round w3-padding w3-grey"><span class="w3-right w3-xxlarge"></span><p><em><strong>Resetuj</strong> do ustawień domyślnych...<br />(jak zaraz po instalacji)</em></p>
<div class="w3-bar-block w3-dark-grey"><a class="w3-button w3-bar-item w3-tiny" href="run://obtctl resetMBcolors">Dekoracje okien Openbox</a>
<a class="w3-button w3-bar-item w3-tiny" href="run://jgctl resetMBcolors show">Menu / Panele boczne</a>
<a class="w3-button w3-bar-item w3-tiny" href="run://conkyctl resetcolorsall">Conky</a>
<a class="w3-button w3-bar-item w3-tiny w3-hover-yellow" href="run://randomizer resetall">Wszystko co powyżej</a>
</div>
</div>
</div>
</div>
</div>
<div class="fixeddown">
<div class="w3-bar w3-tiny">
<div class="w3-bar-item">Mabox Linux Linki: </div>
@ -79,7 +99,13 @@ p a.w3-tag:hover {text-decoration:none; border:none;}
</section>
<section id="Openbox" class="w3-container tab" style="display:none;min-height:100vh;">
<div class="fixed"><a class="w3-button w3-round w3-tiny w3-lime w3-margin w3-display-topright" href="run://colorizer-ob -s">Uruchom moduł Openbox</a></div>
<div class="fixed">
<div class="w3-bar">
<a class="w3-button w3-bar-item w3-small w3-grey w3-hover-amber w3-right" href="run://colorizer-ob -s"> Openbox menu</a>
<a class="w3-button w3-bar-item w3-small w3-grey w3-hover-amber w3-right" href="run://obtctl resetMBcolors"> Resetuj</a>
<a class="w3-button w3-bar-item w3-small w3-grey w3-hover-amber w3-right" href="run://randomizer ob"> Losuj motyw</a>
</div>
</div>
<h2>Motyw Openbox</h2>
<p>Moduł Openbox pozwala w łatwy sposób dostosować wygląd dekoracji okien</p>
<p>Działa z motywem domyślnym MBcolors. <a class="w3-tag w3-round w3-green w3-tiny" href="run://obtctl theme MBcolors">przełącz</a> <a class="w3-tag w3-round w3-green w3-tiny" href="run://obtctl resetMBcolors">Resetuj MBcolors</a></p>
@ -241,44 +267,56 @@ p a.w3-tag:hover {text-decoration:none; border:none;}
<a class="w3-tag w3-large" style="background-color:#a0522d" href="run://obtctl clractivebg #a0522d">&nbsp;&nbsp;</a>
<a class="w3-tag w3-large" style="background-color:#222222" href="run://obtctl clractivebg #222222">&nbsp;&nbsp;</a>
</div>
<p class="w3-padding"><em>Note!</em><br />
Changing the background color will also set:<br />
- border color to the same color<br />
- BGCOLOR_TO color for a subtle gradient
<p class="w3-padding"><em>Zauważ!</em><br />
Zmiana koloru paska tytułowego zmieni także:<br />
- obramowanie<br />
- kolor BGCOLOR_TO dla gradientu
</p>
</div>
<div class="w3-col m1">&nbsp;</div>
<div class="w3-col w3-black m6 w3-round">
<h5 class="w3-center">Typ Gradientu</h5>
<p class="w3-center">
<a href="run://obtctl gradient solid"><img src="./img/solid.png"></a>
<a href="run://obtctl gradient vertical"><img src="./img/vertical.png"></a>
<a href="run://obtctl gradient horizontal"><img src="./img/horizontal.png"></a>
<a href="run://obtctl gradient mirrorhorizontal"><img src="./img/mirrorhorizontal.png"></a>
<a href="run://obtctl gradient splitvertical"><img src="./img/splitvertical.png"></a>
<a href="run://obtctl gradient diagonal"><img src="./img/diagonal.png"></a>
<a href="run://obtctl gradient crossdiagonal"><img src="./img/crossdiagonal.png"></a>
<a href="run://obtctl gradient pyramid"><img src="./img/pyramid.png"></a>
<a href="run://obtctl gradient_type solid"><img src="./img/solid.png"></a>
<a href="run://obtctl gradient_type vertical"><img src="./img/vertical.png"></a>
<a href="run://obtctl gradient_type horizontal"><img src="./img/horizontal.png"></a>
<a href="run://obtctl gradient_type mirrorhorizontal"><img src="./img/mirrorhorizontal.png"></a>
<a href="run://obtctl gradient_type splitvertical"><img src="./img/splitvertical.png"></a>
<a href="run://obtctl gradient_type diagonal"><img src="./img/diagonal.png"></a>
<a href="run://obtctl gradient_type crossdiagonal"><img src="./img/crossdiagonal.png"></a>
<a href="run://obtctl gradient_type pyramid"><img src="./img/pyramid.png"></a>
</p>
<p class="w3-padding">More than 300 beautifull pre-defined gradients are available from Colorizer OBtheme menu.</p>
<p class="w3-padding">Ponad 300 pięknych pre-definiowanych gradientów dostepne jest OBtheme menu.</p>
</div>
</div>
<p></p>
<p>For much more options, fine-tunning and colors choices launch <a class="w3-tag w3-round w3-green w3-small w3-hover-yellow" href="run://colorizer-ob -s"> OBtheme menu</a></p>
<p>Potrzebujesz więcej opcji, tuningu i kolorów? Uruchom <a class="w3-tag w3-round w3-green w3-small w3-hover-yellow" href="run://colorizer-ob -s"> OBtheme menu</a></p>
</section>
<section id="Jgmenu" class="w3-container tab" style="display:none;min-height:100vh">
<div class="fixed"><a class="w3-button w3-round w3-tiny w3-lime w3-margin w3-display-topright" href="run://colorizer-menus -s">Launch Menus module</a></div>
<div class="fixed">
<div class="w3-bar">
<a class="w3-button w3-bar-item w3-small w3-grey w3-hover-amber w3-right" href="run://colorizer-menus -s"> Moduł Menu</a>
<a class="w3-button w3-bar-item w3-small w3-grey w3-hover-amber w3-right" href="run://jgctl resetMBcolors show"> Resetij</a>
<a class="w3-button w3-bar-item w3-small w3-grey w3-hover-amber w3-right" href="run://randomizer menu show"> Losuj motyw</a>
</div>
</div>
<h2>Menu / Panele boczne</h2>
<p>Menu / Panele boczne ...</p>
</section>
<section id="Conky" class="w3-container tab" style="display:none;min-height:100vh;">
<div class="fixed"><a class="w3-button w3-round w3-tiny w3-lime w3-margin w3-display-topright" href="run://colorizer-conky -s">Uruchom moduł Conky</a></div>
<div class="fixed">
<div class="w3-bar">
<a class="w3-button w3-bar-item w3-small w3-grey w3-hover-amber w3-right" href="run://colorizer-conky -s"> Conky menu</a>
<a class="w3-button w3-bar-item w3-small w3-grey w3-hover-amber w3-right" href="run://conkyctl resetcolorsall"> Resetuj</a>
<a class="w3-button w3-bar-item w3-small w3-grey w3-hover-amber w3-right" href="run://randomizer conky"> Losuj motyw</a>
</div>
</div>
<h2>Conky</h2>
<p>Mabox dostarcza kilku prostych konfiguracji Conky - możesz je łatwo dostosować za pomocą modułu Conky Colorizera.</p>
<p>W prosty sposób możesz ustawiać: