control conky from TODOlist dynmenu
This commit is contained in:
12
bin/TODOlist
12
bin/TODOlist
@@ -42,6 +42,7 @@ case "$LANG" in
|
||||
_YES_DELETE="Tak, usuń"
|
||||
_CONKY_SETTINGS_LONG="Ustawienia Widżetu Conky"
|
||||
_CONKY_SETTINGS="Ustawienia widżetu Conky"
|
||||
_CONKY_POS="Pozycja, czcionka, kolory..."
|
||||
_CLEAR_FILTER="Wyczyśc filtr"
|
||||
_FILTERBY="Filtruj"
|
||||
_SH_CONKY="Pokaż/ukryj elementy w Conky"
|
||||
@@ -82,8 +83,9 @@ case "$LANG" in
|
||||
_LIST_AND_ALL="and all related files"
|
||||
_AREYOU_SURE="Are you sure?"
|
||||
_YES_DELETE="Yes, delete"
|
||||
_CONKY_SETTINGS_LONG="Conky display settings/filter"
|
||||
_CONKY_SETTINGS_LONG="Display settings/filter"
|
||||
_CONKY_SETTINGS="Conky widget settings"
|
||||
_CONKY_POS="Position, font, colors..."
|
||||
_CLEAR_FILTER="Clear filter"
|
||||
_FILTERBY="Filter by"
|
||||
_SH_CONKY="Show/hide some elements in Conky"
|
||||
@@ -233,20 +235,20 @@ out3+=("\"\"\"$_YES_DELETE <b>${prettyname}</b> $_LIST_AND_ALL\"\"\",mabox-todo.
|
||||
|
||||
|
||||
### for Conky only if running
|
||||
out+=("^sep()")
|
||||
if pgrep -f 'conky.*conky/TODOlist' 2> /dev/null;then
|
||||
|
||||
out+=("<big></big> $_CONKY_SETTINGS_LONG,^checkout(display)")
|
||||
out+=("^sep(Conky widget)")
|
||||
out+=("$_CONKY_SETTINGS_LONG,^checkout(display)")
|
||||
out+=("\"\"\"$_CONKY_POS\"\"\",^pipe(conkyctl single ~/.config/conky/TODOlist_mbcolor.conkyrc)")
|
||||
# DISPLAY SETTINGS SUBMENU
|
||||
out2+=("^tag(display)")
|
||||
out2+=("^sep($_CONKY_SETTINGS)")
|
||||
[[ "$filter" != "" ]] && out2+=("<big></big> $_CLEAR_FILTER ($filter),mb-setvar filter= ${CFG_FILE};${0} center")
|
||||
out2+=("^sep($_FILTERBY)")
|
||||
|
||||
# Projects
|
||||
if (( ${#projects[@]} == 0 )); then
|
||||
: #empty
|
||||
else
|
||||
out2+=("^sep($_FILTERBY)")
|
||||
for proj in "${projects[@]}"
|
||||
do
|
||||
[[ "$filter" == "$proj" ]] && out2+=("<big>綠</big> <span bgcolor='#CCCCCC' fgcolor='purple'><b> ${proj} </b></span>,mb-setvar filter= ${CFG_FILE};${0} center") || out2+=("<big>祿</big> <span bgcolor='#CCCCCC' fgcolor='purple'> ${proj} </span>,mb-setvar filter=${proj} ${CFG_FILE};${0} center")
|
||||
|
||||
Reference in New Issue
Block a user