update
This commit is contained in:
25
bin/t2ctl
25
bin/t2ctl
@@ -612,6 +612,30 @@ switchto(){
|
||||
mb-tint2-session
|
||||
|
||||
}
|
||||
logo(){
|
||||
case "$1" in
|
||||
default)
|
||||
#notify-send.sh "$1" "$2"
|
||||
sd "^button_icon = ~/.icons/mabox-logo-.*$" "button_icon = ~/.icons/mabox-logo-square-default.svg" ${2}
|
||||
;;
|
||||
color)
|
||||
sd "^button_icon = ~/.icons/mabox-logo-.*$" "button_icon = ~/.icons/mabox-logo-square.svg" ${2}
|
||||
case $LANG in
|
||||
pl*)
|
||||
TITLE="Kolorowalne Logo w panelu"
|
||||
DESC="\nUżyj widżetu Conky: <b>Mabox Logo SVG</b>, aby zmieniać kolory logo.\nKliknij prawym w logo i zmieniaj kolory z <b>menu kontekstowego</b>.\n"
|
||||
RUN_CONKYMNGR="Uruchom Menedżera Widżetów Conky"
|
||||
;;
|
||||
*)
|
||||
TITLE="Colorable logo in panel"
|
||||
DESC="\nUse <b>Mabox Logo SVG</b> conky widget to change logo colors.\n<i>Right-click</i> in logo nad change colors from <b>context menu</b>.\n"
|
||||
RUN_CONKYMNGR="Run Conky Widget Manager"
|
||||
;;
|
||||
esac
|
||||
notify-send.sh -i ~/.icons/mabox-logo-square.svg -o "$RUN_CONKYMNGR:colorizer-conky -s" "$TITLE" "$DESC"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
position) pos "$2";;
|
||||
@@ -682,6 +706,7 @@ case "$1" in
|
||||
allelements) allelements "$2";;
|
||||
preset) preset "$2";;
|
||||
switchto)switchto "$2";;
|
||||
logo)logo "$2" "$3";;
|
||||
*) : ;;
|
||||
esac
|
||||
restartt2
|
||||
|
||||
Reference in New Issue
Block a user