parent
320a9e986f
commit
9ce4ec0442
|
@ -31,11 +31,13 @@ fi
|
|||
case "$LANG" in
|
||||
pl*)
|
||||
COLORIZECONKY="Conky Colorizer"
|
||||
NO_CONKY_RUNNING="Brak uruchomionych Conky"
|
||||
RUN_CONKY_SESSION="Uruchom zapisaną sesję"
|
||||
MOVEABLEALL="Ustaw wszystkie (<i>przeciągaj</i>)..."
|
||||
GENERATEFROMWP="Generuj z kolorów tapety"
|
||||
LIGHTBG="Jasne tło"
|
||||
DARKBG="Ciemne tło"
|
||||
GLOBALSETTINGS="Ustawienia globalne (zmień dla wszystkich)"
|
||||
GLOBALSETTINGS="Ustawienia globalne <small>(dla wszystkich)</small>"
|
||||
REGENERATE="Motywy kolorów"
|
||||
OPENTHEMEDIR="Otwórz katalog motywów"
|
||||
APPLY_THEME="Zastosuj motyw"
|
||||
|
@ -57,7 +59,8 @@ case "$LANG" in
|
|||
BORDERS="Obramowanie"
|
||||
STIPPLED_BORDERS="Nakrapiane"
|
||||
SOLID_LINE="linia ciągła"
|
||||
INDSETTINGS="Ustawiania indywidualne"
|
||||
RUNNING_CONKIES="Uruchomione Conky"
|
||||
STOP_ALL="Zatrzymaj wszystkie"
|
||||
MORECONKIES="Więcej Conky..."
|
||||
CLICKTOSTART="Kliknij aby uruchomić"
|
||||
STARTALL="Uruchom wszystkie"
|
||||
|
@ -68,11 +71,13 @@ case "$LANG" in
|
|||
;;
|
||||
*)
|
||||
COLORIZECONKY="Colorize Conky"
|
||||
NO_CONKY_RUNNING="No Conky running"
|
||||
RUN_CONKY_SESSION="Run Conky session"
|
||||
MOVEABLEALL="Make moveable all..."
|
||||
GENERATEFROMWP="Generate from wallpaper colors"
|
||||
LIGHTBG="Light Background"
|
||||
DARKBG="Dark Background"
|
||||
GLOBALSETTINGS="Global settings (apply to all)"
|
||||
GLOBALSETTINGS="Global settings <small>(apply to all)</small>"
|
||||
REGENERATE="Color schemes"
|
||||
OPENTHEMEDIR="Open schemes dir"
|
||||
APPLY_THEME="Apply colorscheme"
|
||||
|
@ -94,7 +99,8 @@ case "$LANG" in
|
|||
BORDERS="Borders"
|
||||
STIPPLED_BORDERS="Stippled borders"
|
||||
SOLID_LINE="solid line"
|
||||
INDSETTINGS="Individual settings"
|
||||
RUNNING_CONKIES="Running Conkys"
|
||||
STOP_ALL="Stop All"
|
||||
MORECONKIES="More Conkies Available"
|
||||
CLICKTOSTART="click to start"
|
||||
STARTALL="Start all"
|
||||
|
@ -138,7 +144,53 @@ if pgrep -af "conky.*mbcolor" >/dev/null; then
|
|||
|
||||
out+=("^sep($COLORIZECONKY)")
|
||||
out+=(" $MOVEABLEALL,conkyctl makemoveableall")
|
||||
out+=("^sep(<small><i>$GLOBALSETTINGS</i></small>)")
|
||||
|
||||
#while read -r pid b c confpath
|
||||
#do
|
||||
# filename=${confpath##*/}
|
||||
# name=${filename%%_mb*}
|
||||
# out+=("${name^},^pipe(conkyctl single ${confpath})")
|
||||
#done < <(pgrep -af "conky.*mbcolor")
|
||||
|
||||
# array with running conkies - only filenames with full path
|
||||
readarray -t running < <(pgrep -af "conky -c.*mbcolor" | cut -d' ' -f4)
|
||||
|
||||
#array with all supported conkies
|
||||
for i in "$CONKYDIR"/*_mbcolor*; do
|
||||
supported+=("$i")
|
||||
done
|
||||
|
||||
#array with not started conkies
|
||||
notstarted=($(echo ${running[@]} ${supported[@]} | tr ' ' '\n' | sort | uniq -u))
|
||||
|
||||
if [[ ${#running[@]} > 0 ]];then
|
||||
out+=("^sep($RUNNING_CONKIES)")
|
||||
for c in ${running[@]};do
|
||||
filename=${c##*/}
|
||||
name=${filename%%_mb*}
|
||||
title=${name//_/ }
|
||||
out+=("${title^},^pipe(conkyctl single ${c})")
|
||||
done
|
||||
out+=("^sep()")
|
||||
out+=("$STOP_ALL (${#running[@]}),conky_toggle;sleep .5;$me")
|
||||
if [[ ${#notstarted[@]} > 0 ]];then
|
||||
out+=("^sep($MORECONKIES)")
|
||||
out+=("^sep(<small><i>$CLICKTOSTART</i></small>)")
|
||||
for c in ${notstarted[@]};do
|
||||
filename=${c##*/}
|
||||
name=${filename%%_mb*}
|
||||
title=${name//_/ }
|
||||
out+=("${title^},conkyctl startone ${c};$me")
|
||||
done
|
||||
if [[ ${#notstarted[@]} > 1 ]];then
|
||||
out+=("^sep()")
|
||||
out+=("$STARTALL (${#notstarted[@]}),conkyctl startall;$me")
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
#GLOBAL START
|
||||
out+=("^sep($GLOBALSETTINGS)")
|
||||
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)")
|
||||
out2+=("^sep($REGENERATE)")
|
||||
|
@ -204,59 +256,27 @@ if pgrep -af "conky.*mbcolor" >/dev/null; then
|
|||
out2+=("3,conkyctl stippled_borders_all 3;$me")
|
||||
out2+=("4,conkyctl stippled_borders_all 4;$me")
|
||||
|
||||
#while read -r pid b c confpath
|
||||
#do
|
||||
# filename=${confpath##*/}
|
||||
# name=${filename%%_mb*}
|
||||
# out+=("${name^},^pipe(conkyctl single ${confpath})")
|
||||
#done < <(pgrep -af "conky.*mbcolor")
|
||||
|
||||
# array with running conkies - only filenames with full path
|
||||
readarray -t running < <(pgrep -af "conky -c.*mbcolor" | cut -d' ' -f4)
|
||||
|
||||
#array with all supported conkies
|
||||
for i in "$CONKYDIR"/*_mbcolor*; do
|
||||
supported+=("$i")
|
||||
done
|
||||
|
||||
#array with not started conkies
|
||||
notstarted=($(echo ${running[@]} ${supported[@]} | tr ' ' '\n' | sort | uniq -u))
|
||||
|
||||
if [[ ${#running[@]} > 0 ]];then
|
||||
out+=("^sep($INDSETTINGS)")
|
||||
for c in ${running[@]};do
|
||||
filename=${c##*/}
|
||||
name=${filename%%_mb*}
|
||||
title=${name//_/ }
|
||||
out+=("${title^},^pipe(conkyctl single ${c})")
|
||||
done
|
||||
if [[ ${#notstarted[@]} > 0 ]];then
|
||||
out+=("^sep($MORECONKIES)")
|
||||
out+=("^sep(<small><i>$CLICKTOSTART</i></small>)")
|
||||
for c in ${notstarted[@]};do
|
||||
filename=${c##*/}
|
||||
name=${filename%%_mb*}
|
||||
title=${name//_/ }
|
||||
out+=("${title^},conkyctl startone ${c};$me")
|
||||
done
|
||||
if [[ ${#notstarted[@]} > 1 ]];then
|
||||
out+=("^sep()")
|
||||
out+=("$STARTALL (${#notstarted[@]}),conkyctl startall;$me")
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
out+=("^sep($RESET)")
|
||||
out+=(" $RESETCOLORS,^checkout(resetcolors)")
|
||||
out+=(" $RESETALL,^checkout(resetall)")
|
||||
out2+=("^tag(resetall)")
|
||||
out2+=("^sep($AREYOUSURE)")
|
||||
out2+=("$YES,rm $BASECONKY;$me")
|
||||
out2+=("^tag(resetcolors)")
|
||||
out2+=("^sep($AREYOUSURE)")
|
||||
out2+=("$YES,conkyctl resetcolorsall;$me")
|
||||
#out+=(" $RESETALL,^checkout(resetall)") NOT SAFE!!!
|
||||
#out2+=("^tag(resetall)")
|
||||
#out2+=("^sep($AREYOUSURE)")
|
||||
#out2+=("$YES,rm $BASECONKY;$me")
|
||||
|
||||
else
|
||||
out+=("^sep(No supported Conky running)")
|
||||
out+=("^sep($NO_CONKY_RUNNING)")
|
||||
SESSIONFILE=$HOME/.config/conky/conky-sessionfile
|
||||
if [ -f "$SESSIONFILE" ];then
|
||||
read N REST <<< $(wc -l "${SESSIONFILE}")
|
||||
if [[ "$N" -gt "0" ]];then
|
||||
out+=("$RUN_CONKY_SESSION ($N Conky),conky_toggle;$me")
|
||||
fi
|
||||
fi
|
||||
|
||||
out+=("^sep(<small><i>$CLICKTOSTART</i></small>)")
|
||||
for confpath in "$CONKYDIR"/*_mb*;
|
||||
do
|
||||
|
|
|
@ -261,21 +261,21 @@ makemoveableall () {
|
|||
case "$LANG" in
|
||||
pl*)
|
||||
TITLE="Przenieś Conky dokąd chcesz"
|
||||
DESC="Możesz teraz przesuwać wszystkie Conky.\nPrzytrzymaj wciśnięty klawisz <b>Alt</b> i przesuń każde Conky gdzie chcesz\n "
|
||||
DESC="Możesz teraz przesuwać wszystkie Conky.\nPrzytrzymaj wciśnięty klawisz <b>Alt</b> lub <b>Ctrl</b> i przesuń każde Conky gdzie chcesz\n "
|
||||
VB="<span foreground='red'>To prawdopodobnie nie zadziała w środowiskach wirtualnych</span>"
|
||||
CANCEL="Anuluj"
|
||||
SAVE="Zapisz nowe pozycje"
|
||||
;;
|
||||
es*)
|
||||
TITLE="Move Conkies where you want"
|
||||
DESC="Move Conkies to desired locations now...\n Hold <b>Alt</b> and drag Conkies one by one.\n"
|
||||
DESC="Move Conkies to desired locations now...\n Hold <b>Alt</b> or <b>Ctrl</b> and drag Conkies one by one.\n"
|
||||
VB="<span foreground='red'>It will probably not work in Virtual environments</span>"
|
||||
CANCEL="Cancel"
|
||||
SAVE="Save new positions"
|
||||
;;
|
||||
*)
|
||||
TITLE="Move Conkies where you want"
|
||||
DESC="Move Conkies to desired locations now...\n Hold <b>Alt</b> and drag Conkies one by one.\n"
|
||||
DESC="Move Conkies to desired locations now...\n Hold <b>Alt</b> or <b>Ctrl</b> and drag Conkies one by one.\n"
|
||||
VB="<span foreground='red'>It will probably not work in Virtual environments</span>"
|
||||
CANCEL="Cancel"
|
||||
SAVE="Save new positions"
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
[Desktop Entry]
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Name=Colorizer Menu
|
||||
Comment=Mabox Colorizer
|
||||
Keywords=
|
||||
StartupNotify=false
|
||||
Icon=colorizer
|
||||
TryExec=colorizer -s
|
||||
Exec=colorizer -s
|
||||
Categories=Settings;
|
||||
#NoDisplay=true
|
|
@ -30,6 +30,19 @@ a.w3-tag {color: transparent; border:1px solid #666666; margin-bottom:4px;}
|
|||
a.w3-tag:hover {color: transparent; border:1px solid #EEEEEE;margin-bottom:4px;}
|
||||
p a.w3-tag {text-decoration:none; border:none;}
|
||||
p a.w3-tag:hover {text-decoration:none; border:none;}
|
||||
kbd {
|
||||
background-color: #eee;
|
||||
border-radius: 3px;
|
||||
border: 1px solid #b4b4b4;
|
||||
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2), 0 2px 0 0 rgba(255, 255, 255, 0.7) inset;
|
||||
color: #333;
|
||||
display: inline-block;
|
||||
font-size: 0.85em;
|
||||
font-weight: 700;
|
||||
line-height: 1;
|
||||
padding: 2px 4px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
|
||||
|
@ -330,28 +343,28 @@ p a.w3-tag:hover {text-decoration:none; border:none;}
|
|||
</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:
|
||||
<p>Mabox provides several Conky configurations. Use <a class="w3-tag w3-round w3-small w3-grey w3-hover-amber" href="run://colorizer-conky -s"> Conky menu</a> to test and select which ones to run.</p>
|
||||
<p>Conky in Mabox have been equipped with additional powers...</p>
|
||||
<p>Click <strong>right mouse button</strong> on any Conky and you'll see a <strong>context menu</strong>. It allows you to conveniently:
|
||||
<ul>
|
||||
<li>background color or set a transparent background</li>
|
||||
<li>text colors</li>
|
||||
<li>border</li>
|
||||
<li>screen position</li>
|
||||
<li>shadow or outline effect</li>
|
||||
</ul>
|
||||
</p>
|
||||
<p><strong>Global settings</strong> allow you to change all Conky at once.</p>
|
||||
<li>set screen position</li>
|
||||
<li>manually change the background color or make it transparent</li>
|
||||
<li>set text colors, borders, shadow or outline effects</li>
|
||||
<li>apply one of the ready-made color themes for the selected Conky - or for all </li>
|
||||
<li>disable (kill), reload or edit Conky</li>
|
||||
</ul>
|
||||
You can add <strong>your own commands</strong> to each Conky, which will be shown in the <strong>left mouse click</strong> <em>(check the logo)</em>.
|
||||
</p>
|
||||
|
||||
<p><strong> Individual settings</strong> allow you to tweak individual Conkies, which can be very convenient to fit some wallpapers.</p>
|
||||
<h3>NEW! Context menu for individual Conkies</h3>
|
||||
<p><em>Mabox delivers Conky on steroids ;)</em></p>
|
||||
<p>For each individual Conky there is a context menu (right click).</p>
|
||||
<p>The context menu offers interesting possibilities:
|
||||
<ul>
|
||||
<li>Change position, colors and other settings for individual Conky</li>
|
||||
<li>Set predefined color themes</li>
|
||||
<li>Adding your own commands (for each Conky separately)</li>
|
||||
</ul></p>
|
||||
<h5>Tips</h5>
|
||||
|
||||
<div class="w3-panel w3-dark-grey w3-rightbar w3-border-black w3-border">
|
||||
<p><kbd>Super</kbd> + <kbd>C</kbd> - <strong>toggle Conky</strong> - start/stop Conky session</p>
|
||||
</div>
|
||||
<div class="w3-panel w3-dark-grey w3-leftbar w3-border-black w3-border">
|
||||
<p><strong>Quickly place Conky on screen</strong></p>
|
||||
<p>To quickly arrange Conky to your liking, hold down the <kbd>Ctrl</kbd> key and click any Conky. You can now drag Conky anywhere on your desktop.</p>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
<section id="Wall2theme" class="w3-container tab" style="display:none;min-height:100vh;">
|
||||
|
|
|
@ -30,6 +30,21 @@ a.w3-tag {color: transparent; border:1px solid #666666; margin-bottom:4px;}
|
|||
a.w3-tag:hover {color: transparent; border:1px solid #EEEEEE;margin-bottom:4px;}
|
||||
p a.w3-tag {text-decoration:none; border:none;}
|
||||
p a.w3-tag:hover {text-decoration:none; border:none;}
|
||||
kbd {
|
||||
background-color: #eee;
|
||||
border-radius: 3px;
|
||||
border: 1px solid #b4b4b4;
|
||||
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2), 0 2px 0 0 rgba(255, 255, 255, 0.7) inset;
|
||||
color: #333;
|
||||
display: inline-block;
|
||||
font-size: 0.85em;
|
||||
font-weight: 700;
|
||||
line-height: 1;
|
||||
padding: 2px 4px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
<body>
|
||||
|
||||
|
@ -71,7 +86,7 @@ p a.w3-tag:hover {text-decoration:none; border:none;}
|
|||
<li><strong><span class="w3-tag w3-round w3-tiny w3-green link" onclick="openTab(event, 'Conky')">Conky</span></strong></li>
|
||||
</ul></p>
|
||||
<br />
|
||||
<p class="w3-center"><span class="w3-tag w3-round w3-red">Nowe!</span> Randomizer - szybko i bezpiecznie zmieniaj motywy</p>
|
||||
<p class="w3-center"> <strong>Randomizer</strong> - szybko i bezpiecznie zmieniaj motywy <span class="w3-tag w3-round w3-red">Nowe!</span></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>
|
||||
|
@ -313,7 +328,7 @@ p a.w3-tag:hover {text-decoration:none; border:none;}
|
|||
<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://jgctl resetMBcolors show"> Resetuj</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>
|
||||
|
@ -330,28 +345,28 @@ p a.w3-tag:hover {text-decoration:none; border:none;}
|
|||
</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ć:
|
||||
<p>Mabox dostarcza kilku konfiguracji Conky. Użyj <a class="w3-tag w3-round w3-small w3-grey w3-hover-amber" href="run://colorizer-conky -s"> Conky menu</a> aby je przetestować i wybrać które z nich mają być uruchomione.</p>
|
||||
<p>Conky w Maboxie zostały wyposażone w dodatkowe moce...</p>
|
||||
<p>Kliknij <strong>prawym przyciskiem myszy</strong> na dowolnym Conky, a zobaczysz <strong>menu kontekstowe</strong>. Pozwala ono w wygodny sposób:
|
||||
<ul>
|
||||
<li>kolor tła lub ustawić przezroczystość</li>
|
||||
<li>kolory tekstu</li>
|
||||
<li>obramowanie</li>
|
||||
<li>pozycję na ekranie</li>
|
||||
<li>efekt cienia lub obrysu</li>
|
||||
</ul>
|
||||
<li>ustawić pozycję na ekranie</li>
|
||||
<li>zmienić ręcznie kolor tła lub ustawić przezroczystość</li>
|
||||
<li>ustawiać kolory tekstu, obramowanie, efekt cienia lub obrysu</li>
|
||||
<li>zastosować jeden z gotowych motywów kolorystycznych dla wybranego Conky - lub dla wszystkich </li>
|
||||
<li>wyłączyć (zabić), przeładować lub edytować Conky</li>
|
||||
</ul>
|
||||
Do każdego Conky możesz dodać <strong>własne polecenia</strong>, które zostaną pokazane w menu po kliknięciu <strong>lewym przyciskiem myszy</strong> <em>(sprawdź klikając w logo)</em>.
|
||||
</p>
|
||||
<p><strong>Ustawienia globalne</strong> pozwalają na zmiany dla wszystkich instancji Conky od razu.</p>
|
||||
|
||||
<p><strong>Ustawienia indywidualne</strong> umożliwiają dostosowywanie pojedynczych Conky, co może być bardzo przydatne w przypadku niektórych tapet.</p>
|
||||
<h3>Nowe! Menu kontekstowe dla poszczególnych Conky</h3>
|
||||
<p><em>Mabox dostarcza Conky na sterydach ;)</em></p>
|
||||
<p>Dla każdego indywidualnego Conky dostępne jest menu kontekstowe (pod prawym klikiem).</p>
|
||||
<p>Menu kontekstowe daje ciekawe możliwości:
|
||||
<ul>
|
||||
<li>Zmiana pozycji, kolorystyki i innych ustawień dla poszczególnych Conky</li>
|
||||
<li>Ustawienie predefioniowanych motywów kolorów</li>
|
||||
<li>Dodawanie własnych poleceń (dla każdego Conky z osobna)</li>
|
||||
</ul></p>
|
||||
<h5>Porady</h5>
|
||||
|
||||
<div class="w3-panel w3-dark-grey w3-rightbar w3-border-black w3-border">
|
||||
<p><kbd>Super</kbd> + <kbd>C</kbd> - <strong>Włącz / Wyłącz wszystkie</strong></p>
|
||||
</div>
|
||||
<div class="w3-panel w3-dark-grey w3-leftbar w3-border-black w3-border">
|
||||
<p><strong>Szybkie rozmieszczanie Conky na ekranie</strong></p>
|
||||
<p>Aby szybko rozmieścić Conky tak jak ci pasuje, przytrzymaj klawisz <kbd>Ctrl</kbd> i kliknij w dowolne Conky. Możesz teraz przeciągać Conky w dowolne miejsce na pulpicie i zapisać nowe pozycje.</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="Terminal" class="w3-container tab" style="display:none;min-height:100vh">
|
||||
|
|
Loading…
Reference in New Issue