update
parent
ce2005c7fa
commit
346120347c
|
@ -20,20 +20,20 @@ CONKYPATH="$HOME/.config/conky"
|
|||
|
||||
### DIALOG VARIABLES
|
||||
DLGDEC="yad --center --borders=20 --width=400 --height=500 "
|
||||
WINICON="--window-icon=distributor-logo-mabox"
|
||||
WINICON="--window-icon=distributor-logo-mabox --image=conky "
|
||||
OK="--button=OK:0"
|
||||
case $LANG in
|
||||
pl*)
|
||||
TITLE="Edytor Conky"
|
||||
CANCEL="--button=Anuluj:1"
|
||||
CE_DESC="Wybierz z listy Conky do edycji.\nMożesz wybrać kilka plików konfiguracyjnych.\n Możesz dodać własne pliki konfiguracyjne Conky\n do katalogu $CONKYPATH"
|
||||
CE_DESC="Wybierz z listy Conky do edycji.\nMożesz wybrać kilka plików konfiguracyjnych.\nMożesz dodać własne pliki konfiguracyjne Conky\ndo katalogu <i>$CONKYPATH</i>"
|
||||
CE_CHOSE="Wybór"
|
||||
CE_CONFFILE="Plik konfiguracyjny"
|
||||
;;
|
||||
*)
|
||||
TITLE="Conky Editor"
|
||||
CANCEL="--button=Cancel:1"
|
||||
CE_DESC="Choose Conky for edit.\n You can choose multiple files.\n You can put your own Conky configurations\n into $CONKYPATH directory."
|
||||
CE_DESC="Choose Conky for edit.\nYou can choose multiple files.\nYou can put your own Conky configurations\ninto <i>$CONKYPATH</i> directory."
|
||||
CE_CHOSE="Choose"
|
||||
CE_CONFFILE="Configuration file"
|
||||
;;
|
||||
|
|
|
@ -69,7 +69,7 @@ case $LANG in
|
|||
SAVE_SESSION="Zapisz sesję Conky"
|
||||
NEW_FILE="Nowy plik zapisanej sesji:"
|
||||
FILE_TO_SAVE="Plik do zapisania w <b>$CONKYPATH/</b>\n\n"
|
||||
SESS_SAVE="Sesja zostanie zachowana w:\n <b>$SESSIONFILE</b>"
|
||||
SESS_SAVE="Wybierz pliki Conky, które mają być uruchomione.\nSesja zostanie zachowana w:\n <i>$SESSIONFILE</i>"
|
||||
SELECT="Wybór:CHK"
|
||||
CONF_FILE="Plik konfiguracyjny:TXT"
|
||||
NOTHING_SELECTED="Nic nie wybrano.\n\nWyłączyć działające Conky\ni wyjść?"
|
||||
|
@ -82,15 +82,15 @@ case $LANG in
|
|||
SAVE_SESSION="Save Conky sessionfile"
|
||||
NEW_FILE="New saved session file:"
|
||||
FILE_TO_SAVE="File to be saved in <b>$CONKYPATH/</b>\n\n"
|
||||
SESS_SAVE="Session will be saved to:\n <b>$SESSIONFILE</b>"
|
||||
SESS_SAVE="Choose Conky file, which you like to start.\nSession will be saved to:\n <i>$SESSIONFILE</i>"
|
||||
SELECT="Select:CHK"
|
||||
CONF_FILE="Conky Name:TXT"
|
||||
NOTHING_SELECTED="Nothing chosen.\n\nKill any running Conkys\nand exit?"
|
||||
;;
|
||||
esac
|
||||
DLG="yad --center --undecorated --borders=20 "
|
||||
DLG="yad --center --undecorated --borders=20 --image=conky "
|
||||
DLGDEC="yad --center --borders=20 "
|
||||
WINICON="--window-icon=distributor-logo-mabox"
|
||||
WINICON="--window-icon=distributor-logo-mabox --image=conky "
|
||||
OK="--button=OK:0"
|
||||
|
||||
|
||||
|
@ -258,7 +258,7 @@ while ! [[ $RET ]];do
|
|||
--checklist --width=400 --height=500 --multiple \
|
||||
--column="$SELECT" --column="$CONF_FILE" $LISTCONKY \
|
||||
--separator=":" \
|
||||
$OK $CANCEL \
|
||||
$CANCEL $OK \
|
||||
)
|
||||
|
||||
if [[ $? == 1 ]]; then # cancel button pressed
|
||||
|
|
|
@ -18,13 +18,13 @@ TINT2PATH="$HOME/.config/tint2"
|
|||
|
||||
### DIALOG VARIABLES
|
||||
DLGDEC="yad --center --borders=20 --width=400 --height=600 "
|
||||
WINICON="--window-icon=distributor-logo-mabox"
|
||||
WINICON="--window-icon=distributor-logo-mabox --image=tint2conf"
|
||||
case $LANG in
|
||||
pl*)
|
||||
TITLE="Edytor Tint2"
|
||||
OK="--button=OK:0"
|
||||
CANCEL="--button=Anuluj:1"
|
||||
TE_DESC="Wybierz pliki konfiguracji Tint2 do edycji.\nMożesz wybrać kilka.\nDodatkowe pliki konfiguracyjne można skopiować do katalogu: \n$TINT2PATH"
|
||||
TE_DESC="Wybierz pliki konfiguracji Tint2 do edycji.\nMożesz wybrać kilka.\nDodatkowe pliki konfiguracyjne można skopiować do katalogu: \n<i>$TINT2PATH</i>"
|
||||
TE_CHOOSE="Wybór"
|
||||
TE_CONFFILE="Plik konfiguracyjny"
|
||||
;;
|
||||
|
@ -32,7 +32,7 @@ case $LANG in
|
|||
TITLE="Tint2 Editor"
|
||||
OK="--button=OK:0"
|
||||
CANCEL="--button=Cancel:1"
|
||||
TE_DESC="Choose Tint2rc file for edit.\n You can choose multiple files.\n You can put your own Tint2 configurations\n into $TINT2PATH directory."
|
||||
TE_DESC="Choose Tint2rc file for edit.\nYou can choose multiple files.\nYou can put your own Tint2 configurations\ninto <i>$TINT2PATH</i> directory."
|
||||
TE_CHOOSE="Choose"
|
||||
TE_CONFFILE="Configuration file"
|
||||
;;
|
||||
|
@ -74,7 +74,7 @@ RET=$($DLGDEC $WINICON --list --title="$TITLE" \
|
|||
--text="$TE_DESC" \
|
||||
--checklist \
|
||||
--column="$TE_CHOOSE:CHK" --column="$TE_CONFFILE:TXT" $LISTINT --separator=":" \
|
||||
$OK $CANCEL \
|
||||
$CANCEL $OK \
|
||||
)
|
||||
|
||||
if (( $? == 1 )); then # cancel button pressed
|
||||
|
|
|
@ -32,19 +32,19 @@ USAGE="\v\tUSAGE:\n\tWith no command argument, the script uses the chosen
|
|||
\v\t\t(sleep 2s && mb-tint2-session) &"
|
||||
|
||||
### DIALOG VARIABLES
|
||||
DLGDEC="yad --center --borders=20 --height=600 "
|
||||
DLGDEC="yad --center --borders=20"
|
||||
OK="--button=OK:0"
|
||||
WINICON="--window-icon=distributor-logo-mabox"
|
||||
WINICON="--window-icon=distributor-logo-mabox --image=tint2conf"
|
||||
case $LANG in
|
||||
pl*)
|
||||
TITLE="Tint2 Menedżer"
|
||||
CANCEL="--button:Anuluj:1"
|
||||
TITLE="Menedżer paneli Tint2"
|
||||
CANCEL="--button=Anuluj:1"
|
||||
SELECT_TINT="Wybierz Tint2 z listy, po kliknięcu <b>OK</b> wszystkie zaznaczone zostaną uruchomione."
|
||||
SELECT="Wybór"
|
||||
TINT_CONF_FILE="plik konfiguracji tint2"
|
||||
;;
|
||||
*)
|
||||
TITLE="Tint2 Manager"
|
||||
TITLE="Tint2 Panels Manager"
|
||||
CANCEL="--button=Cancel:1"
|
||||
SELECT_TINT="Select Tint2s from the list. Click <b>OK</b> to start all selected."
|
||||
SELECT="Select"
|
||||
|
@ -79,7 +79,7 @@ fillArrays(){
|
|||
findTint(){
|
||||
# search dirs for tint2 config files
|
||||
num=0
|
||||
for x in $(find $TINT2PATH -type f );do
|
||||
for x in $(find $TINT2PATH -type f -name *tint2rc);do
|
||||
# check if likely tint2 config file
|
||||
pm=$(grep "panel_monitor" "$x")
|
||||
if [[ $pm ]];then
|
||||
|
@ -116,9 +116,9 @@ done
|
|||
## Populate dialog from array, get return value(s)
|
||||
RET=$($DLGDEC $WINICON --list --title="$TITLE" \
|
||||
--text="$SELECT_TINT" \
|
||||
--checklist --width=350 --height=300 \
|
||||
--checklist --width=350 --height=500 --multiple \
|
||||
--column="$SELECT" --column="$TINT_CONF_FILE" $LISTTINT --separator=":" \
|
||||
$OK $CANCEL \
|
||||
$CANCEL $OK \
|
||||
)
|
||||
|
||||
if (( $? == 1 )); then # cancel button pressed
|
||||
|
|
|
@ -1,26 +1,26 @@
|
|||
#!/bin/bash
|
||||
|
||||
|
||||
OK="--button=OK:0"
|
||||
case $LANG in
|
||||
pl*)
|
||||
TITLE="Edytor autostartu XDG"
|
||||
DESC="Wybierz programy/usługi do autostartu"
|
||||
DESC="Wybierz programy/usługi, które mają być uruchamiane autamatycznie\nwraz z sesją OpenBox."
|
||||
ENABLE="wł"
|
||||
FILE="Plik"
|
||||
NAME="Nazwa"
|
||||
COMMENT="Komentarz"
|
||||
NO_DESC="brak opisu"
|
||||
CANCEL="Anuluj"
|
||||
CANCEL="--button=Anuluj:1"
|
||||
;;
|
||||
*)
|
||||
TITLE="XDG Autostart Editor"
|
||||
DESC="Choose apps/services to autostart"
|
||||
DESC="Choose apps/services to autostart with OpenBox session."
|
||||
ENABLE="run"
|
||||
FILE="File"
|
||||
NAME="Name"
|
||||
COMMENT="Comment"
|
||||
NO_DESC="no description"
|
||||
CANCEL="Cancel"
|
||||
CANCEL="--button=Cancel:1"
|
||||
;;
|
||||
esac
|
||||
|
||||
|
@ -43,9 +43,9 @@ for f in $config_dir/autostart/*.desktop; do
|
|||
#grep -m 1 -e '^[[:blank:]]*Exec' $f | cut -d = -f 2
|
||||
comment=$(grep -m 1 -e '^[[:blank:]]*Comment=' $f | cut -d = -f 2)
|
||||
[ ! -z "$comment" ] && echo $comment || echo "$NO_DESC"
|
||||
done | yad --width=400 --height=400 --title="$TITLE" --image="gtk-execute" \
|
||||
done | yad --window-icon=distributor-logo-mabox --width=640 --height=500 --title="$TITLE" --image="gtk-execute" \
|
||||
--text="$DESC" --list --print-all --bool-fmt="t" \
|
||||
--checklist --column="$ENABLE:CHK" --column="$FILE:HD" --column="$NAME" --column="$COMMENT:HD" --tooltip-column=4 --button=OK:0 --button="$CANCEL:1" > $results
|
||||
--checklist --column="$ENABLE:CHK" --column="$FILE:HD" --column="$NAME" --column="$COMMENT" --tooltip-column=4 $CANCEL $OK > $results
|
||||
|
||||
if [[ ${PIPESTATUS[1]} -eq 0 ]]; then
|
||||
i=0
|
||||
|
|
Loading…
Reference in New Issue