t2 menu clock
parent
2a2151fdf7
commit
ab8270c738
15
bin/t2ctl
15
bin/t2ctl
|
@ -110,7 +110,18 @@ reset () {
|
|||
cp "/usr/share/mabox/lang/${LNG}/.config/tint2/${1}" "$HOME/.config/tint2/"
|
||||
restartt2
|
||||
}
|
||||
|
||||
clockline1 () {
|
||||
sd "^time1_format.*$" "time1_format = ${1}" ${T2CONFFILE}
|
||||
restartt2
|
||||
}
|
||||
clockline2 () {
|
||||
if [[ "$1" == "none" ]];then
|
||||
sd "^time2_format.*$" "time2_format =" ${T2CONFFILE}
|
||||
else
|
||||
sd "^time2_format.*$" "time2_format = ${1}" ${T2CONFFILE}
|
||||
fi
|
||||
restartt2
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
position) pos "$2";;
|
||||
|
@ -125,6 +136,8 @@ case "$1" in
|
|||
autohide) autohide "$2" ;;
|
||||
hideheight) hideheight "$2" ;;
|
||||
icontheme) icontheme "$2" ;;
|
||||
clockline1) clockline1 "$2";;
|
||||
clockline2) clockline2 "$2";;
|
||||
reset) reset "$2" ;;
|
||||
*) : ;;
|
||||
esac
|
||||
|
|
Loading…
Reference in New Issue