master
Daniel Napora 2021-06-01 12:14:29 +02:00
parent 43aca40857
commit 82941cdf3d
3 changed files with 23 additions and 5 deletions

View File

@ -17,6 +17,8 @@ fi
case $LANG in case $LANG in
pl*) pl*)
ENABLE="Uruchom sesję Conky"
DISABLE="Zatrzymaj sesję Conky"
CHOOSE_CONKY="Wybierz Conky..." CHOOSE_CONKY="Wybierz Conky..."
SESSIONS_LBL="Sesje Conky" SESSIONS_LBL="Sesje Conky"
NEW_SESSION="Nowa sesja Conky" NEW_SESSION="Nowa sesja Conky"
@ -31,6 +33,8 @@ case $LANG in
REMOVE="Usuń to menu z panelu" REMOVE="Usuń to menu z panelu"
;; ;;
es*) es*)
ENABLE="Start Conky session"
DISABLE="Stop Conky session"
CHOOSE_CONKY="Elegir recuadro Conky..." CHOOSE_CONKY="Elegir recuadro Conky..."
SESSIONS_LBL="Conky Sesiones" SESSIONS_LBL="Conky Sesiones"
NEW_SESSION="Guardar sesión actual Conky" NEW_SESSION="Guardar sesión actual Conky"
@ -45,6 +49,8 @@ case $LANG in
REMOVE="Eliminar este menú del panel" REMOVE="Eliminar este menú del panel"
;; ;;
*) *)
ENABLE="Start Conky session"
DISABLE="Stop Conky session"
CHOOSE_CONKY="Choose Conky..." CHOOSE_CONKY="Choose Conky..."
SESSIONS_LBL="Conky Sessions" SESSIONS_LBL="Conky Sessions"
NEW_SESSION="New Conky session" NEW_SESSION="New Conky session"
@ -60,6 +66,7 @@ case $LANG in
;; ;;
esac esac
me="jgconky-pipe -s"
EditMenu(){ EditMenu(){
if [[ $(pidof conky) ]];then if [[ $(pidof conky) ]];then
@ -82,6 +89,11 @@ EditMenu(){
out+=("^sep(Conky)") out+=("^sep(Conky)")
if [[ $(pidof conky) ]];then
out+=("$DISABLE,conky_toggle")
else
out+=("$ENABLE,conky_toggle;$me")
fi
if type "$CZEN" &>/dev/null;then # mb-conky-manager script found if type "$CZEN" &>/dev/null;then # mb-conky-manager script found
out+=("$CHOOSE_CONKY,$CZEN") out+=("$CHOOSE_CONKY,$CZEN")

View File

@ -56,7 +56,7 @@ case $LANG in
SIZE="Rozmiar i czcionka" SIZE="Rozmiar i czcionka"
FONT_FAMILY="Czcionka" FONT_FAMILY="Czcionka"
FONT_SIZE="Rozmiar czcionki" FONT_SIZE="Rozmiar czcionki"
COLOR_SCHEME="Schemat kolorystyczny" COLOR_SCHEME="Motyw kolorystyczny"
GRADIENT="Kierunek Gradientu" GRADIENT="Kierunek Gradientu"
EDIT_CURRENT="Edytuj aktywny" EDIT_CURRENT="Edytuj aktywny"
FOLLOW_OB="Zgodny z motywem OpenBox" FOLLOW_OB="Zgodny z motywem OpenBox"
@ -346,7 +346,7 @@ else
#out+=("#${menu_gradient_pos}\n") #out+=("#${menu_gradient_pos}\n")
out+=("$CHOOSE [<b>${wm_theme// /_}</b>],^checkout(motywy)") out+=("$CHOOSE [<b>${wm_theme// /_}</b>],^checkout(motywy)")
out+=("$EDIT_CURRENT: (<b>${wm_theme// /_}</b>),geany $HOME/.config/mabox/jgobthemes/${wm_theme// /_}.colorrc,geany") out+=("$EDIT_CURRENT: (<b>${wm_theme// /_}</b>),geany $HOME/.config/mabox/jgobthemes/${wm_theme// /_}.colorrc,geany")
out+=("$RANDOM,mb-setvar jgmenu_theme=$(basename -s .colorrc $(ls ~/.config/mabox/jgobthemes/*.colorrc | shuf -n 1));$me") out+=("$RANDTHEME,mb-setvar jgmenu_theme=$(basename -s .colorrc $(ls ~/.config/mabox/jgobthemes/*.colorrc | shuf -n 1));$me")
out+=("$FOLLOW_OB,mb-setvar jgmenu_theme=obtheme;$me out+=("$FOLLOW_OB,mb-setvar jgmenu_theme=obtheme;$me
^sep()") ^sep()")
out+=("$GRADIENT [ <b>${menu_gradient_pos:-none}</b> ],^checkout(gradient)") out+=("$GRADIENT [ <b>${menu_gradient_pos:-none}</b> ],^checkout(gradient)")

View File

@ -26,14 +26,15 @@ fi
source <(grep = $CONFIG_FILE) source <(grep = $CONFIG_FILE)
case $LANG in case $LANG in
pl*) pl*)
TITLE="Zmieniacz tapet i Blokada ekranu" TITLE="Zmieniacz tapet i Blokada ekranu"
WALLPAPERS="Tapety"
RANDWALL="Losowa tapeta" RANDWALL="Losowa tapeta"
CHOOSE="Wybierz tapetę..." CHOOSE="Wybierz tapetę..."
STARTS="Uruchom Pokaz slajdów <small>(<i>zatrzymany</i>)</small>" STARTS="Uruchom Pokaz slajdów <small>(<i>zatrzymany</i>)</small>"
STOPS="Zatrzymaj Pokaz slajdów <small>(<i>działający</i>)</small>" STOPS="Zatrzymaj Pokaz slajdów <small>(<i>działający</i>)</small>"
CONF="Konfiguracja" CONF="Konfiguracja"
WALLDIR="Katalog z tapetami" WALLDIR="Katalog z tapetami"
INTERVAL="Interwał" INTERVAL="Interwał pokazu slajdów"
SEC="sekund" SEC="sekund"
EDITCONF="Edytuj plik konfiguracyjny" EDITCONF="Edytuj plik konfiguracyjny"
OPENDIR="Otwórz katalog z tapetami" OPENDIR="Otwórz katalog z tapetami"
@ -49,6 +50,7 @@ case $LANG in
;; ;;
*) *)
TITLE="Wallpaper Changer &amp; ScreenLocker" TITLE="Wallpaper Changer &amp; ScreenLocker"
WALLPAPERS="Wallpapers"
RANDWALL="Random Wallpaper" RANDWALL="Random Wallpaper"
CHOOSE="Choose Wallpaper..." CHOOSE="Choose Wallpaper..."
STARTS="Start Slideshow <small>(<i>stopped</i>)</small>" STARTS="Start Slideshow <small>(<i>stopped</i>)</small>"
@ -77,15 +79,17 @@ me="jgwallpaperchanger -s"
#help='\nBased on Mabox forum member Shwaybo <a href="https://forum.maboxlinux.org/t/chwp-desktop-wallpaper-changer/496">idea</a>.\n\nchange wallpapers from a directory, never using the same picture twice until all the pictures have been shown, and rotating x number of seconds (configurable) before the next wallpaper change.\n' #help='\nBased on Mabox forum member Shwaybo <a href="https://forum.maboxlinux.org/t/chwp-desktop-wallpaper-changer/496">idea</a>.\n\nchange wallpapers from a directory, never using the same picture twice until all the pictures have been shown, and rotating x number of seconds (configurable) before the next wallpaper change.\n'
out+=("^sep($TITLE)") out+=("^sep($TITLE)")
out+=("^sep($WALLPAPERS)")
if ! pgrep mbwallpaper > /dev/null; then if ! pgrep mbwallpaper > /dev/null; then
out+=("$RANDWALL,mbwallpaper -o;$me") out+=("$RANDWALL,mbwallpaper -o;$me")
out+=("$CHOOSE,mbwallpaper -c") out+=("$CHOOSE,mbwallpaper -c")
out+=("$STARTS,run_wallpaperslideshow;$me") out+=("$STARTS,run_wallpaperslideshow;$me")
out+=("Nitrogen,nitrogen")
else else
out+=("$STOPS,killall mbwallpaper;$me") out+=("$STOPS,killall mbwallpaper;$me")
fi fi
out+=("^sep($CONF)") out+=("^sep(<i>$CONF</i>)")
#out+=("About Wallpaper changer,\"\"\"notify-send.sh -u critical -i mbcc 'Wallpaper Changer - rotate desktop wallpaper every n-seconds' '$help' -o 'Edit configuration file:geany ~/.config/mbwallpaper/mbwallpaper.conf'\"\"\"") #out+=("About Wallpaper changer,\"\"\"notify-send.sh -u critical -i mbcc 'Wallpaper Changer - rotate desktop wallpaper every n-seconds' '$help' -o 'Edit configuration file:geany ~/.config/mbwallpaper/mbwallpaper.conf'\"\"\"")
out+=("$WALLDIR: <small>[ <b>$wallpaper_dir</b> ]</small>,geany $CONFIG_FILE") out+=("$WALLDIR: <small>[ <b>$wallpaper_dir</b> ]</small>,geany $CONFIG_FILE")
@ -105,6 +109,8 @@ out+=("$DIMBLUR,mb-setvar screenlocker=betterlockscreen $SCRNLOCKCFG;mb-setvar e
out+=("$PIXEL,mb-setvar screenlocker=betterlockscreen $SCRNLOCKCFG;mb-setvar effect=pixel $SCRNLOCKCFG;mbscreenlocker") out+=("$PIXEL,mb-setvar screenlocker=betterlockscreen $SCRNLOCKCFG;mb-setvar effect=pixel $SCRNLOCKCFG;mbscreenlocker")
out+=("^sep()") out+=("^sep()")
out+=("$DESK,mb-setvar screenlocker=i3lock $SCRNLOCKCFG;mbscreenlocker") out+=("$DESK,mb-setvar screenlocker=i3lock $SCRNLOCKCFG;mbscreenlocker")
out+=("^sep()")
out+=("$EDITCONF ,geany $SCRNLOCKCFG")
out2+=("^tag(interval)") out2+=("^tag(interval)")
for i in 10 30 60 120 300 600 1800 3600; do out2+=("$(printf "<tt> %4s</tt>,%s" "$i" "mb-setvar interval=${i} $CONFIG_FILE;$me")");done for i in 10 30 60 120 300 600 1800 3600; do out2+=("$(printf "<tt> %4s</tt>,%s" "$i" "mb-setvar interval=${i} $CONFIG_FILE;$me")");done